@rpcbase/ui 0.244.0 → 0.246.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 (565) hide show
  1. package/dist/index10.js +2 -2
  2. package/dist/index105.js +36 -36
  3. package/dist/index106.js +1 -1
  4. package/dist/index11.js +2 -2
  5. package/dist/index117.js +6 -6
  6. package/dist/index12.js +3 -3
  7. package/dist/index120.js +10 -10
  8. package/dist/index122.js +2 -2
  9. package/dist/index123.js +3 -3
  10. package/dist/index124.js +1 -1
  11. package/dist/index126.js +2 -2
  12. package/dist/index128.js +2 -2
  13. package/dist/index13.js +2 -2
  14. package/dist/index14.js +2 -2
  15. package/dist/index15.js +2 -2
  16. package/dist/index16.js +8 -8
  17. package/dist/index17.js +1 -1
  18. package/dist/index171.js +14 -58
  19. package/dist/index171.js.map +1 -1
  20. package/dist/index172.js +68 -8
  21. package/dist/index172.js.map +1 -1
  22. package/dist/index173.js +37 -87
  23. package/dist/index173.js.map +1 -1
  24. package/dist/index174.js +13 -19
  25. package/dist/index174.js.map +1 -1
  26. package/dist/index175.js +23 -16
  27. package/dist/index175.js.map +1 -1
  28. package/dist/index176.js +111 -5
  29. package/dist/index176.js.map +1 -1
  30. package/dist/index177.js +13 -6
  31. package/dist/index177.js.map +1 -1
  32. package/dist/index178.js +4 -6
  33. package/dist/index178.js.map +1 -1
  34. package/dist/index179.js +4 -5
  35. package/dist/index179.js.map +1 -1
  36. package/dist/index18.js +7 -7
  37. package/dist/index180.js +5 -7
  38. package/dist/index180.js.map +1 -1
  39. package/dist/index181.js +11 -16
  40. package/dist/index181.js.map +1 -1
  41. package/dist/index182.js +19 -4
  42. package/dist/index182.js.map +1 -1
  43. package/dist/index183.js +11 -5
  44. package/dist/index183.js.map +1 -1
  45. package/dist/index184.js +176 -12
  46. package/dist/index184.js.map +1 -1
  47. package/dist/index185.js +279 -9
  48. package/dist/index185.js.map +1 -1
  49. package/dist/index186.js +4 -13
  50. package/dist/index186.js.map +1 -1
  51. package/dist/index187.js +28 -14
  52. package/dist/index187.js.map +1 -1
  53. package/dist/index188.js +126 -4
  54. package/dist/index188.js.map +1 -1
  55. package/dist/index189.js +63 -5
  56. package/dist/index189.js.map +1 -1
  57. package/dist/index19.js +16 -16
  58. package/dist/index190.js +8 -6
  59. package/dist/index190.js.map +1 -1
  60. package/dist/index191.js +16 -6
  61. package/dist/index191.js.map +1 -1
  62. package/dist/index192.js +29 -53
  63. package/dist/index192.js.map +1 -1
  64. package/dist/index193.js +69 -8
  65. package/dist/index193.js.map +1 -1
  66. package/dist/index194.js +58 -4
  67. package/dist/index194.js.map +1 -1
  68. package/dist/index195.js +8 -4
  69. package/dist/index195.js.map +1 -1
  70. package/dist/index196.js +87 -8
  71. package/dist/index196.js.map +1 -1
  72. package/dist/index197.js +19 -4
  73. package/dist/index197.js.map +1 -1
  74. package/dist/index198.js +16 -4
  75. package/dist/index198.js.map +1 -1
  76. package/dist/index199.js +5 -3
  77. package/dist/index199.js.map +1 -1
  78. package/dist/index200.js +5 -10
  79. package/dist/index200.js.map +1 -1
  80. package/dist/index201.js +6 -9
  81. package/dist/index201.js.map +1 -1
  82. package/dist/index202.js +4 -9
  83. package/dist/index202.js.map +1 -1
  84. package/dist/index203.js +6 -10
  85. package/dist/index203.js.map +1 -1
  86. package/dist/index204.js +16 -10
  87. package/dist/index204.js.map +1 -1
  88. package/dist/index205.js +4 -9
  89. package/dist/index205.js.map +1 -1
  90. package/dist/index206.js +4 -6
  91. package/dist/index206.js.map +1 -1
  92. package/dist/index207.js +12 -5
  93. package/dist/index207.js.map +1 -1
  94. package/dist/index208.js +9 -4
  95. package/dist/index208.js.map +1 -1
  96. package/dist/index209.js +13 -5
  97. package/dist/index209.js.map +1 -1
  98. package/dist/index21.js +1 -1
  99. package/dist/index210.js +13 -6
  100. package/dist/index210.js.map +1 -1
  101. package/dist/index211.js +4 -5
  102. package/dist/index211.js.map +1 -1
  103. package/dist/index212.js +5 -16
  104. package/dist/index212.js.map +1 -1
  105. package/dist/index213.js +6 -7
  106. package/dist/index213.js.map +1 -1
  107. package/dist/index214.js +5 -10
  108. package/dist/index214.js.map +1 -1
  109. package/dist/index215.js +54 -10
  110. package/dist/index215.js.map +1 -1
  111. package/dist/index216.js +8 -21
  112. package/dist/index216.js.map +1 -1
  113. package/dist/index217.js +4 -8
  114. package/dist/index217.js.map +1 -1
  115. package/dist/index218.js +4 -9
  116. package/dist/index218.js.map +1 -1
  117. package/dist/index219.js +8 -9
  118. package/dist/index219.js.map +1 -1
  119. package/dist/index22.js +2 -2
  120. package/dist/index220.js +4 -4
  121. package/dist/index220.js.map +1 -1
  122. package/dist/index221.js +4 -5
  123. package/dist/index221.js.map +1 -1
  124. package/dist/index222.js +3 -16
  125. package/dist/index222.js.map +1 -1
  126. package/dist/index223.js +10 -9
  127. package/dist/index223.js.map +1 -1
  128. package/dist/index224.js +9 -18
  129. package/dist/index224.js.map +1 -1
  130. package/dist/index225.js +9 -20
  131. package/dist/index225.js.map +1 -1
  132. package/dist/index226.js +10 -12
  133. package/dist/index226.js.map +1 -1
  134. package/dist/index227.js +10 -29
  135. package/dist/index227.js.map +1 -1
  136. package/dist/index228.js +9 -12
  137. package/dist/index228.js.map +1 -1
  138. package/dist/index229.js +6 -25
  139. package/dist/index229.js.map +1 -1
  140. package/dist/index23.js +1 -1
  141. package/dist/index230.js +5 -5
  142. package/dist/index230.js.map +1 -1
  143. package/dist/index231.js +5 -20
  144. package/dist/index231.js.map +1 -1
  145. package/dist/index232.js +5 -66
  146. package/dist/index232.js.map +1 -1
  147. package/dist/index233.js +6 -6
  148. package/dist/index233.js.map +1 -1
  149. package/dist/index234.js +5 -5
  150. package/dist/index234.js.map +1 -1
  151. package/dist/index235.js +16 -11
  152. package/dist/index235.js.map +1 -1
  153. package/dist/index236.js +7 -3
  154. package/dist/index236.js.map +1 -1
  155. package/dist/index237.js +9 -49
  156. package/dist/index237.js.map +1 -1
  157. package/dist/index238.js +11 -4
  158. package/dist/index238.js.map +1 -1
  159. package/dist/index239.js +20 -28
  160. package/dist/index239.js.map +1 -1
  161. package/dist/index24.js +1 -1
  162. package/dist/index240.js +8 -16
  163. package/dist/index240.js.map +1 -1
  164. package/dist/index241.js +9 -5
  165. package/dist/index241.js.map +1 -1
  166. package/dist/index242.js +9 -21
  167. package/dist/index242.js.map +1 -1
  168. package/dist/index243.js +4 -53
  169. package/dist/index243.js.map +1 -1
  170. package/dist/index244.js +5 -20
  171. package/dist/index244.js.map +1 -1
  172. package/dist/index245.js +16 -41
  173. package/dist/index245.js.map +1 -1
  174. package/dist/index246.js +9 -39
  175. package/dist/index246.js.map +1 -1
  176. package/dist/index247.js +19 -46
  177. package/dist/index247.js.map +1 -1
  178. package/dist/index248.js +17 -20
  179. package/dist/index248.js.map +1 -1
  180. package/dist/index249.js +12 -19
  181. package/dist/index249.js.map +1 -1
  182. package/dist/index25.js +1 -1
  183. package/dist/index250.js +28 -19
  184. package/dist/index250.js.map +1 -1
  185. package/dist/index251.js +10 -68
  186. package/dist/index251.js.map +1 -1
  187. package/dist/index252.js +25 -17
  188. package/dist/index252.js.map +1 -1
  189. package/dist/index253.js +5 -3
  190. package/dist/index253.js.map +1 -1
  191. package/dist/index254.js +20 -12
  192. package/dist/index254.js.map +1 -1
  193. package/dist/index255.js +65 -29
  194. package/dist/index255.js.map +1 -1
  195. package/dist/index256.js +6 -13
  196. package/dist/index256.js.map +1 -1
  197. package/dist/index257.js +5 -18
  198. package/dist/index257.js.map +1 -1
  199. package/dist/index258.js +11 -36
  200. package/dist/index258.js.map +1 -1
  201. package/dist/index259.js +3 -69
  202. package/dist/index259.js.map +1 -1
  203. package/dist/index260.js +47 -236
  204. package/dist/index260.js.map +1 -1
  205. package/dist/index261.js +4 -253
  206. package/dist/index261.js.map +1 -1
  207. package/dist/index262.js +28 -67
  208. package/dist/index262.js.map +1 -1
  209. package/dist/index263.js +14 -97
  210. package/dist/index263.js.map +1 -1
  211. package/dist/index264.js +5 -176
  212. package/dist/index264.js.map +1 -1
  213. package/dist/index265.js +21 -83
  214. package/dist/index265.js.map +1 -1
  215. package/dist/index266.js +54 -13
  216. package/dist/index266.js.map +1 -1
  217. package/dist/index267.js +20 -3
  218. package/dist/index267.js.map +1 -1
  219. package/dist/index268.js +41 -29
  220. package/dist/index268.js.map +1 -1
  221. package/dist/index269.js +39 -16
  222. package/dist/index269.js.map +1 -1
  223. package/dist/index270.js +45 -37
  224. package/dist/index270.js.map +1 -1
  225. package/dist/index271.js +20 -34
  226. package/dist/index271.js.map +1 -1
  227. package/dist/index272.js +64 -62
  228. package/dist/index272.js.map +1 -1
  229. package/dist/index273.js +17 -17
  230. package/dist/index273.js.map +1 -1
  231. package/dist/index274.js +3 -3
  232. package/dist/index274.js.map +1 -1
  233. package/dist/index275.js +11 -111
  234. package/dist/index275.js.map +1 -1
  235. package/dist/index276.js +12 -25
  236. package/dist/index276.js.map +1 -1
  237. package/dist/index277.js +16 -26
  238. package/dist/index277.js.map +1 -1
  239. package/dist/index278.js +37 -4
  240. package/dist/index278.js.map +1 -1
  241. package/dist/index279.js +231 -118
  242. package/dist/index279.js.map +1 -1
  243. package/dist/index28.js +2 -2
  244. package/dist/index280.js +252 -4
  245. package/dist/index280.js.map +1 -1
  246. package/dist/index281.js +63 -73
  247. package/dist/index281.js.map +1 -1
  248. package/dist/index282.js +93 -266
  249. package/dist/index282.js.map +1 -1
  250. package/dist/index283.js +83 -11
  251. package/dist/index283.js.map +1 -1
  252. package/dist/index284.js +4 -28
  253. package/dist/index284.js.map +1 -1
  254. package/dist/index285.js +29 -15
  255. package/dist/index285.js.map +1 -1
  256. package/dist/index286.js +16 -10
  257. package/dist/index286.js.map +1 -1
  258. package/dist/index287.js +35 -26
  259. package/dist/index287.js.map +1 -1
  260. package/dist/index288.js +17 -16
  261. package/dist/index288.js.map +1 -1
  262. package/dist/index289.js +3 -125
  263. package/dist/index289.js.map +1 -1
  264. package/dist/index29.js +3 -56
  265. package/dist/index29.js.map +1 -1
  266. package/dist/index290.js +26 -5
  267. package/dist/index290.js.map +1 -1
  268. package/dist/index291.js +25 -62
  269. package/dist/index291.js.map +1 -1
  270. package/dist/index292.js +4 -14
  271. package/dist/index292.js.map +1 -1
  272. package/dist/index293.js +79 -14
  273. package/dist/index293.js.map +1 -1
  274. package/dist/index294.js +272 -7
  275. package/dist/index294.js.map +1 -1
  276. package/dist/index295.js +12 -11
  277. package/dist/index295.js.map +1 -1
  278. package/dist/index296.js +10 -5
  279. package/dist/index296.js.map +1 -1
  280. package/dist/index297.js +25 -3
  281. package/dist/index297.js.map +1 -1
  282. package/dist/index298.js +15 -9
  283. package/dist/index298.js.map +1 -1
  284. package/dist/index299.js +125 -7
  285. package/dist/index299.js.map +1 -1
  286. package/dist/index3.js +2 -2
  287. package/dist/index30.js +242 -3
  288. package/dist/index30.js.map +1 -1
  289. package/dist/index300.js +4 -132
  290. package/dist/index300.js.map +1 -1
  291. package/dist/index301.js +63 -277
  292. package/dist/index301.js.map +1 -1
  293. package/dist/index302.js +12 -398
  294. package/dist/index302.js.map +1 -1
  295. package/dist/index303.js +8 -5
  296. package/dist/index303.js.map +1 -1
  297. package/dist/index304.js +5 -52
  298. package/dist/index304.js.map +1 -1
  299. package/dist/index305.js +3 -11
  300. package/dist/index305.js.map +1 -1
  301. package/dist/index306.js +10 -27
  302. package/dist/index306.js.map +1 -1
  303. package/dist/index307.js +6 -10
  304. package/dist/index307.js.map +1 -1
  305. package/dist/index308.js +133 -4
  306. package/dist/index308.js.map +1 -1
  307. package/dist/index309.js +399 -14
  308. package/dist/index309.js.map +1 -1
  309. package/dist/index31.js +21 -239
  310. package/dist/index31.js.map +1 -1
  311. package/dist/index310.js +5 -4
  312. package/dist/index310.js.map +1 -1
  313. package/dist/index311.js +52 -4
  314. package/dist/index311.js.map +1 -1
  315. package/dist/index312.js +10 -10
  316. package/dist/index312.js.map +1 -1
  317. package/dist/index313.js +27 -63
  318. package/dist/index313.js.map +1 -1
  319. package/dist/index314.js +11 -8
  320. package/dist/index314.js.map +1 -1
  321. package/dist/index32.js +4 -23
  322. package/dist/index32.js.map +1 -1
  323. package/dist/index33.js +6 -3
  324. package/dist/index33.js.map +1 -1
  325. package/dist/index34.js +38 -8
  326. package/dist/index34.js.map +1 -1
  327. package/dist/index341.js +8 -4
  328. package/dist/index341.js.map +1 -1
  329. package/dist/index342.js +12 -18
  330. package/dist/index342.js.map +1 -1
  331. package/dist/index343.js +8 -12
  332. package/dist/index343.js.map +1 -1
  333. package/dist/index344.js +13 -8
  334. package/dist/index344.js.map +1 -1
  335. package/dist/index345.js +3 -11
  336. package/dist/index345.js.map +1 -1
  337. package/dist/index346.js +3 -8
  338. package/dist/index346.js.map +1 -1
  339. package/dist/index347.js +16 -12
  340. package/dist/index347.js.map +1 -1
  341. package/dist/index348.js +51 -3
  342. package/dist/index348.js.map +1 -1
  343. package/dist/index349.js +5 -3
  344. package/dist/index349.js.map +1 -1
  345. package/dist/index35.js +74 -35
  346. package/dist/index35.js.map +1 -1
  347. package/dist/index350.js +62 -4
  348. package/dist/index350.js.map +1 -1
  349. package/dist/index351.js +66 -14
  350. package/dist/index351.js.map +1 -1
  351. package/dist/index352.js +7 -10
  352. package/dist/index352.js.map +1 -1
  353. package/dist/index353.js +5 -6
  354. package/dist/index353.js.map +1 -1
  355. package/dist/index354.js +11 -4
  356. package/dist/index354.js.map +1 -1
  357. package/dist/index355.js +22 -3
  358. package/dist/index355.js.map +1 -1
  359. package/dist/index356.js +16 -8
  360. package/dist/index356.js.map +1 -1
  361. package/dist/index357.js +8 -52
  362. package/dist/index357.js.map +1 -1
  363. package/dist/index358.js +143 -15
  364. package/dist/index358.js.map +1 -1
  365. package/dist/index359.js +80 -8
  366. package/dist/index359.js.map +1 -1
  367. package/dist/index36.js +20 -74
  368. package/dist/index36.js.map +1 -1
  369. package/dist/index360.js +61 -5
  370. package/dist/index360.js.map +1 -1
  371. package/dist/index361.js +15 -21
  372. package/dist/index361.js.map +1 -1
  373. package/dist/index362.js +5 -45
  374. package/dist/index362.js.map +1 -1
  375. package/dist/index363.js +16 -16
  376. package/dist/index363.js.map +1 -1
  377. package/dist/index364.js +13 -5
  378. package/dist/index364.js.map +1 -1
  379. package/dist/index365.js +10 -199
  380. package/dist/index365.js.map +1 -1
  381. package/dist/index366.js +4 -74
  382. package/dist/index366.js.map +1 -1
  383. package/dist/index367.js +5 -123
  384. package/dist/index367.js.map +1 -1
  385. package/dist/index368.js +3 -18
  386. package/dist/index368.js.map +1 -1
  387. package/dist/index369.js +20 -61
  388. package/dist/index369.js.map +1 -1
  389. package/dist/index37.js +33 -18
  390. package/dist/index37.js.map +1 -1
  391. package/dist/index370.js +42 -64
  392. package/dist/index370.js.map +1 -1
  393. package/dist/index371.js +18 -12
  394. package/dist/index371.js.map +1 -1
  395. package/dist/index372.js +5 -22
  396. package/dist/index372.js.map +1 -1
  397. package/dist/index373.js +196 -140
  398. package/dist/index373.js.map +1 -1
  399. package/dist/index374.js +73 -79
  400. package/dist/index374.js.map +1 -1
  401. package/dist/index375.js +117 -55
  402. package/dist/index375.js.map +1 -1
  403. package/dist/index378.js +8 -4
  404. package/dist/index378.js.map +1 -1
  405. package/dist/index379.js +27 -5
  406. package/dist/index379.js.map +1 -1
  407. package/dist/index38.js +26 -36
  408. package/dist/index38.js.map +1 -1
  409. package/dist/index380.js +138 -4
  410. package/dist/index380.js.map +1 -1
  411. package/dist/index381.js +12 -15
  412. package/dist/index381.js.map +1 -1
  413. package/dist/index382.js +46 -8
  414. package/dist/index382.js.map +1 -1
  415. package/dist/index383.js +3 -5
  416. package/dist/index383.js.map +1 -1
  417. package/dist/index384.js +21 -4
  418. package/dist/index384.js.map +1 -1
  419. package/dist/index385.js +72 -542
  420. package/dist/index385.js.map +1 -1
  421. package/dist/index386.js +11 -46
  422. package/dist/index386.js.map +1 -1
  423. package/dist/index387.js +3 -17
  424. package/dist/index387.js.map +1 -1
  425. package/dist/index388.js +71 -5
  426. package/dist/index388.js.map +1 -1
  427. package/dist/index389.js +35 -7
  428. package/dist/index389.js.map +1 -1
  429. package/dist/index39.js +21 -26
  430. package/dist/index39.js.map +1 -1
  431. package/dist/index390.js +7 -7
  432. package/dist/index390.js.map +1 -1
  433. package/dist/index391.js +15 -7
  434. package/dist/index391.js.map +1 -1
  435. package/dist/index392.js +4 -11
  436. package/dist/index392.js.map +1 -1
  437. package/dist/index393.js +4 -8
  438. package/dist/index393.js.map +1 -1
  439. package/dist/index394.js +4 -13
  440. package/dist/index394.js.map +1 -1
  441. package/dist/index395.js +16 -3
  442. package/dist/index395.js.map +1 -1
  443. package/dist/index396.js +9 -3
  444. package/dist/index396.js.map +1 -1
  445. package/dist/index397.js +6 -7
  446. package/dist/index397.js.map +1 -1
  447. package/dist/index398.js +4 -12
  448. package/dist/index398.js.map +1 -1
  449. package/dist/index399.js +543 -44
  450. package/dist/index399.js.map +1 -1
  451. package/dist/index4.js +2 -2
  452. package/dist/index40.js +56 -20
  453. package/dist/index40.js.map +1 -1
  454. package/dist/index400.js +44 -135
  455. package/dist/index400.js.map +1 -1
  456. package/dist/index401.js +17 -8
  457. package/dist/index401.js.map +1 -1
  458. package/dist/index402.js +6 -27
  459. package/dist/index402.js.map +1 -1
  460. package/dist/index403.js +7 -3
  461. package/dist/index403.js.map +1 -1
  462. package/dist/index404.js +6 -21
  463. package/dist/index404.js.map +1 -1
  464. package/dist/index405.js +7 -75
  465. package/dist/index405.js.map +1 -1
  466. package/dist/index406.js +12 -12
  467. package/dist/index406.js.map +1 -1
  468. package/dist/index407.js +8 -3
  469. package/dist/index407.js.map +1 -1
  470. package/dist/index408.js +12 -71
  471. package/dist/index408.js.map +1 -1
  472. package/dist/index409.js +3 -36
  473. package/dist/index409.js.map +1 -1
  474. package/dist/index41.js +51 -59
  475. package/dist/index41.js.map +1 -1
  476. package/dist/index410.js +3 -16
  477. package/dist/index410.js.map +1 -1
  478. package/dist/index411.js +3 -5
  479. package/dist/index411.js.map +1 -1
  480. package/dist/index412.js +14 -55
  481. package/dist/index412.js.map +1 -1
  482. package/dist/index413.js +490 -66
  483. package/dist/index413.js.map +1 -1
  484. package/dist/index414.js +5 -31
  485. package/dist/index414.js.map +1 -1
  486. package/dist/index415.js +56 -9
  487. package/dist/index415.js.map +1 -1
  488. package/dist/index416.js +61 -146
  489. package/dist/index416.js.map +1 -1
  490. package/dist/index417.js +26 -103
  491. package/dist/index417.js.map +1 -1
  492. package/dist/index418.js +9 -8
  493. package/dist/index418.js.map +1 -1
  494. package/dist/index419.js +153 -2
  495. package/dist/index419.js.map +1 -1
  496. package/dist/index42.js +21 -50
  497. package/dist/index42.js.map +1 -1
  498. package/dist/index420.js +107 -43
  499. package/dist/index420.js.map +1 -1
  500. package/dist/index421.js +7 -55
  501. package/dist/index421.js.map +1 -1
  502. package/dist/index422.js +2 -8
  503. package/dist/index422.js.map +1 -1
  504. package/dist/index423.js +44 -2
  505. package/dist/index423.js.map +1 -1
  506. package/dist/index424.js +55 -54
  507. package/dist/index424.js.map +1 -1
  508. package/dist/index425.js +7 -55
  509. package/dist/index425.js.map +1 -1
  510. package/dist/index426.js +2 -3
  511. package/dist/index426.js.map +1 -1
  512. package/dist/index427.js +54 -14
  513. package/dist/index427.js.map +1 -1
  514. package/dist/index428.js +51 -487
  515. package/dist/index428.js.map +1 -1
  516. package/dist/index43.js +127 -18
  517. package/dist/index43.js.map +1 -1
  518. package/dist/index430.js +2 -2
  519. package/dist/index432.js +2 -2
  520. package/dist/index44.js +39 -122
  521. package/dist/index44.js.map +1 -1
  522. package/dist/index45.js +85 -42
  523. package/dist/index45.js.map +1 -1
  524. package/dist/index46.js +123 -87
  525. package/dist/index46.js.map +1 -1
  526. package/dist/index47.js +5 -126
  527. package/dist/index47.js.map +1 -1
  528. package/dist/index48.js +332 -5
  529. package/dist/index48.js.map +1 -1
  530. package/dist/index49.js +246 -321
  531. package/dist/index49.js.map +1 -1
  532. package/dist/index5.js +2 -2
  533. package/dist/index50.js +23 -254
  534. package/dist/index50.js.map +1 -1
  535. package/dist/index51.js +129 -25
  536. package/dist/index51.js.map +1 -1
  537. package/dist/index52.js +24 -129
  538. package/dist/index52.js.map +1 -1
  539. package/dist/index53.js +19 -22
  540. package/dist/index53.js.map +1 -1
  541. package/dist/index54.js +134 -19
  542. package/dist/index54.js.map +1 -1
  543. package/dist/index55.js +30 -133
  544. package/dist/index55.js.map +1 -1
  545. package/dist/index56.js +24 -30
  546. package/dist/index56.js.map +1 -1
  547. package/dist/index57.js +38 -26
  548. package/dist/index57.js.map +1 -1
  549. package/dist/index58.js +19 -39
  550. package/dist/index58.js.map +1 -1
  551. package/dist/index59.js +133 -18
  552. package/dist/index59.js.map +1 -1
  553. package/dist/index6.js +4 -4
  554. package/dist/index60.js +49 -134
  555. package/dist/index60.js.map +1 -1
  556. package/dist/index61.js +25 -48
  557. package/dist/index61.js.map +1 -1
  558. package/dist/index62.js +57 -28
  559. package/dist/index62.js.map +1 -1
  560. package/dist/index63.js +56 -57
  561. package/dist/index63.js.map +1 -1
  562. package/dist/index7.js +11 -11
  563. package/dist/index8.js +2 -2
  564. package/dist/index9.js +1 -1
  565. package/package.json +1 -1
package/dist/index233.js CHANGED
@@ -1,10 +1,10 @@
1
- import * as c from "react";
2
- const e = {};
3
- function f(r, n) {
4
- const t = c.useRef(e);
5
- return t.current === e && (t.current = r(n)), t;
1
+ import { getDefaultOptions as c } from "./index398.js";
2
+ import { toDate as f } from "./index393.js";
3
+ function k(s, e) {
4
+ const o = c(), a = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), n = t.getDay(), r = (n < a ? 7 : 0) + n - a;
5
+ return t.setDate(t.getDate() - r), t.setHours(0, 0, 0, 0), t;
6
6
  }
7
7
  export {
8
- f as useRefWithInit
8
+ k as startOfWeek
9
9
  };
10
10
  //# sourceMappingURL=index233.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index233.js","sources":["../../../node_modules/@base-ui/utils/useRefWithInit.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useRefWithInit(sortColumns, columns)\n */\n\nexport function useRefWithInit(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}"],"names":["UNINITIALIZED","useRefWithInit","init","initArg","ref","React"],"mappings":";AAGA,MAAMA,IAAgB,CAAA;AAUf,SAASC,EAAeC,GAAMC,GAAS;AAC5C,QAAMC,IAAMC,EAAM,OAAOL,CAAa;AACtC,SAAII,EAAI,YAAYJ,MAClBI,EAAI,UAAUF,EAAKC,CAAO,IAErBC;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index233.js","sources":["../../../node_modules/date-fns/startOfWeek.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfWeek} function options.\n */\n\n/**\n * @name startOfWeek\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week 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 - An object with options\n *\n * @returns The start of a week\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n\n _date.setDate(_date.getDate() - diff);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeek;\n"],"names":["startOfWeek","date","options","defaultOptions","getDefaultOptions","weekStartsOn","_date","toDate","day","diff"],"mappings":";;AAkCO,SAASA,EAAYC,GAAMC,GAAS;AACzC,QAAMC,IAAiBC,EAAiB,GAClCC,IACJH,GAAS,gBACTA,GAAS,QAAQ,SAAS,gBAC1BC,EAAe,gBACfA,EAAe,QAAQ,SAAS,gBAChC,GAEIG,IAAQC,EAAON,GAAMC,GAAS,EAAE,GAChCM,IAAMF,EAAM,OAAM,GAClBG,KAAQD,IAAMH,IAAe,IAAI,KAAKG,IAAMH;AAElD,SAAAC,EAAM,QAAQA,EAAM,QAAO,IAAKG,CAAI,GACpCH,EAAM,SAAS,GAAG,GAAG,GAAG,CAAC,GAClBA;AACT;","x_google_ignoreList":[0]}
package/dist/index234.js CHANGED
@@ -1,9 +1,9 @@
1
- import * as t from "react";
2
- function n(r) {
3
- const e = t.useRef(!0);
4
- e.current && (e.current = !1, r());
1
+ import { toDate as o } from "./index393.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;
5
5
  }
6
6
  export {
7
- n as useOnFirstRender
7
+ n as startOfYear
8
8
  };
9
9
  //# sourceMappingURL=index234.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index234.js","sources":["../../../node_modules/@base-ui/utils/useOnFirstRender.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nexport function useOnFirstRender(fn) {\n const ref = React.useRef(true);\n if (ref.current) {\n ref.current = false;\n fn();\n }\n}"],"names":["useOnFirstRender","fn","ref","React"],"mappings":";AAGO,SAASA,EAAiBC,GAAI;AACnC,QAAMC,IAAMC,EAAM,OAAO,EAAI;AAC7B,EAAID,EAAI,YACNA,EAAI,UAAU,IACdD,EAAE;AAEN;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index234.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/index235.js CHANGED
@@ -1,15 +1,20 @@
1
- import * as u from "react";
2
- function s(r) {
3
- const [t, e] = u.useState({
4
- current: r,
5
- previous: null
6
- });
7
- return r !== t.current && e({
8
- current: r,
9
- previous: t.current
10
- }), t.previous;
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;
11
16
  }
12
17
  export {
13
- s as usePreviousValue
18
+ j as getDates
14
19
  };
15
20
  //# sourceMappingURL=index235.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index235.js","sources":["../../../node_modules/@base-ui/utils/usePreviousValue.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\n/**\n * Returns a previous value of its argument.\n * @param value Current value.\n * @returns Previous value, or null if there is no previous value.\n */\nexport function usePreviousValue(value) {\n const [state, setState] = React.useState({\n current: value,\n previous: null\n });\n if (value !== state.current) {\n setState({\n current: value,\n previous: state.current\n });\n }\n return state.previous;\n}"],"names":["usePreviousValue","value","state","setState","React"],"mappings":";AASO,SAASA,EAAiBC,GAAO;AACtC,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAAM,SAAS;AAAA,IACvC,SAASH;AAAA,IACT,UAAU;AAAA,EACd,CAAG;AACD,SAAIA,MAAUC,EAAM,WAClBC,EAAS;AAAA,IACP,SAASF;AAAA,IACT,UAAUC,EAAM;AAAA,EACtB,CAAK,GAEIA,EAAM;AACf;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index235.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/index236.js CHANGED
@@ -1,7 +1,11 @@
1
- function i(t) {
2
- return t == null || t.hasAttribute("disabled") || t.getAttribute("aria-disabled") === "true";
1
+ function a(c) {
2
+ const e = [];
3
+ return c.reduce((s, t) => {
4
+ const n = t.weeks.reduce((r, i) => r.concat(i.days.slice()), e.slice());
5
+ return s.concat(n.slice());
6
+ }, e.slice());
3
7
  }
4
8
  export {
5
- i as isElementDisabled
9
+ a as getDays
6
10
  };
7
11
  //# sourceMappingURL=index236.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index236.js","sources":["../../../node_modules/@base-ui/utils/isElementDisabled.mjs"],"sourcesContent":["export function isElementDisabled(element) {\n return element == null || element.hasAttribute('disabled') || element.getAttribute('aria-disabled') === 'true';\n}"],"names":["isElementDisabled","element"],"mappings":"AAAO,SAASA,EAAkBC,GAAS;AACzC,SAAOA,KAAW,QAAQA,EAAQ,aAAa,UAAU,KAAKA,EAAQ,aAAa,eAAe,MAAM;AAC1G;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index236.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/index237.js CHANGED
@@ -1,54 +1,14 @@
1
- import * as r from "react";
2
- import { error as l } from "./index356.js";
3
- function _({
4
- controlled: n,
5
- default: o,
6
- name: t,
7
- state: s = "value"
8
- }) {
9
- const {
10
- current: i
11
- } = r.useRef(n !== void 0), [f, e] = r.useState(o), c = i ? n : f;
12
- if (process.env.NODE_ENV !== "production") {
13
- r.useEffect(() => {
14
- i !== (n !== void 0) && l([`A component is changing the ${i ? "" : "un"}controlled ${s} state of ${t} to be ${i ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${t} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
15
- `));
16
- }, [s, t, n]);
17
- const {
18
- current: u
19
- } = r.useRef(o);
20
- r.useEffect(() => {
21
- !i && d(u) !== d(o) && l([`A component is changing the default ${s} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
22
- `));
23
- }, [o]);
24
- }
25
- const a = r.useCallback((u) => {
26
- i || e(u);
27
- }, []);
28
- return [c, a];
29
- }
30
- function d(n) {
31
- let o = 0;
32
- const t = /* @__PURE__ */ new WeakMap();
33
- try {
34
- return JSON.stringify(n, function(f, e) {
35
- if (!(f === "_owner" && this != null && typeof this == "object" && "$$typeof" in this)) {
36
- if (typeof e == "bigint")
37
- return `__bigint__:${e}`;
38
- if (e !== null && typeof e == "object") {
39
- const c = t.get(e);
40
- if (c !== void 0)
41
- return `__object__:${c}`;
42
- t.set(e, o), o += 1;
43
- }
44
- return e;
45
- }
46
- }) ?? `__top__:${typeof n}`;
47
- } catch {
48
- return "__unserializable__";
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);
49
8
  }
9
+ return n;
50
10
  }
51
11
  export {
52
- _ as useControlled
12
+ i as getDisplayMonths
53
13
  };
54
14
  //# sourceMappingURL=index237.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index237.js","sources":["../../../node_modules/@base-ui/utils/useControlled.mjs"],"sourcesContent":["'use client';\n\n// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes, dependency arrays are intentionally ignored\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nimport { error } from \"./error.mjs\";\nexport function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n error([`A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && serializeToDevModeString(defaultValue) !== serializeToDevModeString(defaultProp)) {\n error([`A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [defaultProp]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}\nfunction serializeToDevModeString(input) {\n let nextId = 0;\n const seen = new WeakMap();\n try {\n const result = JSON.stringify(input, function replacer(key, value) {\n if (key === '_owner' && this != null && typeof this === 'object' && '$$typeof' in this) {\n return undefined;\n }\n if (typeof value === 'bigint') {\n return `__bigint__:${value}`;\n }\n if (value !== null && typeof value === 'object') {\n const id = seen.get(value);\n if (id !== undefined) {\n return `__object__:${id}`;\n }\n seen.set(value, nextId);\n nextId += 1;\n }\n return value;\n });\n return result ?? `__top__:${typeof input}`;\n } catch {\n return '__unserializable__';\n }\n}"],"names":["useControlled","controlled","defaultProp","name","state","isControlled","React","valueState","setValue","value","error","defaultValue","serializeToDevModeString","setValueIfUncontrolled","newValue","input","nextId","seen","key","id"],"mappings":";;AAMO,SAASA,EAAc;AAAA,EAC5B,YAAAC;AAAA,EACA,SAASC;AAAA,EACT,MAAAC;AAAA,EACA,OAAAC,IAAQ;AACV,GAAG;AAED,QAAM;AAAA,IACJ,SAASC;AAAA,EACb,IAAMC,EAAM,OAAOL,MAAe,MAAS,GACnC,CAACM,GAAYC,CAAQ,IAAIF,EAAM,SAASJ,CAAW,GACnDO,IAAQJ,IAAeJ,IAAaM;AAC1C,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,IAAAD,EAAM,UAAU,MAAM;AACpB,MAAID,OAAkBJ,MAAe,WACnCS,EAAM,CAAC,+BAA+BL,IAAe,KAAK,IAAI,cAAcD,CAAK,aAAaD,CAAI,UAAUE,IAAe,OAAO,EAAE,eAAe,+EAA+E,qDAAqDF,CAAI,+CAAoD,8HAA8H,sDAAsD,EAAE,KAAK;AAAA,CAAI,CAAC;AAAA,IAEnhB,GAAG,CAACC,GAAOD,GAAMF,CAAU,CAAC;AAC5B,UAAM;AAAA,MACJ,SAASU;AAAA,IACf,IAAQL,EAAM,OAAOJ,CAAW;AAC5B,IAAAI,EAAM,UAAU,MAAM;AACpB,MAAI,CAACD,KAAgBO,EAAyBD,CAAY,MAAMC,EAAyBV,CAAW,KAClGQ,EAAM,CAAC,uCAAuCN,CAAK,6BAA6BD,CAAI,8EAAmFA,CAAI,GAAG,EAAE,KAAK;AAAA,CAAI,CAAC;AAAA,IAE9L,GAAG,CAACD,CAAW,CAAC;AAAA,EAClB;AACA,QAAMW,IAAyBP,EAAM,YAAY,CAAAQ,MAAY;AAC3D,IAAKT,KACHG,EAASM,CAAQ;AAAA,EAErB,GAAG,CAAA,CAAE;AACL,SAAO,CAACL,GAAOI,CAAsB;AACvC;AACA,SAASD,EAAyBG,GAAO;AACvC,MAAIC,IAAS;AACb,QAAMC,IAAO,oBAAI,QAAO;AACxB,MAAI;AAkBF,WAjBe,KAAK,UAAUF,GAAO,SAAkBG,GAAKT,GAAO;AACjE,UAAI,EAAAS,MAAQ,YAAY,QAAQ,QAAQ,OAAO,QAAS,YAAY,cAAc,OAGlF;AAAA,YAAI,OAAOT,KAAU;AACnB,iBAAO,cAAcA,CAAK;AAE5B,YAAIA,MAAU,QAAQ,OAAOA,KAAU,UAAU;AAC/C,gBAAMU,IAAKF,EAAK,IAAIR,CAAK;AACzB,cAAIU,MAAO;AACT,mBAAO,cAAcA,CAAE;AAEzB,UAAAF,EAAK,IAAIR,GAAOO,CAAM,GACtBA,KAAU;AAAA,QACZ;AACA,eAAOP;AAAA;AAAA,IACT,CAAC,KACgB,WAAW,OAAOM,CAAK;AAAA,EAC1C,QAAQ;AACN,WAAO;AAAA,EACT;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index237.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/index238.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 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
+ }
4
11
  export {
5
- e as useIsoLayoutEffect
12
+ u as getInitialMonth
6
13
  };
7
14
  //# sourceMappingURL=index238.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index238.js","sources":["../../../node_modules/@base-ui/utils/useIsoLayoutEffect.mjs"],"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":"index238.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/index239.js CHANGED
@@ -1,33 +1,25 @@
1
- import { SafeReact as a } from "./index354.js";
2
- import { useRefWithInit as c } from "./index233.js";
3
- const n = a.useInsertionEffect, r = (
4
- // React 17 doesn't have useInsertionEffect.
5
- n && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late.
6
- n !== a.useLayoutEffect ? n : (e) => e()
7
- );
8
- function i(e) {
9
- const t = c(o).current;
10
- return t.next = e, r(t.effect), t.trampoline;
11
- }
12
- function o() {
13
- const e = {
14
- next: void 0,
15
- callback: f,
16
- trampoline: (...t) => e.callback?.(...t),
17
- effect: () => {
18
- e.callback = e.next;
1
+ import { CalendarDay as F } from "./index198.js";
2
+ import { CalendarWeek as N } from "./index200.js";
3
+ import { CalendarMonth as P } from "./index199.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);
19
13
  }
20
- };
21
- return e;
22
- }
23
- function f() {
24
- if (process.env.NODE_ENV !== "production")
25
- throw (
26
- /* minify-error-disabled */
27
- new Error("Base UI: Cannot call an event handler while rendering.")
28
- );
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;
29
21
  }
30
22
  export {
31
- i as useStableCallback
23
+ j as getMonths
32
24
  };
33
25
  //# sourceMappingURL=index239.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index239.js","sources":["../../../node_modules/@base-ui/utils/useStableCallback.mjs"],"sourcesContent":["'use client';\n\nimport { SafeReact } from \"./safeReact.mjs\";\nimport { useRefWithInit } from \"./useRefWithInit.mjs\";\nconst useInsertionEffect = SafeReact.useInsertionEffect;\nconst useSafeInsertionEffect =\n// React 17 doesn't have useInsertionEffect.\nuseInsertionEffect &&\n// Preact replaces useInsertionEffect with useLayoutEffect and fires too late.\nuseInsertionEffect !== SafeReact.useLayoutEffect ? useInsertionEffect : fn => fn();\n/**\n * Stabilizes the function passed so it's always the same between renders.\n *\n * The function becomes non-reactive to any values it captures.\n * It can safely be passed as a dependency of `React.useMemo` and `React.useEffect` without re-triggering them if its captured values change.\n *\n * The function must only be called inside effects and event handlers, never during render (which throws an error).\n *\n * This hook is a more permissive version of React 19.2's `React.useEffectEvent` in that it can be passed through contexts and called in event handler props, not just effects.\n */\nexport function useStableCallback(callback) {\n const stable = useRefWithInit(createStableCallback).current;\n stable.next = callback;\n useSafeInsertionEffect(stable.effect);\n return stable.trampoline;\n}\nfunction createStableCallback() {\n const stable = {\n next: undefined,\n callback: assertNotCalled,\n trampoline: (...args) => stable.callback?.(...args),\n effect: () => {\n stable.callback = stable.next;\n }\n };\n return stable;\n}\nfunction assertNotCalled() {\n if (process.env.NODE_ENV !== 'production') {\n // TODO: fix mui/no-guarded-throw\n // eslint-disable-next-line mui/no-guarded-throw\n throw /* minify-error-disabled */new Error('Base UI: Cannot call an event handler while rendering.');\n }\n}"],"names":["useInsertionEffect","SafeReact","useSafeInsertionEffect","fn","useStableCallback","callback","stable","useRefWithInit","createStableCallback","assertNotCalled","args"],"mappings":";;AAIA,MAAMA,IAAqBC,EAAU,oBAC/BC;AAAA;AAAA,EAENF;AAAA,EAEAA,MAAuBC,EAAU,kBAAkBD,IAAqB,CAAAG,MAAMA,EAAE;AAAA;AAWzE,SAASC,EAAkBC,GAAU;AAC1C,QAAMC,IAASC,EAAeC,CAAoB,EAAE;AACpD,SAAAF,EAAO,OAAOD,GACdH,EAAuBI,EAAO,MAAM,GAC7BA,EAAO;AAChB;AACA,SAASE,IAAuB;AAC9B,QAAMF,IAAS;AAAA,IACb,MAAM;AAAA,IACN,UAAUG;AAAA,IACV,YAAY,IAAIC,MAASJ,EAAO,WAAW,GAAGI,CAAI;AAAA,IAClD,QAAQ,MAAM;AACZ,MAAAJ,EAAO,WAAWA,EAAO;AAAA,IAC3B;AAAA,EACJ;AACE,SAAOA;AACT;AACA,SAASG,IAAkB;AACzB,MAAI,QAAQ,IAAI,aAAa;AAG3B;AAAA;AAAA,MAAiC,IAAI,MAAM,wDAAwD;AAAA;AAEvG;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index239.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/index24.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as Pe } from "./index28.js";
1
+ import { c as Pe } from "./index29.js";
2
2
  import { useState as ne, useRef as v, useEffect as g } from "react";
3
3
  const me = () => typeof window > "u" ? !1 : "IntersectionObserver" in window, we = (x, e, t) => {
4
4
  const R = x.getBoundingClientRect(), p = e.getBoundingClientRect();
package/dist/index240.js CHANGED
@@ -1,20 +1,12 @@
1
- import { useIsoLayoutEffect as r } from "./index238.js";
2
- import { useRefWithInit as n } from "./index233.js";
3
- function s(e) {
4
- const t = n(f, e).current;
5
- return t.next = e, r(t.effect), t;
6
- }
7
- function f(e) {
8
- const t = {
9
- current: e,
10
- next: e,
11
- effect: () => {
12
- t.current = t.next;
13
- }
14
- };
15
- return t;
1
+ function c(n, r) {
2
+ let { startMonth: t, endMonth: a } = n;
3
+ const { startOfYear: f, startOfDay: o, startOfMonth: s, endOfMonth: i, addYears: y, endOfYear: h, today: e } = r, d = n.captionLayout === "dropdown" || n.captionLayout === "dropdown-years";
4
+ return t ? t = s(t) : !t && d && (t = f(y(n.today ?? e(), -100))), a ? a = i(a) : !a && d && (a = h(n.today ?? e())), [
5
+ t && o(t),
6
+ a && o(a)
7
+ ];
16
8
  }
17
9
  export {
18
- s as useValueAsRef
10
+ c as getNavMonths
19
11
  };
20
12
  //# sourceMappingURL=index240.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index240.js","sources":["../../../node_modules/@base-ui/utils/useValueAsRef.mjs"],"sourcesContent":["'use client';\n\nimport { useIsoLayoutEffect } from \"./useIsoLayoutEffect.mjs\";\nimport { useRefWithInit } from \"./useRefWithInit.mjs\";\n\n/**\n * Untracks the provided value by turning it into a ref to remove its reactivity.\n *\n * Used to access the passed value inside `React.useEffect` without causing the effect to re-run when the value changes.\n */\nexport function useValueAsRef(value) {\n const latest = useRefWithInit(createLatestRef, value).current;\n latest.next = value;\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useIsoLayoutEffect(latest.effect);\n return latest;\n}\nfunction createLatestRef(value) {\n const latest = {\n current: value,\n next: value,\n effect: () => {\n latest.current = latest.next;\n }\n };\n return latest;\n}"],"names":["useValueAsRef","value","latest","useRefWithInit","createLatestRef","useIsoLayoutEffect"],"mappings":";;AAUO,SAASA,EAAcC,GAAO;AACnC,QAAMC,IAASC,EAAeC,GAAiBH,CAAK,EAAE;AACtD,SAAAC,EAAO,OAAOD,GAGdI,EAAmBH,EAAO,MAAM,GACzBA;AACT;AACA,SAASE,EAAgBH,GAAO;AAC9B,QAAMC,IAAS;AAAA,IACb,SAASD;AAAA,IACT,MAAMA;AAAA,IACN,QAAQ,MAAM;AACZ,MAAAC,EAAO,UAAUA,EAAO;AAAA,IAC1B;AAAA,EACJ;AACE,SAAOA;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index240.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js"],"sourcesContent":["/**\n * Returns the start and end months for calendar navigation.\n *\n * @param props The DayPicker props, including navigation and layout options.\n * @param dateLib The date library to use for date manipulation.\n * @returns A tuple containing the start and end months for navigation.\n */\nexport function getNavMonths(props, dateLib) {\n let { startMonth, endMonth } = props;\n const { startOfYear, startOfDay, startOfMonth, endOfMonth, addYears, endOfYear, today, } = dateLib;\n const hasYearDropdown = props.captionLayout === \"dropdown\" ||\n props.captionLayout === \"dropdown-years\";\n if (startMonth) {\n startMonth = startOfMonth(startMonth);\n }\n else if (!startMonth && hasYearDropdown) {\n startMonth = startOfYear(addYears(props.today ?? today(), -100));\n }\n if (endMonth) {\n endMonth = endOfMonth(endMonth);\n }\n else if (!endMonth && hasYearDropdown) {\n endMonth = endOfYear(props.today ?? today());\n }\n return [\n startMonth ? startOfDay(startMonth) : startMonth,\n endMonth ? startOfDay(endMonth) : endMonth,\n ];\n}\n"],"names":["getNavMonths","props","dateLib","startMonth","endMonth","startOfYear","startOfDay","startOfMonth","endOfMonth","addYears","endOfYear","today","hasYearDropdown"],"mappings":"AAOO,SAASA,EAAaC,GAAOC,GAAS;AACzC,MAAI,EAAE,YAAAC,GAAY,UAAAC,EAAQ,IAAKH;AAC/B,QAAM,EAAE,aAAAI,GAAa,YAAAC,GAAY,cAAAC,GAAc,YAAAC,GAAY,UAAAC,GAAU,WAAAC,GAAW,OAAAC,EAAK,IAAMT,GACrFU,IAAkBX,EAAM,kBAAkB,cAC5CA,EAAM,kBAAkB;AAC5B,SAAIE,IACAA,IAAaI,EAAaJ,CAAU,IAE/B,CAACA,KAAcS,MACpBT,IAAaE,EAAYI,EAASR,EAAM,SAASU,EAAK,GAAI,IAAI,CAAC,IAE/DP,IACAA,IAAWI,EAAWJ,CAAQ,IAEzB,CAACA,KAAYQ,MAClBR,IAAWM,EAAUT,EAAM,SAASU,EAAK,CAAE,IAExC;AAAA,IACHR,KAAaG,EAAWH,CAAU;AAAA,IAClCC,KAAWE,EAAWF,CAAQ;AAAA,EACtC;AACA;","x_google_ignoreList":[0]}
package/dist/index241.js CHANGED
@@ -1,9 +1,13 @@
1
- function e() {
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);
2
9
  }
3
- const t = Object.freeze([]), c = Object.freeze({});
4
10
  export {
5
- t as EMPTY_ARRAY,
6
- c as EMPTY_OBJECT,
7
- e as NOOP
11
+ h as getNextMonth
8
12
  };
9
13
  //# sourceMappingURL=index241.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index241.js","sources":["../../../node_modules/@base-ui/utils/empty.mjs"],"sourcesContent":["export function NOOP() {}\nexport const EMPTY_ARRAY = Object.freeze([]);\nexport const EMPTY_OBJECT = Object.freeze({});"],"names":["NOOP","EMPTY_ARRAY","EMPTY_OBJECT"],"mappings":"AAAO,SAASA,IAAO;AAAC;AACZ,MAACC,IAAc,OAAO,OAAO,CAAA,CAAE,GAC9BC,IAAe,OAAO,OAAO,CAAA,CAAE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index241.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js"],"sourcesContent":["/**\n * Returns the next month the user can navigate to, based on the given options.\n *\n * The next month is not always the next calendar month:\n *\n * - If it is after the `calendarEndMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips forward by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next month, or `undefined` if navigation is not possible.\n */\nexport function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths = 1 } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? numberOfMonths : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarEndMonth) {\n return addMonths(month, offset);\n }\n const monthsDiff = differenceInCalendarMonths(calendarEndMonth, firstDisplayedMonth);\n if (monthsDiff < numberOfMonths) {\n return undefined;\n }\n return addMonths(month, offset);\n}\n"],"names":["getNextMonth","firstDisplayedMonth","calendarEndMonth","options","dateLib","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month"],"mappings":"AAiBO,SAASA,EAAaC,GAAqBC,GAAkBC,GAASC,GAAS;AAClF,MAAID,EAAQ;AACR;AAEJ,QAAM,EAAE,iBAAAE,GAAiB,gBAAAC,IAAiB,EAAC,IAAKH,GAC1C,EAAE,cAAAI,GAAc,WAAAC,GAAW,4BAAAC,EAA0B,IAAKL,GAC1DM,IAASL,IAAkBC,IAAiB,GAC5CK,IAAQJ,EAAaN,CAAmB;AAC9C,MAAI,CAACC;AACD,WAAOM,EAAUG,GAAOD,CAAM;AAGlC,MAAI,EADeD,EAA2BP,GAAkBD,CAAmB,IAClEK;AAGjB,WAAOE,EAAUG,GAAOD,CAAM;AAClC;","x_google_ignoreList":[0]}
package/dist/index242.js CHANGED
@@ -1,25 +1,13 @@
1
- import o from "./index314.js";
2
- import * as e from "react";
3
- const n = /* @__PURE__ */ e.createContext(null);
4
- process.env.NODE_ENV !== "production" && (n.displayName = "SelectRootContext");
5
- const c = /* @__PURE__ */ e.createContext(null);
6
- process.env.NODE_ENV !== "production" && (c.displayName = "SelectFloatingContext");
7
- function s() {
8
- const t = e.useContext(n);
9
- if (t === null)
10
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>." : o(60));
11
- return t;
12
- }
13
- function i() {
14
- const t = e.useContext(c);
15
- if (t === null)
16
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>." : o(61));
17
- return t;
1
+ function c(i, t, e, s) {
2
+ if (e.disableNavigation)
3
+ return;
4
+ const { pagedNavigation: r, numberOfMonths: d } = e, { startOfMonth: u, addMonths: f, differenceInCalendarMonths: a } = s, o = r ? d ?? 1 : 1, n = u(i);
5
+ if (!t)
6
+ return f(n, -o);
7
+ if (!(a(n, t) <= 0))
8
+ return f(n, -o);
18
9
  }
19
10
  export {
20
- c as SelectFloatingContext,
21
- n as SelectRootContext,
22
- i as useSelectFloatingContext,
23
- s as useSelectRootContext
11
+ c as getPreviousMonth
24
12
  };
25
13
  //# sourceMappingURL=index242.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index242.js","sources":["../../../node_modules/@base-ui/react/select/root/SelectRootContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectRootContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") SelectRootContext.displayName = \"SelectRootContext\";\nexport const SelectFloatingContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") SelectFloatingContext.displayName = \"SelectFloatingContext\";\nexport function useSelectRootContext() {\n const context = React.useContext(SelectRootContext);\n if (context === null) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.' : _formatErrorMessage(60));\n }\n return context;\n}\nexport function useSelectFloatingContext() {\n const context = React.useContext(SelectFloatingContext);\n if (context === null) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.' : _formatErrorMessage(61));\n }\n return context;\n}"],"names":["SelectRootContext","React","SelectFloatingContext","useSelectRootContext","context","_formatErrorMessage","useSelectFloatingContext"],"mappings":";;AAIY,MAACA,IAAiC,gBAAAC,EAAM,cAAc,IAAI;AAClE,QAAQ,IAAI,aAAa,iBAAcD,EAAkB,cAAc;AAC/D,MAACE,IAAqC,gBAAAD,EAAM,cAAc,IAAI;AACtE,QAAQ,IAAI,aAAa,iBAAcC,EAAsB,cAAc;AACxE,SAASC,IAAuB;AACrC,QAAMC,IAAUH,EAAM,WAAWD,CAAiB;AAClD,MAAII,MAAY;AACd,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,6FAA6FC,EAAoB,EAAE,CAAC;AAE9K,SAAOD;AACT;AACO,SAASE,IAA2B;AACzC,QAAMF,IAAUH,EAAM,WAAWC,CAAqB;AACtD,MAAIE,MAAY;AACd,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,iGAAiGC,EAAoB,EAAE,CAAC;AAElL,SAAOD;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index242.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js"],"sourcesContent":["/**\n * Returns the previous month the user can navigate to, based on the given\n * options.\n *\n * The previous month is not always the previous calendar month:\n *\n * - If it is before the `calendarStartMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips back by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The previous month, or `undefined` if navigation is not possible.\n */\nexport function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? (numberOfMonths ?? 1) : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarStartMonth) {\n return addMonths(month, -offset);\n }\n const monthsDiff = differenceInCalendarMonths(month, calendarStartMonth);\n if (monthsDiff <= 0) {\n return undefined;\n }\n return addMonths(month, -offset);\n}\n"],"names":["getPreviousMonth","firstDisplayedMonth","calendarStartMonth","options","dateLib","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month"],"mappings":"AAkBO,SAASA,EAAiBC,GAAqBC,GAAoBC,GAASC,GAAS;AACxF,MAAID,EAAQ;AACR;AAEJ,QAAM,EAAE,iBAAAE,GAAiB,gBAAAC,EAAc,IAAKH,GACtC,EAAE,cAAAI,GAAc,WAAAC,GAAW,4BAAAC,EAA0B,IAAKL,GAC1DM,IAASL,IAAmBC,KAAkB,IAAK,GACnDK,IAAQJ,EAAaN,CAAmB;AAC9C,MAAI,CAACC;AACD,WAAOM,EAAUG,GAAO,CAACD,CAAM;AAGnC,MAAI,EADeD,EAA2BE,GAAOT,CAAkB,KACrD;AAGlB,WAAOM,EAAUG,GAAO,CAACD,CAAM;AACnC;","x_google_ignoreList":[0]}
package/dist/index243.js CHANGED
@@ -1,57 +1,8 @@
1
- import a from "./index314.js";
2
- import * as n from "react";
3
- import { NOOP as e, EMPTY_OBJECT as d } from "./index241.js";
4
- import { DEFAULT_FIELD_ROOT_STATE as l, DEFAULT_FIELD_STATE_ATTRIBUTES as i, DEFAULT_VALIDITY_STATE as s } from "./index271.js";
5
- const u = {
6
- invalid: void 0,
7
- name: void 0,
8
- validityData: {
9
- state: s,
10
- errors: [],
11
- error: "",
12
- value: "",
13
- initialValue: null
14
- },
15
- setValidityData: e,
16
- disabled: void 0,
17
- touched: i.touched,
18
- setTouched: e,
19
- dirty: i.dirty,
20
- setDirty: e,
21
- filled: i.filled,
22
- setFilled: e,
23
- focused: i.focused,
24
- setFocused: e,
25
- validate: () => null,
26
- validationMode: "onSubmit",
27
- validationDebounceTime: 0,
28
- shouldValidateOnChange: () => !1,
29
- state: l,
30
- markedDirtyRef: {
31
- current: !1
32
- },
33
- registerFieldControl: e,
34
- validation: {
35
- getValidationProps: (o, t = d) => t,
36
- inputRef: {
37
- current: null
38
- },
39
- registerInput: e,
40
- commit: async () => {
41
- },
42
- change: e
43
- }
44
- }, r = /* @__PURE__ */ n.createContext(u);
45
- process.env.NODE_ENV !== "production" && (r.displayName = "FieldRootContext");
46
- function f(o = !0) {
47
- const t = n.useContext(r);
48
- if (t.setValidityData === e && !o)
49
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>." : a(28));
50
- return t;
1
+ function i(e) {
2
+ const t = [];
3
+ return e.reduce((c, n) => c.concat(n.weeks.slice()), t.slice());
51
4
  }
52
5
  export {
53
- u as DEFAULT_FIELD_ROOT_CONTEXT,
54
- r as FieldRootContext,
55
- f as useFieldRootContext
6
+ i as getWeeks
56
7
  };
57
8
  //# sourceMappingURL=index243.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index243.js","sources":["../../../node_modules/@base-ui/react/internals/field-root-context/FieldRootContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { NOOP } from \"../noop.mjs\";\nimport { DEFAULT_FIELD_ROOT_STATE, DEFAULT_FIELD_STATE_ATTRIBUTES, DEFAULT_VALIDITY_STATE } from \"../field-constants/constants.mjs\";\nexport const DEFAULT_FIELD_ROOT_CONTEXT = {\n invalid: undefined,\n name: undefined,\n validityData: {\n state: DEFAULT_VALIDITY_STATE,\n errors: [],\n error: '',\n value: '',\n initialValue: null\n },\n setValidityData: NOOP,\n disabled: undefined,\n touched: DEFAULT_FIELD_STATE_ATTRIBUTES.touched,\n setTouched: NOOP,\n dirty: DEFAULT_FIELD_STATE_ATTRIBUTES.dirty,\n setDirty: NOOP,\n filled: DEFAULT_FIELD_STATE_ATTRIBUTES.filled,\n setFilled: NOOP,\n focused: DEFAULT_FIELD_STATE_ATTRIBUTES.focused,\n setFocused: NOOP,\n validate: () => null,\n validationMode: 'onSubmit',\n validationDebounceTime: 0,\n shouldValidateOnChange: () => false,\n state: DEFAULT_FIELD_ROOT_STATE,\n markedDirtyRef: {\n current: false\n },\n registerFieldControl: NOOP,\n validation: {\n getValidationProps: (_disabled, props = EMPTY_OBJECT) => props,\n inputRef: {\n current: null\n },\n registerInput: NOOP,\n commit: async () => {},\n change: NOOP\n }\n};\nexport const FieldRootContext = /*#__PURE__*/React.createContext(DEFAULT_FIELD_ROOT_CONTEXT);\nif (process.env.NODE_ENV !== \"production\") FieldRootContext.displayName = \"FieldRootContext\";\nexport function useFieldRootContext(optional = true) {\n const context = React.useContext(FieldRootContext);\n if (context.setValidityData === NOOP && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.' : _formatErrorMessage(28));\n }\n return context;\n}"],"names":["DEFAULT_FIELD_ROOT_CONTEXT","DEFAULT_VALIDITY_STATE","NOOP","DEFAULT_FIELD_STATE_ATTRIBUTES","DEFAULT_FIELD_ROOT_STATE","_disabled","props","EMPTY_OBJECT","FieldRootContext","React","useFieldRootContext","optional","context","_formatErrorMessage"],"mappings":";;;;AAOY,MAACA,IAA6B;AAAA,EACxC,SAAS;AAAA,EACT,MAAM;AAAA,EACN,cAAc;AAAA,IACZ,OAAOC;AAAA,IACP,QAAQ,CAAA;AAAA,IACR,OAAO;AAAA,IACP,OAAO;AAAA,IACP,cAAc;AAAA,EAClB;AAAA,EACE,iBAAiBC;AAAA,EACjB,UAAU;AAAA,EACV,SAASC,EAA+B;AAAA,EACxC,YAAYD;AAAA,EACZ,OAAOC,EAA+B;AAAA,EACtC,UAAUD;AAAA,EACV,QAAQC,EAA+B;AAAA,EACvC,WAAWD;AAAA,EACX,SAASC,EAA+B;AAAA,EACxC,YAAYD;AAAA,EACZ,UAAU,MAAM;AAAA,EAChB,gBAAgB;AAAA,EAChB,wBAAwB;AAAA,EACxB,wBAAwB,MAAM;AAAA,EAC9B,OAAOE;AAAA,EACP,gBAAgB;AAAA,IACd,SAAS;AAAA,EACb;AAAA,EACE,sBAAsBF;AAAA,EACtB,YAAY;AAAA,IACV,oBAAoB,CAACG,GAAWC,IAAQC,MAAiBD;AAAA,IACzD,UAAU;AAAA,MACR,SAAS;AAAA,IACf;AAAA,IACI,eAAeJ;AAAA,IACf,QAAQ,YAAY;AAAA,IAAC;AAAA,IACrB,QAAQA;AAAA,EACZ;AACA,GACaM,IAAgC,gBAAAC,EAAM,cAAcT,CAA0B;AACvF,QAAQ,IAAI,aAAa,iBAAcQ,EAAiB,cAAc;AACnE,SAASE,EAAoBC,IAAW,IAAM;AACnD,QAAMC,IAAUH,EAAM,WAAWD,CAAgB;AACjD,MAAII,EAAQ,oBAAoBV,KAAQ,CAACS;AACvC,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,0FAA0FE,EAAoB,EAAE,CAAC;AAE3K,SAAOD;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index243.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getWeeks.js"],"sourcesContent":["/**\n * Returns an array of calendar weeks from an array of calendar months.\n *\n * @param months The array of calendar months.\n * @returns An array of calendar weeks.\n */\nexport function getWeeks(months) {\n const initialWeeks = [];\n return months.reduce((weeks, month) => {\n return weeks.concat(month.weeks.slice());\n }, initialWeeks.slice());\n}\n"],"names":["getWeeks","months","initialWeeks","weeks","month"],"mappings":"AAMO,SAASA,EAASC,GAAQ;AAC7B,QAAMC,IAAe,CAAA;AACrB,SAAOD,EAAO,OAAO,CAACE,GAAOC,MAClBD,EAAM,OAAOC,EAAM,MAAM,MAAK,CAAE,GACxCF,EAAa,OAAO;AAC3B;","x_google_ignoreList":[0]}
package/dist/index244.js CHANGED
@@ -1,24 +1,9 @@
1
- import * as f from "react";
2
- import { useIsoLayoutEffect as l } from "./index238.js";
3
- import { useFieldRootContext as m } from "./index243.js";
4
- function R(o, n, s, u, i = !0, c) {
5
- const {
6
- registerFieldControl: t
7
- } = m(), r = f.useRef(null);
8
- r.current || (r.current = /* @__PURE__ */ Symbol()), l(() => {
9
- const e = r.current;
10
- return !e || !i ? void 0 : (t(e, {
11
- controlRef: o,
12
- getValue: u,
13
- id: n,
14
- name: c,
15
- value: s
16
- }), () => {
17
- t(e, void 0);
18
- });
19
- }, [o, i, u, n, c, t, s]);
1
+ import { useState as o } from "react";
2
+ function a(t, e) {
3
+ const [u, n] = o(t);
4
+ return [e === void 0 ? u : e, n];
20
5
  }
21
6
  export {
22
- R as useRegisterFieldControl
7
+ a as useControlledValue
23
8
  };
24
9
  //# sourceMappingURL=index244.js.map