@rpcbase/ui 0.225.0 → 0.227.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 (612) hide show
  1. package/dist/components/PhoneNumberInput/index.d.ts +1 -1
  2. package/dist/components/PhoneNumberInput/index.d.ts.map +1 -1
  3. package/dist/components/PhoneNumberInput/normalization.d.ts +0 -28
  4. package/dist/components/PhoneNumberInput/normalization.d.ts.map +1 -1
  5. package/dist/components/PhoneNumberInput/suggestions.d.ts.map +1 -1
  6. package/dist/components/PhoneNumberInput/types.d.ts +4 -4
  7. package/dist/components/PhoneNumberInput/types.d.ts.map +1 -1
  8. package/dist/index106.js +36 -36
  9. package/dist/index118.js +6 -6
  10. package/dist/index121.js +10 -10
  11. package/dist/index123.js +2 -2
  12. package/dist/index124.js +3 -3
  13. package/dist/index125.js +1 -1
  14. package/dist/index127.js +2 -2
  15. package/dist/index129.js +2 -2
  16. package/dist/index150.js +11 -5
  17. package/dist/index150.js.map +1 -1
  18. package/dist/index151.js +63 -63
  19. package/dist/index151.js.map +1 -1
  20. package/dist/index152.js +38 -2
  21. package/dist/index152.js.map +1 -1
  22. package/dist/index153.js +13 -363
  23. package/dist/index153.js.map +1 -1
  24. package/dist/index154.js +23 -261
  25. package/dist/index154.js.map +1 -1
  26. package/dist/index155.js +108 -58
  27. package/dist/index155.js.map +1 -1
  28. package/dist/index156.js +13 -47
  29. package/dist/index156.js.map +1 -1
  30. package/dist/index157.js +4 -169
  31. package/dist/index157.js.map +1 -1
  32. package/dist/index158.js +4 -110
  33. package/dist/index158.js.map +1 -1
  34. package/dist/index159.js +5 -25
  35. package/dist/index159.js.map +1 -1
  36. package/dist/index160.js +12 -8
  37. package/dist/index160.js.map +1 -1
  38. package/dist/index161.js +19 -4
  39. package/dist/index161.js.map +1 -1
  40. package/dist/index162.js +13 -6
  41. package/dist/index162.js.map +1 -1
  42. package/dist/index163.js +261 -4
  43. package/dist/index163.js.map +1 -1
  44. package/dist/index164.js +4 -466
  45. package/dist/index164.js.map +1 -1
  46. package/dist/index165.js +27 -185
  47. package/dist/index165.js.map +1 -1
  48. package/dist/index166.js +124 -105
  49. package/dist/index166.js.map +1 -1
  50. package/dist/index167.js +5 -262
  51. package/dist/index167.js.map +1 -1
  52. package/dist/index168.js +78 -9
  53. package/dist/index168.js.map +1 -1
  54. package/dist/index169.js +63 -39
  55. package/dist/index169.js.map +1 -1
  56. package/dist/index170.js +8 -4
  57. package/dist/index170.js.map +1 -1
  58. package/dist/index171.js +16 -12
  59. package/dist/index171.js.map +1 -1
  60. package/dist/index172.js +89 -65
  61. package/dist/index172.js.map +1 -1
  62. package/dist/index173.js +66 -38
  63. package/dist/index173.js.map +1 -1
  64. package/dist/index174.js +45 -13
  65. package/dist/index174.js.map +1 -1
  66. package/dist/index175.js +5 -23
  67. package/dist/index175.js.map +1 -1
  68. package/dist/index176.js +66 -108
  69. package/dist/index176.js.map +1 -1
  70. package/dist/index177.js +2 -13
  71. package/dist/index177.js.map +1 -1
  72. package/dist/index178.js +363 -4
  73. package/dist/index178.js.map +1 -1
  74. package/dist/index179.js +262 -4
  75. package/dist/index179.js.map +1 -1
  76. package/dist/index18.js +383 -401
  77. package/dist/index18.js.map +1 -1
  78. package/dist/index180.js +61 -5
  79. package/dist/index180.js.map +1 -1
  80. package/dist/index181.js +46 -11
  81. package/dist/index181.js.map +1 -1
  82. package/dist/index182.js +168 -18
  83. package/dist/index182.js.map +1 -1
  84. package/dist/index183.js +110 -13
  85. package/dist/index183.js.map +1 -1
  86. package/dist/index184.js +24 -261
  87. package/dist/index184.js.map +1 -1
  88. package/dist/index185.js +8 -5
  89. package/dist/index185.js.map +1 -1
  90. package/dist/index186.js +5 -28
  91. package/dist/index186.js.map +1 -1
  92. package/dist/index187.js +5 -126
  93. package/dist/index187.js.map +1 -1
  94. package/dist/index188.js +4 -5
  95. package/dist/index188.js.map +1 -1
  96. package/dist/index189.js +465 -77
  97. package/dist/index189.js.map +1 -1
  98. package/dist/index190.js +181 -62
  99. package/dist/index190.js.map +1 -1
  100. package/dist/index191.js +107 -8
  101. package/dist/index191.js.map +1 -1
  102. package/dist/index192.js +262 -15
  103. package/dist/index192.js.map +1 -1
  104. package/dist/index193.js +8 -91
  105. package/dist/index193.js.map +1 -1
  106. package/dist/index194.js +42 -65
  107. package/dist/index194.js.map +1 -1
  108. package/dist/index195.js +4 -45
  109. package/dist/index195.js.map +1 -1
  110. package/dist/index196.js +20 -59
  111. package/dist/index196.js.map +1 -1
  112. package/dist/index197.js +66 -8
  113. package/dist/index197.js.map +1 -1
  114. package/dist/index198.js +6 -66
  115. package/dist/index198.js.map +1 -1
  116. package/dist/index199.js +11 -19
  117. package/dist/index199.js.map +1 -1
  118. package/dist/index200.js +48 -14
  119. package/dist/index200.js.map +1 -1
  120. package/dist/index201.js +4 -6
  121. package/dist/index201.js.map +1 -1
  122. package/dist/index202.js +29 -5
  123. package/dist/index202.js.map +1 -1
  124. package/dist/index203.js +16 -6
  125. package/dist/index203.js.map +1 -1
  126. package/dist/index204.js +5 -4
  127. package/dist/index204.js.map +1 -1
  128. package/dist/index205.js +21 -6
  129. package/dist/index205.js.map +1 -1
  130. package/dist/index206.js +51 -16
  131. package/dist/index206.js.map +1 -1
  132. package/dist/index207.js +25 -4
  133. package/dist/index207.js.map +1 -1
  134. package/dist/index208.js +41 -4
  135. package/dist/index208.js.map +1 -1
  136. package/dist/index209.js +39 -12
  137. package/dist/index209.js.map +1 -1
  138. package/dist/index210.js +45 -10
  139. package/dist/index210.js.map +1 -1
  140. package/dist/index211.js +20 -13
  141. package/dist/index211.js.map +1 -1
  142. package/dist/index212.js +70 -13
  143. package/dist/index212.js.map +1 -1
  144. package/dist/index213.js +17 -4
  145. package/dist/index213.js.map +1 -1
  146. package/dist/index214.js +11 -5
  147. package/dist/index214.js.map +1 -1
  148. package/dist/index215.js +27 -6
  149. package/dist/index215.js.map +1 -1
  150. package/dist/index216.js +13 -5
  151. package/dist/index216.js.map +1 -1
  152. package/dist/index217.js +17 -53
  153. package/dist/index217.js.map +1 -1
  154. package/dist/index218.js +36 -8
  155. package/dist/index218.js.map +1 -1
  156. package/dist/index219.js +262 -4
  157. package/dist/index219.js.map +1 -1
  158. package/dist/index220.js +278 -4
  159. package/dist/index220.js.map +1 -1
  160. package/dist/index221.js +68 -8
  161. package/dist/index221.js.map +1 -1
  162. package/dist/index222.js +99 -4
  163. package/dist/index222.js.map +1 -1
  164. package/dist/index223.js +83 -4
  165. package/dist/index223.js.map +1 -1
  166. package/dist/index224.js +3 -3
  167. package/dist/index224.js.map +1 -1
  168. package/dist/index225.js +29 -10
  169. package/dist/index225.js.map +1 -1
  170. package/dist/index226.js +16 -9
  171. package/dist/index226.js.map +1 -1
  172. package/dist/index227.js +35 -10
  173. package/dist/index227.js.map +1 -1
  174. package/dist/index228.js +16 -10
  175. package/dist/index228.js.map +1 -1
  176. package/dist/index229.js +3 -10
  177. package/dist/index229.js.map +1 -1
  178. package/dist/index230.js +26 -9
  179. package/dist/index230.js.map +1 -1
  180. package/dist/index231.js +28 -6
  181. package/dist/index231.js.map +1 -1
  182. package/dist/index232.js +4 -6
  183. package/dist/index232.js.map +1 -1
  184. package/dist/index233.js +78 -4
  185. package/dist/index233.js.map +1 -1
  186. package/dist/index234.js +269 -5
  187. package/dist/index234.js.map +1 -1
  188. package/dist/index235.js +11 -6
  189. package/dist/index235.js.map +1 -1
  190. package/dist/index236.js +10 -5
  191. package/dist/index236.js.map +1 -1
  192. package/dist/index237.js +25 -29
  193. package/dist/index237.js.map +1 -1
  194. package/dist/index238.js +16 -12
  195. package/dist/index238.js.map +1 -1
  196. package/dist/index239.js +124 -24
  197. package/dist/index239.js.map +1 -1
  198. package/dist/index240.js +5 -5
  199. package/dist/index240.js.map +1 -1
  200. package/dist/index241.js +40 -16
  201. package/dist/index241.js.map +1 -1
  202. package/dist/index242.js +65 -7
  203. package/dist/index242.js.map +1 -1
  204. package/dist/index243.js +13 -10
  205. package/dist/index243.js.map +1 -1
  206. package/dist/index244.js +7 -10
  207. package/dist/index244.js.map +1 -1
  208. package/dist/index245.js +5 -21
  209. package/dist/index245.js.map +1 -1
  210. package/dist/index246.js +3 -10
  211. package/dist/index246.js.map +1 -1
  212. package/dist/index247.js +10 -9
  213. package/dist/index247.js.map +1 -1
  214. package/dist/index248.js +7 -9
  215. package/dist/index248.js.map +1 -1
  216. package/dist/index249.js +133 -4
  217. package/dist/index249.js.map +1 -1
  218. package/dist/index250.js +399 -5
  219. package/dist/index250.js.map +1 -1
  220. package/dist/index251.js +52 -16
  221. package/dist/index251.js.map +1 -1
  222. package/dist/index252.js +11 -9
  223. package/dist/index252.js.map +1 -1
  224. package/dist/index253.js +11 -18
  225. package/dist/index253.js.map +1 -1
  226. package/dist/index254.js +58 -15
  227. package/dist/index254.js.map +1 -1
  228. package/dist/index255.js +8 -12
  229. package/dist/index255.js.map +1 -1
  230. package/dist/index256.js +65 -12
  231. package/dist/index256.js.map +1 -1
  232. package/dist/index257.js +17 -152
  233. package/dist/index257.js.map +1 -1
  234. package/dist/index258.js +15 -29
  235. package/dist/index258.js.map +1 -1
  236. package/dist/index259.js +5 -9
  237. package/dist/index259.js.map +1 -1
  238. package/dist/index260.js +4 -47
  239. package/dist/index260.js.map +1 -1
  240. package/dist/index261.js +6 -11
  241. package/dist/index261.js.map +1 -1
  242. package/dist/index262.js +4 -44
  243. package/dist/index262.js.map +1 -1
  244. package/dist/index263.js +6 -95
  245. package/dist/index263.js.map +1 -1
  246. package/dist/index264.js +16 -86
  247. package/dist/index264.js.map +1 -1
  248. package/dist/index265.js +4 -105
  249. package/dist/index265.js.map +1 -1
  250. package/dist/index266.js +4 -52
  251. package/dist/index266.js.map +1 -1
  252. package/dist/index267.js +12 -11
  253. package/dist/index267.js.map +1 -1
  254. package/dist/index268.js +9 -37
  255. package/dist/index268.js.map +1 -1
  256. package/dist/index269.js +13 -8
  257. package/dist/index269.js.map +1 -1
  258. package/dist/index270.js +13 -116
  259. package/dist/index270.js.map +1 -1
  260. package/dist/index271.js +4 -17
  261. package/dist/index271.js.map +1 -1
  262. package/dist/index272.js +5 -15
  263. package/dist/index272.js.map +1 -1
  264. package/dist/index273.js +6 -3
  265. package/dist/index273.js.map +1 -1
  266. package/dist/index274.js +5 -36
  267. package/dist/index274.js.map +1 -1
  268. package/dist/index275.js +53 -19
  269. package/dist/index275.js.map +1 -1
  270. package/dist/index276.js +8 -9
  271. package/dist/index276.js.map +1 -1
  272. package/dist/index277.js +4 -8
  273. package/dist/index277.js.map +1 -1
  274. package/dist/index278.js +4 -19
  275. package/dist/index278.js.map +1 -1
  276. package/dist/index279.js +8 -28
  277. package/dist/index279.js.map +1 -1
  278. package/dist/index280.js +4 -16
  279. package/dist/index280.js.map +1 -1
  280. package/dist/index281.js +4 -66
  281. package/dist/index281.js.map +1 -1
  282. package/dist/index282.js +3 -8
  283. package/dist/index282.js.map +1 -1
  284. package/dist/index283.js +10 -11
  285. package/dist/index283.js.map +1 -1
  286. package/dist/index284.js +9 -8
  287. package/dist/index284.js.map +1 -1
  288. package/dist/index285.js +9 -5
  289. package/dist/index285.js.map +1 -1
  290. package/dist/index286.js +10 -13
  291. package/dist/index286.js.map +1 -1
  292. package/dist/index287.js +10 -3
  293. package/dist/index287.js.map +1 -1
  294. package/dist/index288.js +9 -3
  295. package/dist/index288.js.map +1 -1
  296. package/dist/index289.js +6 -99
  297. package/dist/index289.js.map +1 -1
  298. package/dist/index290.js +5 -17
  299. package/dist/index290.js.map +1 -1
  300. package/dist/index291.js +4 -5
  301. package/dist/index291.js.map +1 -1
  302. package/dist/index292.js +5 -29
  303. package/dist/index292.js.map +1 -1
  304. package/dist/index293.js +6 -51
  305. package/dist/index293.js.map +1 -1
  306. package/dist/index294.js +5 -133
  307. package/dist/index294.js.map +1 -1
  308. package/dist/index295.js +15 -7
  309. package/dist/index295.js.map +1 -1
  310. package/dist/index296.js +8 -5
  311. package/dist/index296.js.map +1 -1
  312. package/dist/index297.js +11 -4
  313. package/dist/index297.js.map +1 -1
  314. package/dist/index298.js +10 -11
  315. package/dist/index298.js.map +1 -1
  316. package/dist/index299.js +21 -21
  317. package/dist/index299.js.map +1 -1
  318. package/dist/index300.js +10 -122
  319. package/dist/index300.js.map +1 -1
  320. package/dist/index301.js +9 -27
  321. package/dist/index301.js.map +1 -1
  322. package/dist/index302.js +9 -32
  323. package/dist/index302.js.map +1 -1
  324. package/dist/index303.js +4 -73
  325. package/dist/index303.js.map +1 -1
  326. package/dist/index304.js +5 -262
  327. package/dist/index304.js.map +1 -1
  328. package/dist/index305.js +14 -26
  329. package/dist/index305.js.map +1 -1
  330. package/dist/index306.js +9 -6
  331. package/dist/index306.js.map +1 -1
  332. package/dist/index307.js +18 -142
  333. package/dist/index307.js.map +1 -1
  334. package/dist/index308.js +15 -61
  335. package/dist/index308.js.map +1 -1
  336. package/dist/index309.js +10 -47
  337. package/dist/index309.js.map +1 -1
  338. package/dist/index310.js +28 -13
  339. package/dist/index310.js.map +1 -1
  340. package/dist/index311.js +13 -20
  341. package/dist/index311.js.map +1 -1
  342. package/dist/index312.js +25 -11
  343. package/dist/index312.js.map +1 -1
  344. package/dist/index313.js +5 -50
  345. package/dist/index313.js.map +1 -1
  346. package/dist/index314.js +8 -16
  347. package/dist/index314.js.map +1 -1
  348. package/dist/index315.js +11 -21
  349. package/dist/index315.js.map +1 -1
  350. package/dist/index316.js +7 -50
  351. package/dist/index316.js.map +1 -1
  352. package/dist/index317.js +13 -25
  353. package/dist/index317.js.map +1 -1
  354. package/dist/index318.js +3 -41
  355. package/dist/index318.js.map +1 -1
  356. package/dist/index319.js +3 -39
  357. package/dist/index319.js.map +1 -1
  358. package/dist/index320.js +18 -45
  359. package/dist/index320.js.map +1 -1
  360. package/dist/index321.js +5 -20
  361. package/dist/index321.js.map +1 -1
  362. package/dist/index322.js +49 -68
  363. package/dist/index322.js.map +1 -1
  364. package/dist/index323.js +119 -14
  365. package/dist/index323.js.map +1 -1
  366. package/dist/index324.js +32 -11
  367. package/dist/index324.js.map +1 -1
  368. package/dist/index325.js +73 -13
  369. package/dist/index325.js.map +1 -1
  370. package/dist/index326.js +142 -18
  371. package/dist/index326.js.map +1 -1
  372. package/dist/index327.js +61 -36
  373. package/dist/index327.js.map +1 -1
  374. package/dist/index328.js +49 -278
  375. package/dist/index328.js.map +1 -1
  376. package/dist/index329.js +15 -69
  377. package/dist/index329.js.map +1 -1
  378. package/dist/index330.js +7 -82
  379. package/dist/index330.js.map +1 -1
  380. package/dist/index331.js +5 -4
  381. package/dist/index331.js.map +1 -1
  382. package/dist/index332.js +11 -29
  383. package/dist/index332.js.map +1 -1
  384. package/dist/index333.js +21 -16
  385. package/dist/index333.js.map +1 -1
  386. package/dist/index334.js +14 -35
  387. package/dist/index334.js.map +1 -1
  388. package/dist/index335.js +154 -16
  389. package/dist/index335.js.map +1 -1
  390. package/dist/index336.js +30 -3
  391. package/dist/index336.js.map +1 -1
  392. package/dist/index337.js +9 -26
  393. package/dist/index337.js.map +1 -1
  394. package/dist/index338.js +49 -4
  395. package/dist/index338.js.map +1 -1
  396. package/dist/index339.js +10 -77
  397. package/dist/index339.js.map +1 -1
  398. package/dist/index34.js +4 -4
  399. package/dist/index340.js +43 -268
  400. package/dist/index340.js.map +1 -1
  401. package/dist/index341.js +95 -11
  402. package/dist/index341.js.map +1 -1
  403. package/dist/index342.js +87 -11
  404. package/dist/index342.js.map +1 -1
  405. package/dist/index343.js +104 -24
  406. package/dist/index343.js.map +1 -1
  407. package/dist/index344.js +52 -16
  408. package/dist/index344.js.map +1 -1
  409. package/dist/index345.js +10 -124
  410. package/dist/index345.js.map +1 -1
  411. package/dist/index346.js +37 -5
  412. package/dist/index346.js.map +1 -1
  413. package/dist/index347.js +7 -39
  414. package/dist/index347.js.map +1 -1
  415. package/dist/index348.js +108 -57
  416. package/dist/index348.js.map +1 -1
  417. package/dist/index349.js +18 -14
  418. package/dist/index349.js.map +1 -1
  419. package/dist/index35.js +5 -5
  420. package/dist/index350.js +15 -7
  421. package/dist/index350.js.map +1 -1
  422. package/dist/index351.js +3 -5
  423. package/dist/index351.js.map +1 -1
  424. package/dist/index352.js +36 -3
  425. package/dist/index352.js.map +1 -1
  426. package/dist/index353.js +20 -10
  427. package/dist/index353.js.map +1 -1
  428. package/dist/index354.js +9 -7
  429. package/dist/index354.js.map +1 -1
  430. package/dist/index355.js +7 -398
  431. package/dist/index355.js.map +1 -1
  432. package/dist/index356.js +18 -51
  433. package/dist/index356.js.map +1 -1
  434. package/dist/index357.js +28 -11
  435. package/dist/index357.js.map +1 -1
  436. package/dist/index358.js +16 -11
  437. package/dist/index358.js.map +1 -1
  438. package/dist/index359.js +4 -5
  439. package/dist/index359.js.map +1 -1
  440. package/dist/index36.js +10 -10
  441. package/dist/index360.js +11 -17
  442. package/dist/index360.js.map +1 -1
  443. package/dist/index361.js +16 -12
  444. package/dist/index361.js.map +1 -1
  445. package/dist/index362.js +5 -20
  446. package/dist/index362.js.map +1 -1
  447. package/dist/index363.js +20 -8
  448. package/dist/index363.js.map +1 -1
  449. package/dist/index364.js +44 -25
  450. package/dist/index364.js.map +1 -1
  451. package/dist/index365.js +18 -27
  452. package/dist/index365.js.map +1 -1
  453. package/dist/index366.js +5 -138
  454. package/dist/index366.js.map +1 -1
  455. package/dist/index367.js +199 -11
  456. package/dist/index367.js.map +1 -1
  457. package/dist/index368.js +75 -224
  458. package/dist/index368.js.map +1 -1
  459. package/dist/index369.js +4 -3
  460. package/dist/index369.js.map +1 -1
  461. package/dist/index37.js +3 -3
  462. package/dist/index370.js +18 -20
  463. package/dist/index370.js.map +1 -1
  464. package/dist/index371.js +12 -77
  465. package/dist/index371.js.map +1 -1
  466. package/dist/index372.js +9 -12
  467. package/dist/index372.js.map +1 -1
  468. package/dist/index373.js +26 -4
  469. package/dist/index373.js.map +1 -1
  470. package/dist/index374.js +26 -77
  471. package/dist/index374.js.map +1 -1
  472. package/dist/index375.js +134 -197
  473. package/dist/index375.js.map +1 -1
  474. package/dist/index376.js +11 -70
  475. package/dist/index376.js.map +1 -1
  476. package/dist/index377.js +227 -9
  477. package/dist/index377.js.map +1 -1
  478. package/dist/index378.js +3 -15
  479. package/dist/index378.js.map +1 -1
  480. package/dist/index379.js +18 -15
  481. package/dist/index379.js.map +1 -1
  482. package/dist/index38.js +4 -4
  483. package/dist/index380.js +78 -4
  484. package/dist/index380.js.map +1 -1
  485. package/dist/index381.js +12 -12
  486. package/dist/index381.js.map +1 -1
  487. package/dist/index382.js +3 -5
  488. package/dist/index382.js.map +1 -1
  489. package/dist/index383.js +70 -19
  490. package/dist/index383.js.map +1 -1
  491. package/dist/index384.js +9 -45
  492. package/dist/index384.js.map +1 -1
  493. package/dist/index385.js +16 -18
  494. package/dist/index385.js.map +1 -1
  495. package/dist/index386.js +21 -5
  496. package/dist/index386.js.map +1 -1
  497. package/dist/index387.js +3 -5
  498. package/dist/index387.js.map +1 -1
  499. package/dist/index388.js +3 -5
  500. package/dist/index388.js.map +1 -1
  501. package/dist/index389.js +5 -4
  502. package/dist/index389.js.map +1 -1
  503. package/dist/index39.js +5 -5
  504. package/dist/index390.js +4 -15
  505. package/dist/index390.js.map +1 -1
  506. package/dist/index391.js +4 -9
  507. package/dist/index391.js.map +1 -1
  508. package/dist/index392.js +15 -5
  509. package/dist/index392.js.map +1 -1
  510. package/dist/index393.js +8 -4
  511. package/dist/index393.js.map +1 -1
  512. package/dist/index394.js +5 -545
  513. package/dist/index394.js.map +1 -1
  514. package/dist/index395.js +5 -47
  515. package/dist/index395.js.map +1 -1
  516. package/dist/index396.js +543 -15
  517. package/dist/index396.js.map +1 -1
  518. package/dist/index397.js +47 -6
  519. package/dist/index397.js.map +1 -1
  520. package/dist/index398.js +17 -7
  521. package/dist/index398.js.map +1 -1
  522. package/dist/index399.js +5 -6
  523. package/dist/index399.js.map +1 -1
  524. package/dist/index40.js +3 -3
  525. package/dist/index400.js +7 -7
  526. package/dist/index400.js.map +1 -1
  527. package/dist/index401.js +6 -11
  528. package/dist/index401.js.map +1 -1
  529. package/dist/index402.js +7 -8
  530. package/dist/index402.js.map +1 -1
  531. package/dist/index403.js +11 -12
  532. package/dist/index403.js.map +1 -1
  533. package/dist/index404.js +8 -14
  534. package/dist/index404.js.map +1 -1
  535. package/dist/index405.js +12 -491
  536. package/dist/index405.js.map +1 -1
  537. package/dist/index406.js +15 -3
  538. package/dist/index406.js.map +1 -1
  539. package/dist/index407.js +492 -3
  540. package/dist/index407.js.map +1 -1
  541. package/dist/index408.js +7 -4
  542. package/dist/index408.js.map +1 -1
  543. package/dist/index409.js +2 -56
  544. package/dist/index409.js.map +1 -1
  545. package/dist/index41.js +10 -10
  546. package/dist/index410.js +43 -67
  547. package/dist/index410.js.map +1 -1
  548. package/dist/index411.js +56 -31
  549. package/dist/index411.js.map +1 -1
  550. package/dist/index412.js +8 -9
  551. package/dist/index412.js.map +1 -1
  552. package/dist/index413.js +2 -153
  553. package/dist/index413.js.map +1 -1
  554. package/dist/index414.js +54 -107
  555. package/dist/index414.js.map +1 -1
  556. package/dist/index415.js +55 -7
  557. package/dist/index415.js.map +1 -1
  558. package/dist/index416.js +5 -2
  559. package/dist/index416.js.map +1 -1
  560. package/dist/index417.js +54 -42
  561. package/dist/index417.js.map +1 -1
  562. package/dist/index418.js +68 -56
  563. package/dist/index418.js.map +1 -1
  564. package/dist/index419.js +31 -8
  565. package/dist/index419.js.map +1 -1
  566. package/dist/index420.js +9 -2
  567. package/dist/index420.js.map +1 -1
  568. package/dist/index421.js +152 -54
  569. package/dist/index421.js.map +1 -1
  570. package/dist/index422.js +108 -56
  571. package/dist/index422.js.map +1 -1
  572. package/dist/index423.js +2 -16
  573. package/dist/index423.js.map +1 -1
  574. package/dist/index424.js +2 -29
  575. package/dist/index424.js.map +1 -1
  576. package/dist/index425.js +2 -13
  577. package/dist/index425.js.map +1 -1
  578. package/dist/index426.js +2 -7
  579. package/dist/index426.js.map +1 -1
  580. package/dist/index427.js +16 -2
  581. package/dist/index427.js.map +1 -1
  582. package/dist/index428.js +29 -2
  583. package/dist/index428.js.map +1 -1
  584. package/dist/index429.js +13 -2
  585. package/dist/index429.js.map +1 -1
  586. package/dist/index430.js +7 -2
  587. package/dist/index430.js.map +1 -1
  588. package/dist/index44.js +22 -21
  589. package/dist/index44.js.map +1 -1
  590. package/dist/index45.js +22 -196
  591. package/dist/index45.js.map +1 -1
  592. package/dist/index47.js +48 -40
  593. package/dist/index47.js.map +1 -1
  594. package/dist/index48.js +2 -2
  595. package/dist/index49.js +34 -34
  596. package/dist/index50.js +29 -29
  597. package/dist/index51.js +2 -2
  598. package/dist/index52.js +12 -12
  599. package/dist/index53.js +4 -4
  600. package/dist/index54.js +1 -1
  601. package/dist/index55.js +22 -22
  602. package/dist/index56.js +5 -5
  603. package/dist/index57.js +5 -5
  604. package/dist/index58.js +8 -8
  605. package/dist/index59.js +5 -5
  606. package/dist/index60.js +17 -17
  607. package/dist/index61.js +5 -5
  608. package/dist/index62.js +3 -3
  609. package/dist/index76.js +1 -1
  610. package/dist/index77.js +2 -2
  611. package/dist/index78.js +2 -2
  612. package/package.json +1 -1
package/dist/index294.js CHANGED
@@ -1,137 +1,9 @@
1
- function u() {
2
- return typeof window < "u";
3
- }
4
- function a(t) {
5
- return m(t) ? (t.nodeName || "").toLowerCase() : "#document";
6
- }
7
- function i(t) {
8
- var n;
9
- return (t == null || (n = t.ownerDocument) == null ? void 0 : n.defaultView) || window;
10
- }
11
- function L(t) {
12
- var n;
13
- return (n = (m(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : n.documentElement;
14
- }
15
- function m(t) {
16
- return u() ? t instanceof Node || t instanceof i(t).Node : !1;
17
- }
18
- function h(t) {
19
- return u() ? t instanceof Element || t instanceof i(t).Element : !1;
20
- }
21
- function g(t) {
22
- return u() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
23
- }
24
- function p(t) {
25
- return !u() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
26
- }
27
- function y(t) {
28
- const {
29
- overflow: n,
30
- overflowX: r,
31
- overflowY: c,
32
- display: e
33
- } = b(t);
34
- return /auto|scroll|overlay|hidden|clip/.test(n + c + r) && e !== "inline" && e !== "contents";
35
- }
36
- function _(t) {
37
- return /^(table|td|th)$/.test(a(t));
38
- }
39
- function T(t) {
40
- try {
41
- if (t.matches(":popover-open"))
42
- return !0;
43
- } catch {
44
- }
45
- try {
46
- return t.matches(":modal");
47
- } catch {
48
- return !1;
49
- }
50
- }
51
- const v = /transform|translate|scale|rotate|perspective|filter/, C = /paint|layout|strict|content/, o = (t) => !!t && t !== "none";
52
- let s;
53
- function D(t) {
54
- const n = h(t) ? b(t) : t;
55
- return o(n.transform) || o(n.translate) || o(n.scale) || o(n.rotate) || o(n.perspective) || !R() && (o(n.backdropFilter) || o(n.filter)) || v.test(n.willChange || "") || C.test(n.contain || "");
56
- }
57
- function W(t) {
58
- let n = f(t);
59
- for (; g(n) && !N(n); ) {
60
- if (D(n))
61
- return n;
62
- if (T(n))
63
- return null;
64
- n = f(n);
65
- }
66
- return null;
67
- }
68
- function R() {
69
- return s == null && (s = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), s;
70
- }
71
- function N(t) {
72
- return /^(html|body|#document)$/.test(a(t));
73
- }
74
- function b(t) {
75
- return i(t).getComputedStyle(t);
76
- }
77
- function $(t) {
78
- return h(t) ? {
79
- scrollLeft: t.scrollLeft,
80
- scrollTop: t.scrollTop
81
- } : {
82
- scrollLeft: t.scrollX,
83
- scrollTop: t.scrollY
84
- };
85
- }
86
- function f(t) {
87
- if (a(t) === "html")
88
- return t;
89
- const n = (
90
- // Step into the shadow DOM of the parent of a slotted node.
91
- t.assignedSlot || // DOM Element detected.
92
- t.parentNode || // ShadowRoot detected.
93
- p(t) && t.host || // Fallback.
94
- L(t)
95
- );
96
- return p(n) ? n.host : n;
97
- }
98
- function S(t) {
99
- const n = f(t);
100
- return N(n) ? t.ownerDocument ? t.ownerDocument.body : t.body : g(n) && y(n) ? n : S(n);
101
- }
102
- function w(t, n, r) {
103
- var c;
104
- n === void 0 && (n = []), r === void 0 && (r = !0);
105
- const e = S(t), E = e === ((c = t.ownerDocument) == null ? void 0 : c.body), l = i(e);
106
- if (E) {
107
- const d = k(l);
108
- return n.concat(l, l.visualViewport || [], y(e) ? e : [], d && r ? w(d) : []);
109
- } else
110
- return n.concat(e, w(e, [], r));
111
- }
112
- function k(t) {
113
- return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
1
+ import { toDate as o } from "./index390.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;
114
5
  }
115
6
  export {
116
- b as getComputedStyle,
117
- W as getContainingBlock,
118
- L as getDocumentElement,
119
- k as getFrameElement,
120
- S as getNearestOverflowAncestor,
121
- a as getNodeName,
122
- $ as getNodeScroll,
123
- w as getOverflowAncestors,
124
- f as getParentNode,
125
- i as getWindow,
126
- D as isContainingBlock,
127
- h as isElement,
128
- g as isHTMLElement,
129
- N as isLastTraversableNode,
130
- m as isNode,
131
- y as isOverflowElement,
132
- p as isShadowRoot,
133
- _ as isTableElement,
134
- T as isTopLayer,
135
- R as isWebKit
7
+ n as startOfYear
136
8
  };
137
9
  //# sourceMappingURL=index294.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index294.js","sources":["../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"],"sourcesContent":["function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';\n}\nfunction isTableElement(element) {\n return /^(table|td|th)$/.test(getNodeName(element));\n}\nfunction isTopLayer(element) {\n try {\n if (element.matches(':popover-open')) {\n return true;\n }\n } catch (_e) {\n // no-op\n }\n try {\n return element.matches(':modal');\n } catch (_e) {\n return false;\n }\n}\nconst willChangeRe = /transform|translate|scale|rotate|perspective|filter/;\nconst containRe = /paint|layout|strict|content/;\nconst isNotNone = value => !!value && value !== 'none';\nlet isWebKitValue;\nfunction isContainingBlock(elementOrCss) {\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (isWebKitValue == null) {\n isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');\n }\n return isWebKitValue;\n}\nfunction isLastTraversableNode(node) {\n return /^(html|body|#document)$/.test(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n } else {\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n }\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n"],"names":["hasWindow","getNodeName","node","isNode","getWindow","_node$ownerDocument","getDocumentElement","_ref","value","isElement","isHTMLElement","isShadowRoot","isOverflowElement","element","overflow","overflowX","overflowY","display","getComputedStyle","isTableElement","isTopLayer","willChangeRe","containRe","isNotNone","isWebKitValue","isContainingBlock","elementOrCss","css","isWebKit","getContainingBlock","currentNode","getParentNode","isLastTraversableNode","getNodeScroll","result","getNearestOverflowAncestor","parentNode","getOverflowAncestors","list","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win","frameElement","getFrameElement"],"mappings":"AAAA,SAASA,IAAY;AACnB,SAAO,OAAO,SAAW;AAC3B;AACA,SAASC,EAAYC,GAAM;AACzB,SAAIC,EAAOD,CAAI,KACLA,EAAK,YAAY,IAAI,YAAW,IAKnC;AACT;AACA,SAASE,EAAUF,GAAM;AACvB,MAAIG;AACJ,UAAQH,KAAQ,SAASG,IAAsBH,EAAK,kBAAkB,OAAO,SAASG,EAAoB,gBAAgB;AAC5H;AACA,SAASC,EAAmBJ,GAAM;AAChC,MAAIK;AACJ,UAAQA,KAAQJ,EAAOD,CAAI,IAAIA,EAAK,gBAAgBA,EAAK,aAAa,OAAO,aAAa,OAAO,SAASK,EAAK;AACjH;AACA,SAASJ,EAAOK,GAAO;AACrB,SAAKR,EAAS,IAGPQ,aAAiB,QAAQA,aAAiBJ,EAAUI,CAAK,EAAE,OAFzD;AAGX;AACA,SAASC,EAAUD,GAAO;AACxB,SAAKR,EAAS,IAG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CAAU,KAAKxB,EAAkBwB,CAAU,IACpDA,IAEFD,EAA2BC,CAAU;AAC9C;AACA,SAASC,EAAqBnC,GAAMoC,GAAMC,GAAiB;AACzD,MAAIC;AACJ,EAAIF,MAAS,WACXA,IAAO,CAAA,IAELC,MAAoB,WACtBA,IAAkB;AAEpB,QAAME,IAAqBN,EAA2BjC,CAAI,GACpDwC,IAASD,QAAyBD,IAAuBtC,EAAK,kBAAkB,OAAO,SAASsC,EAAqB,OACrHG,IAAMvC,EAAUqC,CAAkB;AACxC,MAAIC,GAAQ;AACV,UAAME,IAAeC,EAAgBF,CAAG;AACxC,WAAOL,EAAK,OAAOK,GAAKA,EAAI,kBAAkB,CAAA,GAAI/B,EAAkB6B,CAAkB,IAAIA,IAAqB,CAAA,GAAIG,KAAgBL,IAAkBF,EAAqBO,CAAY,IAAI,EAAE;AAAA,EAC9L;AACE,WAAON,EAAK,OAAOG,GAAoBJ,EAAqBI,GAAoB,CAAA,GAAIF,CAAe,CAAC;AAExG;AACA,SAASM,EAAgBF,GAAK;AAC5B,SAAOA,EAAI,UAAU,OAAO,eAAeA,EAAI,MAAM,IAAIA,EAAI,eAAe;AAC9E;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index294.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/index295.js CHANGED
@@ -1,12 +1,20 @@
1
- let o;
2
- process.env.NODE_ENV !== "production" && (o = /* @__PURE__ */ new Set());
3
- function s(...r) {
4
- if (process.env.NODE_ENV !== "production") {
5
- const e = r.join(" ");
6
- o.has(e) || (o.add(e), console.error(`Base UI: ${e}`));
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);
7
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;
8
16
  }
9
17
  export {
10
- s as error
18
+ j as getDates
11
19
  };
12
20
  //# sourceMappingURL=index295.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index295.js","sources":["../../../node_modules/@base-ui/utils/esm/error.js"],"sourcesContent":["let set;\nif (process.env.NODE_ENV !== 'production') {\n set = new Set();\n}\nexport function error(...messages) {\n if (process.env.NODE_ENV !== 'production') {\n const messageKey = messages.join(' ');\n if (!set.has(messageKey)) {\n set.add(messageKey);\n console.error(`Base UI: ${messageKey}`);\n }\n }\n}\nexport function reset() {\n set?.clear();\n}"],"names":["set","error","messages","messageKey"],"mappings":"AAAA,IAAIA;AACA,QAAQ,IAAI,aAAa,iBAC3BA,IAAM,oBAAI,IAAG;AAER,SAASC,KAASC,GAAU;AACjC,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAaD,EAAS,KAAK,GAAG;AACpC,IAAKF,EAAI,IAAIG,CAAU,MACrBH,EAAI,IAAIG,CAAU,GAClB,QAAQ,MAAM,YAAYA,CAAU,EAAE;AAAA,EAE1C;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index295.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,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ist/index296.js CHANGED
@@ -1,8 +1,11 @@
1
- import * as t from "react";
2
- const a = {
3
- ...t
4
- };
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());
7
+ }
5
8
  export {
6
- a as SafeReact
9
+ a as getDays
7
10
  };
8
11
  //# sourceMappingURL=index296.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index296.js","sources":["../../../node_modules/@base-ui/utils/esm/safeReact.js"],"sourcesContent":["import * as React from 'react';\n\n// https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379\nexport const SafeReact = {\n ...React\n};"],"names":["SafeReact","React"],"mappings":";AAGY,MAACA,IAAY;AAAA,EACvB,GAAGC;AACL;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index296.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/index297.js CHANGED
@@ -1,7 +1,14 @@
1
- import * as o from "react";
2
- const t = () => {
3
- }, e = typeof document < "u" ? o.useLayoutEffect : t;
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;
10
+ }
4
11
  export {
5
- e as useIsoLayoutEffect
12
+ i as getDisplayMonths
6
13
  };
7
14
  //# sourceMappingURL=index297.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index297.js","sources":["../../../node_modules/@base-ui/utils/esm/useIsoLayoutEffect.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nconst noop = () => {};\nexport const useIsoLayoutEffect = typeof document !== 'undefined' ? React.useLayoutEffect : noop;"],"names":["noop","useIsoLayoutEffect","React"],"mappings":";AAGA,MAAMA,IAAO,MAAM;AAAC,GACPC,IAAqB,OAAO,WAAa,MAAcC,EAAM,kBAAkBF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index297.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/index298.js CHANGED
@@ -1,15 +1,14 @@
1
- import n from "./index191.js";
2
- import * as t from "react";
3
- const e = /* @__PURE__ */ t.createContext(void 0);
4
- process.env.NODE_ENV !== "production" && (e.displayName = "CompositeRootContext");
5
- function r(s = !1) {
6
- const o = t.useContext(e);
7
- if (o === void 0 && !s)
8
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>." : n(16));
9
- return o;
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);
10
10
  }
11
11
  export {
12
- e as CompositeRootContext,
13
- r as useCompositeRootContext
12
+ u as getInitialMonth
14
13
  };
15
14
  //# sourceMappingURL=index298.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index298.js","sources":["../../../node_modules/@base-ui/react/esm/internals/composite/root/CompositeRootContext.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const CompositeRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") CompositeRootContext.displayName = \"CompositeRootContext\";\nexport function useCompositeRootContext(optional = false) {\n const context = React.useContext(CompositeRootContext);\n if (context === undefined && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.' : _formatErrorMessage(16));\n }\n return context;\n}"],"names":["CompositeRootContext","React","useCompositeRootContext","optional","context","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAoC,gBAAAC,EAAM,cAAc,MAAS;AAC1E,QAAQ,IAAI,aAAa,iBAAcD,EAAqB,cAAc;AACvE,SAASE,EAAwBC,IAAW,IAAO;AACxD,QAAMC,IAAUH,EAAM,WAAWD,CAAoB;AACrD,MAAII,MAAY,UAAa,CAACD;AAC5B,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,sGAAsGE,EAAoB,EAAE,CAAC;AAEvL,SAAOD;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index298.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/index299.js CHANGED
@@ -1,25 +1,25 @@
1
- import * as r from "react";
2
- function f(l) {
3
- const {
4
- focusableWhenDisabled: e,
5
- disabled: o,
6
- composite: t = !1,
7
- tabIndex: i = 0,
8
- isNativeButton: s
9
- } = l, n = t && e !== !1, b = t && e === !1;
10
- return {
11
- props: r.useMemo(() => {
12
- const a = {
13
- // allow Tabbing away from focusableWhenDisabled elements
14
- onKeyDown(d) {
15
- o && e && d.key !== "Tab" && d.preventDefault();
16
- }
17
- };
18
- return t || (a.tabIndex = i, !s && o && (a.tabIndex = e ? i : -1)), (s && (e || n) || !s && o) && (a["aria-disabled"] = o), s && (!e || b) && (a.disabled = o), a;
19
- }, [t, o, e, n, b, s, i])
20
- };
1
+ import { CalendarDay as F } from "./index258.js";
2
+ import { CalendarWeek as N } from "./index260.js";
3
+ import { CalendarMonth as P } from "./index259.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;
21
21
  }
22
22
  export {
23
- f as useFocusableWhenDisabled
23
+ j as getMonths
24
24
  };
25
25
  //# sourceMappingURL=index299.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index299.js","sources":["../../../node_modules/@base-ui/react/esm/utils/useFocusableWhenDisabled.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nexport function useFocusableWhenDisabled(parameters) {\n const {\n focusableWhenDisabled,\n disabled,\n composite = false,\n tabIndex: tabIndexProp = 0,\n isNativeButton\n } = parameters;\n const isFocusableComposite = composite && focusableWhenDisabled !== false;\n const isNonFocusableComposite = composite && focusableWhenDisabled === false;\n\n // we can't explicitly assign `undefined` to any of these props because it\n // would otherwise prevent subsequently merged props from setting them\n const props = React.useMemo(() => {\n const additionalProps = {\n // allow Tabbing away from focusableWhenDisabled elements\n onKeyDown(event) {\n if (disabled && focusableWhenDisabled && event.key !== 'Tab') {\n event.preventDefault();\n }\n }\n };\n if (!composite) {\n additionalProps.tabIndex = tabIndexProp;\n if (!isNativeButton && disabled) {\n additionalProps.tabIndex = focusableWhenDisabled ? tabIndexProp : -1;\n }\n }\n if (isNativeButton && (focusableWhenDisabled || isFocusableComposite) || !isNativeButton && disabled) {\n additionalProps['aria-disabled'] = disabled;\n }\n if (isNativeButton && (!focusableWhenDisabled || isNonFocusableComposite)) {\n additionalProps.disabled = disabled;\n }\n return additionalProps;\n }, [composite, disabled, focusableWhenDisabled, isFocusableComposite, isNonFocusableComposite, isNativeButton, tabIndexProp]);\n return {\n props\n };\n}"],"names":["useFocusableWhenDisabled","parameters","focusableWhenDisabled","disabled","composite","tabIndexProp","isNativeButton","isFocusableComposite","isNonFocusableComposite","React","additionalProps","event"],"mappings":";AAGO,SAASA,EAAyBC,GAAY;AACnD,QAAM;AAAA,IACJ,uBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,UAAUC,IAAe;AAAA,IACzB,gBAAAC;AAAA,EACJ,IAAML,GACEM,IAAuBH,KAAaF,MAA0B,IAC9DM,IAA0BJ,KAAaF,MAA0B;AA2BvE,SAAO;AAAA,IACL,OAxBYO,EAAM,QAAQ,MAAM;AAChC,YAAMC,IAAkB;AAAA;AAAA,QAEtB,UAAUC,GAAO;AACf,UAAIR,KAAYD,KAAyBS,EAAM,QAAQ,SACrDA,EAAM,eAAc;AAAA,QAExB;AAAA,MACN;AACI,aAAKP,MACHM,EAAgB,WAAWL,GACvB,CAACC,KAAkBH,MACrBO,EAAgB,WAAWR,IAAwBG,IAAe,OAGlEC,MAAmBJ,KAAyBK,MAAyB,CAACD,KAAkBH,OAC1FO,EAAgB,eAAe,IAAIP,IAEjCG,MAAmB,CAACJ,KAAyBM,OAC/CE,EAAgB,WAAWP,IAEtBO;AAAA,IACT,GAAG,CAACN,GAAWD,GAAUD,GAAuBK,GAAsBC,GAAyBF,GAAgBD,CAAY,CAAC;AAAA,EAG9H;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index299.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/index300.js CHANGED
@@ -1,126 +1,14 @@
1
- import { getWindow as d, isOverflowElement as m } from "./index294.js";
2
- import { addEventListener as T } from "./index346.js";
3
- import { isIOS as E, isWebKit as H } from "./index347.js";
4
- import { ownerDocument as a } from "./index331.js";
5
- import { useIsoLayoutEffect as z } from "./index297.js";
6
- import { Timeout as k } from "./index332.js";
7
- import { AnimationFrame as j } from "./index348.js";
8
- import { NOOP as F } from "./index285.js";
9
- let Y = {}, C = {}, O = "";
10
- function R(s) {
11
- if (typeof document > "u")
12
- return !1;
13
- const e = a(s);
14
- return d(e).innerWidth - e.documentElement.clientWidth > 0;
15
- }
16
- function I(s) {
17
- if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u")
18
- return !1;
19
- const t = a(s), o = t.documentElement, l = t.body, r = m(o) ? o : l, i = r.style.overflowY, c = o.style.scrollbarGutter;
20
- o.style.scrollbarGutter = "stable", r.style.overflowY = "scroll";
21
- const u = r.offsetWidth;
22
- r.style.overflowY = "hidden";
23
- const f = r.offsetWidth;
24
- return r.style.overflowY = i, o.style.scrollbarGutter = c, u === f;
25
- }
26
- function V(s) {
27
- const e = a(s), t = e.documentElement, o = e.body, l = m(t) ? t : o, r = {
28
- overflowY: l.style.overflowY,
29
- overflowX: l.style.overflowX
30
- };
31
- return Object.assign(l.style, {
32
- overflowY: "hidden",
33
- overflowX: "hidden"
34
- }), () => {
35
- Object.assign(l.style, r);
36
- };
37
- }
38
- function q(s) {
39
- const e = a(s), t = e.documentElement, o = e.body, l = d(t);
40
- let r = 0, i = 0, c = !1;
41
- const u = j.create();
42
- if (H && (l.visualViewport?.scale ?? 1) !== 1)
43
- return () => {
44
- };
45
- function f() {
46
- const h = l.getComputedStyle(t), n = l.getComputedStyle(o), v = (h.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
47
- r = t.scrollTop, i = t.scrollLeft, Y = {
48
- scrollbarGutter: t.style.scrollbarGutter,
49
- overflowY: t.style.overflowY,
50
- overflowX: t.style.overflowX
51
- }, O = t.style.scrollBehavior, C = {
52
- position: o.style.position,
53
- height: o.style.height,
54
- width: o.style.width,
55
- boxSizing: o.style.boxSizing,
56
- overflowY: o.style.overflowY,
57
- overflowX: o.style.overflowX,
58
- scrollBehavior: o.style.scrollBehavior
59
- };
60
- const G = t.scrollHeight > t.clientHeight, B = t.scrollWidth > t.clientWidth, W = h.overflowY === "scroll" || n.overflowY === "scroll", x = h.overflowX === "scroll" || n.overflowX === "scroll", b = Math.max(0, l.innerWidth - o.clientWidth), w = Math.max(0, l.innerHeight - o.clientHeight), p = parseFloat(n.marginTop) + parseFloat(n.marginBottom), g = parseFloat(n.marginLeft) + parseFloat(n.marginRight), S = m(t) ? t : o;
61
- if (c = I(s), c) {
62
- t.style.scrollbarGutter = v, S.style.overflowY = "hidden", S.style.overflowX = "hidden";
63
- return;
64
- }
65
- Object.assign(t.style, {
66
- scrollbarGutter: v,
67
- overflowY: "hidden",
68
- overflowX: "hidden"
69
- }), (G || W) && (t.style.overflowY = "scroll"), (B || x) && (t.style.overflowX = "scroll"), Object.assign(o.style, {
70
- position: "relative",
71
- height: p || w ? `calc(100dvh - ${p + w}px)` : "100dvh",
72
- width: g || b ? `calc(100vw - ${g + b}px)` : "100vw",
73
- boxSizing: "border-box",
74
- overflow: "hidden",
75
- scrollBehavior: "unset"
76
- }), o.scrollTop = r, o.scrollLeft = i, t.setAttribute("data-base-ui-scroll-locked", ""), t.style.scrollBehavior = "unset";
77
- }
78
- function y() {
79
- Object.assign(t.style, Y), Object.assign(o.style, C), c || (t.scrollTop = r, t.scrollLeft = i, t.removeAttribute("data-base-ui-scroll-locked"), t.style.scrollBehavior = O);
80
- }
81
- function L() {
82
- y(), u.request(f);
83
- }
84
- f();
85
- const X = T(l, "resize", L);
86
- return () => {
87
- u.cancel(), y(), typeof l.removeEventListener == "function" && X();
88
- };
89
- }
90
- class A {
91
- lockCount = 0;
92
- restore = null;
93
- timeoutLock = k.create();
94
- timeoutUnlock = k.create();
95
- acquire(e) {
96
- return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(e)), this.release;
97
- }
98
- release = () => {
99
- this.lockCount -= 1, this.lockCount === 0 && this.restore && this.timeoutUnlock.start(0, this.unlock);
100
- };
101
- unlock = () => {
102
- this.lockCount === 0 && this.restore && (this.restore?.(), this.restore = null);
103
- };
104
- lock(e) {
105
- if (this.lockCount === 0 || this.restore !== null)
106
- return;
107
- const o = a(e).documentElement, l = d(o).getComputedStyle(o).overflowY;
108
- if (l === "hidden" || l === "clip") {
109
- this.restore = F;
110
- return;
111
- }
112
- const r = E || !R(e);
113
- this.restore = r ? V(e) : q(e);
114
- }
115
- }
116
- const K = new A();
117
- function tt(s = !0, e = null) {
118
- z(() => {
119
- if (s)
120
- return K.acquire(e);
121
- }, [s, e]);
1
+ function O(o, r) {
2
+ let { startMonth: t, endMonth: e } = o;
3
+ const { startOfYear: M, startOfDay: d, startOfMonth: c, endOfMonth: Y, addYears: l, endOfYear: w, newDate: f, today: i } = r, { fromYear: a, toYear: n, fromMonth: s, toMonth: h } = o;
4
+ !t && s && (t = s), !t && a && (t = r.newDate(a, 0, 1)), !e && h && (e = h), !e && n && (e = f(n, 11, 31));
5
+ const y = o.captionLayout === "dropdown" || o.captionLayout === "dropdown-years";
6
+ return t ? t = c(t) : a ? t = f(a, 0, 1) : !t && y && (t = M(l(o.today ?? i(), -100))), e ? e = Y(e) : n ? e = f(n, 11, 31) : !e && y && (e = w(o.today ?? i())), [
7
+ t && d(t),
8
+ e && d(e)
9
+ ];
122
10
  }
123
11
  export {
124
- tt as useScrollLock
12
+ O as getNavMonths
125
13
  };
126
14
  //# sourceMappingURL=index300.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index300.js","sources":["../../../node_modules/@base-ui/utils/esm/useScrollLock.js"],"sourcesContent":["'use client';\n\nimport { isOverflowElement } from '@floating-ui/utils/dom';\nimport { addEventListener } from \"./addEventListener.js\";\nimport { isIOS, isWebKit } from \"./detectBrowser.js\";\nimport { ownerDocument, ownerWindow } from \"./owner.js\";\nimport { useIsoLayoutEffect } from \"./useIsoLayoutEffect.js\";\nimport { Timeout } from \"./useTimeout.js\";\nimport { AnimationFrame } from \"./useAnimationFrame.js\";\nimport { NOOP } from \"./empty.js\";\nlet originalHtmlStyles = {};\nlet originalBodyStyles = {};\nlet originalHtmlScrollBehavior = '';\nfunction hasInsetScrollbars(referenceElement) {\n if (typeof document === 'undefined') {\n return false;\n }\n const doc = ownerDocument(referenceElement);\n const win = ownerWindow(doc);\n return win.innerWidth - doc.documentElement.clientWidth > 0;\n}\nfunction supportsStableScrollbarGutter(referenceElement) {\n const supported = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('scrollbar-gutter', 'stable');\n if (!supported || typeof document === 'undefined') {\n return false;\n }\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const scrollContainer = isOverflowElement(html) ? html : body;\n const originalScrollContainerOverflowY = scrollContainer.style.overflowY;\n const originalHtmlStyleGutter = html.style.scrollbarGutter;\n html.style.scrollbarGutter = 'stable';\n scrollContainer.style.overflowY = 'scroll';\n const before = scrollContainer.offsetWidth;\n scrollContainer.style.overflowY = 'hidden';\n const after = scrollContainer.offsetWidth;\n scrollContainer.style.overflowY = originalScrollContainerOverflowY;\n html.style.scrollbarGutter = originalHtmlStyleGutter;\n return before === after;\n}\nfunction preventScrollOverlayScrollbars(referenceElement) {\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n\n // If an `overflow` style is present on <html>, we need to lock it, because a lock on <body>\n // won't have any effect.\n // But if <body> has an `overflow` style (like `overflow-x: hidden`), we need to lock it\n // instead, as sticky elements shift otherwise.\n const elementToLock = isOverflowElement(html) ? html : body;\n const originalElementToLockStyles = {\n overflowY: elementToLock.style.overflowY,\n overflowX: elementToLock.style.overflowX\n };\n Object.assign(elementToLock.style, {\n overflowY: 'hidden',\n overflowX: 'hidden'\n });\n return () => {\n Object.assign(elementToLock.style, originalElementToLockStyles);\n };\n}\nfunction preventScrollInsetScrollbars(referenceElement) {\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const win = ownerWindow(html);\n let scrollTop = 0;\n let scrollLeft = 0;\n let updateGutterOnly = false;\n const resizeFrame = AnimationFrame.create();\n\n // Pinch-zoom in Safari causes a shift. Just don't lock scroll if there's any pinch-zoom.\n if (isWebKit && (win.visualViewport?.scale ?? 1) !== 1) {\n return () => {};\n }\n function lockScroll() {\n /* DOM reads: */\n\n const htmlStyles = win.getComputedStyle(html);\n const bodyStyles = win.getComputedStyle(body);\n const htmlScrollbarGutterValue = htmlStyles.scrollbarGutter || '';\n const hasBothEdges = htmlScrollbarGutterValue.includes('both-edges');\n const scrollbarGutterValue = hasBothEdges ? 'stable both-edges' : 'stable';\n scrollTop = html.scrollTop;\n scrollLeft = html.scrollLeft;\n originalHtmlStyles = {\n scrollbarGutter: html.style.scrollbarGutter,\n overflowY: html.style.overflowY,\n overflowX: html.style.overflowX\n };\n originalHtmlScrollBehavior = html.style.scrollBehavior;\n originalBodyStyles = {\n position: body.style.position,\n height: body.style.height,\n width: body.style.width,\n boxSizing: body.style.boxSizing,\n overflowY: body.style.overflowY,\n overflowX: body.style.overflowX,\n scrollBehavior: body.style.scrollBehavior\n };\n const isScrollableY = html.scrollHeight > html.clientHeight;\n const isScrollableX = html.scrollWidth > html.clientWidth;\n const hasConstantOverflowY = htmlStyles.overflowY === 'scroll' || bodyStyles.overflowY === 'scroll';\n const hasConstantOverflowX = htmlStyles.overflowX === 'scroll' || bodyStyles.overflowX === 'scroll';\n\n // Values can be negative in Firefox\n const scrollbarWidth = Math.max(0, win.innerWidth - body.clientWidth);\n const scrollbarHeight = Math.max(0, win.innerHeight - body.clientHeight);\n\n // Avoid shift due to the default <body> margin. This does cause elements to be clipped\n // with whitespace. Warn if <body> has margins?\n const marginY = parseFloat(bodyStyles.marginTop) + parseFloat(bodyStyles.marginBottom);\n const marginX = parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight);\n const elementToLock = isOverflowElement(html) ? html : body;\n updateGutterOnly = supportsStableScrollbarGutter(referenceElement);\n\n /*\n * DOM writes:\n * Do not read the DOM past this point!\n */\n\n if (updateGutterOnly) {\n html.style.scrollbarGutter = scrollbarGutterValue;\n elementToLock.style.overflowY = 'hidden';\n elementToLock.style.overflowX = 'hidden';\n return;\n }\n Object.assign(html.style, {\n scrollbarGutter: scrollbarGutterValue,\n overflowY: 'hidden',\n overflowX: 'hidden'\n });\n if (isScrollableY || hasConstantOverflowY) {\n html.style.overflowY = 'scroll';\n }\n if (isScrollableX || hasConstantOverflowX) {\n html.style.overflowX = 'scroll';\n }\n Object.assign(body.style, {\n position: 'relative',\n height: marginY || scrollbarHeight ? `calc(100dvh - ${marginY + scrollbarHeight}px)` : '100dvh',\n width: marginX || scrollbarWidth ? `calc(100vw - ${marginX + scrollbarWidth}px)` : '100vw',\n boxSizing: 'border-box',\n overflow: 'hidden',\n scrollBehavior: 'unset'\n });\n body.scrollTop = scrollTop;\n body.scrollLeft = scrollLeft;\n html.setAttribute('data-base-ui-scroll-locked', '');\n html.style.scrollBehavior = 'unset';\n }\n function cleanup() {\n Object.assign(html.style, originalHtmlStyles);\n Object.assign(body.style, originalBodyStyles);\n if (!updateGutterOnly) {\n html.scrollTop = scrollTop;\n html.scrollLeft = scrollLeft;\n html.removeAttribute('data-base-ui-scroll-locked');\n html.style.scrollBehavior = originalHtmlScrollBehavior;\n }\n }\n function handleResize() {\n cleanup();\n resizeFrame.request(lockScroll);\n }\n lockScroll();\n const unsubscribeResize = addEventListener(win, 'resize', handleResize);\n return () => {\n resizeFrame.cancel();\n cleanup();\n // Sometimes this cleanup can run after test teardown because it is called\n // in a `setTimeout(fn, 0)`. Guard the returned cleanup to avoid calling\n // `removeEventListener` when it is no longer available in tests.\n if (typeof win.removeEventListener === 'function') {\n unsubscribeResize();\n }\n };\n}\nclass ScrollLocker {\n lockCount = 0;\n restore = null;\n timeoutLock = Timeout.create();\n timeoutUnlock = Timeout.create();\n acquire(referenceElement) {\n this.lockCount += 1;\n if (this.lockCount === 1 && this.restore === null) {\n this.timeoutLock.start(0, () => this.lock(referenceElement));\n }\n return this.release;\n }\n release = () => {\n this.lockCount -= 1;\n if (this.lockCount === 0 && this.restore) {\n this.timeoutUnlock.start(0, this.unlock);\n }\n };\n unlock = () => {\n if (this.lockCount === 0 && this.restore) {\n this.restore?.();\n this.restore = null;\n }\n };\n lock(referenceElement) {\n if (this.lockCount === 0 || this.restore !== null) {\n return;\n }\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const htmlOverflowY = ownerWindow(html).getComputedStyle(html).overflowY;\n\n // If the site author already hid overflow on <html>, respect it and bail out.\n if (htmlOverflowY === 'hidden' || htmlOverflowY === 'clip') {\n this.restore = NOOP;\n return;\n }\n const hasOverlayScrollbars = isIOS || !hasInsetScrollbars(referenceElement);\n\n // On iOS, scroll locking does not work if the navbar is collapsed. Due to numerous\n // side effects and bugs that arise on iOS, it must be researched extensively before\n // being enabled to ensure it doesn't cause the following issues:\n // - Textboxes must scroll into view when focused, nor cause a glitchy scroll animation.\n // - The navbar must not force itself into view and cause layout shift.\n // - Scroll containers must not flicker upon closing a popup when it has an exit animation.\n this.restore = hasOverlayScrollbars ? preventScrollOverlayScrollbars(referenceElement) : preventScrollInsetScrollbars(referenceElement);\n }\n}\nconst SCROLL_LOCKER = new ScrollLocker();\n\n/**\n * Locks the scroll of the document when enabled.\n *\n * @param enabled - Whether to enable the scroll lock.\n * @param referenceElement - Element to use as a reference for lock calculations.\n */\nexport function useScrollLock(enabled = true, referenceElement = null) {\n useIsoLayoutEffect(() => {\n if (!enabled) {\n return undefined;\n }\n return SCROLL_LOCKER.acquire(referenceElement);\n }, [enabled, referenceElement]);\n}"],"names":["originalHtmlStyles","originalBodyStyles","originalHtmlScrollBehavior","hasInsetScrollbars","referenceElement","doc","ownerDocument","ownerWindow","supportsStableScrollbarGutter","html","body","scrollContainer","isOverflowElement","originalScrollContainerOverflowY","originalHtmlStyleGutter","before","after","preventScrollOverlayScrollbars","elementToLock","originalElementToLockStyles","preventScrollInsetScrollbars","win","scrollTop","scrollLeft","updateGutterOnly","resizeFrame","AnimationFrame","isWebKit","lockScroll","htmlStyles","bodyStyles","scrollbarGutterValue","isScrollableY","isScrollableX","hasConstantOverflowY","hasConstantOverflowX","scrollbarWidth","scrollbarHeight","marginY","marginX","cleanup","handleResize","unsubscribeResize","addEventListener","ScrollLocker","Timeout","htmlOverflowY","NOOP","hasOverlayScrollbars","isIOS","SCROLL_LOCKER","useScrollLock","enabled","useIsoLayoutEffect"],"mappings":";;;;;;;;AAUA,IAAIA,IAAqB,CAAA,GACrBC,IAAqB,CAAA,GACrBC,IAA6B;AACjC,SAASC,EAAmBC,GAAkB;AAC5C,MAAI,OAAO,WAAa;AACtB,WAAO;AAET,QAAMC,IAAMC,EAAcF,CAAgB;AAE1C,SADYG,EAAYF,CAAG,EAChB,aAAaA,EAAI,gBAAgB,cAAc;AAC5D;AACA,SAASG,EAA8BJ,GAAkB;AAEvD,MAAI,EADc,OAAO,MAAQ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KA,CAAgB,CAAC,GAEtD,KAAK;AAAA,EACd;AAAA,EACA,UAAU,MAAM;AACd,SAAK,aAAa,GACd,KAAK,cAAc,KAAK,KAAK,WAC/B,KAAK,cAAc,MAAM,GAAG,KAAK,MAAM;AAAA,EAE3C;AAAA,EACA,SAAS,MAAM;AACb,IAAI,KAAK,cAAc,KAAK,KAAK,YAC/B,KAAK,UAAO,GACZ,KAAK,UAAU;AAAA,EAEnB;AAAA,EACA,KAAKA,GAAkB;AACrB,QAAI,KAAK,cAAc,KAAK,KAAK,YAAY;AAC3C;AAGF,UAAMK,IADMH,EAAcF,CAAgB,EACzB,iBACX0C,IAAgBvC,EAAYE,CAAI,EAAE,iBAAiBA,CAAI,EAAE;AAG/D,QAAIqC,MAAkB,YAAYA,MAAkB,QAAQ;AAC1D,WAAK,UAAUC;AACf;AAAA,IACF;AACA,UAAMC,IAAuBC,KAAS,CAAC9C,EAAmBC,CAAgB;AAQ1E,SAAK,UAAU4C,IAAuB/B,EAA+Bb,CAAgB,IAAIgB,EAA6BhB,CAAgB;AAAA,EACxI;AACF;AACA,MAAM8C,IAAgB,IAAIN,EAAY;AAQ/B,SAASO,GAAcC,IAAU,IAAMhD,IAAmB,MAAM;AACrE,EAAAiD,EAAmB,MAAM;AACvB,QAAKD;AAGL,aAAOF,EAAc,QAAQ9C,CAAgB;AAAA,EAC/C,GAAG,CAACgD,GAAShD,CAAgB,CAAC;AAChC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index300.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, newDate, today, } = dateLib;\n // Handle deprecated code\n const { fromYear, toYear, fromMonth, toMonth } = props;\n if (!startMonth && fromMonth) {\n startMonth = fromMonth;\n }\n if (!startMonth && fromYear) {\n startMonth = dateLib.newDate(fromYear, 0, 1);\n }\n if (!endMonth && toMonth) {\n endMonth = toMonth;\n }\n if (!endMonth && toYear) {\n endMonth = newDate(toYear, 11, 31);\n }\n const hasYearDropdown = props.captionLayout === \"dropdown\" ||\n props.captionLayout === \"dropdown-years\";\n if (startMonth) {\n startMonth = startOfMonth(startMonth);\n }\n else if (fromYear) {\n startMonth = newDate(fromYear, 0, 1);\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 (toYear) {\n endMonth = newDate(toYear, 11, 31);\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","newDate","today","fromYear","toYear","fromMonth","toMonth","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,SAAAC,GAAS,OAAAC,EAAK,IAAMV,GAE9F,EAAE,UAAAW,GAAU,QAAAC,GAAQ,WAAAC,GAAW,SAAAC,EAAO,IAAKf;AACjD,EAAI,CAACE,KAAcY,MACfZ,IAAaY,IAEb,CAACZ,KAAcU,MACfV,IAAaD,EAAQ,QAAQW,GAAU,GAAG,CAAC,IAE3C,CAACT,KAAYY,MACbZ,IAAWY,IAEX,CAACZ,KAAYU,MACbV,IAAWO,EAAQG,GAAQ,IAAI,EAAE;AAErC,QAAMG,IAAkBhB,EAAM,kBAAkB,cAC5CA,EAAM,kBAAkB;AAC5B,SAAIE,IACAA,IAAaI,EAAaJ,CAAU,IAE/BU,IACLV,IAAaQ,EAAQE,GAAU,GAAG,CAAC,IAE9B,CAACV,KAAcc,MACpBd,IAAaE,EAAYI,EAASR,EAAM,SAASW,EAAK,GAAI,IAAI,CAAC,IAE/DR,IACAA,IAAWI,EAAWJ,CAAQ,IAEzBU,IACLV,IAAWO,EAAQG,GAAQ,IAAI,EAAE,IAE5B,CAACV,KAAYa,MAClBb,IAAWM,EAAUT,EAAM,SAASW,EAAK,CAAE,IAExC;AAAA,IACHT,KAAaG,EAAWH,CAAU;AAAA,IAClCC,KAAWE,EAAWF,CAAQ;AAAA,EACtC;AACA;","x_google_ignoreList":[0]}
package/dist/index301.js CHANGED
@@ -1,31 +1,13 @@
1
- import * as l from "react";
2
- import { useStableCallback as c } from "./index292.js";
3
- import { useEnhancedClickHandler as u } from "./index379.js";
4
- import { isIOS as m } from "./index347.js";
5
- import { useValueChanged as p } from "./index324.js";
6
- function C(e) {
7
- const [o, t] = l.useState(null), s = c((i, a) => {
8
- e || t(a || // On iOS Safari, the hitslop around touch targets means tapping outside an element's
9
- // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`
10
- // will be "" in that case.
11
- (m ? "touch" : ""));
12
- });
13
- p(e, (i) => {
14
- i && !e && t(null);
15
- });
16
- const {
17
- onClick: r,
18
- onPointerDown: n
19
- } = u(s);
20
- return l.useMemo(() => ({
21
- openMethod: o,
22
- triggerProps: {
23
- onClick: r,
24
- onPointerDown: n
25
- }
26
- }), [o, r, n]);
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);
27
9
  }
28
10
  export {
29
- C as useOpenInteractionType
11
+ h as getNextMonth
30
12
  };
31
13
  //# sourceMappingURL=index301.js.map