@rpcbase/ui 0.249.0 → 0.251.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 (495) hide show
  1. package/dist/index105.js +36 -36
  2. package/dist/index117.js +6 -6
  3. package/dist/index120.js +10 -10
  4. package/dist/index122.js +2 -2
  5. package/dist/index123.js +3 -3
  6. package/dist/index124.js +1 -1
  7. package/dist/index126.js +2 -2
  8. package/dist/index128.js +2 -2
  9. package/dist/index150.js +3 -3
  10. package/dist/index156.js +1 -1
  11. package/dist/index163.js +2 -2
  12. package/dist/index164.js +7 -7
  13. package/dist/index167.js +1 -1
  14. package/dist/index169.js +1 -1
  15. package/dist/index172.js +3 -3
  16. package/dist/index175.js +1 -1
  17. package/dist/index176.js +8 -8
  18. package/dist/index182.js +1 -1
  19. package/dist/index184.js +4 -4
  20. package/dist/index185.js +13 -13
  21. package/dist/index188.js +5 -5
  22. package/dist/index189.js +1 -1
  23. package/dist/index192.js +4 -4
  24. package/dist/index193.js +6 -6
  25. package/dist/index194.js +59 -20
  26. package/dist/index194.js.map +1 -1
  27. package/dist/index195.js +8 -66
  28. package/dist/index195.js.map +1 -1
  29. package/dist/index196.js +87 -6
  30. package/dist/index196.js.map +1 -1
  31. package/dist/index197.js +19 -5
  32. package/dist/index197.js.map +1 -1
  33. package/dist/index198.js +16 -11
  34. package/dist/index198.js.map +1 -1
  35. package/dist/index199.js +5 -3
  36. package/dist/index199.js.map +1 -1
  37. package/dist/index200.js +4 -49
  38. package/dist/index200.js.map +1 -1
  39. package/dist/index201.js +7 -4
  40. package/dist/index201.js.map +1 -1
  41. package/dist/index202.js +4 -29
  42. package/dist/index202.js.map +1 -1
  43. package/dist/index203.js +6 -16
  44. package/dist/index203.js.map +1 -1
  45. package/dist/index204.js +16 -5
  46. package/dist/index204.js.map +1 -1
  47. package/dist/index205.js +4 -21
  48. package/dist/index205.js.map +1 -1
  49. package/dist/index206.js +4 -53
  50. package/dist/index206.js.map +1 -1
  51. package/dist/index207.js +12 -20
  52. package/dist/index207.js.map +1 -1
  53. package/dist/index208.js +9 -41
  54. package/dist/index208.js.map +1 -1
  55. package/dist/index209.js +13 -39
  56. package/dist/index209.js.map +1 -1
  57. package/dist/index210.js +14 -46
  58. package/dist/index210.js.map +1 -1
  59. package/dist/index211.js +4 -20
  60. package/dist/index211.js.map +1 -1
  61. package/dist/index212.js +5 -70
  62. package/dist/index212.js.map +1 -1
  63. package/dist/index213.js +6 -17
  64. package/dist/index213.js.map +1 -1
  65. package/dist/index214.js +5 -3
  66. package/dist/index214.js.map +1 -1
  67. package/dist/index215.js +54 -11
  68. package/dist/index215.js.map +1 -1
  69. package/dist/index216.js +8 -13
  70. package/dist/index216.js.map +1 -1
  71. package/dist/index217.js +4 -18
  72. package/dist/index217.js.map +1 -1
  73. package/dist/index218.js +4 -36
  74. package/dist/index218.js.map +1 -1
  75. package/dist/index219.js +8 -239
  76. package/dist/index219.js.map +1 -1
  77. package/dist/index220.js +4 -252
  78. package/dist/index220.js.map +1 -1
  79. package/dist/index221.js +4 -68
  80. package/dist/index221.js.map +1 -1
  81. package/dist/index222.js +3 -99
  82. package/dist/index222.js.map +1 -1
  83. package/dist/index223.js +10 -83
  84. package/dist/index223.js.map +1 -1
  85. package/dist/index224.js +9 -3
  86. package/dist/index224.js.map +1 -1
  87. package/dist/index225.js +9 -29
  88. package/dist/index225.js.map +1 -1
  89. package/dist/index226.js +10 -16
  90. package/dist/index226.js.map +1 -1
  91. package/dist/index227.js +11 -35
  92. package/dist/index227.js.map +1 -1
  93. package/dist/index228.js +9 -17
  94. package/dist/index228.js.map +1 -1
  95. package/dist/index229.js +6 -3
  96. package/dist/index229.js.map +1 -1
  97. package/dist/index230.js +5 -26
  98. package/dist/index230.js.map +1 -1
  99. package/dist/index231.js +4 -28
  100. package/dist/index231.js.map +1 -1
  101. package/dist/index232.js +6 -4
  102. package/dist/index232.js.map +1 -1
  103. package/dist/index233.js +6 -78
  104. package/dist/index233.js.map +1 -1
  105. package/dist/index234.js +5 -272
  106. package/dist/index234.js.map +1 -1
  107. package/dist/index235.js +15 -10
  108. package/dist/index235.js.map +1 -1
  109. package/dist/index236.js +7 -10
  110. package/dist/index236.js.map +1 -1
  111. package/dist/index237.js +10 -25
  112. package/dist/index237.js.map +1 -1
  113. package/dist/index238.js +10 -16
  114. package/dist/index238.js.map +1 -1
  115. package/dist/index239.js +21 -125
  116. package/dist/index239.js.map +1 -1
  117. package/dist/index240.js +8 -5
  118. package/dist/index240.js.map +1 -1
  119. package/dist/index241.js +9 -65
  120. package/dist/index241.js.map +1 -1
  121. package/dist/index242.js +10 -14
  122. package/dist/index242.js.map +1 -1
  123. package/dist/index243.js +4 -7
  124. package/dist/index243.js.map +1 -1
  125. package/dist/index244.js +5 -5
  126. package/dist/index244.js.map +1 -1
  127. package/dist/index245.js +16 -3
  128. package/dist/index245.js.map +1 -1
  129. package/dist/index246.js +9 -10
  130. package/dist/index246.js.map +1 -1
  131. package/dist/index247.js +18 -7
  132. package/dist/index247.js.map +1 -1
  133. package/dist/index248.js +19 -132
  134. package/dist/index248.js.map +1 -1
  135. package/dist/index249.js +10 -397
  136. package/dist/index249.js.map +1 -1
  137. package/dist/index250.js +30 -5
  138. package/dist/index250.js.map +1 -1
  139. package/dist/index251.js +12 -52
  140. package/dist/index251.js.map +1 -1
  141. package/dist/index252.js +25 -11
  142. package/dist/index252.js.map +1 -1
  143. package/dist/index253.js +5 -27
  144. package/dist/index253.js.map +1 -1
  145. package/dist/index254.js +20 -12
  146. package/dist/index254.js.map +1 -1
  147. package/dist/index255.js +65 -57
  148. package/dist/index255.js.map +1 -1
  149. package/dist/index256.js +6 -8
  150. package/dist/index256.js.map +1 -1
  151. package/dist/index257.js +5 -87
  152. package/dist/index257.js.map +1 -1
  153. package/dist/index258.js +11 -19
  154. package/dist/index258.js.map +1 -1
  155. package/dist/index259.js +3 -16
  156. package/dist/index259.js.map +1 -1
  157. package/dist/index260.js +49 -4
  158. package/dist/index260.js.map +1 -1
  159. package/dist/index261.js +4 -6
  160. package/dist/index261.js.map +1 -1
  161. package/dist/index262.js +29 -6
  162. package/dist/index262.js.map +1 -1
  163. package/dist/index263.js +16 -4
  164. package/dist/index263.js.map +1 -1
  165. package/dist/index264.js +5 -6
  166. package/dist/index264.js.map +1 -1
  167. package/dist/index265.js +21 -16
  168. package/dist/index265.js.map +1 -1
  169. package/dist/index266.js +53 -4
  170. package/dist/index266.js.map +1 -1
  171. package/dist/index267.js +20 -4
  172. package/dist/index267.js.map +1 -1
  173. package/dist/index268.js +41 -12
  174. package/dist/index268.js.map +1 -1
  175. package/dist/index269.js +39 -9
  176. package/dist/index269.js.map +1 -1
  177. package/dist/index270.js +46 -14
  178. package/dist/index270.js.map +1 -1
  179. package/dist/index271.js +20 -13
  180. package/dist/index271.js.map +1 -1
  181. package/dist/index272.js +70 -4
  182. package/dist/index272.js.map +1 -1
  183. package/dist/index273.js +17 -5
  184. package/dist/index273.js.map +1 -1
  185. package/dist/index274.js +3 -6
  186. package/dist/index274.js.map +1 -1
  187. package/dist/index275.js +11 -5
  188. package/dist/index275.js.map +1 -1
  189. package/dist/index276.js +12 -53
  190. package/dist/index276.js.map +1 -1
  191. package/dist/index277.js +18 -8
  192. package/dist/index277.js.map +1 -1
  193. package/dist/index278.js +36 -4
  194. package/dist/index278.js.map +1 -1
  195. package/dist/index279.js +239 -4
  196. package/dist/index279.js.map +1 -1
  197. package/dist/index280.js +252 -8
  198. package/dist/index280.js.map +1 -1
  199. package/dist/index281.js +68 -4
  200. package/dist/index281.js.map +1 -1
  201. package/dist/index282.js +99 -4
  202. package/dist/index282.js.map +1 -1
  203. package/dist/index283.js +83 -3
  204. package/dist/index283.js.map +1 -1
  205. package/dist/index284.js +3 -10
  206. package/dist/index284.js.map +1 -1
  207. package/dist/index285.js +29 -9
  208. package/dist/index285.js.map +1 -1
  209. package/dist/index286.js +16 -9
  210. package/dist/index286.js.map +1 -1
  211. package/dist/index287.js +35 -11
  212. package/dist/index287.js.map +1 -1
  213. package/dist/index288.js +17 -10
  214. package/dist/index288.js.map +1 -1
  215. package/dist/index289.js +3 -9
  216. package/dist/index289.js.map +1 -1
  217. package/dist/index290.js +26 -6
  218. package/dist/index290.js.map +1 -1
  219. package/dist/index291.js +28 -5
  220. package/dist/index291.js.map +1 -1
  221. package/dist/index292.js +4 -5
  222. package/dist/index292.js.map +1 -1
  223. package/dist/index293.js +78 -5
  224. package/dist/index293.js.map +1 -1
  225. package/dist/index294.js +272 -6
  226. package/dist/index294.js.map +1 -1
  227. package/dist/index295.js +11 -5
  228. package/dist/index295.js.map +1 -1
  229. package/dist/index296.js +10 -29
  230. package/dist/index296.js.map +1 -1
  231. package/dist/index297.js +25 -12
  232. package/dist/index297.js.map +1 -1
  233. package/dist/index298.js +15 -24
  234. package/dist/index298.js.map +1 -1
  235. package/dist/index299.js +125 -5
  236. package/dist/index299.js.map +1 -1
  237. package/dist/index300.js +5 -16
  238. package/dist/index300.js.map +1 -1
  239. package/dist/index301.js +65 -7
  240. package/dist/index301.js.map +1 -1
  241. package/dist/index302.js +13 -10
  242. package/dist/index302.js.map +1 -1
  243. package/dist/index303.js +7 -10
  244. package/dist/index303.js.map +1 -1
  245. package/dist/index304.js +5 -21
  246. package/dist/index304.js.map +1 -1
  247. package/dist/index305.js +3 -8
  248. package/dist/index305.js.map +1 -1
  249. package/dist/index306.js +10 -9
  250. package/dist/index306.js.map +1 -1
  251. package/dist/index307.js +7 -9
  252. package/dist/index307.js.map +1 -1
  253. package/dist/index308.js +133 -4
  254. package/dist/index308.js.map +1 -1
  255. package/dist/index309.js +399 -5
  256. package/dist/index309.js.map +1 -1
  257. package/dist/index310.js +5 -17
  258. package/dist/index310.js.map +1 -1
  259. package/dist/index311.js +52 -9
  260. package/dist/index311.js.map +1 -1
  261. package/dist/index312.js +11 -18
  262. package/dist/index312.js.map +1 -1
  263. package/dist/index313.js +27 -20
  264. package/dist/index313.js.map +1 -1
  265. package/dist/index314.js +11 -12
  266. package/dist/index314.js.map +1 -1
  267. package/dist/index315.js +29 -151
  268. package/dist/index315.js.map +1 -1
  269. package/dist/index316.js +11 -32
  270. package/dist/index316.js.map +1 -1
  271. package/dist/index317.js +49 -11
  272. package/dist/index317.js.map +1 -1
  273. package/dist/index318.js +9 -49
  274. package/dist/index318.js.map +1 -1
  275. package/dist/index319.js +11 -9
  276. package/dist/index319.js.map +1 -1
  277. package/dist/index320.js +43 -11
  278. package/dist/index320.js.map +1 -1
  279. package/dist/index321.js +94 -40
  280. package/dist/index321.js.map +1 -1
  281. package/dist/index322.js +76 -87
  282. package/dist/index322.js.map +1 -1
  283. package/dist/index323.js +88 -69
  284. package/dist/index323.js.map +1 -1
  285. package/dist/index324.js +39 -92
  286. package/dist/index324.js.map +1 -1
  287. package/dist/index325.js +10 -51
  288. package/dist/index325.js.map +1 -1
  289. package/dist/index326.js +4 -11
  290. package/dist/index326.js.map +1 -1
  291. package/dist/index327.js +37 -4
  292. package/dist/index327.js.map +1 -1
  293. package/dist/index328.js +8 -37
  294. package/dist/index328.js.map +1 -1
  295. package/dist/index329.js +154 -8
  296. package/dist/index329.js.map +1 -1
  297. package/dist/index330.js +135 -3
  298. package/dist/index330.js.map +1 -1
  299. package/dist/index331.js +16 -134
  300. package/dist/index331.js.map +1 -1
  301. package/dist/index332.js +15 -17
  302. package/dist/index332.js.map +1 -1
  303. package/dist/index333.js +3 -15
  304. package/dist/index333.js.map +1 -1
  305. package/dist/index334.js +1 -1
  306. package/dist/index335.js +1 -1
  307. package/dist/index336.js +8 -7
  308. package/dist/index336.js.map +1 -1
  309. package/dist/index337.js +7 -8
  310. package/dist/index337.js.map +1 -1
  311. package/dist/index338.js +1 -1
  312. package/dist/index347.js +1 -1
  313. package/dist/index348.js +2 -2
  314. package/dist/index350.js +4 -4
  315. package/dist/index351.js +4 -4
  316. package/dist/index352.js +7 -143
  317. package/dist/index352.js.map +1 -1
  318. package/dist/index353.js +4 -79
  319. package/dist/index353.js.map +1 -1
  320. package/dist/index354.js +11 -61
  321. package/dist/index354.js.map +1 -1
  322. package/dist/index355.js +22 -15
  323. package/dist/index355.js.map +1 -1
  324. package/dist/index356.js +16 -8
  325. package/dist/index356.js.map +1 -1
  326. package/dist/index357.js +8 -5
  327. package/dist/index357.js.map +1 -1
  328. package/dist/index358.js +144 -11
  329. package/dist/index358.js.map +1 -1
  330. package/dist/index359.js +77 -19
  331. package/dist/index359.js.map +1 -1
  332. package/dist/index360.js +61 -16
  333. package/dist/index360.js.map +1 -1
  334. package/dist/index361.js +15 -8
  335. package/dist/index361.js.map +1 -1
  336. package/dist/index362.js +5 -4
  337. package/dist/index362.js.map +1 -1
  338. package/dist/index363.js +18 -6
  339. package/dist/index363.js.map +1 -1
  340. package/dist/index364.js +13 -3
  341. package/dist/index364.js.map +1 -1
  342. package/dist/index365.js +4 -12
  343. package/dist/index365.js.map +1 -1
  344. package/dist/index366.js +5 -20
  345. package/dist/index366.js.map +1 -1
  346. package/dist/index367.js +3 -45
  347. package/dist/index367.js.map +1 -1
  348. package/dist/index368.js +11 -17
  349. package/dist/index368.js.map +1 -1
  350. package/dist/index369.js +21 -5
  351. package/dist/index369.js.map +1 -1
  352. package/dist/index370.js +44 -200
  353. package/dist/index370.js.map +1 -1
  354. package/dist/index371.js +17 -73
  355. package/dist/index371.js.map +1 -1
  356. package/dist/index372.js +5 -124
  357. package/dist/index372.js.map +1 -1
  358. package/dist/index373.js +200 -4
  359. package/dist/index373.js.map +1 -1
  360. package/dist/index374.js +74 -18
  361. package/dist/index374.js.map +1 -1
  362. package/dist/index375.js +123 -12
  363. package/dist/index375.js.map +1 -1
  364. package/dist/index379.js +4 -4
  365. package/dist/index380.js +3 -3
  366. package/dist/index382.js +1 -1
  367. package/dist/index384.js +1 -1
  368. package/dist/index385.js +2 -2
  369. package/dist/index388.js +4 -4
  370. package/dist/index389.js +2 -2
  371. package/dist/index391.js +1 -1
  372. package/dist/index392.js +5 -3
  373. package/dist/index392.js.map +1 -1
  374. package/dist/index393.js +5 -3
  375. package/dist/index393.js.map +1 -1
  376. package/dist/index394.js +4 -5
  377. package/dist/index394.js.map +1 -1
  378. package/dist/index395.js +15 -4
  379. package/dist/index395.js.map +1 -1
  380. package/dist/index396.js +9 -4
  381. package/dist/index396.js.map +1 -1
  382. package/dist/index397.js +5 -15
  383. package/dist/index397.js.map +1 -1
  384. package/dist/index398.js +4 -8
  385. package/dist/index398.js.map +1 -1
  386. package/dist/index399.js +545 -5
  387. package/dist/index399.js.map +1 -1
  388. package/dist/index400.js +47 -5
  389. package/dist/index400.js.map +1 -1
  390. package/dist/index401.js +15 -543
  391. package/dist/index401.js.map +1 -1
  392. package/dist/index402.js +6 -47
  393. package/dist/index402.js.map +1 -1
  394. package/dist/index403.js +7 -17
  395. package/dist/index403.js.map +1 -1
  396. package/dist/index404.js +6 -5
  397. package/dist/index404.js.map +1 -1
  398. package/dist/index405.js +7 -7
  399. package/dist/index405.js.map +1 -1
  400. package/dist/index406.js +11 -6
  401. package/dist/index406.js.map +1 -1
  402. package/dist/index407.js +8 -7
  403. package/dist/index407.js.map +1 -1
  404. package/dist/index408.js +12 -11
  405. package/dist/index408.js.map +1 -1
  406. package/dist/index409.js +3 -9
  407. package/dist/index409.js.map +1 -1
  408. package/dist/index410.js +3 -13
  409. package/dist/index410.js.map +1 -1
  410. package/dist/index411.js +15 -3
  411. package/dist/index411.js.map +1 -1
  412. package/dist/index412.js +3 -15
  413. package/dist/index412.js.map +1 -1
  414. package/dist/index413.js +1 -1
  415. package/dist/index414.js +4 -7
  416. package/dist/index414.js.map +1 -1
  417. package/dist/index415.js +56 -2
  418. package/dist/index415.js.map +1 -1
  419. package/dist/index416.js +67 -43
  420. package/dist/index416.js.map +1 -1
  421. package/dist/index417.js +31 -56
  422. package/dist/index417.js.map +1 -1
  423. package/dist/index418.js +9 -8
  424. package/dist/index418.js.map +1 -1
  425. package/dist/index419.js +153 -2
  426. package/dist/index419.js.map +1 -1
  427. package/dist/index420.js +107 -54
  428. package/dist/index420.js.map +1 -1
  429. package/dist/index421.js +7 -55
  430. package/dist/index421.js.map +1 -1
  431. package/dist/index422.js +2 -33
  432. package/dist/index422.js.map +1 -1
  433. package/dist/index423.js +43 -4
  434. package/dist/index423.js.map +1 -1
  435. package/dist/index424.js +55 -55
  436. package/dist/index424.js.map +1 -1
  437. package/dist/index425.js +8 -68
  438. package/dist/index425.js.map +1 -1
  439. package/dist/index426.js +2 -31
  440. package/dist/index426.js.map +1 -1
  441. package/dist/index427.js +55 -9
  442. package/dist/index427.js.map +1 -1
  443. package/dist/index428.js +55 -152
  444. package/dist/index428.js.map +1 -1
  445. package/dist/index429.js +32 -107
  446. package/dist/index429.js.map +1 -1
  447. package/dist/index430.js +16 -2
  448. package/dist/index430.js.map +1 -1
  449. package/dist/index431.js +29 -2
  450. package/dist/index431.js.map +1 -1
  451. package/dist/index432.js +13 -2
  452. package/dist/index432.js.map +1 -1
  453. package/dist/index433.js +7 -2
  454. package/dist/index433.js.map +1 -1
  455. package/dist/index434.js +2 -16
  456. package/dist/index434.js.map +1 -1
  457. package/dist/index435.js +2 -29
  458. package/dist/index435.js.map +1 -1
  459. package/dist/index436.js +2 -13
  460. package/dist/index436.js.map +1 -1
  461. package/dist/index437.js +2 -7
  462. package/dist/index437.js.map +1 -1
  463. package/dist/index44.js +1 -1
  464. package/dist/index45.js +2 -2
  465. package/dist/index49.js +30 -30
  466. package/dist/index50.js +21 -21
  467. package/dist/index51.js +1 -1
  468. package/dist/index52.js +8 -8
  469. package/dist/index53.js +2 -2
  470. package/dist/index55.js +16 -16
  471. package/dist/index56.js +4 -4
  472. package/dist/index57.js +3 -3
  473. package/dist/index58.js +7 -7
  474. package/dist/index59.js +4 -4
  475. package/dist/index60.js +12 -12
  476. package/dist/index61.js +2 -2
  477. package/dist/index62.js +2 -2
  478. package/dist/index66.js +1 -1
  479. package/dist/index67.js +1 -1
  480. package/dist/index70.js +1 -1
  481. package/dist/index71.js +1 -1
  482. package/dist/index72.js +2 -6
  483. package/dist/index72.js.map +1 -1
  484. package/dist/index73.js +2 -8
  485. package/dist/index73.js.map +1 -1
  486. package/dist/index74.js +2 -6
  487. package/dist/index74.js.map +1 -1
  488. package/dist/index75.js +2 -2
  489. package/dist/index76.js +6 -2
  490. package/dist/index76.js.map +1 -1
  491. package/dist/index77.js +8 -2
  492. package/dist/index77.js.map +1 -1
  493. package/dist/index78.js +6 -2
  494. package/dist/index78.js.map +1 -1
  495. package/package.json +1 -1
package/dist/index298.js CHANGED
@@ -1,29 +1,20 @@
1
- import { defaultDateLib as p } from "./index105.js";
2
- import { dateMatchModifiers as s } from "./index32.js";
3
- import { rangeContainsDayOfWeek as M } from "./index297.js";
4
- import { rangeIncludesDate as l } from "./index125.js";
5
- import { rangeOverlaps as y } from "./index299.js";
6
- import { isDatesArray as a, isDateRange as A, isDayOfWeekType as C, isDateInterval as I, isDateAfterType as v, isDateBeforeType as F } from "./index127.js";
7
- function d(n, t, f = p) {
8
- const e = Array.isArray(t) ? t : [t];
9
- if (e.filter((o) => typeof o != "function").some((o) => typeof o == "boolean" ? o : f.isDate(o) ? l(n, o, !1, f) : a(o, f) ? o.some((r) => l(n, r, !1, f)) : A(o) ? o.from && o.to ? y(n, { from: o.from, to: o.to }, f) : !1 : C(o) ? M(n, o.dayOfWeek, f) : I(o) ? f.isAfter(o.before, o.after) ? y(n, {
10
- from: f.addDays(o.after, 1),
11
- to: f.addDays(o.before, -1)
12
- }, f) : s(n.from, o, f) || s(n.to, o, f) : v(o) || F(o) ? s(n.from, o, f) || s(n.to, o, f) : !1))
13
- return !0;
14
- const i = e.filter((o) => typeof o == "function");
15
- if (i.length) {
16
- let o = n.from;
17
- const r = f.differenceInCalendarDays(n.to, n.from);
18
- for (let u = 0; u <= r; u++) {
19
- if (i.some((D) => D(o)))
20
- return !0;
21
- o = f.addDays(o, 1);
1
+ import * as e from "react";
2
+ import { ownerDocument as m } from "./index284.js";
3
+ import { useScrollLock as p } from "./index375.js";
4
+ import { useIsoLayoutEffect as h } from "./index261.js";
5
+ const S = 20;
6
+ function L(t, c, o, l) {
7
+ const [s, r] = e.useState(!1);
8
+ h(() => {
9
+ if (!t || !c || o == null) {
10
+ r(!1);
11
+ return;
22
12
  }
23
- }
24
- return !1;
13
+ const u = m(o).documentElement.clientWidth, f = o.offsetWidth;
14
+ r(u > 0 && f > 0 && f >= u - S);
15
+ }, [t, c, o]), p(t && (!c || s), l);
25
16
  }
26
17
  export {
27
- d as rangeContainsModifiers
18
+ L as useAnchoredPopupScrollLock
28
19
  };
29
20
  //# sourceMappingURL=index298.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index298.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { dateMatchModifiers } from \"./dateMatchModifiers.js\";\nimport { rangeContainsDayOfWeek } from \"./rangeContainsDayOfWeek.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { rangeOverlaps } from \"./rangeOverlaps.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType, } from \"./typeguards.js\";\n/**\n * Checks if a date range contains dates that match the given modifiers.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param modifiers - The modifiers to match against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains matching dates, otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {\n const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];\n // Defer function matchers evaluation as they are the least performant.\n const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== \"function\");\n const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {\n if (typeof matcher === \"boolean\")\n return matcher;\n if (dateLib.isDate(matcher)) {\n return rangeIncludesDate(range, matcher, false, dateLib);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));\n }\n if (isDateRange(matcher)) {\n if (matcher.from && matcher.to) {\n return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);\n }\n return false;\n }\n if (isDayOfWeekType(matcher)) {\n return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);\n }\n if (isDateInterval(matcher)) {\n const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return rangeOverlaps(range, {\n from: dateLib.addDays(matcher.after, 1),\n to: dateLib.addDays(matcher.before, -1),\n }, dateLib);\n }\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n return false;\n });\n if (nonFunctionMatchersResult) {\n return true;\n }\n const functionMatchers = matchers.filter((matcher) => typeof matcher === \"function\");\n if (functionMatchers.length) {\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n for (let i = 0; i <= totalDays; i++) {\n if (functionMatchers.some((matcher) => matcher(date))) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n }\n return false;\n}\n"],"names":["rangeContainsModifiers","range","modifiers","dateLib","defaultDateLib","matchers","matcher","rangeIncludesDate","isDatesArray","date","isDateRange","rangeOverlaps","isDayOfWeekType","rangeContainsDayOfWeek","isDateInterval","dateMatchModifiers","isDateAfterType","isDateBeforeType","functionMatchers","totalDays","i"],"mappings":";;;;;;AAgBO,SAASA,EAAuBC,GAAOC,GAAWC,IAAUC,GAAgB;AAC/E,QAAMC,IAAW,MAAM,QAAQH,CAAS,IAAIA,IAAY,CAACA,CAAS;AAsClE,MApC4BG,EAAS,OAAO,CAACC,MAAY,OAAOA,KAAY,UAAU,EAChC,KAAK,CAACA,MACpD,OAAOA,KAAY,YACZA,IACPH,EAAQ,OAAOG,CAAO,IACfC,EAAkBN,GAAOK,GAAS,IAAOH,CAAO,IAEvDK,EAAaF,GAASH,CAAO,IACtBG,EAAQ,KAAK,CAACG,MAASF,EAAkBN,GAAOQ,GAAM,IAAON,CAAO,CAAC,IAE5EO,EAAYJ,CAAO,IACfA,EAAQ,QAAQA,EAAQ,KACjBK,EAAcV,GAAO,EAAE,MAAMK,EAAQ,MAAM,IAAIA,EAAQ,GAAE,GAAIH,CAAO,IAExE,KAEPS,EAAgBN,CAAO,IAChBO,EAAuBZ,GAAOK,EAAQ,WAAWH,CAAO,IAE/DW,EAAeR,CAAO,IACGH,EAAQ,QAAQG,EAAQ,QAAQA,EAAQ,KAAK,IAE3DK,EAAcV,GAAO;AAAA,IACxB,MAAME,EAAQ,QAAQG,EAAQ,OAAO,CAAC;AAAA,IACtC,IAAIH,EAAQ,QAAQG,EAAQ,QAAQ,EAAE;AAAA,EAC1D,GAAmBH,CAAO,IAENY,EAAmBd,EAAM,MAAMK,GAASH,CAAO,KACnDY,EAAmBd,EAAM,IAAIK,GAASH,CAAO,IAEjDa,EAAgBV,CAAO,KAAKW,EAAiBX,CAAO,IAC5CS,EAAmBd,EAAM,MAAMK,GAASH,CAAO,KACnDY,EAAmBd,EAAM,IAAIK,GAASH,CAAO,IAE9C,EACV;AAEG,WAAO;AAEX,QAAMe,IAAmBb,EAAS,OAAO,CAACC,MAAY,OAAOA,KAAY,UAAU;AACnF,MAAIY,EAAiB,QAAQ;AACzB,QAAIT,IAAOR,EAAM;AACjB,UAAMkB,IAAYhB,EAAQ,yBAAyBF,EAAM,IAAIA,EAAM,IAAI;AACvE,aAASmB,IAAI,GAAGA,KAAKD,GAAWC,KAAK;AACjC,UAAIF,EAAiB,KAAK,CAACZ,MAAYA,EAAQG,CAAI,CAAC;AAChD,eAAO;AAEX,MAAAA,IAAON,EAAQ,QAAQM,GAAM,CAAC;AAAA,IAClC;AAAA,EACJ;AACA,SAAO;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index298.js","sources":["../../../node_modules/@base-ui/react/utils/useAnchoredPopupScrollLock.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { useScrollLock } from '@base-ui/utils/useScrollLock';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\n\n// Touch-opened popups normally avoid scroll locking so users can still swipe outside to dismiss.\n// This hook re-enables scroll lock only when the popup is effectively full-width.\n// Treat popups with up to 20px of total horizontal gutter as full-width so common ~10px side\n// padding still locks scroll, since that leaves too little outside space for a reliable swipe.\nconst VIEWPORT_WIDTH_TOLERANCE_PX = 20;\n\n/**\n * Manages scroll lock for anchored popups. For non-touch opens, scroll lock is applied when\n * enabled. For touch opens, scroll lock is applied only when the positioner width is effectively\n * viewport-sized.\n */\nexport function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, referenceElement) {\n const [touchOpenShouldLockScroll, setTouchOpenShouldLockScroll] = React.useState(false);\n useIsoLayoutEffect(() => {\n if (!enabled || !touchOpen || positionerElement == null) {\n setTouchOpenShouldLockScroll(false);\n return;\n }\n const viewportWidth = ownerDocument(positionerElement).documentElement.clientWidth;\n const popupWidth = positionerElement.offsetWidth;\n setTouchOpenShouldLockScroll(viewportWidth > 0 && popupWidth > 0 && popupWidth >= viewportWidth - VIEWPORT_WIDTH_TOLERANCE_PX);\n }, [enabled, touchOpen, positionerElement]);\n useScrollLock(enabled && (!touchOpen || touchOpenShouldLockScroll), referenceElement);\n}"],"names":["VIEWPORT_WIDTH_TOLERANCE_PX","useAnchoredPopupScrollLock","enabled","touchOpen","positionerElement","referenceElement","touchOpenShouldLockScroll","setTouchOpenShouldLockScroll","React","useIsoLayoutEffect","viewportWidth","ownerDocument","popupWidth","useScrollLock"],"mappings":";;;;AAWA,MAAMA,IAA8B;AAO7B,SAASC,EAA2BC,GAASC,GAAWC,GAAmBC,GAAkB;AAClG,QAAM,CAACC,GAA2BC,CAA4B,IAAIC,EAAM,SAAS,EAAK;AACtF,EAAAC,EAAmB,MAAM;AACvB,QAAI,CAACP,KAAW,CAACC,KAAaC,KAAqB,MAAM;AACvD,MAAAG,EAA6B,EAAK;AAClC;AAAA,IACF;AACA,UAAMG,IAAgBC,EAAcP,CAAiB,EAAE,gBAAgB,aACjEQ,IAAaR,EAAkB;AACrC,IAAAG,EAA6BG,IAAgB,KAAKE,IAAa,KAAKA,KAAcF,IAAgBV,CAA2B;AAAA,EAC/H,GAAG,CAACE,GAASC,GAAWC,CAAiB,CAAC,GAC1CS,EAAcX,MAAY,CAACC,KAAaG,IAA4BD,CAAgB;AACtF;","x_google_ignoreList":[0]}
package/dist/index299.js CHANGED
@@ -1,9 +1,129 @@
1
- import { rangeIncludesDate as m } from "./index125.js";
2
- import { defaultDateLib as r } from "./index105.js";
3
- function u(o, f, l = r) {
4
- return m(o, f.from, !1, l) || m(o, f.to, !1, l) || m(f, o.from, !1, l) || m(f, o.to, !1, l);
1
+ const S = ["top", "right", "bottom", "left"], m = Math.min, h = Math.max, w = Math.round, C = Math.floor, j = (t) => ({
2
+ x: t,
3
+ y: t
4
+ }), p = {
5
+ left: "right",
6
+ right: "left",
7
+ bottom: "top",
8
+ top: "bottom"
9
+ };
10
+ function L(t, n, e) {
11
+ return h(t, m(n, e));
12
+ }
13
+ function E(t, n) {
14
+ return typeof t == "function" ? t(n) : t;
15
+ }
16
+ function g(t) {
17
+ return t.split("-")[0];
18
+ }
19
+ function a(t) {
20
+ return t.split("-")[1];
21
+ }
22
+ function x(t) {
23
+ return t === "x" ? "y" : "x";
24
+ }
25
+ function b(t) {
26
+ return t === "y" ? "height" : "width";
27
+ }
28
+ function d(t) {
29
+ const n = t[0];
30
+ return n === "t" || n === "b" ? "y" : "x";
31
+ }
32
+ function A(t) {
33
+ return x(d(t));
34
+ }
35
+ function R(t, n, e) {
36
+ e === void 0 && (e = !1);
37
+ const r = a(t), i = A(t), o = b(i);
38
+ let c = i === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
39
+ return n.reference[o] > n.floating[o] && (c = f(c)), [c, f(c)];
40
+ }
41
+ function T(t) {
42
+ const n = f(t);
43
+ return [s(t), n, s(n)];
44
+ }
45
+ function s(t) {
46
+ return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
47
+ }
48
+ const u = ["left", "right"], l = ["right", "left"], P = ["top", "bottom"], y = ["bottom", "top"];
49
+ function O(t, n, e) {
50
+ switch (t) {
51
+ case "top":
52
+ case "bottom":
53
+ return e ? n ? l : u : n ? u : l;
54
+ case "left":
55
+ case "right":
56
+ return n ? P : y;
57
+ default:
58
+ return [];
59
+ }
60
+ }
61
+ function k(t, n, e, r) {
62
+ const i = a(t);
63
+ let o = O(g(t), e === "start", r);
64
+ return i && (o = o.map((c) => c + "-" + i), n && (o = o.concat(o.map(s)))), o;
65
+ }
66
+ function f(t) {
67
+ const n = g(t);
68
+ return p[n] + t.slice(n.length);
69
+ }
70
+ function M(t) {
71
+ return {
72
+ top: 0,
73
+ right: 0,
74
+ bottom: 0,
75
+ left: 0,
76
+ ...t
77
+ };
78
+ }
79
+ function q(t) {
80
+ return typeof t != "number" ? M(t) : {
81
+ top: t,
82
+ right: t,
83
+ bottom: t,
84
+ left: t
85
+ };
86
+ }
87
+ function z(t) {
88
+ const {
89
+ x: n,
90
+ y: e,
91
+ width: r,
92
+ height: i
93
+ } = t;
94
+ return {
95
+ width: r,
96
+ height: i,
97
+ top: e,
98
+ left: n,
99
+ right: n + r,
100
+ bottom: e + i,
101
+ x: n,
102
+ y: e
103
+ };
5
104
  }
6
105
  export {
7
- u as rangeOverlaps
106
+ L as clamp,
107
+ j as createCoords,
108
+ E as evaluate,
109
+ M as expandPaddingObject,
110
+ C as floor,
111
+ a as getAlignment,
112
+ A as getAlignmentAxis,
113
+ R as getAlignmentSides,
114
+ b as getAxisLength,
115
+ T as getExpandedPlacements,
116
+ s as getOppositeAlignmentPlacement,
117
+ x as getOppositeAxis,
118
+ k as getOppositeAxisPlacements,
119
+ f as getOppositePlacement,
120
+ q as getPaddingObject,
121
+ g as getSide,
122
+ d as getSideAxis,
123
+ h as max,
124
+ m as min,
125
+ z as rectToClientRect,
126
+ w as round,
127
+ S as sides
8
128
  };
9
129
  //# sourceMappingURL=index299.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index299.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\n/**\n * Determines if two date ranges overlap.\n *\n * @since 9.2.2\n * @param rangeLeft - The first date range.\n * @param rangeRight - The second date range.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the ranges overlap, otherwise `false`.\n * @group Utilities\n */\nexport function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {\n return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||\n rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));\n}\n"],"names":["rangeOverlaps","rangeLeft","rangeRight","dateLib","defaultDateLib","rangeIncludesDate"],"mappings":";;AAYO,SAASA,EAAcC,GAAWC,GAAYC,IAAUC,GAAgB;AAC3E,SAAQC,EAAkBJ,GAAWC,EAAW,MAAM,IAAOC,CAAO,KAChEE,EAAkBJ,GAAWC,EAAW,IAAI,IAAOC,CAAO,KAC1DE,EAAkBH,GAAYD,EAAU,MAAM,IAAOE,CAAO,KAC5DE,EAAkBH,GAAYD,EAAU,IAAI,IAAOE,CAAO;AAClE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index299.js","sources":["../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n const firstChar = placement[0];\n return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rlPlacement : lrPlacement;\n return isStart ? lrPlacement : rlPlacement;\n case 'left':\n case 'right':\n return isStart ? tbPlacement : btPlacement;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n const side = getSide(placement);\n return oppositeSideMap[side] + placement.slice(side.length);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"names":["sides","min","max","round","floor","createCoords","v","oppositeSideMap","clamp","start","value","end","evaluate","param","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","getSideAxis","firstChar","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","length","mainAlignmentSide","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","lrPlacement","rlPlacement","tbPlacement","btPlacement","getSideList","side","isStart","getOppositeAxisPlacements","flipAlignment","direction","list","expandPaddingObject","padding","getPaddingObject","rectToClientRect","rect","x","y","width","height"],"mappings":"AAKK,MAACA,IAAQ,CAAC,OAAO,SAAS,UAAU,MAAM,GAGzCC,IAAM,KAAK,KACXC,IAAM,KAAK,KACXC,IAAQ,KAAK,OACbC,IAAQ,KAAK,OACbC,IAAe,CAAAC,OAAM;AAAA,EACzB,GAAGA;AAAA,EACH,GAAGA;AACL,IACMC,IAAkB;AAAA,EACtB,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,KAAK;AACP;AACA,SAASC,EAAMC,GAAOC,GAAOC,GAAK;AAChC,SAAOT,EAAIO,GAAOR,EAAIS,GAAOC,CAAG,CAAC;AACnC;AACA,SAASC,EAASF,GAAOG,GAAO;AAC9B,SAAO,OAAOH,KAAU,aAAaA,EAAMG,CAAK,IAAIH;AACtD;AACA,SAASI,EAAQC,GAAW;AAC1B,SAAOA,EAAU,MAAM,GAAG,EAAE,CAAC;AAC/B;AACA,SAASC,EAAaD,GAAW;AAC/B,SAAOA,EAAU,MAAM,GAAG,EAAE,CAAC;AAC/B;AACA,SAASE,EAAgBC,GAAM;AAC7B,SAAOA,MAAS,MAAM,MAAM;AAC9B;AACA,SAASC,EAAcD,GAAM;AAC3B,SAAOA,MAAS,MAAM,WAAW;AACnC;AACA,SAASE,EAAYL,GAAW;AAC9B,QAAMM,IAAYN,EAAU,CAAC;AAC7B,SAAOM,MAAc,OAAOA,MAAc,MAAM,MAAM;AACxD;AACA,SAASC,EAAiBP,GAAW;AACnC,SAAOE,EAAgBG,EAAYL,CAAS,CAAC;AAC/C;AACA,SAASQ,EAAkBR,GAAWS,GAAOC,GAAK;AAChD,EAAIA,MAAQ,WACVA,IAAM;AAER,QAAMC,IAAYV,EAAaD,CAAS,GAClCY,IAAgBL,EAAiBP,CAAS,GAC1Ca,IAAST,EAAcQ,CAAa;AAC1C,MAAIE,IAAoBF,MAAkB,MAAMD,OAAeD,IAAM,QAAQ,WAAW,UAAU,SAASC,MAAc,UAAU,WAAW;AAC9I,SAAIF,EAAM,UAAUI,CAAM,IAAIJ,EAAM,SAASI,CAAM,MACjDC,IAAoBC,EAAqBD,CAAiB,IAErD,CAACA,GAAmBC,EAAqBD,CAAiB,CAAC;AACpE;AACA,SAASE,EAAsBhB,GAAW;AACxC,QAAMiB,IAAoBF,EAAqBf,CAAS;AACxD,SAAO,CAACkB,EAA8BlB,CAAS,GAAGiB,GAAmBC,EAA8BD,CAAiB,CAAC;AACvH;AACA,SAASC,EAA8BlB,GAAW;AAChD,SAAOA,EAAU,SAAS,OAAO,IAAIA,EAAU,QAAQ,SAAS,KAAK,IAAIA,EAAU,QAAQ,OAAO,OAAO;AAC3G;AACA,MAAMmB,IAAc,CAAC,QAAQ,OAAO,GAC9BC,IAAc,CAAC,SAAS,MAAM,GAC9BC,IAAc,CAAC,OAAO,QAAQ,GAC9BC,IAAc,CAAC,UAAU,KAAK;AACpC,SAASC,EAAYC,GAAMC,GAASf,GAAK;AACvC,UAAQc,GAAI;AAAA,IACV,KAAK;AAAA,IACL,KAAK;AACH,aAAId,IAAYe,IAAUL,IAAcD,IACjCM,IAAUN,IAAcC;AAAA,IACjC,KAAK;AAAA,IACL,KAAK;AACH,aAAOK,IAAUJ,IAAcC;AAAA,IACjC;AACE,aAAO,CAAA;AAAA,EACb;AACA;AACA,SAASI,EAA0B1B,GAAW2B,GAAeC,GAAWlB,GAAK;AAC3E,QAAMC,IAAYV,EAAaD,CAAS;AACxC,MAAI6B,IAAON,EAAYxB,EAAQC,CAAS,GAAG4B,MAAc,SAASlB,CAAG;AACrE,SAAIC,MACFkB,IAAOA,EAAK,IAAI,CAAAL,MAAQA,IAAO,MAAMb,CAAS,GAC1CgB,MACFE,IAAOA,EAAK,OAAOA,EAAK,IAAIX,CAA6B,CAAC,KAGvDW;AACT;AACA,SAASd,EAAqBf,GAAW;AACvC,QAAMwB,IAAOzB,EAAQC,CAAS;AAC9B,SAAOR,EAAgBgC,CAAI,IAAIxB,EAAU,MAAMwB,EAAK,MAAM;AAC5D;AACA,SAASM,EAAoBC,GAAS;AACpC,SAAO;AAAA,IACL,KAAK;AAAA,IACL,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,GAAGA;AAAA,EACP;AACA;AACA,SAASC,EAAiBD,GAAS;AACjC,SAAO,OAAOA,KAAY,WAAWD,EAAoBC,CAAO,IAAI;AAAA,IAClE,KAAKA;AAAA,IACL,OAAOA;AAAA,IACP,QAAQA;AAAA,IACR,MAAMA;AAAA,EACV;AACA;AACA,SAASE,EAAiBC,GAAM;AAC9B,QAAM;AAAA,IACJ,GAAAC;AAAA,IACA,GAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMJ;AACJ,SAAO;AAAA,IACL,OAAAG;AAAA,IACA,QAAAC;AAAA,IACA,KAAKF;AAAA,IACL,MAAMD;AAAA,IACN,OAAOA,IAAIE;AAAA,IACX,QAAQD,IAAIE;AAAA,IACZ,GAAAH;AAAA,IACA,GAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
package/dist/index300.js CHANGED
@@ -1,20 +1,9 @@
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;
1
+ function t(e, n, r, d) {
2
+ return e.addEventListener(n, r, d), () => {
3
+ e.removeEventListener(n, r, d);
4
+ };
16
5
  }
17
6
  export {
18
- j as getDates
7
+ t as addEventListener
19
8
  };
20
9
  //# sourceMappingURL=index300.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index300.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]}
1
+ {"version":3,"file":"index300.js","sources":["../../../node_modules/@base-ui/utils/addEventListener.mjs"],"sourcesContent":["/**\n * Adds an event listener and returns a cleanup function to remove it.\n */\n\nexport function addEventListener(target, type, listener, options) {\n target.addEventListener(type, listener, options);\n return () => {\n target.removeEventListener(type, listener, options);\n };\n}"],"names":["addEventListener","target","type","listener","options"],"mappings":"AAIO,SAASA,EAAiBC,GAAQC,GAAMC,GAAUC,GAAS;AAChE,SAAAH,EAAO,iBAAiBC,GAAMC,GAAUC,CAAO,GACxC,MAAM;AACX,IAAAH,EAAO,oBAAoBC,GAAMC,GAAUC,CAAO;AAAA,EACpD;AACF;","x_google_ignoreList":[0]}
package/dist/index301.js CHANGED
@@ -1,11 +1,69 @@
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());
1
+ import { useRefWithInit as u } from "./index256.js";
2
+ import { useOnMount as h } from "./index366.js";
3
+ const s = null;
4
+ let l = globalThis.requestAnimationFrame;
5
+ class o {
6
+ /* This implementation uses an array as a backing data-structure for frame callbacks.
7
+ * It allows `O(1)` callback cancelling by inserting a `null` in the array, though it
8
+ * never calls the native `cancelAnimationFrame` if there are no frames left. This can
9
+ * be much more efficient if there is a call pattern that alterns as
10
+ * "request-cancel-request-cancel-…".
11
+ * But in the case of "request-request-…-cancel-cancel-…", it leaves the final animation
12
+ * frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */
13
+ callbacks = [];
14
+ callbacksCount = 0;
15
+ nextId = 1;
16
+ startId = 1;
17
+ isScheduled = !1;
18
+ tick = (t) => {
19
+ this.isScheduled = !1;
20
+ const e = this.callbacks, r = this.callbacksCount;
21
+ if (this.callbacks = [], this.callbacksCount = 0, this.startId = this.nextId, r > 0)
22
+ for (let i = 0; i < e.length; i += 1)
23
+ e[i]?.(t);
24
+ };
25
+ request(t) {
26
+ const e = this.nextId;
27
+ this.nextId += 1, this.callbacks.push(t), this.callbacksCount += 1;
28
+ const r = process.env.NODE_ENV !== "production" && l !== requestAnimationFrame && (l = requestAnimationFrame, !0);
29
+ return (!this.isScheduled || r) && (requestAnimationFrame(this.tick), this.isScheduled = !0), e;
30
+ }
31
+ cancel(t) {
32
+ const e = t - this.startId;
33
+ e < 0 || e >= this.callbacks.length || (this.callbacks[e] = null, this.callbacksCount -= 1);
34
+ }
35
+ }
36
+ const c = new o();
37
+ class a {
38
+ static create() {
39
+ return new a();
40
+ }
41
+ static request(t) {
42
+ return c.request(t);
43
+ }
44
+ static cancel(t) {
45
+ return c.cancel(t);
46
+ }
47
+ currentId = s;
48
+ /**
49
+ * Executes `fn` after `delay`, clearing any previously scheduled call.
50
+ */
51
+ request(t) {
52
+ this.cancel(), this.currentId = c.request(() => {
53
+ this.currentId = s, t();
54
+ });
55
+ }
56
+ cancel = () => {
57
+ this.currentId !== s && (c.cancel(this.currentId), this.currentId = s);
58
+ };
59
+ disposeEffect = () => this.cancel;
60
+ }
61
+ function k() {
62
+ const n = u(a.create).current;
63
+ return h(n.disposeEffect), n;
7
64
  }
8
65
  export {
9
- a as getDays
66
+ a as AnimationFrame,
67
+ k as useAnimationFrame
10
68
  };
11
69
  //# sourceMappingURL=index301.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index301.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]}
1
+ {"version":3,"file":"index301.js","sources":["../../../node_modules/@base-ui/utils/useAnimationFrame.mjs"],"sourcesContent":["'use client';\n\nimport { useRefWithInit } from \"./useRefWithInit.mjs\";\nimport { useOnMount } from \"./useOnMount.mjs\";\n/** Unlike `setTimeout`, rAF doesn't guarantee a positive integer return value, so we can't have\n * a monomorphic `uint` type with `0` meaning empty.\n * See warning note at:\n * https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame#return_value */\nconst EMPTY = null;\nlet LAST_RAF = globalThis.requestAnimationFrame;\nclass Scheduler {\n /* This implementation uses an array as a backing data-structure for frame callbacks.\n * It allows `O(1)` callback cancelling by inserting a `null` in the array, though it\n * never calls the native `cancelAnimationFrame` if there are no frames left. This can\n * be much more efficient if there is a call pattern that alterns as\n * \"request-cancel-request-cancel-…\".\n * But in the case of \"request-request-…-cancel-cancel-…\", it leaves the final animation\n * frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */\n\n callbacks = [];\n callbacksCount = 0;\n nextId = 1;\n startId = 1;\n isScheduled = false;\n tick = timestamp => {\n this.isScheduled = false;\n const currentCallbacks = this.callbacks;\n const currentCallbacksCount = this.callbacksCount;\n\n // Update these before iterating, callbacks could call `requestAnimationFrame` again.\n this.callbacks = [];\n this.callbacksCount = 0;\n this.startId = this.nextId;\n if (currentCallbacksCount > 0) {\n for (let i = 0; i < currentCallbacks.length; i += 1) {\n currentCallbacks[i]?.(timestamp);\n }\n }\n };\n request(fn) {\n const id = this.nextId;\n this.nextId += 1;\n this.callbacks.push(fn);\n this.callbacksCount += 1;\n\n /* In a test environment with fake timers, a fake `requestAnimationFrame` can be called\n * but there's no guarantee that the animation frame will actually run before the fake\n * timers are teared, which leaves `isScheduled` set, but won't run our `tick()`. */\n const didRAFChange = process.env.NODE_ENV !== 'production' && LAST_RAF !== requestAnimationFrame && (LAST_RAF = requestAnimationFrame, true);\n if (!this.isScheduled || didRAFChange) {\n requestAnimationFrame(this.tick);\n this.isScheduled = true;\n }\n return id;\n }\n cancel(id) {\n const index = id - this.startId;\n if (index < 0 || index >= this.callbacks.length) {\n return;\n }\n this.callbacks[index] = null;\n this.callbacksCount -= 1;\n }\n}\nconst scheduler = new Scheduler();\nexport class AnimationFrame {\n static create() {\n return new AnimationFrame();\n }\n static request(fn) {\n return scheduler.request(fn);\n }\n static cancel(id) {\n return scheduler.cancel(id);\n }\n currentId = EMPTY;\n\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n request(fn) {\n this.cancel();\n this.currentId = scheduler.request(() => {\n this.currentId = EMPTY;\n fn();\n });\n }\n cancel = () => {\n if (this.currentId !== EMPTY) {\n scheduler.cancel(this.currentId);\n this.currentId = EMPTY;\n }\n };\n disposeEffect = () => {\n return this.cancel;\n };\n}\n\n/**\n * A `requestAnimationFrame` with automatic cleanup and guard.\n */\nexport function useAnimationFrame() {\n const timeout = useRefWithInit(AnimationFrame.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}"],"names":["EMPTY","LAST_RAF","Scheduler","timestamp","currentCallbacks","currentCallbacksCount","fn","id","didRAFChange","index","scheduler","AnimationFrame","useAnimationFrame","timeout","useRefWithInit","useOnMount"],"mappings":";;AAQA,MAAMA,IAAQ;AACd,IAAIC,IAAW,WAAW;AAC1B,MAAMC,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASd,YAAY,CAAA;AAAA,EACZ,iBAAiB;AAAA,EACjB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO,CAAAC,MAAa;AAClB,SAAK,cAAc;AACnB,UAAMC,IAAmB,KAAK,WACxBC,IAAwB,KAAK;AAMnC,QAHA,KAAK,YAAY,CAAA,GACjB,KAAK,iBAAiB,GACtB,KAAK,UAAU,KAAK,QAChBA,IAAwB;AAC1B,eAAS,IAAI,GAAG,IAAID,EAAiB,QAAQ,KAAK;AAChD,QAAAA,EAAiB,CAAC,IAAID,CAAS;AAAA,EAGrC;AAAA,EACA,QAAQG,GAAI;AACV,UAAMC,IAAK,KAAK;AAChB,SAAK,UAAU,GACf,KAAK,UAAU,KAAKD,CAAE,GACtB,KAAK,kBAAkB;AAKvB,UAAME,IAAe,QAAQ,IAAI,aAAa,gBAAgBP,MAAa,0BAA0BA,IAAW,uBAAuB;AACvI,YAAI,CAAC,KAAK,eAAeO,OACvB,sBAAsB,KAAK,IAAI,GAC/B,KAAK,cAAc,KAEdD;AAAA,EACT;AAAA,EACA,OAAOA,GAAI;AACT,UAAME,IAAQF,IAAK,KAAK;AACxB,IAAIE,IAAQ,KAAKA,KAAS,KAAK,UAAU,WAGzC,KAAK,UAAUA,CAAK,IAAI,MACxB,KAAK,kBAAkB;AAAA,EACzB;AACF;AACA,MAAMC,IAAY,IAAIR,EAAS;AACxB,MAAMS,EAAe;AAAA,EAC1B,OAAO,SAAS;AACd,WAAO,IAAIA,EAAc;AAAA,EAC3B;AAAA,EACA,OAAO,QAAQL,GAAI;AACjB,WAAOI,EAAU,QAAQJ,CAAE;AAAA,EAC7B;AAAA,EACA,OAAO,OAAOC,GAAI;AAChB,WAAOG,EAAU,OAAOH,CAAE;AAAA,EAC5B;AAAA,EACA,YAAYP;AAAA;AAAA;AAAA;AAAA,EAKZ,QAAQM,GAAI;AACV,SAAK,OAAM,GACX,KAAK,YAAYI,EAAU,QAAQ,MAAM;AACvC,WAAK,YAAYV,GACjBM,EAAE;AAAA,IACJ,CAAC;AAAA,EACH;AAAA,EACA,SAAS,MAAM;AACb,IAAI,KAAK,cAAcN,MACrBU,EAAU,OAAO,KAAK,SAAS,GAC/B,KAAK,YAAYV;AAAA,EAErB;AAAA,EACA,gBAAgB,MACP,KAAK;AAEhB;AAKO,SAASY,IAAoB;AAClC,QAAMC,IAAUC,EAAeH,EAAe,MAAM,EAAE;AACtD,SAAAI,EAAWF,EAAQ,aAAa,GACzBA;AACT;","x_google_ignoreList":[0]}
package/dist/index302.js CHANGED
@@ -1,14 +1,17 @@
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);
1
+ import { j as s } from "./index30.js";
2
+ const e = "base-ui-disable-scrollbar", r = {
3
+ className: e,
4
+ getElement(l) {
5
+ return /* @__PURE__ */ s.jsx("style", {
6
+ nonce: l,
7
+ href: e,
8
+ precedence: "base-ui:low",
9
+ children: `.${e}{scrollbar-width:none}.${e}::-webkit-scrollbar{display:none}`
10
+ });
8
11
  }
9
- return n;
10
- }
12
+ };
13
+ process.env.NODE_ENV !== "production" && (r.getElement.displayName = "styleDisableScrollbar.getElement");
11
14
  export {
12
- i as getDisplayMonths
15
+ r as styleDisableScrollbar
13
16
  };
14
17
  //# sourceMappingURL=index302.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index302.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]}
1
+ {"version":3,"file":"index302.js","sources":["../../../node_modules/@base-ui/react/utils/styles.mjs"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nconst DISABLE_SCROLLBAR_CLASS_NAME = 'base-ui-disable-scrollbar';\nexport const styleDisableScrollbar = {\n className: DISABLE_SCROLLBAR_CLASS_NAME,\n getElement(nonce) {\n return /*#__PURE__*/_jsx(\"style\", {\n nonce: nonce,\n href: DISABLE_SCROLLBAR_CLASS_NAME,\n precedence: \"base-ui:low\",\n children: `.${DISABLE_SCROLLBAR_CLASS_NAME}{scrollbar-width:none}.${DISABLE_SCROLLBAR_CLASS_NAME}::-webkit-scrollbar{display:none}`\n });\n }\n};\nif (process.env.NODE_ENV !== \"production\") styleDisableScrollbar.getElement.displayName = \"styleDisableScrollbar.getElement\";"],"names":["DISABLE_SCROLLBAR_CLASS_NAME","styleDisableScrollbar","nonce","_jsx"],"mappings":";AACA,MAAMA,IAA+B,6BACxBC,IAAwB;AAAA,EACnC,WAAWD;AAAA,EACX,WAAWE,GAAO;AAChB,WAAoBC,gBAAAA,EAAAA,IAAK,SAAS;AAAA,MAChC,OAAOD;AAAA,MACP,MAAMF;AAAA,MACN,YAAY;AAAA,MACZ,UAAU,IAAIA,CAA4B,0BAA0BA,CAA4B;AAAA,IACtG,CAAK;AAAA,EACH;AACF;AACI,QAAQ,IAAI,aAAa,iBAAcC,EAAsB,WAAW,cAAc;","x_google_ignoreList":[0]}
package/dist/index303.js CHANGED
@@ -1,14 +1,11 @@
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);
1
+ import * as o from "react";
2
+ const t = /* @__PURE__ */ o.createContext(void 0);
3
+ process.env.NODE_ENV !== "production" && (t.displayName = "ToolbarRootContext");
4
+ function r(e) {
5
+ return o.useContext(t);
10
6
  }
11
7
  export {
12
- u as getInitialMonth
8
+ t as ToolbarRootContext,
9
+ r as useToolbarRootContext
13
10
  };
14
11
  //# sourceMappingURL=index303.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index303.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]}
1
+ {"version":3,"file":"index303.js","sources":["../../../node_modules/@base-ui/react/toolbar/root/ToolbarRootContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const ToolbarRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") ToolbarRootContext.displayName = \"ToolbarRootContext\";\nexport function useToolbarRootContext(optional) {\n const context = React.useContext(ToolbarRootContext);\n if (context === undefined && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.' : _formatErrorMessage(69));\n }\n return context;\n}"],"names":["ToolbarRootContext","React","useToolbarRootContext","optional"],"mappings":";AAIY,MAACA,IAAkC,gBAAAC,EAAM,cAAc,MAAS;AACxE,QAAQ,IAAI,aAAa,iBAAcD,EAAmB,cAAc;AACrE,SAASE,EAAsBC,GAAU;AAK9C,SAJgBF,EAAM,WAAWD,CAAkB;AAKrD;","x_google_ignoreList":[0]}
package/dist/index304.js CHANGED
@@ -1,25 +1,9 @@
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;
1
+ import { EMPTY_OBJECT as r } from "./index264.js";
2
+ import { DISABLED_TRANSITIONS_STYLE as o } from "./index191.js";
3
+ function T(t) {
4
+ return t === "starting" ? o : r;
21
5
  }
22
6
  export {
23
- j as getMonths
7
+ T as getDisabledMountTransitionStyles
24
8
  };
25
9
  //# sourceMappingURL=index304.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index304.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]}
1
+ {"version":3,"file":"index304.js","sources":["../../../node_modules/@base-ui/react/utils/getDisabledMountTransitionStyles.mjs"],"sourcesContent":["import { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { DISABLED_TRANSITIONS_STYLE } from \"../internals/constants.mjs\";\nexport function getDisabledMountTransitionStyles(transitionStatus) {\n return transitionStatus === 'starting' ? DISABLED_TRANSITIONS_STYLE : EMPTY_OBJECT;\n}"],"names":["getDisabledMountTransitionStyles","transitionStatus","DISABLED_TRANSITIONS_STYLE","EMPTY_OBJECT"],"mappings":";;AAEO,SAASA,EAAiCC,GAAkB;AACjE,SAAOA,MAAqB,aAAaC,IAA6BC;AACxE;","x_google_ignoreList":[0]}
package/dist/index305.js CHANGED
@@ -1,12 +1,7 @@
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
- ];
1
+ function t(E, m = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
2
+ return Math.max(m, Math.min(E, r));
8
3
  }
9
4
  export {
10
- c as getNavMonths
5
+ t as clamp
11
6
  };
12
7
  //# sourceMappingURL=index305.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index305.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]}
1
+ {"version":3,"file":"index305.js","sources":["../../../node_modules/@base-ui/react/internals/clamp.mjs"],"sourcesContent":["export function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}"],"names":["clamp","val","min","max"],"mappings":"AAAO,SAASA,EAAMC,GAAKC,IAAM,OAAO,kBAAkBC,IAAM,OAAO,kBAAkB;AACvF,SAAO,KAAK,IAAID,GAAK,KAAK,IAAID,GAAKE,CAAG,CAAC;AACzC;","x_google_ignoreList":[0]}
package/dist/index306.js CHANGED
@@ -1,13 +1,14 @@
1
- function h(n, t, e, s) {
2
- if (e.disableNavigation)
3
- return;
4
- const { pagedNavigation: u, numberOfMonths: f = 1 } = e, { startOfMonth: a, addMonths: o, differenceInCalendarMonths: d } = s, i = u ? f : 1, r = a(n);
5
- if (!t)
6
- return o(r, i);
7
- if (!(d(t, n) < f))
8
- return o(r, i);
1
+ import * as e from "react";
2
+ const t = /* @__PURE__ */ e.createContext(void 0);
3
+ process.env.NODE_ENV !== "production" && (t.displayName = "CSPContext");
4
+ const n = {
5
+ disableStyleElements: !1
6
+ };
7
+ function o() {
8
+ return e.useContext(t) ?? n;
9
9
  }
10
10
  export {
11
- h as getNextMonth
11
+ t as CSPContext,
12
+ o as useCSPContext
12
13
  };
13
14
  //# sourceMappingURL=index306.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index306.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js"],"sourcesContent":["/**\n * Returns the next month the user can navigate to, based on the given options.\n *\n * The next month is not always the next calendar month:\n *\n * - If it is after the `calendarEndMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips forward by the number of displayed\n * months.\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 options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next month, or `undefined` if navigation is not possible.\n */\nexport function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths = 1 } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? numberOfMonths : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarEndMonth) {\n return addMonths(month, offset);\n }\n const monthsDiff = differenceInCalendarMonths(calendarEndMonth, firstDisplayedMonth);\n if (monthsDiff < numberOfMonths) {\n return undefined;\n }\n return addMonths(month, offset);\n}\n"],"names":["getNextMonth","firstDisplayedMonth","calendarEndMonth","options","dateLib","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month"],"mappings":"AAiBO,SAASA,EAAaC,GAAqBC,GAAkBC,GAASC,GAAS;AAClF,MAAID,EAAQ;AACR;AAEJ,QAAM,EAAE,iBAAAE,GAAiB,gBAAAC,IAAiB,EAAC,IAAKH,GAC1C,EAAE,cAAAI,GAAc,WAAAC,GAAW,4BAAAC,EAA0B,IAAKL,GAC1DM,IAASL,IAAkBC,IAAiB,GAC5CK,IAAQJ,EAAaN,CAAmB;AAC9C,MAAI,CAACC;AACD,WAAOM,EAAUG,GAAOD,CAAM;AAGlC,MAAI,EADeD,EAA2BP,GAAkBD,CAAmB,IAClEK;AAGjB,WAAOE,EAAUG,GAAOD,CAAM;AAClC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index306.js","sources":["../../../node_modules/@base-ui/react/internals/csp-context/CSPContext.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n/**\n * @internal\n */\nexport const CSPContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") CSPContext.displayName = \"CSPContext\";\nconst DEFAULT_CSP_CONTEXT_VALUE = {\n disableStyleElements: false\n};\n\n/**\n * @internal\n */\nexport function useCSPContext() {\n return React.useContext(CSPContext) ?? DEFAULT_CSP_CONTEXT_VALUE;\n}"],"names":["CSPContext","React","DEFAULT_CSP_CONTEXT_VALUE","useCSPContext"],"mappings":";AAMY,MAACA,IAA0B,gBAAAC,EAAM,cAAc,MAAS;AAChE,QAAQ,IAAI,aAAa,iBAAcD,EAAW,cAAc;AACpE,MAAME,IAA4B;AAAA,EAChC,sBAAsB;AACxB;AAKO,SAASC,IAAgB;AAC9B,SAAOF,EAAM,WAAWD,CAAU,KAAKE;AACzC;","x_google_ignoreList":[0]}
package/dist/index307.js CHANGED
@@ -1,13 +1,11 @@
1
- function c(i, t, e, s) {
2
- if (e.disableNavigation)
3
- return;
4
- const { pagedNavigation: r, numberOfMonths: d } = e, { startOfMonth: u, addMonths: f, differenceInCalendarMonths: a } = s, o = r ? d ?? 1 : 1, n = u(i);
5
- if (!t)
6
- return f(n, -o);
7
- if (!(a(n, t) <= 0))
8
- return f(n, -o);
1
+ import * as t from "react";
2
+ const e = /* @__PURE__ */ t.createContext(void 0);
3
+ process.env.NODE_ENV !== "production" && (e.displayName = "DirectionContext");
4
+ function o() {
5
+ return t.useContext(e)?.direction ?? "ltr";
9
6
  }
10
7
  export {
11
- c as getPreviousMonth
8
+ e as DirectionContext,
9
+ o as useDirection
12
10
  };
13
11
  //# sourceMappingURL=index307.js.map