@rpcbase/ui 0.252.0 → 0.253.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 (484) hide show
  1. package/dist/components/Notifications/types.d.ts +1 -0
  2. package/dist/components/Notifications/types.d.ts.map +1 -1
  3. package/dist/index105.js +36 -36
  4. package/dist/index117.js +6 -6
  5. package/dist/index120.js +10 -10
  6. package/dist/index122.js +2 -2
  7. package/dist/index123.js +3 -3
  8. package/dist/index124.js +1 -1
  9. package/dist/index126.js +2 -2
  10. package/dist/index128.js +2 -2
  11. package/dist/index150.js +3 -3
  12. package/dist/index156.js +1 -1
  13. package/dist/index163.js +2 -2
  14. package/dist/index164.js +7 -7
  15. package/dist/index167.js +1 -1
  16. package/dist/index169.js +1 -1
  17. package/dist/index172.js +3 -3
  18. package/dist/index175.js +1 -1
  19. package/dist/index176.js +4 -4
  20. package/dist/index182.js +2 -2
  21. package/dist/index184.js +4 -4
  22. package/dist/index185.js +13 -13
  23. package/dist/index186.js +1 -1
  24. package/dist/index188.js +5 -5
  25. package/dist/index189.js +1 -1
  26. package/dist/index192.js +2 -2
  27. package/dist/index193.js +6 -6
  28. package/dist/index194.js +20 -59
  29. package/dist/index194.js.map +1 -1
  30. package/dist/index195.js +66 -8
  31. package/dist/index195.js.map +1 -1
  32. package/dist/index196.js +6 -87
  33. package/dist/index196.js.map +1 -1
  34. package/dist/index197.js +5 -19
  35. package/dist/index197.js.map +1 -1
  36. package/dist/index198.js +11 -16
  37. package/dist/index198.js.map +1 -1
  38. package/dist/index199.js +3 -5
  39. package/dist/index199.js.map +1 -1
  40. package/dist/index200.js +49 -4
  41. package/dist/index200.js.map +1 -1
  42. package/dist/index201.js +4 -7
  43. package/dist/index201.js.map +1 -1
  44. package/dist/index202.js +29 -4
  45. package/dist/index202.js.map +1 -1
  46. package/dist/index203.js +16 -6
  47. package/dist/index203.js.map +1 -1
  48. package/dist/index204.js +5 -16
  49. package/dist/index204.js.map +1 -1
  50. package/dist/index205.js +21 -4
  51. package/dist/index205.js.map +1 -1
  52. package/dist/index206.js +53 -4
  53. package/dist/index206.js.map +1 -1
  54. package/dist/index207.js +20 -12
  55. package/dist/index207.js.map +1 -1
  56. package/dist/index208.js +41 -9
  57. package/dist/index208.js.map +1 -1
  58. package/dist/index209.js +39 -13
  59. package/dist/index209.js.map +1 -1
  60. package/dist/index210.js +46 -14
  61. package/dist/index210.js.map +1 -1
  62. package/dist/index211.js +20 -4
  63. package/dist/index211.js.map +1 -1
  64. package/dist/index212.js +70 -5
  65. package/dist/index212.js.map +1 -1
  66. package/dist/index213.js +17 -6
  67. package/dist/index213.js.map +1 -1
  68. package/dist/index214.js +3 -5
  69. package/dist/index214.js.map +1 -1
  70. package/dist/index215.js +11 -54
  71. package/dist/index215.js.map +1 -1
  72. package/dist/index216.js +13 -8
  73. package/dist/index216.js.map +1 -1
  74. package/dist/index217.js +18 -4
  75. package/dist/index217.js.map +1 -1
  76. package/dist/index218.js +36 -4
  77. package/dist/index218.js.map +1 -1
  78. package/dist/index219.js +239 -8
  79. package/dist/index219.js.map +1 -1
  80. package/dist/index220.js +252 -4
  81. package/dist/index220.js.map +1 -1
  82. package/dist/index221.js +68 -4
  83. package/dist/index221.js.map +1 -1
  84. package/dist/index222.js +99 -3
  85. package/dist/index222.js.map +1 -1
  86. package/dist/index223.js +83 -10
  87. package/dist/index223.js.map +1 -1
  88. package/dist/index224.js +3 -9
  89. package/dist/index224.js.map +1 -1
  90. package/dist/index225.js +29 -9
  91. package/dist/index225.js.map +1 -1
  92. package/dist/index226.js +16 -10
  93. package/dist/index226.js.map +1 -1
  94. package/dist/index227.js +35 -11
  95. package/dist/index227.js.map +1 -1
  96. package/dist/index228.js +17 -9
  97. package/dist/index228.js.map +1 -1
  98. package/dist/index229.js +3 -6
  99. package/dist/index229.js.map +1 -1
  100. package/dist/index230.js +26 -5
  101. package/dist/index230.js.map +1 -1
  102. package/dist/index231.js +28 -4
  103. package/dist/index231.js.map +1 -1
  104. package/dist/index232.js +4 -6
  105. package/dist/index232.js.map +1 -1
  106. package/dist/index233.js +78 -6
  107. package/dist/index233.js.map +1 -1
  108. package/dist/index234.js +272 -5
  109. package/dist/index234.js.map +1 -1
  110. package/dist/index235.js +10 -15
  111. package/dist/index235.js.map +1 -1
  112. package/dist/index236.js +10 -7
  113. package/dist/index236.js.map +1 -1
  114. package/dist/index237.js +25 -10
  115. package/dist/index237.js.map +1 -1
  116. package/dist/index238.js +16 -10
  117. package/dist/index238.js.map +1 -1
  118. package/dist/index239.js +125 -21
  119. package/dist/index239.js.map +1 -1
  120. package/dist/index240.js +5 -8
  121. package/dist/index240.js.map +1 -1
  122. package/dist/index241.js +65 -9
  123. package/dist/index241.js.map +1 -1
  124. package/dist/index242.js +14 -10
  125. package/dist/index242.js.map +1 -1
  126. package/dist/index243.js +7 -4
  127. package/dist/index243.js.map +1 -1
  128. package/dist/index244.js +5 -5
  129. package/dist/index244.js.map +1 -1
  130. package/dist/index245.js +3 -16
  131. package/dist/index245.js.map +1 -1
  132. package/dist/index246.js +10 -9
  133. package/dist/index246.js.map +1 -1
  134. package/dist/index247.js +7 -18
  135. package/dist/index247.js.map +1 -1
  136. package/dist/index248.js +132 -19
  137. package/dist/index248.js.map +1 -1
  138. package/dist/index249.js +397 -10
  139. package/dist/index249.js.map +1 -1
  140. package/dist/index250.js +5 -30
  141. package/dist/index250.js.map +1 -1
  142. package/dist/index251.js +52 -12
  143. package/dist/index251.js.map +1 -1
  144. package/dist/index252.js +11 -25
  145. package/dist/index252.js.map +1 -1
  146. package/dist/index253.js +27 -5
  147. package/dist/index253.js.map +1 -1
  148. package/dist/index254.js +10 -153
  149. package/dist/index254.js.map +1 -1
  150. package/dist/index255.js +58 -32
  151. package/dist/index255.js.map +1 -1
  152. package/dist/index256.js +8 -11
  153. package/dist/index256.js.map +1 -1
  154. package/dist/index257.js +81 -43
  155. package/dist/index257.js.map +1 -1
  156. package/dist/index258.js +19 -9
  157. package/dist/index258.js.map +1 -1
  158. package/dist/index259.js +16 -11
  159. package/dist/index259.js.map +1 -1
  160. package/dist/index260.js +4 -42
  161. package/dist/index260.js.map +1 -1
  162. package/dist/index261.js +4 -96
  163. package/dist/index261.js.map +1 -1
  164. package/dist/index262.js +6 -86
  165. package/dist/index262.js.map +1 -1
  166. package/dist/index263.js +4 -105
  167. package/dist/index263.js.map +1 -1
  168. package/dist/index264.js +6 -52
  169. package/dist/index264.js.map +1 -1
  170. package/dist/index265.js +16 -11
  171. package/dist/index265.js.map +1 -1
  172. package/dist/index266.js +4 -4
  173. package/dist/index266.js.map +1 -1
  174. package/dist/index267.js +4 -37
  175. package/dist/index267.js.map +1 -1
  176. package/dist/index268.js +12 -8
  177. package/dist/index268.js.map +1 -1
  178. package/dist/index269.js +9 -135
  179. package/dist/index269.js.map +1 -1
  180. package/dist/index270.js +13 -17
  181. package/dist/index270.js.map +1 -1
  182. package/dist/index271.js +13 -15
  183. package/dist/index271.js.map +1 -1
  184. package/dist/index272.js +4 -3
  185. package/dist/index272.js.map +1 -1
  186. package/dist/index273.js +5 -36
  187. package/dist/index273.js.map +1 -1
  188. package/dist/index274.js +6 -20
  189. package/dist/index274.js.map +1 -1
  190. package/dist/index275.js +5 -9
  191. package/dist/index275.js.map +1 -1
  192. package/dist/index276.js +54 -8
  193. package/dist/index276.js.map +1 -1
  194. package/dist/index277.js +9 -20
  195. package/dist/index277.js.map +1 -1
  196. package/dist/index278.js +4 -66
  197. package/dist/index278.js.map +1 -1
  198. package/dist/index279.js +4 -6
  199. package/dist/index279.js.map +1 -1
  200. package/dist/index280.js +8 -5
  201. package/dist/index280.js.map +1 -1
  202. package/dist/index281.js +4 -11
  203. package/dist/index281.js.map +1 -1
  204. package/dist/index282.js +4 -3
  205. package/dist/index282.js.map +1 -1
  206. package/dist/index283.js +3 -50
  207. package/dist/index283.js.map +1 -1
  208. package/dist/index284.js +11 -4
  209. package/dist/index284.js.map +1 -1
  210. package/dist/index285.js +9 -29
  211. package/dist/index285.js.map +1 -1
  212. package/dist/index286.js +9 -16
  213. package/dist/index286.js.map +1 -1
  214. package/dist/index287.js +10 -5
  215. package/dist/index287.js.map +1 -1
  216. package/dist/index288.js +10 -21
  217. package/dist/index288.js.map +1 -1
  218. package/dist/index289.js +9 -53
  219. package/dist/index289.js.map +1 -1
  220. package/dist/index290.js +6 -20
  221. package/dist/index290.js.map +1 -1
  222. package/dist/index291.js +5 -41
  223. package/dist/index291.js.map +1 -1
  224. package/dist/index292.js +4 -39
  225. package/dist/index292.js.map +1 -1
  226. package/dist/index293.js +6 -46
  227. package/dist/index293.js.map +1 -1
  228. package/dist/index294.js +6 -20
  229. package/dist/index294.js.map +1 -1
  230. package/dist/index295.js +5 -70
  231. package/dist/index295.js.map +1 -1
  232. package/dist/index296.js +16 -17
  233. package/dist/index296.js.map +1 -1
  234. package/dist/index297.js +7 -3
  235. package/dist/index297.js.map +1 -1
  236. package/dist/index298.js +10 -11
  237. package/dist/index298.js.map +1 -1
  238. package/dist/index299.js +10 -13
  239. package/dist/index299.js.map +1 -1
  240. package/dist/index300.js +21 -18
  241. package/dist/index300.js.map +1 -1
  242. package/dist/index301.js +8 -36
  243. package/dist/index301.js.map +1 -1
  244. package/dist/index302.js +9 -239
  245. package/dist/index302.js.map +1 -1
  246. package/dist/index303.js +9 -252
  247. package/dist/index303.js.map +1 -1
  248. package/dist/index304.js +4 -68
  249. package/dist/index304.js.map +1 -1
  250. package/dist/index305.js +5 -99
  251. package/dist/index305.js.map +1 -1
  252. package/dist/index306.js +15 -82
  253. package/dist/index306.js.map +1 -1
  254. package/dist/index307.js +9 -3
  255. package/dist/index307.js.map +1 -1
  256. package/dist/index308.js +17 -28
  257. package/dist/index308.js.map +1 -1
  258. package/dist/index309.js +20 -16
  259. package/dist/index309.js.map +1 -1
  260. package/dist/index310.js +13 -35
  261. package/dist/index310.js.map +1 -1
  262. package/dist/index311.js +29 -17
  263. package/dist/index311.js.map +1 -1
  264. package/dist/index312.js +12 -3
  265. package/dist/index312.js.map +1 -1
  266. package/dist/index313.js +25 -26
  267. package/dist/index313.js.map +1 -1
  268. package/dist/index314.js +5 -28
  269. package/dist/index314.js.map +1 -1
  270. package/dist/index315.js +155 -4
  271. package/dist/index315.js.map +1 -1
  272. package/dist/index316.js +31 -77
  273. package/dist/index316.js.map +1 -1
  274. package/dist/index317.js +11 -272
  275. package/dist/index317.js.map +1 -1
  276. package/dist/index318.js +49 -11
  277. package/dist/index318.js.map +1 -1
  278. package/dist/index319.js +9 -10
  279. package/dist/index319.js.map +1 -1
  280. package/dist/index320.js +11 -25
  281. package/dist/index320.js.map +1 -1
  282. package/dist/index321.js +42 -15
  283. package/dist/index321.js.map +1 -1
  284. package/dist/index322.js +91 -119
  285. package/dist/index322.js.map +1 -1
  286. package/dist/index323.js +86 -5
  287. package/dist/index323.js.map +1 -1
  288. package/dist/index324.js +98 -58
  289. package/dist/index324.js.map +1 -1
  290. package/dist/index325.js +51 -12
  291. package/dist/index325.js.map +1 -1
  292. package/dist/index326.js +11 -7
  293. package/dist/index326.js.map +1 -1
  294. package/dist/index327.js +4 -5
  295. package/dist/index327.js.map +1 -1
  296. package/dist/index328.js +37 -3
  297. package/dist/index328.js.map +1 -1
  298. package/dist/index329.js +8 -10
  299. package/dist/index329.js.map +1 -1
  300. package/dist/index330.js +3 -7
  301. package/dist/index330.js.map +1 -1
  302. package/dist/index331.js +9 -133
  303. package/dist/index331.js.map +1 -1
  304. package/dist/index332.js +121 -385
  305. package/dist/index332.js.map +1 -1
  306. package/dist/index333.js +18 -5
  307. package/dist/index333.js.map +1 -1
  308. package/dist/index334.js +14 -51
  309. package/dist/index334.js.map +1 -1
  310. package/dist/index335.js +36 -11
  311. package/dist/index335.js.map +1 -1
  312. package/dist/index336.js +20 -27
  313. package/dist/index336.js.map +1 -1
  314. package/dist/index337.js +8 -11
  315. package/dist/index337.js.map +1 -1
  316. package/dist/index338.js +2 -2
  317. package/dist/index341.js +1 -1
  318. package/dist/index348.js +5 -51
  319. package/dist/index348.js.map +1 -1
  320. package/dist/index349.js +51 -5
  321. package/dist/index349.js.map +1 -1
  322. package/dist/index350.js +4 -4
  323. package/dist/index357.js +1 -1
  324. package/dist/index358.js +5 -5
  325. package/dist/index359.js +1 -1
  326. package/dist/index362.js +5 -4
  327. package/dist/index362.js.map +1 -1
  328. package/dist/index363.js +4 -18
  329. package/dist/index363.js.map +1 -1
  330. package/dist/index364.js +3 -13
  331. package/dist/index364.js.map +1 -1
  332. package/dist/index365.js +11 -4
  333. package/dist/index365.js.map +1 -1
  334. package/dist/index366.js +20 -20
  335. package/dist/index366.js.map +1 -1
  336. package/dist/index367.js +45 -4
  337. package/dist/index367.js.map +1 -1
  338. package/dist/index368.js +18 -6
  339. package/dist/index368.js.map +1 -1
  340. package/dist/index369.js +5 -3
  341. package/dist/index369.js.map +1 -1
  342. package/dist/index370.js +199 -10
  343. package/dist/index370.js.map +1 -1
  344. package/dist/index371.js +73 -20
  345. package/dist/index371.js.map +1 -1
  346. package/dist/index372.js +122 -43
  347. package/dist/index372.js.map +1 -1
  348. package/dist/index373.js +5 -18
  349. package/dist/index373.js.map +1 -1
  350. package/dist/index374.js +17 -4
  351. package/dist/index374.js.map +1 -1
  352. package/dist/index375.js +12 -200
  353. package/dist/index375.js.map +1 -1
  354. package/dist/index376.js +4 -73
  355. package/dist/index376.js.map +1 -1
  356. package/dist/index377.js +19 -122
  357. package/dist/index377.js.map +1 -1
  358. package/dist/index379.js +3 -3
  359. package/dist/index380.js +3 -3
  360. package/dist/index382.js +1 -1
  361. package/dist/index384.js +1 -1
  362. package/dist/index385.js +2 -2
  363. package/dist/index388.js +1 -1
  364. package/dist/index389.js +2 -2
  365. package/dist/index392.js +3 -5
  366. package/dist/index392.js.map +1 -1
  367. package/dist/index393.js +3 -5
  368. package/dist/index393.js.map +1 -1
  369. package/dist/index394.js +5 -4
  370. package/dist/index394.js.map +1 -1
  371. package/dist/index395.js +4 -15
  372. package/dist/index395.js.map +1 -1
  373. package/dist/index396.js +4 -9
  374. package/dist/index396.js.map +1 -1
  375. package/dist/index397.js +15 -5
  376. package/dist/index397.js.map +1 -1
  377. package/dist/index398.js +8 -4
  378. package/dist/index398.js.map +1 -1
  379. package/dist/index399.js +5 -545
  380. package/dist/index399.js.map +1 -1
  381. package/dist/index400.js +5 -47
  382. package/dist/index400.js.map +1 -1
  383. package/dist/index401.js +543 -15
  384. package/dist/index401.js.map +1 -1
  385. package/dist/index402.js +47 -6
  386. package/dist/index402.js.map +1 -1
  387. package/dist/index403.js +17 -7
  388. package/dist/index403.js.map +1 -1
  389. package/dist/index404.js +5 -6
  390. package/dist/index404.js.map +1 -1
  391. package/dist/index405.js +7 -7
  392. package/dist/index405.js.map +1 -1
  393. package/dist/index406.js +6 -11
  394. package/dist/index406.js.map +1 -1
  395. package/dist/index407.js +7 -8
  396. package/dist/index407.js.map +1 -1
  397. package/dist/index408.js +11 -12
  398. package/dist/index408.js.map +1 -1
  399. package/dist/index409.js +9 -3
  400. package/dist/index409.js.map +1 -1
  401. package/dist/index410.js +13 -3
  402. package/dist/index410.js.map +1 -1
  403. package/dist/index413.js +1 -1
  404. package/dist/index414.js +7 -4
  405. package/dist/index414.js.map +1 -1
  406. package/dist/index415.js +2 -56
  407. package/dist/index415.js.map +1 -1
  408. package/dist/index416.js +43 -67
  409. package/dist/index416.js.map +1 -1
  410. package/dist/index417.js +56 -31
  411. package/dist/index417.js.map +1 -1
  412. package/dist/index418.js +8 -9
  413. package/dist/index418.js.map +1 -1
  414. package/dist/index419.js +2 -153
  415. package/dist/index419.js.map +1 -1
  416. package/dist/index420.js +54 -107
  417. package/dist/index420.js.map +1 -1
  418. package/dist/index421.js +55 -7
  419. package/dist/index421.js.map +1 -1
  420. package/dist/index422.js +33 -2
  421. package/dist/index422.js.map +1 -1
  422. package/dist/index423.js +4 -43
  423. package/dist/index423.js.map +1 -1
  424. package/dist/index424.js +55 -55
  425. package/dist/index424.js.map +1 -1
  426. package/dist/index425.js +68 -8
  427. package/dist/index425.js.map +1 -1
  428. package/dist/index426.js +31 -2
  429. package/dist/index426.js.map +1 -1
  430. package/dist/index427.js +9 -55
  431. package/dist/index427.js.map +1 -1
  432. package/dist/index428.js +152 -55
  433. package/dist/index428.js.map +1 -1
  434. package/dist/index429.js +107 -32
  435. package/dist/index429.js.map +1 -1
  436. package/dist/index430.js +2 -16
  437. package/dist/index430.js.map +1 -1
  438. package/dist/index431.js +2 -29
  439. package/dist/index431.js.map +1 -1
  440. package/dist/index432.js +2 -13
  441. package/dist/index432.js.map +1 -1
  442. package/dist/index433.js +2 -7
  443. package/dist/index433.js.map +1 -1
  444. package/dist/index434.js +16 -2
  445. package/dist/index434.js.map +1 -1
  446. package/dist/index435.js +29 -2
  447. package/dist/index435.js.map +1 -1
  448. package/dist/index436.js +13 -2
  449. package/dist/index436.js.map +1 -1
  450. package/dist/index437.js +7 -2
  451. package/dist/index437.js.map +1 -1
  452. package/dist/index44.js +1 -1
  453. package/dist/index45.js +2 -2
  454. package/dist/index49.js +30 -30
  455. package/dist/index50.js +21 -21
  456. package/dist/index51.js +1 -1
  457. package/dist/index52.js +8 -8
  458. package/dist/index53.js +2 -2
  459. package/dist/index55.js +16 -16
  460. package/dist/index56.js +4 -4
  461. package/dist/index57.js +3 -3
  462. package/dist/index58.js +7 -7
  463. package/dist/index59.js +4 -4
  464. package/dist/index60.js +12 -12
  465. package/dist/index61.js +2 -2
  466. package/dist/index62.js +2 -2
  467. package/dist/index66.js +1 -1
  468. package/dist/index67.js +1 -1
  469. package/dist/index70.js +1 -1
  470. package/dist/index71.js +1 -1
  471. package/dist/index72.js +6 -2
  472. package/dist/index72.js.map +1 -1
  473. package/dist/index73.js +8 -2
  474. package/dist/index73.js.map +1 -1
  475. package/dist/index74.js +6 -2
  476. package/dist/index74.js.map +1 -1
  477. package/dist/index75.js +2 -2
  478. package/dist/index76.js +2 -6
  479. package/dist/index76.js.map +1 -1
  480. package/dist/index77.js +2 -8
  481. package/dist/index77.js.map +1 -1
  482. package/dist/index78.js +2 -6
  483. package/dist/index78.js.map +1 -1
  484. package/package.json +1 -1
package/dist/index295.js CHANGED
@@ -1,74 +1,9 @@
1
- import * as c from "react";
2
- import { serializeValue as a } from "./index370.js";
3
- import { j as i } from "./index30.js";
4
- function s(r) {
5
- return r != null && r.length > 0 && typeof r[0] == "object" && r[0] != null && "items" in r[0];
6
- }
7
- function A(r) {
8
- if (!Array.isArray(r))
9
- return r != null && "null" in r;
10
- const n = r;
11
- if (s(n)) {
12
- for (const l of n)
13
- for (const u of l.items)
14
- if (u && u.value == null && u.label != null)
15
- return !0;
16
- return !1;
17
- }
18
- for (const l of n)
19
- if (l && l.value == null && l.label != null)
20
- return !0;
21
- return !1;
22
- }
23
- function b(r, n) {
24
- if (n && r != null)
25
- return n(r) ?? "";
26
- if (r && typeof r == "object") {
27
- if ("label" in r && r.label != null)
28
- return String(r.label);
29
- if ("value" in r)
30
- return String(r.value);
31
- }
32
- return a(r);
33
- }
34
- function h(r, n) {
35
- return n && r != null ? n(r) ?? "" : r && typeof r == "object" && "value" in r && "label" in r ? a(r.value) : a(r);
36
- }
37
- function p(r, n, l) {
38
- function u() {
39
- return b(r, l);
40
- }
41
- if (l && r != null)
42
- return l(r);
43
- if (r && typeof r == "object" && "label" in r && r.label != null)
44
- return r.label;
45
- if (n && !Array.isArray(n))
46
- return n[r] ?? u();
47
- if (Array.isArray(n)) {
48
- const e = n, t = s(e) ? e.flatMap((f) => f.items) : e;
49
- if (r == null || typeof r != "object") {
50
- const f = t.find((o) => o.value === r);
51
- return f && f.label != null ? f.label : u();
52
- }
53
- if ("value" in r) {
54
- const f = t.find((o) => o && o.value === r.value);
55
- if (f && f.label != null)
56
- return f.label;
57
- }
58
- }
59
- return u();
60
- }
61
- function d(r, n, l) {
62
- return r.reduce((u, e, t) => (t > 0 && u.push(", "), u.push(/* @__PURE__ */ i.jsx(c.Fragment, {
63
- children: p(e, n, l)
64
- }, t)), u), []);
1
+ import { toDate as o } from "./index395.js";
2
+ function n(e, r) {
3
+ const t = o(e, r?.in);
4
+ return t.setFullYear(t.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
65
5
  }
66
6
  export {
67
- A as hasNullItemLabel,
68
- s as isGroupedItems,
69
- d as resolveMultipleLabels,
70
- p as resolveSelectedLabel,
71
- b as stringifyAsLabel,
72
- h as stringifyAsValue
7
+ n as startOfYear
73
8
  };
74
9
  //# sourceMappingURL=index295.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index295.js","sources":["../../../node_modules/@base-ui/react/internals/resolveValueLabel.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { serializeValue } from \"./serializeValue.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function isGroupedItems(items) {\n return items != null && items.length > 0 && typeof items[0] === 'object' && items[0] != null && 'items' in items[0];\n}\n\n/**\n * Checks if the items array contains an item with a null value that has a non-null label.\n */\nexport function hasNullItemLabel(items) {\n if (!Array.isArray(items)) {\n return items != null && 'null' in items;\n }\n const arrayItems = items;\n if (isGroupedItems(arrayItems)) {\n for (const group of arrayItems) {\n for (const item of group.items) {\n if (item && item.value == null && item.label != null) {\n return true;\n }\n }\n }\n return false;\n }\n for (const item of arrayItems) {\n if (item && item.value == null && item.label != null) {\n return true;\n }\n }\n return false;\n}\nexport function stringifyAsLabel(item, itemToStringLabel) {\n if (itemToStringLabel && item != null) {\n return itemToStringLabel(item) ?? '';\n }\n if (item && typeof item === 'object') {\n if ('label' in item && item.label != null) {\n return String(item.label);\n }\n if ('value' in item) {\n return String(item.value);\n }\n }\n return serializeValue(item);\n}\nexport function stringifyAsValue(item, itemToStringValue) {\n if (itemToStringValue && item != null) {\n return itemToStringValue(item) ?? '';\n }\n if (item && typeof item === 'object' && 'value' in item && 'label' in item) {\n return serializeValue(item.value);\n }\n return serializeValue(item);\n}\nexport function resolveSelectedLabel(value, items, itemToStringLabel) {\n function fallback() {\n return stringifyAsLabel(value, itemToStringLabel);\n }\n if (itemToStringLabel && value != null) {\n return itemToStringLabel(value);\n }\n\n // Custom object with explicit label takes precedence\n if (value && typeof value === 'object' && 'label' in value && value.label != null) {\n return value.label;\n }\n\n // Items provided as plain record map\n if (items && !Array.isArray(items)) {\n return items[value] ?? fallback();\n }\n\n // Items provided as array (flat or grouped)\n if (Array.isArray(items)) {\n const arrayItems = items;\n const flatItems = isGroupedItems(arrayItems) ? arrayItems.flatMap(group => group.items) : arrayItems;\n if (value == null || typeof value !== 'object') {\n const match = flatItems.find(item => item.value === value);\n if (match && match.label != null) {\n return match.label;\n }\n return fallback();\n }\n\n // Object without explicit label: try matching by its `value` property\n if ('value' in value) {\n const match = flatItems.find(item => item && item.value === value.value);\n if (match && match.label != null) {\n return match.label;\n }\n }\n }\n return fallback();\n}\nexport function resolveMultipleLabels(values, items, itemToStringLabel) {\n return values.reduce((acc, value, index) => {\n if (index > 0) {\n acc.push(', ');\n }\n acc.push(/*#__PURE__*/_jsx(React.Fragment, {\n children: resolveSelectedLabel(value, items, itemToStringLabel)\n }, index));\n return acc;\n }, []);\n}"],"names":["isGroupedItems","items","hasNullItemLabel","arrayItems","group","item","stringifyAsLabel","itemToStringLabel","serializeValue","stringifyAsValue","itemToStringValue","resolveSelectedLabel","value","fallback","flatItems","match","resolveMultipleLabels","values","acc","index","_jsx","React"],"mappings":";;;AAKO,SAASA,EAAeC,GAAO;AACpC,SAAOA,KAAS,QAAQA,EAAM,SAAS,KAAK,OAAOA,EAAM,CAAC,KAAM,YAAYA,EAAM,CAAC,KAAK,QAAQ,WAAWA,EAAM,CAAC;AACpH;AAKO,SAASC,EAAiBD,GAAO;AACtC,MAAI,CAAC,MAAM,QAAQA,CAAK;AACtB,WAAOA,KAAS,QAAQ,UAAUA;AAEpC,QAAME,IAAaF;AACnB,MAAID,EAAeG,CAAU,GAAG;AAC9B,eAAWC,KAASD;AAClB,iBAAWE,KAAQD,EAAM;AACvB,YAAIC,KAAQA,EAAK,SAAS,QAAQA,EAAK,SAAS;AAC9C,iBAAO;AAIb,WAAO;AAAA,EACT;AACA,aAAWA,KAAQF;AACjB,QAAIE,KAAQA,EAAK,SAAS,QAAQA,EAAK,SAAS;AAC9C,aAAO;AAGX,SAAO;AACT;AACO,SAASC,EAAiBD,GAAME,GAAmB;AACxD,MAAIA,KAAqBF,KAAQ;AAC/B,WAAOE,EAAkBF,CAAI,KAAK;AAEpC,MAAIA,KAAQ,OAAOA,KAAS,UAAU;AACpC,QAAI,WAAWA,KAAQA,EAAK,SAAS;AACnC,aAAO,OAAOA,EAAK,KAAK;AAE1B,QAAI,WAAWA;AACb,aAAO,OAAOA,EAAK,KAAK;AAAA,EAE5B;AACA,SAAOG,EAAeH,CAAI;AAC5B;AACO,SAASI,EAAiBJ,GAAMK,GAAmB;AACxD,SAAIA,KAAqBL,KAAQ,OACxBK,EAAkBL,CAAI,KAAK,KAEhCA,KAAQ,OAAOA,KAAS,YAAY,WAAWA,KAAQ,WAAWA,IAC7DG,EAAeH,EAAK,KAAK,IAE3BG,EAAeH,CAAI;AAC5B;AACO,SAASM,EAAqBC,GAAOX,GAAOM,GAAmB;AACpE,WAASM,IAAW;AAClB,WAAOP,EAAiBM,GAAOL,CAAiB;AAAA,EAClD;AACA,MAAIA,KAAqBK,KAAS;AAChC,WAAOL,EAAkBK,CAAK;AAIhC,MAAIA,KAAS,OAAOA,KAAU,YAAY,WAAWA,KAASA,EAAM,SAAS;AAC3E,WAAOA,EAAM;AAIf,MAAIX,KAAS,CAAC,MAAM,QAAQA,CAAK;AAC/B,WAAOA,EAAMW,CAAK,KAAKC,EAAQ;AAIjC,MAAI,MAAM,QAAQZ,CAAK,GAAG;AACxB,UAAME,IAAaF,GACba,IAAYd,EAAeG,CAAU,IAAIA,EAAW,QAAQ,CAAAC,MAASA,EAAM,KAAK,IAAID;AAC1F,QAAIS,KAAS,QAAQ,OAAOA,KAAU,UAAU;AAC9C,YAAMG,IAAQD,EAAU,KAAK,CAAAT,MAAQA,EAAK,UAAUO,CAAK;AACzD,aAAIG,KAASA,EAAM,SAAS,OACnBA,EAAM,QAERF,EAAQ;AAAA,IACjB;AAGA,QAAI,WAAWD,GAAO;AACpB,YAAMG,IAAQD,EAAU,KAAK,CAAAT,MAAQA,KAAQA,EAAK,UAAUO,EAAM,KAAK;AACvE,UAAIG,KAASA,EAAM,SAAS;AAC1B,eAAOA,EAAM;AAAA,IAEjB;AAAA,EACF;AACA,SAAOF,EAAQ;AACjB;AACO,SAASG,EAAsBC,GAAQhB,GAAOM,GAAmB;AACtE,SAAOU,EAAO,OAAO,CAACC,GAAKN,GAAOO,OAC5BA,IAAQ,KACVD,EAAI,KAAK,IAAI,GAEfA,EAAI,KAAkBE,gBAAAA,MAAKC,EAAM,UAAU;AAAA,IACzC,UAAUV,EAAqBC,GAAOX,GAAOM,CAAiB;AAAA,EACpE,GAAOY,CAAK,CAAC,GACFD,IACN,CAAA,CAAE;AACP;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index295.js","sources":["../../../node_modules/date-fns/startOfYear.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfYear} function options.\n */\n\n/**\n * @name startOfYear\n * @category Year Helpers\n * @summary Return the start of a year for the given date.\n *\n * @description\n * Return the start of a year for the given date.\n * The result will be in the local timezone.\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 original date\n * @param options - The options\n *\n * @returns The start of a year\n *\n * @example\n * // The start of a year for 2 September 2014 11:55:00:\n * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Jan 01 2014 00:00:00\n */\nexport function startOfYear(date, options) {\n const date_ = toDate(date, options?.in);\n date_.setFullYear(date_.getFullYear(), 0, 1);\n date_.setHours(0, 0, 0, 0);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default startOfYear;\n"],"names":["startOfYear","date","options","date_","toDate"],"mappings":";AA4BO,SAASA,EAAYC,GAAMC,GAAS;AACzC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE;AACtC,SAAAC,EAAM,YAAYA,EAAM,YAAW,GAAI,GAAG,CAAC,GAC3CA,EAAM,SAAS,GAAG,GAAG,GAAG,CAAC,GAClBA;AACT;","x_google_ignoreList":[0]}
package/dist/index296.js CHANGED
@@ -1,21 +1,20 @@
1
- const i = (n, r) => Object.is(n, r);
2
- function u(n, r, t) {
3
- return n == null || r == null ? Object.is(n, r) : t(n, r);
4
- }
5
- function e(n, r, t) {
6
- return !n || n.length === 0 ? !1 : n.some((f) => f === void 0 ? !1 : u(r, f, t));
7
- }
8
- function o(n, r, t) {
9
- return !n || n.length === 0 ? -1 : n.findIndex((f) => f === void 0 ? !1 : u(f, r, t));
10
- }
11
- function I(n, r, t) {
12
- return n.filter((f) => !u(r, f, t));
1
+ function j(r, n, I, W) {
2
+ const s = r[0], o = r[r.length - 1], { ISOWeek: c, fixedWeeks: u, broadcastCalendar: a } = I ?? {}, { addDays: i, differenceInCalendarDays: M, differenceInCalendarMonths: C, endOfBroadcastWeek: O, endOfISOWeek: k, endOfMonth: h, endOfWeek: l, isAfter: E, startOfBroadcastWeek: F, startOfISOWeek: S, startOfWeek: p } = W, g = a ? F(s, W) : c ? S(s) : p(s), D = a ? O(o) : c ? k(h(o)) : l(h(o)), f = n && (a ? O(n) : c ? k(n) : l(n)), x = f && E(D, f) ? f : D, A = M(x, g), B = C(o, s) + 1, e = [];
3
+ for (let t = 0; t <= A; t++) {
4
+ const d = i(g, t);
5
+ e.push(d);
6
+ }
7
+ const y = (a ? 35 : 42) * B;
8
+ if (u && e.length < y) {
9
+ const t = y - e.length;
10
+ for (let d = 0; d < t; d++) {
11
+ const T = i(e[e.length - 1], 1);
12
+ e.push(T);
13
+ }
14
+ }
15
+ return e;
13
16
  }
14
17
  export {
15
- u as compareItemEquality,
16
- i as defaultItemEquality,
17
- o as findItemIndex,
18
- I as removeItem,
19
- e as selectedValueIncludes
18
+ j as getDates
20
19
  };
21
20
  //# sourceMappingURL=index296.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index296.js","sources":["../../../node_modules/@base-ui/react/internals/itemEquality.mjs"],"sourcesContent":["export const defaultItemEquality = (itemValue, selectedValue) => Object.is(itemValue, selectedValue);\nexport function compareItemEquality(itemValue, selectedValue, comparer) {\n if (itemValue == null || selectedValue == null) {\n return Object.is(itemValue, selectedValue);\n }\n return comparer(itemValue, selectedValue);\n}\nexport function selectedValueIncludes(selectedValues, itemValue, comparer) {\n if (!selectedValues || selectedValues.length === 0) {\n return false;\n }\n return selectedValues.some(selectedValue => {\n if (selectedValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function findItemIndex(itemValues, selectedValue, comparer) {\n if (!itemValues || itemValues.length === 0) {\n return -1;\n }\n return itemValues.findIndex(itemValue => {\n if (itemValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function removeItem(selectedValues, itemValue, comparer) {\n return selectedValues.filter(selectedValue => !compareItemEquality(itemValue, selectedValue, comparer));\n}"],"names":["defaultItemEquality","itemValue","selectedValue","compareItemEquality","comparer","selectedValueIncludes","selectedValues","findItemIndex","itemValues","removeItem"],"mappings":"AAAY,MAACA,IAAsB,CAACC,GAAWC,MAAkB,OAAO,GAAGD,GAAWC,CAAa;AAC5F,SAASC,EAAoBF,GAAWC,GAAeE,GAAU;AACtE,SAAIH,KAAa,QAAQC,KAAiB,OACjC,OAAO,GAAGD,GAAWC,CAAa,IAEpCE,EAASH,GAAWC,CAAa;AAC1C;AACO,SAASG,EAAsBC,GAAgBL,GAAWG,GAAU;AACzE,SAAI,CAACE,KAAkBA,EAAe,WAAW,IACxC,KAEFA,EAAe,KAAK,CAAAJ,MACrBA,MAAkB,SACb,KAEFC,EAAoBF,GAAWC,GAAeE,CAAQ,CAC9D;AACH;AACO,SAASG,EAAcC,GAAYN,GAAeE,GAAU;AACjE,SAAI,CAACI,KAAcA,EAAW,WAAW,IAChC,KAEFA,EAAW,UAAU,CAAAP,MACtBA,MAAc,SACT,KAEFE,EAAoBF,GAAWC,GAAeE,CAAQ,CAC9D;AACH;AACO,SAASK,EAAWH,GAAgBL,GAAWG,GAAU;AAC9D,SAAOE,EAAe,OAAO,CAAAJ,MAAiB,CAACC,EAAoBF,GAAWC,GAAeE,CAAQ,CAAC;AACxG;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index296.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDates.js"],"sourcesContent":["/**\n * Returns all the dates to display in the calendar.\n *\n * This function calculates the range of dates to display based on the provided\n * display months, constraints, and calendar configuration.\n *\n * @param displayMonths The months to display in the calendar.\n * @param maxDate The maximum date to include in the range.\n * @param props The DayPicker props, including calendar configuration options.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates to display in the calendar.\n */\nexport function getDates(displayMonths, maxDate, props, dateLib) {\n const firstMonth = displayMonths[0];\n const lastMonth = displayMonths[displayMonths.length - 1];\n const { ISOWeek, fixedWeeks, broadcastCalendar } = props ?? {};\n const { addDays, differenceInCalendarDays, differenceInCalendarMonths, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, isAfter, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const startWeekFirstDate = broadcastCalendar\n ? startOfBroadcastWeek(firstMonth, dateLib)\n : ISOWeek\n ? startOfISOWeek(firstMonth)\n : startOfWeek(firstMonth);\n const displayMonthsWeekEnd = broadcastCalendar\n ? endOfBroadcastWeek(lastMonth)\n : ISOWeek\n ? endOfISOWeek(endOfMonth(lastMonth))\n : endOfWeek(endOfMonth(lastMonth));\n // If maxDate is set, clamp the grid to the end of that week.\n const constraintWeekEnd = maxDate &&\n (broadcastCalendar\n ? endOfBroadcastWeek(maxDate)\n : ISOWeek\n ? endOfISOWeek(maxDate)\n : endOfWeek(maxDate));\n // Pick the earliest week end between the displayed months and the constraint.\n const gridEndDate = constraintWeekEnd && isAfter(displayMonthsWeekEnd, constraintWeekEnd)\n ? constraintWeekEnd\n : displayMonthsWeekEnd;\n const nOfDays = differenceInCalendarDays(gridEndDate, startWeekFirstDate);\n const nOfMonths = differenceInCalendarMonths(lastMonth, firstMonth) + 1;\n const dates = [];\n for (let i = 0; i <= nOfDays; i++) {\n const date = addDays(startWeekFirstDate, i);\n dates.push(date);\n }\n // If fixed weeks is enabled, add the extra dates to the array\n const nrOfDaysWithFixedWeeks = broadcastCalendar ? 35 : 42;\n const extraDates = nrOfDaysWithFixedWeeks * nOfMonths;\n if (fixedWeeks && dates.length < extraDates) {\n const daysToAdd = extraDates - dates.length;\n for (let i = 0; i < daysToAdd; i++) {\n const date = addDays(dates[dates.length - 1], 1);\n dates.push(date);\n }\n }\n return dates;\n}\n"],"names":["getDates","displayMonths","maxDate","props","dateLib","firstMonth","lastMonth","ISOWeek","fixedWeeks","broadcastCalendar","addDays","differenceInCalendarDays","differenceInCalendarMonths","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","isAfter","startOfBroadcastWeek","startOfISOWeek","startOfWeek","startWeekFirstDate","displayMonthsWeekEnd","constraintWeekEnd","gridEndDate","nOfDays","nOfMonths","dates","i","date","extraDates","daysToAdd"],"mappings":"AAYO,SAASA,EAASC,GAAeC,GAASC,GAAOC,GAAS;AAC7D,QAAMC,IAAaJ,EAAc,CAAC,GAC5BK,IAAYL,EAAcA,EAAc,SAAS,CAAC,GAClD,EAAE,SAAAM,GAAS,YAAAC,GAAY,mBAAAC,EAAiB,IAAKN,KAAS,CAAA,GACtD,EAAE,SAAAO,GAAS,0BAAAC,GAA0B,4BAAAC,GAA4B,oBAAAC,GAAoB,cAAAC,GAAc,YAAAC,GAAY,WAAAC,GAAW,SAAAC,GAAS,sBAAAC,GAAsB,gBAAAC,GAAgB,aAAAC,EAAW,IAAMhB,GAC1LiB,IAAqBZ,IACrBS,EAAqBb,GAAYD,CAAO,IACxCG,IACIY,EAAed,CAAU,IACzBe,EAAYf,CAAU,GAC1BiB,IAAuBb,IACvBI,EAAmBP,CAAS,IAC5BC,IACIO,EAAaC,EAAWT,CAAS,CAAC,IAClCU,EAAUD,EAAWT,CAAS,CAAC,GAEnCiB,IAAoBrB,MACrBO,IACKI,EAAmBX,CAAO,IAC1BK,IACIO,EAAaZ,CAAO,IACpBc,EAAUd,CAAO,IAEzBsB,IAAcD,KAAqBN,EAAQK,GAAsBC,CAAiB,IAClFA,IACAD,GACAG,IAAUd,EAAyBa,GAAaH,CAAkB,GAClEK,IAAYd,EAA2BN,GAAWD,CAAU,IAAI,GAChEsB,IAAQ,CAAA;AACd,WAASC,IAAI,GAAGA,KAAKH,GAASG,KAAK;AAC/B,UAAMC,IAAOnB,EAAQW,GAAoBO,CAAC;AAC1C,IAAAD,EAAM,KAAKE,CAAI;AAAA,EACnB;AAGA,QAAMC,KADyBrB,IAAoB,KAAK,MACZiB;AAC5C,MAAIlB,KAAcmB,EAAM,SAASG,GAAY;AACzC,UAAMC,IAAYD,IAAaH,EAAM;AACrC,aAASC,IAAI,GAAGA,IAAIG,GAAWH,KAAK;AAChC,YAAMC,IAAOnB,EAAQiB,EAAMA,EAAM,SAAS,CAAC,GAAG,CAAC;AAC/C,MAAAA,EAAM,KAAKE,CAAI;AAAA,IACnB;AAAA,EACJ;AACA,SAAOF;AACX;","x_google_ignoreList":[0]}
package/dist/index297.js CHANGED
@@ -1,7 +1,11 @@
1
- function u(t, l, r = (e, n) => e === n) {
2
- return t.length === l.length && t.every((e, n) => r(e, l[n]));
1
+ function a(c) {
2
+ const e = [];
3
+ return c.reduce((s, t) => {
4
+ const n = t.weeks.reduce((r, i) => r.concat(i.days.slice()), e.slice());
5
+ return s.concat(n.slice());
6
+ }, e.slice());
3
7
  }
4
8
  export {
5
- u as areArraysEqual
9
+ a as getDays
6
10
  };
7
11
  //# sourceMappingURL=index297.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index297.js","sources":["../../../node_modules/@base-ui/react/internals/areArraysEqual.mjs"],"sourcesContent":["export function areArraysEqual(array1, array2, itemComparer = (a, b) => a === b) {\n return array1.length === array2.length && array1.every((value, index) => itemComparer(value, array2[index]));\n}"],"names":["areArraysEqual","array1","array2","itemComparer","a","b","value","index"],"mappings":"AAAO,SAASA,EAAeC,GAAQC,GAAQC,IAAe,CAACC,GAAGC,MAAMD,MAAMC,GAAG;AAC/E,SAAOJ,EAAO,WAAWC,EAAO,UAAUD,EAAO,MAAM,CAACK,GAAOC,MAAUJ,EAAaG,GAAOJ,EAAOK,CAAK,CAAC,CAAC;AAC7G;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index297.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDays.js"],"sourcesContent":["/**\n * Returns all the days belonging to the calendar by merging the days in the\n * weeks for each month.\n *\n * @param calendarMonths The array of calendar months.\n * @returns An array of `CalendarDay` objects representing all the days in the\n * calendar.\n */\nexport function getDays(calendarMonths) {\n const initialDays = [];\n return calendarMonths.reduce((days, month) => {\n const weekDays = month.weeks.reduce((weekDays, week) => {\n return weekDays.concat(week.days.slice());\n }, initialDays.slice());\n return days.concat(weekDays.slice());\n }, initialDays.slice());\n}\n"],"names":["getDays","calendarMonths","initialDays","days","month","weekDays","week"],"mappings":"AAQO,SAASA,EAAQC,GAAgB;AACpC,QAAMC,IAAc,CAAA;AACpB,SAAOD,EAAe,OAAO,CAACE,GAAMC,MAAU;AAC1C,UAAMC,IAAWD,EAAM,MAAM,OAAO,CAACC,GAAUC,MACpCD,EAAS,OAAOC,EAAK,KAAK,MAAK,CAAE,GACzCJ,EAAY,OAAO;AACtB,WAAOC,EAAK,OAAOE,EAAS,MAAK,CAAE;AAAA,EACvC,GAAGH,EAAY,OAAO;AAC1B;","x_google_ignoreList":[0]}
package/dist/index298.js CHANGED
@@ -1,15 +1,14 @@
1
- import * as c from "react";
2
- import { useIsoLayoutEffect as o } from "./index284.js";
3
- import { useStableCallback as f } from "./index285.js";
4
- function u(r, n) {
5
- const t = c.useRef(r), e = f(n);
6
- o(() => {
7
- t.current !== r && e(t.current);
8
- }, [r, e]), o(() => {
9
- t.current = r;
10
- }, [r]);
1
+ function i(e, o, h, r) {
2
+ const { numberOfMonths: f = 1 } = h, n = [];
3
+ for (let t = 0; t < f; t++) {
4
+ const s = r.addMonths(e, t);
5
+ if (o && s > o)
6
+ break;
7
+ n.push(s);
8
+ }
9
+ return n;
11
10
  }
12
11
  export {
13
- u as useValueChanged
12
+ i as getDisplayMonths
14
13
  };
15
14
  //# sourceMappingURL=index298.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index298.js","sources":["../../../node_modules/@base-ui/react/internals/useValueChanged.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nexport function useValueChanged(value, onChange) {\n const valueRef = React.useRef(value);\n const onChangeCallback = useStableCallback(onChange);\n useIsoLayoutEffect(() => {\n if (valueRef.current === value) {\n return;\n }\n onChangeCallback(valueRef.current);\n }, [value, onChangeCallback]);\n useIsoLayoutEffect(() => {\n valueRef.current = value;\n }, [value]);\n}"],"names":["useValueChanged","value","onChange","valueRef","React","onChangeCallback","useStableCallback","useIsoLayoutEffect"],"mappings":";;;AAKO,SAASA,EAAgBC,GAAOC,GAAU;AAC/C,QAAMC,IAAWC,EAAM,OAAOH,CAAK,GAC7BI,IAAmBC,EAAkBJ,CAAQ;AACnD,EAAAK,EAAmB,MAAM;AACvB,IAAIJ,EAAS,YAAYF,KAGzBI,EAAiBF,EAAS,OAAO;AAAA,EACnC,GAAG,CAACF,GAAOI,CAAgB,CAAC,GAC5BE,EAAmB,MAAM;AACvB,IAAAJ,EAAS,UAAUF;AAAA,EACrB,GAAG,CAACA,CAAK,CAAC;AACZ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index298.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js"],"sourcesContent":["/**\n * Returns the months to display in the calendar.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including `numberOfMonths`.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates representing the months to display.\n */\nexport function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {\n const { numberOfMonths = 1 } = props;\n const months = [];\n for (let i = 0; i < numberOfMonths; i++) {\n const month = dateLib.addMonths(firstDisplayedMonth, i);\n if (calendarEndMonth && month > calendarEndMonth) {\n break;\n }\n months.push(month);\n }\n return months;\n}\n"],"names":["getDisplayMonths","firstDisplayedMonth","calendarEndMonth","props","dateLib","numberOfMonths","months","i","month"],"mappings":"AAUO,SAASA,EAAiBC,GAAqBC,GAAkBC,GAAOC,GAAS;AACpF,QAAM,EAAE,gBAAAC,IAAiB,EAAC,IAAKF,GACzBG,IAAS,CAAA;AACf,WAASC,IAAI,GAAGA,IAAIF,GAAgBE,KAAK;AACrC,UAAMC,IAAQJ,EAAQ,UAAUH,GAAqBM,CAAC;AACtD,QAAIL,KAAoBM,IAAQN;AAC5B;AAEJ,IAAAI,EAAO,KAAKE,CAAK;AAAA,EACrB;AACA,SAAOF;AACX;","x_google_ignoreList":[0]}
package/dist/index299.js CHANGED
@@ -1,17 +1,14 @@
1
- import { clamp as s } from "./index328.js";
2
- const f = 1;
3
- function a(n, t) {
4
- return Math.max(0, n - t);
5
- }
6
- function u(n, t) {
7
- if (t <= 0)
8
- return 0;
9
- const r = s(n, 0, t), e = r, c = t - r, o = e <= f, i = c <= f;
10
- return o && i ? e <= c ? 0 : t : o ? 0 : i ? t : r;
1
+ function u(i, o, n, e) {
2
+ const { month: s, defaultMonth: M, today: c = e.today(), numberOfMonths: f = 1 } = i;
3
+ let t = s || M || c;
4
+ const { differenceInCalendarMonths: h, addMonths: l, startOfMonth: r } = e;
5
+ if (n && h(n, t) < f - 1) {
6
+ const d = -1 * (f - 1);
7
+ t = l(n, d);
8
+ }
9
+ return o && h(t, o) < 0 && (t = o), r(t);
11
10
  }
12
11
  export {
13
- f as SCROLL_EDGE_TOLERANCE_PX,
14
- a as getMaxScrollOffset,
15
- u as normalizeScrollOffset
12
+ u as getInitialMonth
16
13
  };
17
14
  //# sourceMappingURL=index299.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index299.js","sources":["../../../node_modules/@base-ui/react/utils/scrollEdges.mjs"],"sourcesContent":["import { clamp } from \"../internals/clamp.mjs\";\nexport const SCROLL_EDGE_TOLERANCE_PX = 1;\nexport function getMaxScrollOffset(scrollSize, clientSize) {\n return Math.max(0, scrollSize - clientSize);\n}\nexport function normalizeScrollOffset(value, max) {\n if (max <= 0) {\n return 0;\n }\n const clamped = clamp(value, 0, max);\n const startDistance = clamped;\n const endDistance = max - clamped;\n const withinStartTolerance = startDistance <= SCROLL_EDGE_TOLERANCE_PX;\n const withinEndTolerance = endDistance <= SCROLL_EDGE_TOLERANCE_PX;\n if (withinStartTolerance && withinEndTolerance) {\n return startDistance <= endDistance ? 0 : max;\n }\n if (withinStartTolerance) {\n return 0;\n }\n if (withinEndTolerance) {\n return max;\n }\n return clamped;\n}"],"names":["SCROLL_EDGE_TOLERANCE_PX","getMaxScrollOffset","scrollSize","clientSize","normalizeScrollOffset","value","max","clamped","clamp","startDistance","endDistance","withinStartTolerance","withinEndTolerance"],"mappings":";AACY,MAACA,IAA2B;AACjC,SAASC,EAAmBC,GAAYC,GAAY;AACzD,SAAO,KAAK,IAAI,GAAGD,IAAaC,CAAU;AAC5C;AACO,SAASC,EAAsBC,GAAOC,GAAK;AAChD,MAAIA,KAAO;AACT,WAAO;AAET,QAAMC,IAAUC,EAAMH,GAAO,GAAGC,CAAG,GAC7BG,IAAgBF,GAChBG,IAAcJ,IAAMC,GACpBI,IAAuBF,KAAiBT,GACxCY,IAAqBF,KAAeV;AAC1C,SAAIW,KAAwBC,IACnBH,KAAiBC,IAAc,IAAIJ,IAExCK,IACK,IAELC,IACKN,IAEFC;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index299.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js"],"sourcesContent":["/**\n * Determines the initial month to display in the calendar based on the provided\n * props.\n *\n * This function calculates the starting month, considering constraints such as\n * `startMonth`, `endMonth`, and the number of months to display.\n *\n * @param props The DayPicker props, including navigation and date constraints.\n * @param dateLib The date library to use for date manipulation.\n * @returns The initial month to display.\n */\nexport function getInitialMonth(props, navStart, navEnd, dateLib) {\n const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1, } = props;\n let initialMonth = month || defaultMonth || today;\n const { differenceInCalendarMonths, addMonths, startOfMonth } = dateLib;\n if (navEnd &&\n differenceInCalendarMonths(navEnd, initialMonth) < numberOfMonths - 1) {\n const offset = -1 * (numberOfMonths - 1);\n initialMonth = addMonths(navEnd, offset);\n }\n if (navStart && differenceInCalendarMonths(initialMonth, navStart) < 0) {\n initialMonth = navStart;\n }\n return startOfMonth(initialMonth);\n}\n"],"names":["getInitialMonth","props","navStart","navEnd","dateLib","month","defaultMonth","today","numberOfMonths","initialMonth","differenceInCalendarMonths","addMonths","startOfMonth","offset"],"mappings":"AAWO,SAASA,EAAgBC,GAAOC,GAAUC,GAAQC,GAAS;AAC9D,QAAM,EAAE,OAAAC,GAAO,cAAAC,GAAc,OAAAC,IAAQH,EAAQ,SAAS,gBAAAI,IAAiB,EAAC,IAAMP;AAC9E,MAAIQ,IAAeJ,KAASC,KAAgBC;AAC5C,QAAM,EAAE,4BAAAG,GAA4B,WAAAC,GAAW,cAAAC,EAAY,IAAKR;AAChE,MAAID,KACAO,EAA2BP,GAAQM,CAAY,IAAID,IAAiB,GAAG;AACvE,UAAMK,IAAS,MAAML,IAAiB;AACtC,IAAAC,IAAeE,EAAUR,GAAQU,CAAM;AAAA,EAC3C;AACA,SAAIX,KAAYQ,EAA2BD,GAAcP,CAAQ,IAAI,MACjEO,IAAeP,IAEZU,EAAaH,CAAY;AACpC;","x_google_ignoreList":[0]}
package/dist/index300.js CHANGED
@@ -1,22 +1,25 @@
1
- import * as c from "react";
2
- import { s as u } from "./index409.js";
3
- import { w as i } from "./index410.js";
4
- import { isReactVersionAtLeast as S } from "./index349.js";
5
- const a = S(19), m = a ? f : l;
6
- function g(t, e, r, n, o) {
7
- return m(t, e, r, n, o);
8
- }
9
- function p(t, e, r, n, o) {
10
- const s = c.useCallback(() => e(t.getSnapshot(), r, n, o), [t, e, r, n, o]);
11
- return u.useSyncExternalStore(t.subscribe, s, s);
12
- }
13
- function f(t, e, r, n, o) {
14
- return p(t, e, r, n, o);
15
- }
16
- function l(t, e, r, n, o) {
17
- return i.useSyncExternalStoreWithSelector(t.subscribe, t.getSnapshot, t.getSnapshot, (s) => e(s, r, n, o));
1
+ import { CalendarDay as F } from "./index259.js";
2
+ import { CalendarWeek as N } from "./index261.js";
3
+ import { CalendarMonth as P } from "./index260.js";
4
+ function j(l, f, e, c) {
5
+ const { addDays: y, endOfBroadcastWeek: D, endOfISOWeek: h, endOfMonth: k, endOfWeek: C, getISOWeek: I, getWeek: M, startOfBroadcastWeek: S, startOfISOWeek: g, startOfWeek: w } = c, o = l.reduce((W, t) => {
6
+ const x = e.broadcastCalendar ? S(t, c) : e.ISOWeek ? g(t) : w(t), d = e.broadcastCalendar ? D(t) : e.ISOWeek ? h(k(t)) : C(k(t)), a = f.filter((r) => r >= x && r <= d), O = e.broadcastCalendar ? 35 : 42;
7
+ if (e.fixedWeeks && a.length < O) {
8
+ const r = f.filter((n) => {
9
+ const s = O - a.length;
10
+ return n > d && n <= y(d, s);
11
+ });
12
+ a.push(...r);
13
+ }
14
+ const b = a.reduce((r, n) => {
15
+ const s = e.ISOWeek ? I(n) : M(n), i = r.find((B) => B.weekNumber === s), u = new F(n, t, c);
16
+ return i ? i.days.push(u) : r.push(new N(s, [u])), r;
17
+ }, []), v = new P(t, b);
18
+ return W.push(v), W;
19
+ }, []);
20
+ return e.reverseMonths ? o.reverse() : o;
18
21
  }
19
22
  export {
20
- g as useStore
23
+ j as getMonths
21
24
  };
22
25
  //# sourceMappingURL=index300.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index300.js","sources":["../../../node_modules/@base-ui/utils/store/useStore.mjs"],"sourcesContent":["import * as React from 'react';\n/* We need to import the shim because React 17 does not support the `useSyncExternalStore` API.\n * More info: https://github.com/mui/mui-x/issues/18303#issuecomment-2958392341 */\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { isReactVersionAtLeast } from \"../reactVersion.mjs\";\nimport { register, getInstance } from \"../fastHooks.mjs\";\n/* Some tests fail in R18 with the raw useSyncExternalStore. It may be possible to make it work\n * but for now we only enable it for R19+. */\nconst canUseRawUseSyncExternalStore = isReactVersionAtLeast(19);\nconst useStoreImplementation = canUseRawUseSyncExternalStore ? useStoreFast : useStoreLegacy;\nexport function useStore(store, selector, a1, a2, a3) {\n return useStoreImplementation(store, selector, a1, a2, a3);\n}\nfunction useStoreR19(store, selector, a1, a2, a3) {\n const getSelection = React.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [store, selector, a1, a2, a3]);\n return useSyncExternalStore(store.subscribe, getSelection, getSelection);\n}\nregister({\n before(instance) {\n instance.syncIndex = 0;\n if (!instance.didInitialize) {\n instance.syncTick = 1;\n instance.syncHooks = [];\n instance.didChangeStore = true;\n instance.getSnapshot = () => {\n let didChange = false;\n for (let i = 0; i < instance.syncHooks.length; i += 1) {\n const hook = instance.syncHooks[i];\n const value = hook.selector(hook.store.state, hook.a1, hook.a2, hook.a3);\n if (!Object.is(hook.value, value)) {\n didChange = true;\n hook.value = value;\n }\n }\n if (didChange) {\n instance.syncTick += 1;\n }\n return instance.syncTick;\n };\n }\n },\n after(instance) {\n if (instance.syncHooks.length > 0) {\n if (instance.didChangeStore) {\n instance.didChangeStore = false;\n instance.subscribe = onStoreChange => {\n const stores = new Set();\n for (const hook of instance.syncHooks) {\n stores.add(hook.store);\n }\n const unsubscribes = [];\n for (const store of stores) {\n unsubscribes.push(store.subscribe(onStoreChange));\n }\n return () => {\n for (const unsubscribe of unsubscribes) {\n unsubscribe();\n }\n };\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useSyncExternalStore(instance.subscribe, instance.getSnapshot, instance.getSnapshot);\n }\n }\n});\nfunction useStoreFast(store, selector, a1, a2, a3) {\n const instance = getInstance();\n if (!instance) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStoreR19(store, selector, a1, a2, a3);\n }\n const index = instance.syncIndex;\n instance.syncIndex += 1;\n let hook;\n if (!instance.didInitialize) {\n hook = {\n store,\n selector,\n a1,\n a2,\n a3,\n value: selector(store.getSnapshot(), a1, a2, a3)\n };\n instance.syncHooks.push(hook);\n } else {\n hook = instance.syncHooks[index];\n if (hook.store !== store || hook.selector !== selector || !Object.is(hook.a1, a1) || !Object.is(hook.a2, a2) || !Object.is(hook.a3, a3)) {\n if (hook.store !== store) {\n instance.didChangeStore = true;\n }\n hook.store = store;\n hook.selector = selector;\n hook.a1 = a1;\n hook.a2 = a2;\n hook.a3 = a3;\n hook.value = selector(store.getSnapshot(), a1, a2, a3);\n }\n }\n return hook.value;\n}\nfunction useStoreLegacy(store, selector, a1, a2, a3) {\n return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, state => selector(state, a1, a2, a3));\n}"],"names":["canUseRawUseSyncExternalStore","isReactVersionAtLeast","useStoreImplementation","useStoreFast","useStoreLegacy","useStore","store","selector","a1","a2","a3","useStoreR19","getSelection","React","useSyncExternalStore","useSyncExternalStoreWithSelector","state"],"mappings":";;;;AASA,MAAMA,IAAgCC,EAAsB,EAAE,GACxDC,IAAyBF,IAAgCG,IAAeC;AACvE,SAASC,EAASC,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACpD,SAAOR,EAAuBI,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AAC3D;AACA,SAASC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAChD,QAAME,IAAeC,EAAM,YAAY,MAAMN,EAASD,EAAM,eAAeE,GAAIC,GAAIC,CAAE,GAAG,CAACJ,GAAOC,GAAUC,GAAIC,GAAIC,CAAE,CAAC;AACrH,SAAOI,EAAAA,qBAAqBR,EAAM,WAAWM,GAAcA,CAAY;AACzE;AAkDA,SAAST,EAAaG,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAI/C,SAAOC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AA8BlD;AACA,SAASN,EAAeE,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACnD,SAAOK,EAAAA,iCAAiCT,EAAM,WAAWA,EAAM,aAAaA,EAAM,aAAa,CAAAU,MAAST,EAASS,GAAOR,GAAIC,GAAIC,CAAE,CAAC;AACrI;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index300.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getMonths.js"],"sourcesContent":["import { CalendarDay, CalendarMonth, CalendarWeek } from \"../classes/index.js\";\n/**\n * Returns the months to display in the calendar.\n *\n * This function generates `CalendarMonth` objects for each month to be\n * displayed, including their weeks and days, based on the provided display\n * months and dates.\n *\n * @param displayMonths The months (as dates) to display in the calendar.\n * @param dates The dates to display in the calendar.\n * @param props Options from the DayPicker props context.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of `CalendarMonth` objects representing the months to\n * display.\n */\nexport function getMonths(displayMonths, dates, props, dateLib) {\n const { addDays, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, getISOWeek, getWeek, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const dayPickerMonths = displayMonths.reduce((months, month) => {\n const firstDateOfFirstWeek = props.broadcastCalendar\n ? startOfBroadcastWeek(month, dateLib)\n : props.ISOWeek\n ? startOfISOWeek(month)\n : startOfWeek(month);\n const lastDateOfLastWeek = props.broadcastCalendar\n ? endOfBroadcastWeek(month)\n : props.ISOWeek\n ? endOfISOWeek(endOfMonth(month))\n : endOfWeek(endOfMonth(month));\n /** The dates to display in the month. */\n const monthDates = dates.filter((date) => {\n return date >= firstDateOfFirstWeek && date <= lastDateOfLastWeek;\n });\n const nrOfDaysWithFixedWeeks = props.broadcastCalendar ? 35 : 42;\n if (props.fixedWeeks && monthDates.length < nrOfDaysWithFixedWeeks) {\n const extraDates = dates.filter((date) => {\n const daysToAdd = nrOfDaysWithFixedWeeks - monthDates.length;\n return (date > lastDateOfLastWeek &&\n date <= addDays(lastDateOfLastWeek, daysToAdd));\n });\n monthDates.push(...extraDates);\n }\n const weeks = monthDates.reduce((weeks, date) => {\n const weekNumber = props.ISOWeek ? getISOWeek(date) : getWeek(date);\n const week = weeks.find((week) => week.weekNumber === weekNumber);\n const day = new CalendarDay(date, month, dateLib);\n if (!week) {\n weeks.push(new CalendarWeek(weekNumber, [day]));\n }\n else {\n week.days.push(day);\n }\n return weeks;\n }, []);\n const dayPickerMonth = new CalendarMonth(month, weeks);\n months.push(dayPickerMonth);\n return months;\n }, []);\n if (!props.reverseMonths) {\n return dayPickerMonths;\n }\n else {\n return dayPickerMonths.reverse();\n }\n}\n"],"names":["getMonths","displayMonths","dates","props","dateLib","addDays","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","getISOWeek","getWeek","startOfBroadcastWeek","startOfISOWeek","startOfWeek","dayPickerMonths","months","month","firstDateOfFirstWeek","lastDateOfLastWeek","monthDates","date","nrOfDaysWithFixedWeeks","extraDates","daysToAdd","weeks","weekNumber","week","day","CalendarDay","CalendarWeek","dayPickerMonth","CalendarMonth"],"mappings":";;;AAeO,SAASA,EAAUC,GAAeC,GAAOC,GAAOC,GAAS;AAC5D,QAAM,EAAE,SAAAC,GAAS,oBAAAC,GAAoB,cAAAC,GAAc,YAAAC,GAAY,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,sBAAAC,GAAsB,gBAAAC,GAAgB,aAAAC,EAAW,IAAMV,GAChJW,IAAkBd,EAAc,OAAO,CAACe,GAAQC,MAAU;AAC5D,UAAMC,IAAuBf,EAAM,oBAC7BS,EAAqBK,GAAOb,CAAO,IACnCD,EAAM,UACFU,EAAeI,CAAK,IACpBH,EAAYG,CAAK,GACrBE,IAAqBhB,EAAM,oBAC3BG,EAAmBW,CAAK,IACxBd,EAAM,UACFI,EAAaC,EAAWS,CAAK,CAAC,IAC9BR,EAAUD,EAAWS,CAAK,CAAC,GAE/BG,IAAalB,EAAM,OAAO,CAACmB,MACtBA,KAAQH,KAAwBG,KAAQF,CAClD,GACKG,IAAyBnB,EAAM,oBAAoB,KAAK;AAC9D,QAAIA,EAAM,cAAciB,EAAW,SAASE,GAAwB;AAChE,YAAMC,IAAarB,EAAM,OAAO,CAACmB,MAAS;AACtC,cAAMG,IAAYF,IAAyBF,EAAW;AACtD,eAAQC,IAAOF,KACXE,KAAQhB,EAAQc,GAAoBK,CAAS;AAAA,MACrD,CAAC;AACD,MAAAJ,EAAW,KAAK,GAAGG,CAAU;AAAA,IACjC;AACA,UAAME,IAAQL,EAAW,OAAO,CAACK,GAAOJ,MAAS;AAC7C,YAAMK,IAAavB,EAAM,UAAUO,EAAWW,CAAI,IAAIV,EAAQU,CAAI,GAC5DM,IAAOF,EAAM,KAAK,CAACE,MAASA,EAAK,eAAeD,CAAU,GAC1DE,IAAM,IAAIC,EAAYR,GAAMJ,GAAOb,CAAO;AAChD,aAAKuB,IAIDA,EAAK,KAAK,KAAKC,CAAG,IAHlBH,EAAM,KAAK,IAAIK,EAAaJ,GAAY,CAACE,CAAG,CAAC,CAAC,GAK3CH;AAAA,IACX,GAAG,CAAA,CAAE,GACCM,IAAiB,IAAIC,EAAcf,GAAOQ,CAAK;AACrD,WAAAT,EAAO,KAAKe,CAAc,GACnBf;AAAA,EACX,GAAG,CAAA,CAAE;AACL,SAAKb,EAAM,gBAIAY,EAAgB,QAAO,IAHvBA;AAKf;","x_google_ignoreList":[0]}
package/dist/index301.js CHANGED
@@ -1,40 +1,12 @@
1
- import { isElement as l } from "./index331.js";
2
- import { useId as c } from "./index347.js";
3
- import { useIsoLayoutEffect as a } from "./index284.js";
4
- import { useRefWithInit as m } from "./index279.js";
5
- import { useFloatingParentNodeId as u } from "./index386.js";
6
- import { FloatingRootStore as p } from "./index388.js";
7
- import { PopupTriggerMap as d } from "./index360.js";
8
- function y(s) {
9
- const {
10
- open: o = !1,
11
- onOpenChange: f,
12
- elements: e = {}
13
- } = s, r = c(), i = u() != null;
14
- if (process.env.NODE_ENV !== "production") {
15
- const n = e.reference;
16
- n && !l(n) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
17
- }
18
- const t = m(() => new p({
19
- open: o,
20
- transitionStatus: void 0,
21
- onOpenChange: f,
22
- referenceElement: e.reference ?? null,
23
- floatingElement: e.floating ?? null,
24
- triggerElements: new d(),
25
- floatingId: r,
26
- syncOnly: !1,
27
- nested: i
28
- })).current;
29
- return a(() => {
30
- const n = {
31
- open: o,
32
- floatingId: r
33
- };
34
- e.reference !== void 0 && (n.referenceElement = e.reference, n.domReferenceElement = l(e.reference) ? e.reference : null), e.floating !== void 0 && (n.floatingElement = e.floating), t.update(n);
35
- }, [o, r, e.reference, e.floating, t]), t.context.onOpenChange = f, t.context.nested = i, t;
1
+ function c(n, r) {
2
+ let { startMonth: t, endMonth: a } = n;
3
+ const { startOfYear: f, startOfDay: o, startOfMonth: s, endOfMonth: i, addYears: y, endOfYear: h, today: e } = r, d = n.captionLayout === "dropdown" || n.captionLayout === "dropdown-years";
4
+ return t ? t = s(t) : !t && d && (t = f(y(n.today ?? e(), -100))), a ? a = i(a) : !a && d && (a = h(n.today ?? e())), [
5
+ t && o(t),
6
+ a && o(a)
7
+ ];
36
8
  }
37
9
  export {
38
- y as useFloatingRootContext
10
+ c as getNavMonths
39
11
  };
40
12
  //# sourceMappingURL=index301.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index301.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/hooks/useFloatingRootContext.mjs"],"sourcesContent":["'use client';\n\nimport { isElement } from '@floating-ui/utils/dom';\nimport { useId } from '@base-ui/utils/useId';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { PopupTriggerMap } from \"../../utils/popups/index.mjs\";\nimport { useFloatingParentNodeId } from \"../components/FloatingTree.mjs\";\nimport { FloatingRootStore } from \"../components/FloatingRootStore.mjs\";\nexport function useFloatingRootContext(options) {\n const {\n open = false,\n onOpenChange,\n elements = {}\n } = options;\n const floatingId = useId();\n const nested = useFloatingParentNodeId() != null;\n if (process.env.NODE_ENV !== 'production') {\n const optionDomReference = elements.reference;\n if (optionDomReference && !isElement(optionDomReference)) {\n console.error('Cannot pass a virtual element to the `elements.reference` option,', 'as it must be a real DOM element. Use `context.setPositionReference()`', 'instead.');\n }\n }\n const store = useRefWithInit(() => new FloatingRootStore({\n open,\n transitionStatus: undefined,\n onOpenChange,\n referenceElement: elements.reference ?? null,\n floatingElement: elements.floating ?? null,\n triggerElements: new PopupTriggerMap(),\n floatingId,\n syncOnly: false,\n nested\n })).current;\n useIsoLayoutEffect(() => {\n const valuesToSync = {\n open,\n floatingId\n };\n\n // Only sync elements that are defined to avoid overwriting existing ones\n if (elements.reference !== undefined) {\n valuesToSync.referenceElement = elements.reference;\n valuesToSync.domReferenceElement = isElement(elements.reference) ? elements.reference : null;\n }\n if (elements.floating !== undefined) {\n valuesToSync.floatingElement = elements.floating;\n }\n store.update(valuesToSync);\n }, [open, floatingId, elements.reference, elements.floating, store]);\n store.context.onOpenChange = onOpenChange;\n store.context.nested = nested;\n return store;\n}"],"names":["useFloatingRootContext","options","open","onOpenChange","elements","floatingId","useId","nested","useFloatingParentNodeId","optionDomReference","isElement","store","useRefWithInit","FloatingRootStore","PopupTriggerMap","useIsoLayoutEffect","valuesToSync"],"mappings":";;;;;;;AASO,SAASA,EAAuBC,GAAS;AAC9C,QAAM;AAAA,IACJ,MAAAC,IAAO;AAAA,IACP,cAAAC;AAAA,IACA,UAAAC,IAAW,CAAA;AAAA,EACf,IAAMH,GACEI,IAAaC,EAAK,GAClBC,IAASC,EAAuB,KAAM;AAC5C,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAqBL,EAAS;AACpC,IAAIK,KAAsB,CAACC,EAAUD,CAAkB,KACrD,QAAQ,MAAM,qEAAqE,0EAA0E,UAAU;AAAA,EAE3K;AACA,QAAME,IAAQC,EAAe,MAAM,IAAIC,EAAkB;AAAA,IACvD,MAAAX;AAAA,IACA,kBAAkB;AAAA,IAClB,cAAAC;AAAA,IACA,kBAAkBC,EAAS,aAAa;AAAA,IACxC,iBAAiBA,EAAS,YAAY;AAAA,IACtC,iBAAiB,IAAIU,EAAe;AAAA,IACpC,YAAAT;AAAA,IACA,UAAU;AAAA,IACV,QAAAE;AAAA,EACJ,CAAG,CAAC,EAAE;AACJ,SAAAQ,EAAmB,MAAM;AACvB,UAAMC,IAAe;AAAA,MACnB,MAAAd;AAAA,MACA,YAAAG;AAAA,IACN;AAGI,IAAID,EAAS,cAAc,WACzBY,EAAa,mBAAmBZ,EAAS,WACzCY,EAAa,sBAAsBN,EAAUN,EAAS,SAAS,IAAIA,EAAS,YAAY,OAEtFA,EAAS,aAAa,WACxBY,EAAa,kBAAkBZ,EAAS,WAE1CO,EAAM,OAAOK,CAAY;AAAA,EAC3B,GAAG,CAACd,GAAMG,GAAYD,EAAS,WAAWA,EAAS,UAAUO,CAAK,CAAC,GACnEA,EAAM,QAAQ,eAAeR,GAC7BQ,EAAM,QAAQ,SAASJ,GAChBI;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index301.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js"],"sourcesContent":["/**\n * Returns the start and end months for calendar navigation.\n *\n * @param props The DayPicker props, including navigation and layout options.\n * @param dateLib The date library to use for date manipulation.\n * @returns A tuple containing the start and end months for navigation.\n */\nexport function getNavMonths(props, dateLib) {\n let { startMonth, endMonth } = props;\n const { startOfYear, startOfDay, startOfMonth, endOfMonth, addYears, endOfYear, today, } = dateLib;\n const hasYearDropdown = props.captionLayout === \"dropdown\" ||\n props.captionLayout === \"dropdown-years\";\n if (startMonth) {\n startMonth = startOfMonth(startMonth);\n }\n else if (!startMonth && hasYearDropdown) {\n startMonth = startOfYear(addYears(props.today ?? today(), -100));\n }\n if (endMonth) {\n endMonth = endOfMonth(endMonth);\n }\n else if (!endMonth && hasYearDropdown) {\n endMonth = endOfYear(props.today ?? today());\n }\n return [\n startMonth ? startOfDay(startMonth) : startMonth,\n endMonth ? startOfDay(endMonth) : endMonth,\n ];\n}\n"],"names":["getNavMonths","props","dateLib","startMonth","endMonth","startOfYear","startOfDay","startOfMonth","endOfMonth","addYears","endOfYear","today","hasYearDropdown"],"mappings":"AAOO,SAASA,EAAaC,GAAOC,GAAS;AACzC,MAAI,EAAE,YAAAC,GAAY,UAAAC,EAAQ,IAAKH;AAC/B,QAAM,EAAE,aAAAI,GAAa,YAAAC,GAAY,cAAAC,GAAc,YAAAC,GAAY,UAAAC,GAAU,WAAAC,GAAW,OAAAC,EAAK,IAAMT,GACrFU,IAAkBX,EAAM,kBAAkB,cAC5CA,EAAM,kBAAkB;AAC5B,SAAIE,IACAA,IAAaI,EAAaJ,CAAU,IAE/B,CAACA,KAAcS,MACpBT,IAAaE,EAAYI,EAASR,EAAM,SAASU,EAAK,GAAI,IAAI,CAAC,IAE/DP,IACAA,IAAWI,EAAWJ,CAAQ,IAEzB,CAACA,KAAYQ,MAClBR,IAAWM,EAAUT,EAAM,SAASU,EAAK,CAAE,IAExC;AAAA,IACHR,KAAaG,EAAWH,CAAU;AAAA,IAClCC,KAAWE,EAAWF,CAAQ;AAAA,EACtC;AACA;","x_google_ignoreList":[0]}