@rpcbase/ui 0.239.0 → 0.240.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 (453) hide show
  1. package/dist/components/I18nField/index.d.ts +2 -1
  2. package/dist/components/I18nField/index.d.ts.map +1 -1
  3. package/dist/index106.js +36 -36
  4. package/dist/index11.js +373 -335
  5. package/dist/index11.js.map +1 -1
  6. package/dist/index118.js +6 -6
  7. package/dist/index121.js +10 -10
  8. package/dist/index123.js +2 -2
  9. package/dist/index124.js +3 -3
  10. package/dist/index125.js +1 -1
  11. package/dist/index127.js +2 -2
  12. package/dist/index129.js +2 -2
  13. package/dist/index151.js +4 -4
  14. package/dist/index156.js +1 -1
  15. package/dist/index157.js +1 -1
  16. package/dist/index164.js +1 -1
  17. package/dist/index165.js +6 -6
  18. package/dist/index167.js +1 -1
  19. package/dist/index169.js +1 -1
  20. package/dist/index172.js +3 -3
  21. package/dist/index175.js +1 -1
  22. package/dist/index176.js +4 -4
  23. package/dist/index178.js +1 -1
  24. package/dist/index182.js +2 -2
  25. package/dist/index184.js +12 -12
  26. package/dist/index187.js +6 -6
  27. package/dist/index189.js +3 -3
  28. package/dist/index190.js +1 -1
  29. package/dist/index193.js +3 -3
  30. package/dist/index194.js +5 -5
  31. package/dist/index196.js +20 -59
  32. package/dist/index196.js.map +1 -1
  33. package/dist/index197.js +66 -8
  34. package/dist/index197.js.map +1 -1
  35. package/dist/index198.js +6 -87
  36. package/dist/index198.js.map +1 -1
  37. package/dist/index199.js +11 -19
  38. package/dist/index199.js.map +1 -1
  39. package/dist/index200.js +48 -14
  40. package/dist/index200.js.map +1 -1
  41. package/dist/index201.js +4 -6
  42. package/dist/index201.js.map +1 -1
  43. package/dist/index202.js +29 -5
  44. package/dist/index202.js.map +1 -1
  45. package/dist/index203.js +16 -6
  46. package/dist/index203.js.map +1 -1
  47. package/dist/index204.js +5 -4
  48. package/dist/index204.js.map +1 -1
  49. package/dist/index205.js +21 -6
  50. package/dist/index205.js.map +1 -1
  51. package/dist/index206.js +51 -16
  52. package/dist/index206.js.map +1 -1
  53. package/dist/index207.js +25 -4
  54. package/dist/index207.js.map +1 -1
  55. package/dist/index208.js +41 -4
  56. package/dist/index208.js.map +1 -1
  57. package/dist/index209.js +39 -12
  58. package/dist/index209.js.map +1 -1
  59. package/dist/index210.js +45 -10
  60. package/dist/index210.js.map +1 -1
  61. package/dist/index211.js +20 -13
  62. package/dist/index211.js.map +1 -1
  63. package/dist/index212.js +70 -13
  64. package/dist/index212.js.map +1 -1
  65. package/dist/index213.js +17 -4
  66. package/dist/index213.js.map +1 -1
  67. package/dist/index214.js +11 -5
  68. package/dist/index214.js.map +1 -1
  69. package/dist/index215.js +27 -6
  70. package/dist/index215.js.map +1 -1
  71. package/dist/index216.js +13 -5
  72. package/dist/index216.js.map +1 -1
  73. package/dist/index217.js +17 -53
  74. package/dist/index217.js.map +1 -1
  75. package/dist/index218.js +36 -8
  76. package/dist/index218.js.map +1 -1
  77. package/dist/index219.js +262 -4
  78. package/dist/index219.js.map +1 -1
  79. package/dist/index220.js +278 -4
  80. package/dist/index220.js.map +1 -1
  81. package/dist/index221.js +68 -8
  82. package/dist/index221.js.map +1 -1
  83. package/dist/index222.js +99 -4
  84. package/dist/index222.js.map +1 -1
  85. package/dist/index223.js +83 -4
  86. package/dist/index223.js.map +1 -1
  87. package/dist/index224.js +3 -3
  88. package/dist/index224.js.map +1 -1
  89. package/dist/index225.js +29 -10
  90. package/dist/index225.js.map +1 -1
  91. package/dist/index226.js +16 -9
  92. package/dist/index226.js.map +1 -1
  93. package/dist/index227.js +35 -10
  94. package/dist/index227.js.map +1 -1
  95. package/dist/index228.js +16 -10
  96. package/dist/index228.js.map +1 -1
  97. package/dist/index229.js +3 -10
  98. package/dist/index229.js.map +1 -1
  99. package/dist/index230.js +26 -9
  100. package/dist/index230.js.map +1 -1
  101. package/dist/index231.js +28 -6
  102. package/dist/index231.js.map +1 -1
  103. package/dist/index232.js +4 -6
  104. package/dist/index232.js.map +1 -1
  105. package/dist/index233.js +78 -4
  106. package/dist/index233.js.map +1 -1
  107. package/dist/index234.js +269 -5
  108. package/dist/index234.js.map +1 -1
  109. package/dist/index235.js +11 -6
  110. package/dist/index235.js.map +1 -1
  111. package/dist/index236.js +10 -5
  112. package/dist/index236.js.map +1 -1
  113. package/dist/index237.js +25 -16
  114. package/dist/index237.js.map +1 -1
  115. package/dist/index238.js +16 -7
  116. package/dist/index238.js.map +1 -1
  117. package/dist/index239.js +124 -9
  118. package/dist/index239.js.map +1 -1
  119. package/dist/index240.js +5 -10
  120. package/dist/index240.js.map +1 -1
  121. package/dist/index241.js +40 -21
  122. package/dist/index241.js.map +1 -1
  123. package/dist/index242.js +65 -10
  124. package/dist/index242.js.map +1 -1
  125. package/dist/index243.js +14 -10
  126. package/dist/index243.js.map +1 -1
  127. package/dist/index244.js +7 -9
  128. package/dist/index244.js.map +1 -1
  129. package/dist/index245.js +5 -4
  130. package/dist/index245.js.map +1 -1
  131. package/dist/index246.js +3 -5
  132. package/dist/index246.js.map +1 -1
  133. package/dist/index247.js +10 -16
  134. package/dist/index247.js.map +1 -1
  135. package/dist/index248.js +7 -9
  136. package/dist/index248.js.map +1 -1
  137. package/dist/index249.js +132 -17
  138. package/dist/index249.js.map +1 -1
  139. package/dist/index250.js +397 -13
  140. package/dist/index250.js.map +1 -1
  141. package/dist/index251.js +52 -12
  142. package/dist/index251.js.map +1 -1
  143. package/dist/index252.js +10 -28
  144. package/dist/index252.js.map +1 -1
  145. package/dist/index253.js +11 -12
  146. package/dist/index253.js.map +1 -1
  147. package/dist/index254.js +15 -24
  148. package/dist/index254.js.map +1 -1
  149. package/dist/index255.js +5 -5
  150. package/dist/index255.js.map +1 -1
  151. package/dist/index256.js +5 -13
  152. package/dist/index256.js.map +1 -1
  153. package/dist/index257.js +54 -150
  154. package/dist/index257.js.map +1 -1
  155. package/dist/index258.js +84 -27
  156. package/dist/index258.js.map +1 -1
  157. package/dist/index259.js +6 -9
  158. package/dist/index259.js.map +1 -1
  159. package/dist/index260.js +4 -48
  160. package/dist/index260.js.map +1 -1
  161. package/dist/index261.js +6 -11
  162. package/dist/index261.js.map +1 -1
  163. package/dist/index262.js +16 -44
  164. package/dist/index262.js.map +1 -1
  165. package/dist/index263.js +4 -95
  166. package/dist/index263.js.map +1 -1
  167. package/dist/index264.js +4 -86
  168. package/dist/index264.js.map +1 -1
  169. package/dist/index265.js +12 -105
  170. package/dist/index265.js.map +1 -1
  171. package/dist/index266.js +9 -52
  172. package/dist/index266.js.map +1 -1
  173. package/dist/index267.js +13 -11
  174. package/dist/index267.js.map +1 -1
  175. package/dist/index268.js +13 -37
  176. package/dist/index268.js.map +1 -1
  177. package/dist/index269.js +4 -8
  178. package/dist/index269.js.map +1 -1
  179. package/dist/index270.js +5 -116
  180. package/dist/index270.js.map +1 -1
  181. package/dist/index271.js +6 -17
  182. package/dist/index271.js.map +1 -1
  183. package/dist/index272.js +5 -15
  184. package/dist/index272.js.map +1 -1
  185. package/dist/index273.js +54 -3
  186. package/dist/index273.js.map +1 -1
  187. package/dist/index274.js +8 -36
  188. package/dist/index274.js.map +1 -1
  189. package/dist/index275.js +4 -20
  190. package/dist/index275.js.map +1 -1
  191. package/dist/index276.js +4 -9
  192. package/dist/index276.js.map +1 -1
  193. package/dist/index277.js +8 -8
  194. package/dist/index277.js.map +1 -1
  195. package/dist/index278.js +5 -20
  196. package/dist/index278.js.map +1 -1
  197. package/dist/index279.js +4 -66
  198. package/dist/index279.js.map +1 -1
  199. package/dist/index280.js +3 -6
  200. package/dist/index280.js.map +1 -1
  201. package/dist/index281.js +10 -11
  202. package/dist/index281.js.map +1 -1
  203. package/dist/index282.js +9 -50
  204. package/dist/index282.js.map +1 -1
  205. package/dist/index283.js +10 -4
  206. package/dist/index283.js.map +1 -1
  207. package/dist/index284.js +10 -29
  208. package/dist/index284.js.map +1 -1
  209. package/dist/index285.js +10 -16
  210. package/dist/index285.js.map +1 -1
  211. package/dist/index286.js +9 -5
  212. package/dist/index286.js.map +1 -1
  213. package/dist/index287.js +6 -21
  214. package/dist/index287.js.map +1 -1
  215. package/dist/index288.js +5 -51
  216. package/dist/index288.js.map +1 -1
  217. package/dist/index289.js +4 -25
  218. package/dist/index289.js.map +1 -1
  219. package/dist/index290.js +5 -41
  220. package/dist/index290.js.map +1 -1
  221. package/dist/index291.js +6 -39
  222. package/dist/index291.js.map +1 -1
  223. package/dist/index292.js +6 -45
  224. package/dist/index292.js.map +1 -1
  225. package/dist/index293.js +8 -20
  226. package/dist/index293.js.map +1 -1
  227. package/dist/index294.js +17 -68
  228. package/dist/index294.js.map +1 -1
  229. package/dist/index295.js +16 -17
  230. package/dist/index295.js.map +1 -1
  231. package/dist/index296.js +7 -11
  232. package/dist/index296.js.map +1 -1
  233. package/dist/index297.js +10 -27
  234. package/dist/index297.js.map +1 -1
  235. package/dist/index298.js +10 -13
  236. package/dist/index298.js.map +1 -1
  237. package/dist/index299.js +21 -18
  238. package/dist/index299.js.map +1 -1
  239. package/dist/index300.js +10 -36
  240. package/dist/index300.js.map +1 -1
  241. package/dist/index301.js +9 -262
  242. package/dist/index301.js.map +1 -1
  243. package/dist/index302.js +9 -278
  244. package/dist/index302.js.map +1 -1
  245. package/dist/index303.js +4 -68
  246. package/dist/index303.js.map +1 -1
  247. package/dist/index304.js +5 -99
  248. package/dist/index304.js.map +1 -1
  249. package/dist/index305.js +15 -82
  250. package/dist/index305.js.map +1 -1
  251. package/dist/index306.js +9 -3
  252. package/dist/index306.js.map +1 -1
  253. package/dist/index307.js +17 -28
  254. package/dist/index307.js.map +1 -1
  255. package/dist/index308.js +15 -16
  256. package/dist/index308.js.map +1 -1
  257. package/dist/index309.js +13 -35
  258. package/dist/index309.js.map +1 -1
  259. package/dist/index310.js +29 -16
  260. package/dist/index310.js.map +1 -1
  261. package/dist/index311.js +12 -3
  262. package/dist/index311.js.map +1 -1
  263. package/dist/index312.js +25 -26
  264. package/dist/index312.js.map +1 -1
  265. package/dist/index313.js +5 -28
  266. package/dist/index313.js.map +1 -1
  267. package/dist/index314.js +14 -4
  268. package/dist/index314.js.map +1 -1
  269. package/dist/index315.js +151 -75
  270. package/dist/index315.js.map +1 -1
  271. package/dist/index316.js +28 -267
  272. package/dist/index316.js.map +1 -1
  273. package/dist/index317.js +9 -11
  274. package/dist/index317.js.map +1 -1
  275. package/dist/index318.js +49 -11
  276. package/dist/index318.js.map +1 -1
  277. package/dist/index319.js +11 -25
  278. package/dist/index319.js.map +1 -1
  279. package/dist/index320.js +43 -15
  280. package/dist/index320.js.map +1 -1
  281. package/dist/index321.js +89 -119
  282. package/dist/index321.js.map +1 -1
  283. package/dist/index322.js +86 -5
  284. package/dist/index322.js.map +1 -1
  285. package/dist/index323.js +104 -39
  286. package/dist/index323.js.map +1 -1
  287. package/dist/index324.js +47 -60
  288. package/dist/index324.js.map +1 -1
  289. package/dist/index325.js +11 -13
  290. package/dist/index325.js.map +1 -1
  291. package/dist/index326.js +37 -7
  292. package/dist/index326.js.map +1 -1
  293. package/dist/index327.js +8 -5
  294. package/dist/index327.js.map +1 -1
  295. package/dist/index328.js +116 -3
  296. package/dist/index328.js.map +1 -1
  297. package/dist/index329.js +17 -10
  298. package/dist/index329.js.map +1 -1
  299. package/dist/index330.js +15 -7
  300. package/dist/index330.js.map +1 -1
  301. package/dist/index331.js +3 -133
  302. package/dist/index331.js.map +1 -1
  303. package/dist/index332.js +35 -398
  304. package/dist/index332.js.map +1 -1
  305. package/dist/index333.js +20 -52
  306. package/dist/index333.js.map +1 -1
  307. package/dist/index334.js +8 -11
  308. package/dist/index334.js.map +1 -1
  309. package/dist/index335.js +9 -11
  310. package/dist/index335.js.map +1 -1
  311. package/dist/index336.js +3 -3
  312. package/dist/index345.js +51 -17
  313. package/dist/index345.js.map +1 -1
  314. package/dist/index346.js +17 -51
  315. package/dist/index346.js.map +1 -1
  316. package/dist/index348.js +8 -8
  317. package/dist/index349.js +4 -4
  318. package/dist/index350.js +3 -3
  319. package/dist/index351.js +5 -5
  320. package/dist/index353.js +1 -1
  321. package/dist/index359.js +11 -4
  322. package/dist/index359.js.map +1 -1
  323. package/dist/index360.js +17 -18
  324. package/dist/index360.js.map +1 -1
  325. package/dist/index361.js +4 -13
  326. package/dist/index361.js.map +1 -1
  327. package/dist/index362.js +5 -20
  328. package/dist/index362.js.map +1 -1
  329. package/dist/index363.js +21 -4
  330. package/dist/index363.js.map +1 -1
  331. package/dist/index364.js +45 -6
  332. package/dist/index364.js.map +1 -1
  333. package/dist/index365.js +17 -11
  334. package/dist/index365.js.map +1 -1
  335. package/dist/index366.js +5 -17
  336. package/dist/index366.js.map +1 -1
  337. package/dist/index367.js +199 -19
  338. package/dist/index367.js.map +1 -1
  339. package/dist/index368.js +78 -45
  340. package/dist/index368.js.map +1 -1
  341. package/dist/index369.js +5 -18
  342. package/dist/index369.js.map +1 -1
  343. package/dist/index370.js +17 -4
  344. package/dist/index370.js.map +1 -1
  345. package/dist/index371.js +12 -200
  346. package/dist/index371.js.map +1 -1
  347. package/dist/index372.js +20 -77
  348. package/dist/index372.js.map +1 -1
  349. package/dist/index374.js +3 -3
  350. package/dist/index375.js +1 -1
  351. package/dist/index376.js +3 -3
  352. package/dist/index378.js +2 -2
  353. package/dist/index380.js +1 -1
  354. package/dist/index381.js +2 -2
  355. package/dist/index387.js +3 -5
  356. package/dist/index387.js.map +1 -1
  357. package/dist/index388.js +3 -5
  358. package/dist/index388.js.map +1 -1
  359. package/dist/index389.js +5 -4
  360. package/dist/index389.js.map +1 -1
  361. package/dist/index390.js +4 -15
  362. package/dist/index390.js.map +1 -1
  363. package/dist/index391.js +4 -9
  364. package/dist/index391.js.map +1 -1
  365. package/dist/index392.js +15 -5
  366. package/dist/index392.js.map +1 -1
  367. package/dist/index393.js +8 -4
  368. package/dist/index393.js.map +1 -1
  369. package/dist/index394.js +5 -545
  370. package/dist/index394.js.map +1 -1
  371. package/dist/index395.js +5 -47
  372. package/dist/index395.js.map +1 -1
  373. package/dist/index396.js +543 -15
  374. package/dist/index396.js.map +1 -1
  375. package/dist/index397.js +47 -6
  376. package/dist/index397.js.map +1 -1
  377. package/dist/index398.js +17 -7
  378. package/dist/index398.js.map +1 -1
  379. package/dist/index399.js +5 -6
  380. package/dist/index399.js.map +1 -1
  381. package/dist/index400.js +7 -7
  382. package/dist/index400.js.map +1 -1
  383. package/dist/index401.js +6 -11
  384. package/dist/index401.js.map +1 -1
  385. package/dist/index402.js +7 -8
  386. package/dist/index402.js.map +1 -1
  387. package/dist/index403.js +11 -12
  388. package/dist/index403.js.map +1 -1
  389. package/dist/index404.js +9 -3
  390. package/dist/index404.js.map +1 -1
  391. package/dist/index405.js +13 -3
  392. package/dist/index405.js.map +1 -1
  393. package/dist/index407.js +1 -1
  394. package/dist/index408.js +7 -4
  395. package/dist/index408.js.map +1 -1
  396. package/dist/index409.js +2 -56
  397. package/dist/index409.js.map +1 -1
  398. package/dist/index410.js +43 -67
  399. package/dist/index410.js.map +1 -1
  400. package/dist/index411.js +56 -31
  401. package/dist/index411.js.map +1 -1
  402. package/dist/index412.js +8 -9
  403. package/dist/index412.js.map +1 -1
  404. package/dist/index413.js +2 -153
  405. package/dist/index413.js.map +1 -1
  406. package/dist/index414.js +54 -107
  407. package/dist/index414.js.map +1 -1
  408. package/dist/index415.js +55 -7
  409. package/dist/index415.js.map +1 -1
  410. package/dist/index416.js +5 -2
  411. package/dist/index416.js.map +1 -1
  412. package/dist/index417.js +54 -42
  413. package/dist/index417.js.map +1 -1
  414. package/dist/index418.js +68 -56
  415. package/dist/index418.js.map +1 -1
  416. package/dist/index419.js +31 -8
  417. package/dist/index419.js.map +1 -1
  418. package/dist/index420.js +9 -2
  419. package/dist/index420.js.map +1 -1
  420. package/dist/index421.js +152 -54
  421. package/dist/index421.js.map +1 -1
  422. package/dist/index422.js +108 -56
  423. package/dist/index422.js.map +1 -1
  424. package/dist/index423.js +2 -16
  425. package/dist/index423.js.map +1 -1
  426. package/dist/index424.js +2 -29
  427. package/dist/index424.js.map +1 -1
  428. package/dist/index425.js +2 -13
  429. package/dist/index425.js.map +1 -1
  430. package/dist/index426.js +2 -7
  431. package/dist/index426.js.map +1 -1
  432. package/dist/index427.js +16 -2
  433. package/dist/index427.js.map +1 -1
  434. package/dist/index428.js +29 -2
  435. package/dist/index428.js.map +1 -1
  436. package/dist/index429.js +13 -2
  437. package/dist/index429.js.map +1 -1
  438. package/dist/index430.js +7 -2
  439. package/dist/index430.js.map +1 -1
  440. package/dist/index49.js +28 -28
  441. package/dist/index50.js +21 -21
  442. package/dist/index51.js +1 -1
  443. package/dist/index52.js +8 -8
  444. package/dist/index53.js +2 -2
  445. package/dist/index55.js +17 -17
  446. package/dist/index56.js +4 -4
  447. package/dist/index57.js +3 -3
  448. package/dist/index58.js +7 -7
  449. package/dist/index59.js +4 -4
  450. package/dist/index60.js +12 -12
  451. package/dist/index61.js +2 -2
  452. package/dist/index62.js +2 -2
  453. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index292.js","sources":["../../../node_modules/@base-ui/react/esm/select/store.js"],"sourcesContent":["import { createSelector } from '@base-ui/utils/store';\nimport { compareItemEquality } from \"../internals/itemEquality.js\";\nimport { hasNullItemLabel, stringifyAsValue } from \"../internals/resolveValueLabel.js\";\nexport const selectors = {\n id: createSelector(state => state.id),\n labelId: createSelector(state => state.labelId),\n modal: createSelector(state => state.modal),\n multiple: createSelector(state => state.multiple),\n items: createSelector(state => state.items),\n itemToStringLabel: createSelector(state => state.itemToStringLabel),\n itemToStringValue: createSelector(state => state.itemToStringValue),\n isItemEqualToValue: createSelector(state => state.isItemEqualToValue),\n value: createSelector(state => state.value),\n hasSelectedValue: createSelector(state => {\n const {\n value,\n multiple,\n itemToStringValue\n } = state;\n if (value == null) {\n return false;\n }\n if (multiple && Array.isArray(value)) {\n return value.length > 0;\n }\n return stringifyAsValue(value, itemToStringValue) !== '';\n }),\n hasNullItemLabel: createSelector((state, enabled) => {\n return enabled ? hasNullItemLabel(state.items) : false;\n }),\n open: createSelector(state => state.open),\n mounted: createSelector(state => state.mounted),\n forceMount: createSelector(state => state.forceMount),\n transitionStatus: createSelector(state => state.transitionStatus),\n openMethod: createSelector(state => state.openMethod),\n activeIndex: createSelector(state => state.activeIndex),\n selectedIndex: createSelector(state => state.selectedIndex),\n isActive: createSelector((state, index) => state.activeIndex === index),\n isSelected: createSelector((state, index, itemValue) => {\n const comparer = state.isItemEqualToValue;\n const storeValue = state.value;\n if (state.multiple) {\n return Array.isArray(storeValue) && storeValue.some(selectedItem => compareItemEquality(itemValue, selectedItem, comparer));\n }\n\n // `selectedIndex` is only updated after the items mount for the first time,\n // the value check avoids a re-render for the initially selected item.\n if (state.selectedIndex === index && state.selectedIndex !== null) {\n return true;\n }\n return compareItemEquality(itemValue, storeValue, comparer);\n }),\n isSelectedByFocus: createSelector((state, index) => {\n return state.selectedIndex === index;\n }),\n popupProps: createSelector(state => state.popupProps),\n triggerProps: createSelector(state => state.triggerProps),\n triggerElement: createSelector(state => state.triggerElement),\n positionerElement: createSelector(state => state.positionerElement),\n listElement: createSelector(state => state.listElement),\n scrollUpArrowVisible: createSelector(state => state.scrollUpArrowVisible),\n scrollDownArrowVisible: createSelector(state => state.scrollDownArrowVisible),\n hasScrollArrows: createSelector(state => state.hasScrollArrows)\n};"],"names":["selectors","createSelector","state","value","multiple","itemToStringValue","stringifyAsValue","enabled","hasNullItemLabel","index","itemValue","comparer","storeValue","selectedItem","compareItemEquality"],"mappings":";;;AAGY,MAACA,IAAY;AAAA,EACvB,IAAIC,EAAe,CAAAC,MAASA,EAAM,EAAE;AAAA,EACpC,SAASD,EAAe,CAAAC,MAASA,EAAM,OAAO;AAAA,EAC9C,OAAOD,EAAe,CAAAC,MAASA,EAAM,KAAK;AAAA,EAC1C,UAAUD,EAAe,CAAAC,MAASA,EAAM,QAAQ;AAAA,EAChD,OAAOD,EAAe,CAAAC,MAASA,EAAM,KAAK;AAAA,EAC1C,mBAAmBD,EAAe,CAAAC,MAASA,EAAM,iBAAiB;AAAA,EAClE,mBAAmBD,EAAe,CAAAC,MAASA,EAAM,iBAAiB;AAAA,EAClE,oBAAoBD,EAAe,CAAAC,MAASA,EAAM,kBAAkB;AAAA,EACpE,OAAOD,EAAe,CAAAC,MAASA,EAAM,KAAK;AAAA,EAC1C,kBAAkBD,EAAe,CAAAC,MAAS;AACxC,UAAM;AAAA,MACJ,OAAAC;AAAA,MACA,UAAAC;AAAA,MACA,mBAAAC;AAAA,IACN,IAAQH;AACJ,WAAIC,KAAS,OACJ,KAELC,KAAY,MAAM,QAAQD,CAAK,IAC1BA,EAAM,SAAS,IAEjBG,EAAiBH,GAAOE,CAAiB,MAAM;AAAA,EACxD,CAAC;AAAA,EACD,kBAAkBJ,EAAe,CAACC,GAAOK,MAChCA,IAAUC,EAAiBN,EAAM,KAAK,IAAI,EAClD;AAAA,EACD,MAAMD,EAAe,CAAAC,MAASA,EAAM,IAAI;AAAA,EACxC,SAASD,EAAe,CAAAC,MAASA,EAAM,OAAO;AAAA,EAC9C,YAAYD,EAAe,CAAAC,MAASA,EAAM,UAAU;AAAA,EACpD,kBAAkBD,EAAe,CAAAC,MAASA,EAAM,gBAAgB;AAAA,EAChE,YAAYD,EAAe,CAAAC,MAASA,EAAM,UAAU;AAAA,EACpD,aAAaD,EAAe,CAAAC,MAASA,EAAM,WAAW;AAAA,EACtD,eAAeD,EAAe,CAAAC,MAASA,EAAM,aAAa;AAAA,EAC1D,UAAUD,EAAe,CAACC,GAAOO,MAAUP,EAAM,gBAAgBO,CAAK;AAAA,EACtE,YAAYR,EAAe,CAACC,GAAOO,GAAOC,MAAc;AACtD,UAAMC,IAAWT,EAAM,oBACjBU,IAAaV,EAAM;AACzB,WAAIA,EAAM,WACD,MAAM,QAAQU,CAAU,KAAKA,EAAW,KAAK,CAAAC,MAAgBC,EAAoBJ,GAAWG,GAAcF,CAAQ,CAAC,IAKxHT,EAAM,kBAAkBO,KAASP,EAAM,kBAAkB,OACpD,KAEFY,EAAoBJ,GAAWE,GAAYD,CAAQ;AAAA,EAC5D,CAAC;AAAA,EACD,mBAAmBV,EAAe,CAACC,GAAOO,MACjCP,EAAM,kBAAkBO,CAChC;AAAA,EACD,YAAYR,EAAe,CAAAC,MAASA,EAAM,UAAU;AAAA,EACpD,cAAcD,EAAe,CAAAC,MAASA,EAAM,YAAY;AAAA,EACxD,gBAAgBD,EAAe,CAAAC,MAASA,EAAM,cAAc;AAAA,EAC5D,mBAAmBD,EAAe,CAAAC,MAASA,EAAM,iBAAiB;AAAA,EAClE,aAAaD,EAAe,CAAAC,MAASA,EAAM,WAAW;AAAA,EACtD,sBAAsBD,EAAe,CAAAC,MAASA,EAAM,oBAAoB;AAAA,EACxE,wBAAwBD,EAAe,CAAAC,MAASA,EAAM,sBAAsB;AAAA,EAC5E,iBAAiBD,EAAe,CAAAC,MAASA,EAAM,eAAe;AAChE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index292.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/index293.js CHANGED
@@ -1,24 +1,12 @@
1
- import * as e from "react";
2
- import { NOOP as r } from "./index286.js";
3
- const t = /* @__PURE__ */ e.createContext({
4
- formRef: {
5
- current: {
6
- fields: /* @__PURE__ */ new Map()
7
- }
8
- },
9
- errors: {},
10
- clearErrors: r,
11
- validationMode: "onSubmit",
12
- submitAttemptedRef: {
13
- current: !1
14
- }
15
- });
16
- process.env.NODE_ENV !== "production" && (t.displayName = "FormContext");
17
- function n() {
18
- return e.useContext(t);
1
+ function o(e, n, t = "long") {
2
+ return new Intl.DateTimeFormat("en-US", {
3
+ // Enforces engine to render the time. Without the option JavaScriptCore omits it.
4
+ hour: "numeric",
5
+ timeZone: e,
6
+ timeZoneName: t
7
+ }).format(n).split(/\s/g).slice(2).join(" ");
19
8
  }
20
9
  export {
21
- t as FormContext,
22
- n as useFormContext
10
+ o as tzName
23
11
  };
24
12
  //# sourceMappingURL=index293.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index293.js","sources":["../../../node_modules/@base-ui/react/esm/internals/form-context/FormContext.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { NOOP } from \"../noop.js\";\nexport const FormContext = /*#__PURE__*/React.createContext({\n formRef: {\n current: {\n fields: new Map()\n }\n },\n errors: {},\n clearErrors: NOOP,\n validationMode: 'onSubmit',\n submitAttemptedRef: {\n current: false\n }\n});\nif (process.env.NODE_ENV !== \"production\") FormContext.displayName = \"FormContext\";\nexport function useFormContext() {\n return React.useContext(FormContext);\n}"],"names":["FormContext","React","NOOP","useFormContext"],"mappings":";;AAIY,MAACA,IAA2B,gBAAAC,EAAM,cAAc;AAAA,EAC1D,SAAS;AAAA,IACP,SAAS;AAAA,MACP,QAAQ,oBAAI,IAAG;AAAA,IACrB;AAAA,EACA;AAAA,EACE,QAAQ,CAAA;AAAA,EACR,aAAaC;AAAA,EACb,gBAAgB;AAAA,EAChB,oBAAoB;AAAA,IAClB,SAAS;AAAA,EACb;AACA,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcF,EAAY,cAAc;AAC9D,SAASG,IAAiB;AAC/B,SAAOF,EAAM,WAAWD,CAAW;AACrC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index293.js","sources":["../../../node_modules/@date-fns/tz/tzName/index.js"],"sourcesContent":["/**\n * Time zone name format.\n */\n\n/**\n * The function returns the time zone name for the given date in the specified\n * time zone.\n *\n * It uses the `Intl.DateTimeFormat` API and by default outputs the time zone\n * name in a long format, e.g. \"Pacific Standard Time\" or\n * \"Singapore Standard Time\".\n *\n * It is possible to specify the format as the third argument using one of the following options\n *\n * - \"short\": e.g. \"EDT\" or \"GMT+8\".\n * - \"long\": e.g. \"Eastern Daylight Time\".\n * - \"shortGeneric\": e.g. \"ET\" or \"Singapore Time\".\n * - \"longGeneric\": e.g. \"Eastern Time\" or \"Singapore Standard Time\".\n *\n * These options correspond to TR35 tokens `z..zzz`, `zzzz`, `v`, and `vvvv` respectively: https://www.unicode.org/reports/tr35/tr35-dates.html#dfst-zone\n *\n * @param timeZone - Time zone name (IANA or UTC offset)\n * @param date - Date object to get the time zone name for\n * @param format - Optional format of the time zone name. Defaults to \"long\". Can be \"short\", \"long\", \"shortGeneric\", or \"longGeneric\".\n *\n * @returns Time zone name (e.g. \"Singapore Standard Time\")\n */\nexport function tzName(timeZone, date, format = \"long\") {\n return new Intl.DateTimeFormat(\"en-US\", {\n // Enforces engine to render the time. Without the option JavaScriptCore omits it.\n hour: \"numeric\",\n timeZone: timeZone,\n timeZoneName: format\n }).format(date).split(/\\s/g) // Format.JS uses non-breaking spaces\n .slice(2) // Skip the hour and AM/PM parts\n .join(\" \");\n}"],"names":["tzName","timeZone","date","format"],"mappings":"AA2BO,SAASA,EAAOC,GAAUC,GAAMC,IAAS,QAAQ;AACtD,SAAO,IAAI,KAAK,eAAe,SAAS;AAAA;AAAA,IAEtC,MAAM;AAAA,IACN,UAAUF;AAAA,IACV,cAAcE;AAAA,EAClB,CAAG,EAAE,OAAOD,CAAI,EAAE,MAAM,KAAK,EAC1B,MAAM,CAAC,EACP,KAAK,GAAG;AACX;","x_google_ignoreList":[0]}
package/dist/index294.js CHANGED
@@ -1,74 +1,23 @@
1
- import * as c from "react";
2
- import { serializeValue as a } from "./index365.js";
3
- import { j as i } from "./index30.js";
4
- function s(r) {
5
- return r != null && r.length > 0 && typeof r[0] == "object" && r[0] != null && "items" in r[0];
6
- }
7
- function A(r) {
8
- if (!Array.isArray(r))
9
- return r != null && "null" in r;
10
- const n = r;
11
- if (s(n)) {
12
- for (const l of n)
13
- for (const u of l.items)
14
- if (u && u.value == null && u.label != null)
15
- return !0;
16
- return !1;
17
- }
18
- for (const l of n)
19
- if (l && l.value == null && l.label != null)
20
- return !0;
21
- return !1;
22
- }
23
- function b(r, n) {
24
- if (n && r != null)
25
- return n(r) ?? "";
26
- if (r && typeof r == "object") {
27
- if ("label" in r && r.label != null)
28
- return String(r.label);
29
- if ("value" in r)
30
- return String(r.value);
31
- }
32
- return a(r);
33
- }
34
- function h(r, n) {
35
- return n && r != null ? n(r) ?? "" : r && typeof r == "object" && "value" in r && "label" in r ? a(r.value) : a(r);
36
- }
37
- function p(r, n, l) {
38
- function u() {
39
- return b(r, l);
40
- }
41
- if (l && r != null)
42
- return l(r);
43
- if (r && typeof r == "object" && "label" in r && r.label != null)
44
- return r.label;
45
- if (n && !Array.isArray(n))
46
- return n[r] ?? u();
47
- if (Array.isArray(n)) {
48
- const e = n, t = s(e) ? e.flatMap((f) => f.items) : e;
49
- if (r == null || typeof r != "object") {
50
- const f = t.find((o) => o.value === r);
51
- return f && f.label != null ? f.label : u();
52
- }
53
- if ("value" in r) {
54
- const f = t.find((o) => o && o.value === r.value);
55
- if (f && f.label != null)
56
- return f.label;
57
- }
1
+ const e = {}, s = {};
2
+ function u(t, r) {
3
+ try {
4
+ const n = (e[t] ||= new Intl.DateTimeFormat("en-US", {
5
+ timeZone: t,
6
+ timeZoneName: "longOffset"
7
+ }).format)(r).split("GMT")[1];
8
+ return n in s ? s[n] : o(n, n.split(":"));
9
+ } catch {
10
+ if (t in s) return s[t];
11
+ const f = t?.match(a);
12
+ return f ? o(t, f.slice(1)) : NaN;
58
13
  }
59
- return u();
60
14
  }
61
- function d(r, n, l) {
62
- return r.reduce((u, e, t) => (t > 0 && u.push(", "), u.push(/* @__PURE__ */ i.jsx(c.Fragment, {
63
- children: p(e, n, l)
64
- }, t)), u), []);
15
+ const a = /([+-]\d\d):?(\d\d)?/;
16
+ function o(t, r) {
17
+ const f = +(r[0] || 0), n = +(r[1] || 0), c = +(r[2] || 0) / 60;
18
+ return s[t] = f * 60 + n > 0 ? f * 60 + n + c : f * 60 - n - c;
65
19
  }
66
20
  export {
67
- A as hasNullItemLabel,
68
- s as isGroupedItems,
69
- d as resolveMultipleLabels,
70
- p as resolveSelectedLabel,
71
- b as stringifyAsLabel,
72
- h as stringifyAsValue
21
+ u as tzOffset
73
22
  };
74
23
  //# sourceMappingURL=index294.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index294.js","sources":["../../../node_modules/@base-ui/react/esm/internals/resolveValueLabel.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { serializeValue } from \"./serializeValue.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function isGroupedItems(items) {\n return items != null && items.length > 0 && typeof items[0] === 'object' && items[0] != null && 'items' in items[0];\n}\n\n/**\n * Checks if the items array contains an item with a null value that has a non-null label.\n */\nexport function hasNullItemLabel(items) {\n if (!Array.isArray(items)) {\n return items != null && 'null' in items;\n }\n const arrayItems = items;\n if (isGroupedItems(arrayItems)) {\n for (const group of arrayItems) {\n for (const item of group.items) {\n if (item && item.value == null && item.label != null) {\n return true;\n }\n }\n }\n return false;\n }\n for (const item of arrayItems) {\n if (item && item.value == null && item.label != null) {\n return true;\n }\n }\n return false;\n}\nexport function stringifyAsLabel(item, itemToStringLabel) {\n if (itemToStringLabel && item != null) {\n return itemToStringLabel(item) ?? '';\n }\n if (item && typeof item === 'object') {\n if ('label' in item && item.label != null) {\n return String(item.label);\n }\n if ('value' in item) {\n return String(item.value);\n }\n }\n return serializeValue(item);\n}\nexport function stringifyAsValue(item, itemToStringValue) {\n if (itemToStringValue && item != null) {\n return itemToStringValue(item) ?? '';\n }\n if (item && typeof item === 'object' && 'value' in item && 'label' in item) {\n return serializeValue(item.value);\n }\n return serializeValue(item);\n}\nexport function resolveSelectedLabel(value, items, itemToStringLabel) {\n function fallback() {\n return stringifyAsLabel(value, itemToStringLabel);\n }\n if (itemToStringLabel && value != null) {\n return itemToStringLabel(value);\n }\n\n // Custom object with explicit label takes precedence\n if (value && typeof value === 'object' && 'label' in value && value.label != null) {\n return value.label;\n }\n\n // Items provided as plain record map\n if (items && !Array.isArray(items)) {\n return items[value] ?? fallback();\n }\n\n // Items provided as array (flat or grouped)\n if (Array.isArray(items)) {\n const arrayItems = items;\n const flatItems = isGroupedItems(arrayItems) ? arrayItems.flatMap(group => group.items) : arrayItems;\n if (value == null || typeof value !== 'object') {\n const match = flatItems.find(item => item.value === value);\n if (match && match.label != null) {\n return match.label;\n }\n return fallback();\n }\n\n // Object without explicit label: try matching by its `value` property\n if ('value' in value) {\n const match = flatItems.find(item => item && item.value === value.value);\n if (match && match.label != null) {\n return match.label;\n }\n }\n }\n return fallback();\n}\nexport function resolveMultipleLabels(values, items, itemToStringLabel) {\n return values.reduce((acc, value, index) => {\n if (index > 0) {\n acc.push(', ');\n }\n acc.push(/*#__PURE__*/_jsx(React.Fragment, {\n children: resolveSelectedLabel(value, items, itemToStringLabel)\n }, index));\n return acc;\n }, []);\n}"],"names":["isGroupedItems","items","hasNullItemLabel","arrayItems","group","item","stringifyAsLabel","itemToStringLabel","serializeValue","stringifyAsValue","itemToStringValue","resolveSelectedLabel","value","fallback","flatItems","match","resolveMultipleLabels","values","acc","index","_jsx","React"],"mappings":";;;AAKO,SAASA,EAAeC,GAAO;AACpC,SAAOA,KAAS,QAAQA,EAAM,SAAS,KAAK,OAAOA,EAAM,CAAC,KAAM,YAAYA,EAAM,CAAC,KAAK,QAAQ,WAAWA,EAAM,CAAC;AACpH;AAKO,SAASC,EAAiBD,GAAO;AACtC,MAAI,CAAC,MAAM,QAAQA,CAAK;AACtB,WAAOA,KAAS,QAAQ,UAAUA;AAEpC,QAAME,IAAaF;AACnB,MAAID,EAAeG,CAAU,GAAG;AAC9B,eAAWC,KAASD;AAClB,iBAAWE,KAAQD,EAAM;AACvB,YAAIC,KAAQA,EAAK,SAAS,QAAQA,EAAK,SAAS;AAC9C,iBAAO;AAIb,WAAO;AAAA,EACT;AACA,aAAWA,KAAQF;AACjB,QAAIE,KAAQA,EAAK,SAAS,QAAQA,EAAK,SAAS;AAC9C,aAAO;AAGX,SAAO;AACT;AACO,SAASC,EAAiBD,GAAME,GAAmB;AACxD,MAAIA,KAAqBF,KAAQ;AAC/B,WAAOE,EAAkBF,CAAI,KAAK;AAEpC,MAAIA,KAAQ,OAAOA,KAAS,UAAU;AACpC,QAAI,WAAWA,KAAQA,EAAK,SAAS;AACnC,aAAO,OAAOA,EAAK,KAAK;AAE1B,QAAI,WAAWA;AACb,aAAO,OAAOA,EAAK,KAAK;AAAA,EAE5B;AACA,SAAOG,EAAeH,CAAI;AAC5B;AACO,SAASI,EAAiBJ,GAAMK,GAAmB;AACxD,SAAIA,KAAqBL,KAAQ,OACxBK,EAAkBL,CAAI,KAAK,KAEhCA,KAAQ,OAAOA,KAAS,YAAY,WAAWA,KAAQ,WAAWA,IAC7DG,EAAeH,EAAK,KAAK,IAE3BG,EAAeH,CAAI;AAC5B;AACO,SAASM,EAAqBC,GAAOX,GAAOM,GAAmB;AACpE,WAASM,IAAW;AAClB,WAAOP,EAAiBM,GAAOL,CAAiB;AAAA,EAClD;AACA,MAAIA,KAAqBK,KAAS;AAChC,WAAOL,EAAkBK,CAAK;AAIhC,MAAIA,KAAS,OAAOA,KAAU,YAAY,WAAWA,KAASA,EAAM,SAAS;AAC3E,WAAOA,EAAM;AAIf,MAAIX,KAAS,CAAC,MAAM,QAAQA,CAAK;AAC/B,WAAOA,EAAMW,CAAK,KAAKC,EAAQ;AAIjC,MAAI,MAAM,QAAQZ,CAAK,GAAG;AACxB,UAAME,IAAaF,GACba,IAAYd,EAAeG,CAAU,IAAIA,EAAW,QAAQ,CAAAC,MAASA,EAAM,KAAK,IAAID;AAC1F,QAAIS,KAAS,QAAQ,OAAOA,KAAU,UAAU;AAC9C,YAAMG,IAAQD,EAAU,KAAK,CAAAT,MAAQA,EAAK,UAAUO,CAAK;AACzD,aAAIG,KAASA,EAAM,SAAS,OACnBA,EAAM,QAERF,EAAQ;AAAA,IACjB;AAGA,QAAI,WAAWD,GAAO;AACpB,YAAMG,IAAQD,EAAU,KAAK,CAAAT,MAAQA,KAAQA,EAAK,UAAUO,EAAM,KAAK;AACvE,UAAIG,KAASA,EAAM,SAAS;AAC1B,eAAOA,EAAM;AAAA,IAEjB;AAAA,EACF;AACA,SAAOF,EAAQ;AACjB;AACO,SAASG,EAAsBC,GAAQhB,GAAOM,GAAmB;AACtE,SAAOU,EAAO,OAAO,CAACC,GAAKN,GAAOO,OAC5BA,IAAQ,KACVD,EAAI,KAAK,IAAI,GAEfA,EAAI,KAAkBE,gBAAAA,MAAKC,EAAM,UAAU;AAAA,IACzC,UAAUV,EAAqBC,GAAOX,GAAOM,CAAiB;AAAA,EACpE,GAAOY,CAAK,CAAC,GACFD,IACN,CAAA,CAAE;AACP;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index294.js","sources":["../../../node_modules/@date-fns/tz/tzOffset/index.js"],"sourcesContent":["const offsetFormatCache = {};\nconst offsetCache = {};\n\n/**\n * The function returns UTC offset in minutes for the given date in specified\n * time zone.\n *\n * Unlike `Date.prototype.getTimezoneOffset`, this function returns the value\n * mirrored to the sign of the offset in the time zone. For Asia/Singapore\n * (UTC+8), `tzOffset` returns `480`, while `getTimezoneOffset` returns `-480`.\n *\n * It uses `Intl.DateTimeFormat` internally to access otherwise unavailable\n * runtime's time zone data, and falls back to basic manual parsing if Intl API\n * is not supported (e.g., older Node.js versions, React Native's Hermes, etc.).\n *\n * @param timeZone - Time zone name (IANA or UTC offset).\n * @param date - Date to check the offset for.\n *\n * @returns UTC offset in minutes (e.g., `480` for date in UTC+8).\n */\nexport function tzOffset(timeZone, date) {\n try {\n // Create `Intl.DateTimeFormat` with `\"longOffset\"` that gives us consistent\n // date strings like `\"5/19/2026, GMT-08:00\"`.\n const format = offsetFormatCache[timeZone] ||= new Intl.DateTimeFormat(\"en-US\", {\n timeZone,\n timeZoneName: \"longOffset\"\n }).format;\n\n // Get `\"-08:00\"`.\n const offsetStr = format(date).split(\"GMT\")[1];\n\n // Avoid parsing the same offset string.\n if (offsetStr in offsetCache) return offsetCache[offsetStr];\n\n // Calculate offset from `[\"-08\", \"00\"]` and cache it.\n return calcOffset(offsetStr, offsetStr.split(\":\"));\n } catch {\n // Fallback to manual parsing if the runtime doesn't support\n // `±HH:MM/±HHMM/±HH`. See: https://github.com/nodejs/node/issues/53419.\n if (timeZone in offsetCache) return offsetCache[timeZone];\n const captures = timeZone?.match(offsetRe);\n if (captures) return calcOffset(timeZone, captures.slice(1));\n return NaN;\n }\n}\nconst offsetRe = /([+-]\\d\\d):?(\\d\\d)?/;\nfunction calcOffset(cacheStr, values) {\n const hours = +(values[0] || 0);\n const minutes = +(values[1] || 0);\n // Convert seconds to minutes by dividing by 60 to keep the function return in minutes.\n const seconds = +(values[2] || 0) / 60;\n return offsetCache[cacheStr] = hours * 60 + minutes > 0 ? hours * 60 + minutes + seconds : hours * 60 - minutes - seconds;\n}"],"names":["offsetFormatCache","offsetCache","tzOffset","timeZone","date","offsetStr","calcOffset","captures","offsetRe","cacheStr","values","hours","minutes","seconds"],"mappings":"AAAA,MAAMA,IAAoB,CAAA,GACpBC,IAAc,CAAA;AAmBb,SAASC,EAASC,GAAUC,GAAM;AACvC,MAAI;AASF,UAAMC,KANSL,EAAkBG,CAAQ,MAAM,IAAI,KAAK,eAAe,SAAS;AAAA,MAC9E,UAAAA;AAAA,MACA,cAAc;AAAA,IACpB,CAAK,EAAE,QAGsBC,CAAI,EAAE,MAAM,KAAK,EAAE,CAAC;AAG7C,WAAIC,KAAaJ,IAAoBA,EAAYI,CAAS,IAGnDC,EAAWD,GAAWA,EAAU,MAAM,GAAG,CAAC;AAAA,EACnD,QAAQ;AAGN,QAAIF,KAAYF,EAAa,QAAOA,EAAYE,CAAQ;AACxD,UAAMI,IAAWJ,GAAU,MAAMK,CAAQ;AACzC,WAAID,IAAiBD,EAAWH,GAAUI,EAAS,MAAM,CAAC,CAAC,IACpD;AAAA,EACT;AACF;AACA,MAAMC,IAAW;AACjB,SAASF,EAAWG,GAAUC,GAAQ;AACpC,QAAMC,IAAQ,EAAED,EAAO,CAAC,KAAK,IACvBE,IAAU,EAAEF,EAAO,CAAC,KAAK,IAEzBG,IAAU,EAAEH,EAAO,CAAC,KAAK,KAAK;AACpC,SAAOT,EAAYQ,CAAQ,IAAIE,IAAQ,KAAKC,IAAU,IAAID,IAAQ,KAAKC,IAAUC,IAAUF,IAAQ,KAAKC,IAAUC;AACpH;","x_google_ignoreList":[0]}
package/dist/index295.js CHANGED
@@ -1,21 +1,20 @@
1
- const i = (n, r) => Object.is(n, r);
2
- function u(n, r, t) {
3
- return n == null || r == null ? Object.is(n, r) : t(n, r);
4
- }
5
- function e(n, r, t) {
6
- return !n || n.length === 0 ? !1 : n.some((f) => f === void 0 ? !1 : u(r, f, t));
7
- }
8
- function o(n, r, t) {
9
- return !n || n.length === 0 ? -1 : n.findIndex((f) => f === void 0 ? !1 : u(f, r, t));
10
- }
11
- function I(n, r, t) {
12
- return n.filter((f) => !u(r, f, t));
1
+ function j(r, n, I, W) {
2
+ const s = r[0], o = r[r.length - 1], { ISOWeek: c, fixedWeeks: u, broadcastCalendar: a } = I ?? {}, { addDays: i, differenceInCalendarDays: M, differenceInCalendarMonths: C, endOfBroadcastWeek: O, endOfISOWeek: k, endOfMonth: h, endOfWeek: l, isAfter: E, startOfBroadcastWeek: F, startOfISOWeek: S, startOfWeek: p } = W, g = a ? F(s, W) : c ? S(s) : p(s), D = a ? O(o) : c ? k(h(o)) : l(h(o)), f = n && (a ? O(n) : c ? k(n) : l(n)), x = f && E(D, f) ? f : D, A = M(x, g), B = C(o, s) + 1, e = [];
3
+ for (let t = 0; t <= A; t++) {
4
+ const d = i(g, t);
5
+ e.push(d);
6
+ }
7
+ const y = (a ? 35 : 42) * B;
8
+ if (u && e.length < y) {
9
+ const t = y - e.length;
10
+ for (let d = 0; d < t; d++) {
11
+ const T = i(e[e.length - 1], 1);
12
+ e.push(T);
13
+ }
14
+ }
15
+ return e;
13
16
  }
14
17
  export {
15
- u as compareItemEquality,
16
- i as defaultItemEquality,
17
- o as findItemIndex,
18
- I as removeItem,
19
- e as selectedValueIncludes
18
+ j as getDates
20
19
  };
21
20
  //# sourceMappingURL=index295.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index295.js","sources":["../../../node_modules/@base-ui/react/esm/internals/itemEquality.js"],"sourcesContent":["export const defaultItemEquality = (itemValue, selectedValue) => Object.is(itemValue, selectedValue);\nexport function compareItemEquality(itemValue, selectedValue, comparer) {\n if (itemValue == null || selectedValue == null) {\n return Object.is(itemValue, selectedValue);\n }\n return comparer(itemValue, selectedValue);\n}\nexport function selectedValueIncludes(selectedValues, itemValue, comparer) {\n if (!selectedValues || selectedValues.length === 0) {\n return false;\n }\n return selectedValues.some(selectedValue => {\n if (selectedValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function findItemIndex(itemValues, selectedValue, comparer) {\n if (!itemValues || itemValues.length === 0) {\n return -1;\n }\n return itemValues.findIndex(itemValue => {\n if (itemValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function removeItem(selectedValues, itemValue, comparer) {\n return selectedValues.filter(selectedValue => !compareItemEquality(itemValue, selectedValue, comparer));\n}"],"names":["defaultItemEquality","itemValue","selectedValue","compareItemEquality","comparer","selectedValueIncludes","selectedValues","findItemIndex","itemValues","removeItem"],"mappings":"AAAY,MAACA,IAAsB,CAACC,GAAWC,MAAkB,OAAO,GAAGD,GAAWC,CAAa;AAC5F,SAASC,EAAoBF,GAAWC,GAAeE,GAAU;AACtE,SAAIH,KAAa,QAAQC,KAAiB,OACjC,OAAO,GAAGD,GAAWC,CAAa,IAEpCE,EAASH,GAAWC,CAAa;AAC1C;AACO,SAASG,EAAsBC,GAAgBL,GAAWG,GAAU;AACzE,SAAI,CAACE,KAAkBA,EAAe,WAAW,IACxC,KAEFA,EAAe,KAAK,CAAAJ,MACrBA,MAAkB,SACb,KAEFC,EAAoBF,GAAWC,GAAeE,CAAQ,CAC9D;AACH;AACO,SAASG,EAAcC,GAAYN,GAAeE,GAAU;AACjE,SAAI,CAACI,KAAcA,EAAW,WAAW,IAChC,KAEFA,EAAW,UAAU,CAAAP,MACtBA,MAAc,SACT,KAEFE,EAAoBF,GAAWC,GAAeE,CAAQ,CAC9D;AACH;AACO,SAASK,EAAWH,GAAgBL,GAAWG,GAAU;AAC9D,SAAOE,EAAe,OAAO,CAAAJ,MAAiB,CAACC,EAAoBF,GAAWC,GAAeE,CAAQ,CAAC;AACxG;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"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,EAAc,CAAC,GAC5BK,IAAYL,EAAcA,EAAc,SAAS,CAAC,GAClD,EAAE,SAAAM,GAAS,YAAAC,GAAY,mBAAAC,EAAiB,IAAKN,KAAS,CAAA,GACtD,EAAE,SAAAO,GAAS,0BAAAC,GAA0B,4BAAAC,GAA4B,oBAAAC,GAAoB,cAAAC,GAAc,YAAAC,GAAY,WAAAC,GAAW,SAAAC,GAAS,sBAAAC,GAAsB,gBAAAC,GAAgB,aAAAC,EAAW,IAAMhB,GAC1LiB,IAAqBZ,IACrBS,EAAqBb,GAAYD,CAAO,IACxCG,IACIY,EAAed,CAAU,IACzBe,EAAYf,CAAU,GAC1BiB,IAAuBb,IACvBI,EAAmBP,CAAS,IAC5BC,IACIO,EAAaC,EAAWT,CAAS,CAAC,IAClCU,EAAUD,EAAWT,CAAS,CAAC,GAEnCiB,IAAoBrB,MACrBO,IACKI,EAAmBX,CAAO,IAC1BK,IACIO,EAAaZ,CAAO,IACpBc,EAAUd,CAAO,IAEzBsB,IAAcD,KAAqBN,EAAQK,GAAsBC,CAAiB,IAClFA,IACAD,GACAG,IAAUd,EAAyBa,GAAaH,CAAkB,GAClEK,IAAYd,EAA2BN,GAAWD,CAAU,IAAI,GAChEsB,IAAQ,CAAA;AACd,WAASC,IAAI,GAAGA,KAAKH,GAASG,KAAK;AAC/B,UAAMC,IAAOnB,EAAQW,GAAoBO,CAAC;AAC1C,IAAAD,EAAM,KAAKE,CAAI;AAAA,EACnB;AAGA,QAAMC,KADyBrB,IAAoB,KAAK,MACZiB;AAC5C,MAAIlB,KAAcmB,EAAM,SAASG,GAAY;AACzC,UAAMC,IAAYD,IAAaH,EAAM;AACrC,aAASC,IAAI,GAAGA,IAAIG,GAAWH,KAAK;AAChC,YAAMC,IAAOnB,EAAQiB,EAAMA,EAAM,SAAS,CAAC,GAAG,CAAC;AAC/C,MAAAA,EAAM,KAAKE,CAAI;AAAA,IACnB;AAAA,EACJ;AACA,SAAOF;AACX;","x_google_ignoreList":[0]}
package/dist/index296.js CHANGED
@@ -1,15 +1,11 @@
1
- import * as c from "react";
2
- import { useIsoLayoutEffect as o } from "./index283.js";
3
- import { useStableCallback as f } from "./index284.js";
4
- function u(r, n) {
5
- const t = c.useRef(r), e = f(n);
6
- o(() => {
7
- t.current !== r && e(t.current);
8
- }, [r, e]), o(() => {
9
- t.current = r;
10
- }, [r]);
1
+ function 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());
11
7
  }
12
8
  export {
13
- u as useValueChanged
9
+ a as getDays
14
10
  };
15
11
  //# sourceMappingURL=index296.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index296.js","sources":["../../../node_modules/@base-ui/react/esm/internals/useValueChanged.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nexport function useValueChanged(value, onChange) {\n const valueRef = React.useRef(value);\n const onChangeCallback = useStableCallback(onChange);\n useIsoLayoutEffect(() => {\n if (valueRef.current === value) {\n return;\n }\n onChangeCallback(valueRef.current);\n }, [value, onChangeCallback]);\n useIsoLayoutEffect(() => {\n valueRef.current = value;\n }, [value]);\n}"],"names":["useValueChanged","value","onChange","valueRef","React","onChangeCallback","useStableCallback","useIsoLayoutEffect"],"mappings":";;;AAKO,SAASA,EAAgBC,GAAOC,GAAU;AAC/C,QAAMC,IAAWC,EAAM,OAAOH,CAAK,GAC7BI,IAAmBC,EAAkBJ,CAAQ;AACnD,EAAAK,EAAmB,MAAM;AACvB,IAAIJ,EAAS,YAAYF,KAGzBI,EAAiBF,EAAS,OAAO;AAAA,EACnC,GAAG,CAACF,GAAOI,CAAgB,CAAC,GAC5BE,EAAmB,MAAM;AACvB,IAAAJ,EAAS,UAAUF;AAAA,EACrB,GAAG,CAACA,CAAK,CAAC;AACZ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"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,31 +1,14 @@
1
- import * as l from "react";
2
- import { useStableCallback as c } from "./index284.js";
3
- import { useEnhancedClickHandler as u } from "./index366.js";
4
- import { isIOS as m } from "./index323.js";
5
- import { useValueChanged as p } from "./index296.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 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;
27
10
  }
28
11
  export {
29
- C as useOpenInteractionType
12
+ i as getDisplayMonths
30
13
  };
31
14
  //# sourceMappingURL=index297.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index297.js","sources":["../../../node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useEnhancedClickHandler } from '@base-ui/utils/useEnhancedClickHandler';\nimport { isIOS } from '@base-ui/utils/detectBrowser';\nimport { useValueChanged } from \"../internals/useValueChanged.js\";\n\n/**\n * Determines the interaction type (keyboard, mouse, touch, etc.) that opened the component.\n *\n * @param open The open state of the component.\n */\nexport function useOpenInteractionType(open) {\n const [openMethod, setOpenMethod] = React.useState(null);\n const handleTriggerClick = useStableCallback((_, interactionType) => {\n if (!open) {\n setOpenMethod(interactionType || (\n // On iOS Safari, the hitslop around touch targets means tapping outside an element's\n // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`\n // will be \"\" in that case.\n isIOS ? 'touch' : ''));\n }\n });\n useValueChanged(open, previousOpen => {\n if (previousOpen && !open) {\n setOpenMethod(null);\n }\n });\n const {\n onClick,\n onPointerDown\n } = useEnhancedClickHandler(handleTriggerClick);\n return React.useMemo(() => ({\n openMethod,\n triggerProps: {\n onClick,\n onPointerDown\n }\n }), [openMethod, onClick, onPointerDown]);\n}"],"names":["useOpenInteractionType","open","openMethod","setOpenMethod","React","handleTriggerClick","useStableCallback","_","interactionType","isIOS","useValueChanged","previousOpen","onClick","onPointerDown","useEnhancedClickHandler"],"mappings":";;;;;AAaO,SAASA,EAAuBC,GAAM;AAC3C,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAM,SAAS,IAAI,GACjDC,IAAqBC,EAAkB,CAACC,GAAGC,MAAoB;AACnE,IAAKP,KACHE,EAAcK;AAAA;AAAA;AAAA,KAIdC,IAAQ,UAAU,GAAG;AAAA,EAEzB,CAAC;AACD,EAAAC,EAAgBT,GAAM,CAAAU,MAAgB;AACpC,IAAIA,KAAgB,CAACV,KACnBE,EAAc,IAAI;AAAA,EAEtB,CAAC;AACD,QAAM;AAAA,IACJ,SAAAS;AAAA,IACA,eAAAC;AAAA,EACJ,IAAMC,EAAwBT,CAAkB;AAC9C,SAAOD,EAAM,QAAQ,OAAO;AAAA,IAC1B,YAAAF;AAAA,IACA,cAAc;AAAA,MACZ,SAAAU;AAAA,MACA,eAAAC;AAAA,IACN;AAAA,EACA,IAAM,CAACX,GAAYU,GAASC,CAAa,CAAC;AAC1C;","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,17 +1,14 @@
1
- import { clamp as s } from "./index328.js";
2
- const f = 1;
3
- function a(n, t) {
4
- return Math.max(0, n - t);
5
- }
6
- function u(n, t) {
7
- if (t <= 0)
8
- return 0;
9
- const r = s(n, 0, t), e = r, c = t - r, o = e <= f, i = c <= f;
10
- return o && i ? e <= c ? 0 : t : o ? 0 : i ? t : r;
1
+ function u(i, o, n, e) {
2
+ const { month: s, defaultMonth: M, today: c = e.today(), numberOfMonths: f = 1 } = i;
3
+ let t = s || M || c;
4
+ const { differenceInCalendarMonths: h, addMonths: l, startOfMonth: r } = e;
5
+ if (n && h(n, t) < f - 1) {
6
+ const d = -1 * (f - 1);
7
+ t = l(n, d);
8
+ }
9
+ return o && h(t, o) < 0 && (t = o), r(t);
11
10
  }
12
11
  export {
13
- f as SCROLL_EDGE_TOLERANCE_PX,
14
- a as getMaxScrollOffset,
15
- u as normalizeScrollOffset
12
+ u as getInitialMonth
16
13
  };
17
14
  //# sourceMappingURL=index298.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index298.js","sources":["../../../node_modules/@base-ui/react/esm/utils/scrollEdges.js"],"sourcesContent":["import { clamp } from \"../internals/clamp.js\";\nexport const SCROLL_EDGE_TOLERANCE_PX = 1;\nexport function getMaxScrollOffset(scrollSize, clientSize) {\n return Math.max(0, scrollSize - clientSize);\n}\nexport function normalizeScrollOffset(value, max) {\n if (max <= 0) {\n return 0;\n }\n const clamped = clamp(value, 0, max);\n const startDistance = clamped;\n const endDistance = max - clamped;\n const withinStartTolerance = startDistance <= SCROLL_EDGE_TOLERANCE_PX;\n const withinEndTolerance = endDistance <= SCROLL_EDGE_TOLERANCE_PX;\n if (withinStartTolerance && withinEndTolerance) {\n return startDistance <= endDistance ? 0 : max;\n }\n if (withinStartTolerance) {\n return 0;\n }\n if (withinEndTolerance) {\n return max;\n }\n return clamped;\n}"],"names":["SCROLL_EDGE_TOLERANCE_PX","getMaxScrollOffset","scrollSize","clientSize","normalizeScrollOffset","value","max","clamped","clamp","startDistance","endDistance","withinStartTolerance","withinEndTolerance"],"mappings":";AACY,MAACA,IAA2B;AACjC,SAASC,EAAmBC,GAAYC,GAAY;AACzD,SAAO,KAAK,IAAI,GAAGD,IAAaC,CAAU;AAC5C;AACO,SAASC,EAAsBC,GAAOC,GAAK;AAChD,MAAIA,KAAO;AACT,WAAO;AAET,QAAMC,IAAUC,EAAMH,GAAO,GAAGC,CAAG,GAC7BG,IAAgBF,GAChBG,IAAcJ,IAAMC,GACpBI,IAAuBF,KAAiBT,GACxCY,IAAqBF,KAAeV;AAC1C,SAAIW,KAAwBC,IACnBH,KAAiBC,IAAc,IAAIJ,IAExCK,IACK,IAELC,IACKN,IAEFC;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"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,22 +1,25 @@
1
- import * as c from "react";
2
- import { s as u } from "./index404.js";
3
- import { w as i } from "./index405.js";
4
- import { isReactVersionAtLeast as S } from "./index347.js";
5
- const a = S(19), m = a ? f : l;
6
- function g(t, e, r, n, o) {
7
- return m(t, e, r, n, o);
8
- }
9
- function p(t, e, r, n, o) {
10
- const s = c.useCallback(() => e(t.getSnapshot(), r, n, o), [t, e, r, n, o]);
11
- return u.useSyncExternalStore(t.subscribe, s, s);
12
- }
13
- function f(t, e, r, n, o) {
14
- return p(t, e, r, n, o);
15
- }
16
- function l(t, e, r, n, o) {
17
- return i.useSyncExternalStoreWithSelector(t.subscribe, t.getSnapshot, t.getSnapshot, (s) => e(s, r, n, o));
1
+ import { CalendarDay as F } from "./index254.js";
2
+ import { CalendarWeek as N } from "./index256.js";
3
+ import { CalendarMonth as P } from "./index255.js";
4
+ function j(l, f, e, c) {
5
+ const { addDays: y, endOfBroadcastWeek: D, endOfISOWeek: h, endOfMonth: k, endOfWeek: C, getISOWeek: I, getWeek: M, startOfBroadcastWeek: S, startOfISOWeek: g, startOfWeek: w } = c, o = l.reduce((W, t) => {
6
+ const x = e.broadcastCalendar ? S(t, c) : e.ISOWeek ? g(t) : w(t), d = e.broadcastCalendar ? D(t) : e.ISOWeek ? h(k(t)) : C(k(t)), a = f.filter((r) => r >= x && r <= d), O = e.broadcastCalendar ? 35 : 42;
7
+ if (e.fixedWeeks && a.length < O) {
8
+ const r = f.filter((n) => {
9
+ const s = O - a.length;
10
+ return n > d && n <= y(d, s);
11
+ });
12
+ a.push(...r);
13
+ }
14
+ const b = a.reduce((r, n) => {
15
+ const s = e.ISOWeek ? I(n) : M(n), i = r.find((B) => B.weekNumber === s), u = new F(n, t, c);
16
+ return i ? i.days.push(u) : r.push(new N(s, [u])), r;
17
+ }, []), v = new P(t, b);
18
+ return W.push(v), W;
19
+ }, []);
20
+ return e.reverseMonths ? o.reverse() : o;
18
21
  }
19
22
  export {
20
- g as useStore
23
+ j as getMonths
21
24
  };
22
25
  //# sourceMappingURL=index299.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index299.js","sources":["../../../node_modules/@base-ui/utils/esm/store/useStore.js"],"sourcesContent":["import * as React from 'react';\n/* We need to import the shim because React 17 does not support the `useSyncExternalStore` API.\n * More info: https://github.com/mui/mui-x/issues/18303#issuecomment-2958392341 */\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { isReactVersionAtLeast } from \"../reactVersion.js\";\nimport { register, getInstance } from \"../fastHooks.js\";\n/* Some tests fail in R18 with the raw useSyncExternalStore. It may be possible to make it work\n * but for now we only enable it for R19+. */\nconst canUseRawUseSyncExternalStore = isReactVersionAtLeast(19);\nconst useStoreImplementation = canUseRawUseSyncExternalStore ? useStoreFast : useStoreLegacy;\nexport function useStore(store, selector, a1, a2, a3) {\n return useStoreImplementation(store, selector, a1, a2, a3);\n}\nfunction useStoreR19(store, selector, a1, a2, a3) {\n const getSelection = React.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [store, selector, a1, a2, a3]);\n return useSyncExternalStore(store.subscribe, getSelection, getSelection);\n}\nregister({\n before(instance) {\n instance.syncIndex = 0;\n if (!instance.didInitialize) {\n instance.syncTick = 1;\n instance.syncHooks = [];\n instance.didChangeStore = true;\n instance.getSnapshot = () => {\n let didChange = false;\n for (let i = 0; i < instance.syncHooks.length; i += 1) {\n const hook = instance.syncHooks[i];\n const value = hook.selector(hook.store.state, hook.a1, hook.a2, hook.a3);\n if (hook.didChange || !Object.is(hook.value, value)) {\n didChange = true;\n hook.value = value;\n hook.didChange = false;\n }\n }\n if (didChange) {\n instance.syncTick += 1;\n }\n return instance.syncTick;\n };\n }\n },\n after(instance) {\n if (instance.syncHooks.length > 0) {\n if (instance.didChangeStore) {\n instance.didChangeStore = false;\n instance.subscribe = onStoreChange => {\n const stores = new Set();\n for (const hook of instance.syncHooks) {\n stores.add(hook.store);\n }\n const unsubscribes = [];\n for (const store of stores) {\n unsubscribes.push(store.subscribe(onStoreChange));\n }\n return () => {\n for (const unsubscribe of unsubscribes) {\n unsubscribe();\n }\n };\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useSyncExternalStore(instance.subscribe, instance.getSnapshot, instance.getSnapshot);\n }\n }\n});\nfunction useStoreFast(store, selector, a1, a2, a3) {\n const instance = getInstance();\n if (!instance) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStoreR19(store, selector, a1, a2, a3);\n }\n const index = instance.syncIndex;\n instance.syncIndex += 1;\n let hook;\n if (!instance.didInitialize) {\n hook = {\n store,\n selector,\n a1,\n a2,\n a3,\n value: selector(store.getSnapshot(), a1, a2, a3),\n didChange: false\n };\n instance.syncHooks.push(hook);\n } else {\n hook = instance.syncHooks[index];\n if (hook.store !== store || hook.selector !== selector || !Object.is(hook.a1, a1) || !Object.is(hook.a2, a2) || !Object.is(hook.a3, a3)) {\n if (hook.store !== store) {\n instance.didChangeStore = true;\n }\n hook.store = store;\n hook.selector = selector;\n hook.a1 = a1;\n hook.a2 = a2;\n hook.a3 = a3;\n hook.didChange = true;\n }\n }\n return hook.value;\n}\nfunction useStoreLegacy(store, selector, a1, a2, a3) {\n return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, state => selector(state, a1, a2, a3));\n}"],"names":["canUseRawUseSyncExternalStore","isReactVersionAtLeast","useStoreImplementation","useStoreFast","useStoreLegacy","useStore","store","selector","a1","a2","a3","useStoreR19","getSelection","React","useSyncExternalStore","useSyncExternalStoreWithSelector","state"],"mappings":";;;;AASA,MAAMA,IAAgCC,EAAsB,EAAE,GACxDC,IAAyBF,IAAgCG,IAAeC;AACvE,SAASC,EAASC,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACpD,SAAOR,EAAuBI,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AAC3D;AACA,SAASC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAChD,QAAME,IAAeC,EAAM,YAAY,MAAMN,EAASD,EAAM,eAAeE,GAAIC,GAAIC,CAAE,GAAG,CAACJ,GAAOC,GAAUC,GAAIC,GAAIC,CAAE,CAAC;AACrH,SAAOI,EAAAA,qBAAqBR,EAAM,WAAWM,GAAcA,CAAY;AACzE;AAmDA,SAAST,EAAaG,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAI/C,SAAOC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AA+BlD;AACA,SAASN,EAAeE,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACnD,SAAOK,EAAAA,iCAAiCT,EAAM,WAAWA,EAAM,aAAaA,EAAM,aAAa,CAAAU,MAAST,EAASS,GAAOR,GAAIC,GAAIC,CAAE,CAAC;AACrI;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"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,40 +1,14 @@
1
- import { isElement as l } from "./index331.js";
2
- import { useId as c } from "./index345.js";
3
- import { useRefWithInit as a } from "./index280.js";
4
- import { useIsoLayoutEffect as m } from "./index283.js";
5
- import { useFloatingParentNodeId as u } from "./index382.js";
6
- import { FloatingRootStore as p } from "./index384.js";
7
- import { PopupTriggerMap as d } from "./index352.js";
8
- function y(s) {
9
- const {
10
- open: o = !1,
11
- onOpenChange: f,
12
- elements: e = {}
13
- } = s, r = c(), i = u() != null;
14
- if (process.env.NODE_ENV !== "production") {
15
- const n = e.reference;
16
- n && !l(n) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
17
- }
18
- const t = a(() => new p({
19
- open: o,
20
- transitionStatus: void 0,
21
- onOpenChange: f,
22
- referenceElement: e.reference ?? null,
23
- floatingElement: e.floating ?? null,
24
- triggerElements: new d(),
25
- floatingId: r,
26
- syncOnly: !1,
27
- nested: i
28
- })).current;
29
- return m(() => {
30
- const n = {
31
- open: o,
32
- floatingId: r
33
- };
34
- e.reference !== void 0 && (n.referenceElement = e.reference, n.domReferenceElement = l(e.reference) ? e.reference : null), e.floating !== void 0 && (n.floatingElement = e.floating), t.update(n);
35
- }, [o, r, e.reference, e.floating, t]), t.context.onOpenChange = f, t.context.nested = i, t;
1
+ function 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
+ ];
36
10
  }
37
11
  export {
38
- y as useFloatingRootContext
12
+ O as getNavMonths
39
13
  };
40
14
  //# sourceMappingURL=index300.js.map