@rpcbase/ui 0.246.0 → 0.247.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 (625) 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/index150.js +3 -3
  17. package/dist/index156.js +1 -1
  18. package/dist/index16.js +8 -8
  19. package/dist/index163.js +2 -2
  20. package/dist/index164.js +7 -7
  21. package/dist/index167.js +4 -4
  22. package/dist/index169.js +1 -1
  23. package/dist/index17.js +1 -1
  24. package/dist/index171.js +58 -14
  25. package/dist/index171.js.map +1 -1
  26. package/dist/index172.js +8 -68
  27. package/dist/index172.js.map +1 -1
  28. package/dist/index173.js +87 -37
  29. package/dist/index173.js.map +1 -1
  30. package/dist/index174.js +19 -13
  31. package/dist/index174.js.map +1 -1
  32. package/dist/index175.js +16 -23
  33. package/dist/index175.js.map +1 -1
  34. package/dist/index176.js +5 -111
  35. package/dist/index176.js.map +1 -1
  36. package/dist/index177.js +6 -13
  37. package/dist/index177.js.map +1 -1
  38. package/dist/index178.js +6 -4
  39. package/dist/index178.js.map +1 -1
  40. package/dist/index179.js +5 -4
  41. package/dist/index179.js.map +1 -1
  42. package/dist/index18.js +7 -7
  43. package/dist/index180.js +7 -5
  44. package/dist/index180.js.map +1 -1
  45. package/dist/index181.js +16 -11
  46. package/dist/index181.js.map +1 -1
  47. package/dist/index182.js +4 -19
  48. package/dist/index182.js.map +1 -1
  49. package/dist/index183.js +5 -11
  50. package/dist/index183.js.map +1 -1
  51. package/dist/index184.js +12 -176
  52. package/dist/index184.js.map +1 -1
  53. package/dist/index185.js +9 -279
  54. package/dist/index185.js.map +1 -1
  55. package/dist/index186.js +13 -4
  56. package/dist/index186.js.map +1 -1
  57. package/dist/index187.js +14 -28
  58. package/dist/index187.js.map +1 -1
  59. package/dist/index188.js +4 -126
  60. package/dist/index188.js.map +1 -1
  61. package/dist/index189.js +5 -63
  62. package/dist/index189.js.map +1 -1
  63. package/dist/index19.js +16 -16
  64. package/dist/index190.js +6 -8
  65. package/dist/index190.js.map +1 -1
  66. package/dist/index191.js +6 -16
  67. package/dist/index191.js.map +1 -1
  68. package/dist/index192.js +53 -29
  69. package/dist/index192.js.map +1 -1
  70. package/dist/index193.js +8 -69
  71. package/dist/index193.js.map +1 -1
  72. package/dist/index194.js +4 -58
  73. package/dist/index194.js.map +1 -1
  74. package/dist/index195.js +4 -8
  75. package/dist/index195.js.map +1 -1
  76. package/dist/index196.js +8 -87
  77. package/dist/index196.js.map +1 -1
  78. package/dist/index197.js +4 -19
  79. package/dist/index197.js.map +1 -1
  80. package/dist/index198.js +4 -16
  81. package/dist/index198.js.map +1 -1
  82. package/dist/index199.js +3 -5
  83. package/dist/index199.js.map +1 -1
  84. package/dist/index200.js +10 -5
  85. package/dist/index200.js.map +1 -1
  86. package/dist/index201.js +9 -6
  87. package/dist/index201.js.map +1 -1
  88. package/dist/index202.js +9 -4
  89. package/dist/index202.js.map +1 -1
  90. package/dist/index203.js +10 -6
  91. package/dist/index203.js.map +1 -1
  92. package/dist/index204.js +10 -16
  93. package/dist/index204.js.map +1 -1
  94. package/dist/index205.js +9 -4
  95. package/dist/index205.js.map +1 -1
  96. package/dist/index206.js +6 -4
  97. package/dist/index206.js.map +1 -1
  98. package/dist/index207.js +5 -12
  99. package/dist/index207.js.map +1 -1
  100. package/dist/index208.js +4 -9
  101. package/dist/index208.js.map +1 -1
  102. package/dist/index209.js +5 -13
  103. package/dist/index209.js.map +1 -1
  104. package/dist/index21.js +1 -1
  105. package/dist/index210.js +6 -13
  106. package/dist/index210.js.map +1 -1
  107. package/dist/index211.js +5 -4
  108. package/dist/index211.js.map +1 -1
  109. package/dist/index212.js +16 -5
  110. package/dist/index212.js.map +1 -1
  111. package/dist/index213.js +7 -6
  112. package/dist/index213.js.map +1 -1
  113. package/dist/index214.js +10 -5
  114. package/dist/index214.js.map +1 -1
  115. package/dist/index215.js +10 -54
  116. package/dist/index215.js.map +1 -1
  117. package/dist/index216.js +21 -8
  118. package/dist/index216.js.map +1 -1
  119. package/dist/index217.js +8 -4
  120. package/dist/index217.js.map +1 -1
  121. package/dist/index218.js +9 -4
  122. package/dist/index218.js.map +1 -1
  123. package/dist/index219.js +9 -8
  124. package/dist/index219.js.map +1 -1
  125. package/dist/index22.js +2 -2
  126. package/dist/index220.js +4 -4
  127. package/dist/index220.js.map +1 -1
  128. package/dist/index221.js +5 -4
  129. package/dist/index221.js.map +1 -1
  130. package/dist/index222.js +16 -3
  131. package/dist/index222.js.map +1 -1
  132. package/dist/index223.js +9 -10
  133. package/dist/index223.js.map +1 -1
  134. package/dist/index224.js +18 -9
  135. package/dist/index224.js.map +1 -1
  136. package/dist/index225.js +20 -9
  137. package/dist/index225.js.map +1 -1
  138. package/dist/index226.js +12 -10
  139. package/dist/index226.js.map +1 -1
  140. package/dist/index227.js +29 -10
  141. package/dist/index227.js.map +1 -1
  142. package/dist/index228.js +12 -9
  143. package/dist/index228.js.map +1 -1
  144. package/dist/index229.js +25 -6
  145. package/dist/index229.js.map +1 -1
  146. package/dist/index23.js +1 -1
  147. package/dist/index230.js +5 -5
  148. package/dist/index230.js.map +1 -1
  149. package/dist/index231.js +14 -4
  150. package/dist/index231.js.map +1 -1
  151. package/dist/index232.js +68 -5
  152. package/dist/index232.js.map +1 -1
  153. package/dist/index233.js +38 -7
  154. package/dist/index233.js.map +1 -1
  155. package/dist/index234.js +14 -6
  156. package/dist/index234.js.map +1 -1
  157. package/dist/index235.js +23 -16
  158. package/dist/index235.js.map +1 -1
  159. package/dist/index236.js +111 -7
  160. package/dist/index236.js.map +1 -1
  161. package/dist/index237.js +13 -11
  162. package/dist/index237.js.map +1 -1
  163. package/dist/index238.js +4 -10
  164. package/dist/index238.js.map +1 -1
  165. package/dist/index239.js +4 -22
  166. package/dist/index239.js.map +1 -1
  167. package/dist/index24.js +1 -1
  168. package/dist/index240.js +5 -9
  169. package/dist/index240.js.map +1 -1
  170. package/dist/index241.js +11 -9
  171. package/dist/index241.js.map +1 -1
  172. package/dist/index242.js +19 -9
  173. package/dist/index242.js.map +1 -1
  174. package/dist/index243.js +11 -5
  175. package/dist/index243.js.map +1 -1
  176. package/dist/index244.js +176 -5
  177. package/dist/index244.js.map +1 -1
  178. package/dist/index245.js +278 -15
  179. package/dist/index245.js.map +1 -1
  180. package/dist/index246.js +4 -9
  181. package/dist/index246.js.map +1 -1
  182. package/dist/index247.js +28 -19
  183. package/dist/index247.js.map +1 -1
  184. package/dist/index248.js +124 -18
  185. package/dist/index248.js.map +1 -1
  186. package/dist/index249.js +63 -12
  187. package/dist/index249.js.map +1 -1
  188. package/dist/index25.js +1 -1
  189. package/dist/index250.js +8 -29
  190. package/dist/index250.js.map +1 -1
  191. package/dist/index251.js +15 -12
  192. package/dist/index251.js.map +1 -1
  193. package/dist/index252.js +30 -25
  194. package/dist/index252.js.map +1 -1
  195. package/dist/index253.js +69 -5
  196. package/dist/index253.js.map +1 -1
  197. package/dist/index254.js +155 -20
  198. package/dist/index254.js.map +1 -1
  199. package/dist/index255.js +31 -65
  200. package/dist/index255.js.map +1 -1
  201. package/dist/index256.js +11 -6
  202. package/dist/index256.js.map +1 -1
  203. package/dist/index257.js +49 -5
  204. package/dist/index257.js.map +1 -1
  205. package/dist/index258.js +9 -11
  206. package/dist/index258.js.map +1 -1
  207. package/dist/index259.js +11 -3
  208. package/dist/index259.js.map +1 -1
  209. package/dist/index260.js +41 -48
  210. package/dist/index260.js.map +1 -1
  211. package/dist/index261.js +98 -4
  212. package/dist/index261.js.map +1 -1
  213. package/dist/index262.js +84 -27
  214. package/dist/index262.js.map +1 -1
  215. package/dist/index263.js +103 -14
  216. package/dist/index263.js.map +1 -1
  217. package/dist/index264.js +52 -5
  218. package/dist/index264.js.map +1 -1
  219. package/dist/index265.js +11 -21
  220. package/dist/index265.js.map +1 -1
  221. package/dist/index266.js +4 -53
  222. package/dist/index266.js.map +1 -1
  223. package/dist/index267.js +37 -20
  224. package/dist/index267.js.map +1 -1
  225. package/dist/index268.js +8 -41
  226. package/dist/index268.js.map +1 -1
  227. package/dist/index269.js +3 -39
  228. package/dist/index269.js.map +1 -1
  229. package/dist/index270.js +10 -46
  230. package/dist/index270.js.map +1 -1
  231. package/dist/index271.js +133 -18
  232. package/dist/index271.js.map +1 -1
  233. package/dist/index272.js +16 -69
  234. package/dist/index272.js.map +1 -1
  235. package/dist/index273.js +15 -17
  236. package/dist/index273.js.map +1 -1
  237. package/dist/index274.js +36 -3
  238. package/dist/index274.js.map +1 -1
  239. package/dist/index275.js +20 -11
  240. package/dist/index275.js.map +1 -1
  241. package/dist/index276.js +8 -13
  242. package/dist/index276.js.map +1 -1
  243. package/dist/index277.js +24 -18
  244. package/dist/index277.js.map +1 -1
  245. package/dist/index278.js +27 -35
  246. package/dist/index278.js.map +1 -1
  247. package/dist/index279.js +16 -239
  248. package/dist/index279.js.map +1 -1
  249. package/dist/index28.js +2 -2
  250. package/dist/index280.js +20 -253
  251. package/dist/index280.js.map +1 -1
  252. package/dist/index281.js +64 -66
  253. package/dist/index281.js.map +1 -1
  254. package/dist/index282.js +6 -99
  255. package/dist/index282.js.map +1 -1
  256. package/dist/index283.js +5 -83
  257. package/dist/index283.js.map +1 -1
  258. package/dist/index284.js +11 -3
  259. package/dist/index284.js.map +1 -1
  260. package/dist/index285.js +3 -29
  261. package/dist/index285.js.map +1 -1
  262. package/dist/index286.js +50 -16
  263. package/dist/index286.js.map +1 -1
  264. package/dist/index287.js +4 -35
  265. package/dist/index287.js.map +1 -1
  266. package/dist/index288.js +28 -16
  267. package/dist/index288.js.map +1 -1
  268. package/dist/index289.js +16 -3
  269. package/dist/index289.js.map +1 -1
  270. package/dist/index29.js +56 -3
  271. package/dist/index29.js.map +1 -1
  272. package/dist/index290.js +5 -26
  273. package/dist/index290.js.map +1 -1
  274. package/dist/index291.js +20 -27
  275. package/dist/index291.js.map +1 -1
  276. package/dist/index292.js +54 -4
  277. package/dist/index292.js.map +1 -1
  278. package/dist/index293.js +18 -76
  279. package/dist/index293.js.map +1 -1
  280. package/dist/index294.js +37 -268
  281. package/dist/index294.js.map +1 -1
  282. package/dist/index295.js +39 -11
  283. package/dist/index295.js.map +1 -1
  284. package/dist/index296.js +45 -10
  285. package/dist/index296.js.map +1 -1
  286. package/dist/index297.js +20 -25
  287. package/dist/index297.js.map +1 -1
  288. package/dist/index298.js +69 -15
  289. package/dist/index298.js.map +1 -1
  290. package/dist/index299.js +14 -122
  291. package/dist/index299.js.map +1 -1
  292. package/dist/index3.js +2 -2
  293. package/dist/index30.js +3 -242
  294. package/dist/index30.js.map +1 -1
  295. package/dist/index300.js +3 -5
  296. package/dist/index300.js.map +1 -1
  297. package/dist/index301.js +11 -65
  298. package/dist/index301.js.map +1 -1
  299. package/dist/index302.js +14 -14
  300. package/dist/index302.js.map +1 -1
  301. package/dist/index303.js +18 -7
  302. package/dist/index303.js.map +1 -1
  303. package/dist/index304.js +36 -5
  304. package/dist/index304.js.map +1 -1
  305. package/dist/index305.js +239 -3
  306. package/dist/index305.js.map +1 -1
  307. package/dist/index306.js +252 -10
  308. package/dist/index306.js.map +1 -1
  309. package/dist/index307.js +68 -7
  310. package/dist/index307.js.map +1 -1
  311. package/dist/index308.js +94 -128
  312. package/dist/index308.js.map +1 -1
  313. package/dist/index309.js +75 -391
  314. package/dist/index309.js.map +1 -1
  315. package/dist/index31.js +239 -21
  316. package/dist/index31.js.map +1 -1
  317. package/dist/index310.js +4 -5
  318. package/dist/index310.js.map +1 -1
  319. package/dist/index311.js +28 -51
  320. package/dist/index311.js.map +1 -1
  321. package/dist/index312.js +15 -10
  322. package/dist/index312.js.map +1 -1
  323. package/dist/index313.js +35 -28
  324. package/dist/index313.js.map +1 -1
  325. package/dist/index314.js +17 -11
  326. package/dist/index314.js.map +1 -1
  327. package/dist/index315.js +3 -154
  328. package/dist/index315.js.map +1 -1
  329. package/dist/index316.js +25 -31
  330. package/dist/index316.js.map +1 -1
  331. package/dist/index317.js +28 -11
  332. package/dist/index317.js.map +1 -1
  333. package/dist/index318.js +4 -50
  334. package/dist/index318.js.map +1 -1
  335. package/dist/index319.js +78 -9
  336. package/dist/index319.js.map +1 -1
  337. package/dist/index32.js +23 -4
  338. package/dist/index32.js.map +1 -1
  339. package/dist/index320.js +271 -10
  340. package/dist/index320.js.map +1 -1
  341. package/dist/index321.js +11 -43
  342. package/dist/index321.js.map +1 -1
  343. package/dist/index322.js +10 -97
  344. package/dist/index322.js.map +1 -1
  345. package/dist/index323.js +25 -86
  346. package/dist/index323.js.map +1 -1
  347. package/dist/index324.js +15 -104
  348. package/dist/index324.js.map +1 -1
  349. package/dist/index325.js +123 -50
  350. package/dist/index325.js.map +1 -1
  351. package/dist/index326.js +5 -11
  352. package/dist/index326.js.map +1 -1
  353. package/dist/index327.js +65 -4
  354. package/dist/index327.js.map +1 -1
  355. package/dist/index328.js +13 -37
  356. package/dist/index328.js.map +1 -1
  357. package/dist/index329.js +7 -8
  358. package/dist/index329.js.map +1 -1
  359. package/dist/index33.js +3 -6
  360. package/dist/index33.js.map +1 -1
  361. package/dist/index330.js +5 -135
  362. package/dist/index330.js.map +1 -1
  363. package/dist/index331.js +3 -17
  364. package/dist/index331.js.map +1 -1
  365. package/dist/index332.js +10 -15
  366. package/dist/index332.js.map +1 -1
  367. package/dist/index333.js +7 -3
  368. package/dist/index333.js.map +1 -1
  369. package/dist/index334.js +129 -32
  370. package/dist/index334.js.map +1 -1
  371. package/dist/index335.js +397 -18
  372. package/dist/index335.js.map +1 -1
  373. package/dist/index336.js +5 -10
  374. package/dist/index336.js.map +1 -1
  375. package/dist/index337.js +52 -8
  376. package/dist/index337.js.map +1 -1
  377. package/dist/index338.js +11 -24
  378. package/dist/index338.js.map +1 -1
  379. package/dist/index339.js +27 -28
  380. package/dist/index339.js.map +1 -1
  381. package/dist/index34.js +8 -38
  382. package/dist/index34.js.map +1 -1
  383. package/dist/index340.js +11 -16
  384. package/dist/index340.js.map +1 -1
  385. package/dist/index341.js +4 -8
  386. package/dist/index341.js.map +1 -1
  387. package/dist/index342.js +18 -12
  388. package/dist/index342.js.map +1 -1
  389. package/dist/index343.js +12 -8
  390. package/dist/index343.js.map +1 -1
  391. package/dist/index344.js +8 -13
  392. package/dist/index344.js.map +1 -1
  393. package/dist/index345.js +11 -3
  394. package/dist/index345.js.map +1 -1
  395. package/dist/index346.js +8 -3
  396. package/dist/index346.js.map +1 -1
  397. package/dist/index347.js +12 -16
  398. package/dist/index347.js.map +1 -1
  399. package/dist/index348.js +3 -51
  400. package/dist/index348.js.map +1 -1
  401. package/dist/index349.js +3 -5
  402. package/dist/index349.js.map +1 -1
  403. package/dist/index35.js +35 -74
  404. package/dist/index35.js.map +1 -1
  405. package/dist/index350.js +16 -60
  406. package/dist/index350.js.map +1 -1
  407. package/dist/index351.js +5 -66
  408. package/dist/index351.js.map +1 -1
  409. package/dist/index352.js +51 -8
  410. package/dist/index352.js.map +1 -1
  411. package/dist/index353.js +62 -5
  412. package/dist/index353.js.map +1 -1
  413. package/dist/index354.js +66 -11
  414. package/dist/index354.js.map +1 -1
  415. package/dist/index355.js +8 -21
  416. package/dist/index355.js.map +1 -1
  417. package/dist/index356.js +5 -17
  418. package/dist/index356.js.map +1 -1
  419. package/dist/index357.js +12 -8
  420. package/dist/index357.js.map +1 -1
  421. package/dist/index358.js +21 -144
  422. package/dist/index358.js.map +1 -1
  423. package/dist/index359.js +14 -77
  424. package/dist/index359.js.map +1 -1
  425. package/dist/index36.js +74 -20
  426. package/dist/index36.js.map +1 -1
  427. package/dist/index360.js +8 -62
  428. package/dist/index360.js.map +1 -1
  429. package/dist/index361.js +145 -15
  430. package/dist/index361.js.map +1 -1
  431. package/dist/index362.js +79 -4
  432. package/dist/index362.js.map +1 -1
  433. package/dist/index363.js +61 -17
  434. package/dist/index363.js.map +1 -1
  435. package/dist/index364.js +15 -13
  436. package/dist/index364.js.map +1 -1
  437. package/dist/index365.js +4 -11
  438. package/dist/index365.js.map +1 -1
  439. package/dist/index366.js +21 -4
  440. package/dist/index366.js.map +1 -1
  441. package/dist/index367.js +4 -6
  442. package/dist/index367.js.map +1 -1
  443. package/dist/index368.js +6 -3
  444. package/dist/index368.js.map +1 -1
  445. package/dist/index369.js +3 -21
  446. package/dist/index369.js.map +1 -1
  447. package/dist/index37.js +18 -33
  448. package/dist/index37.js.map +1 -1
  449. package/dist/index370.js +11 -44
  450. package/dist/index370.js.map +1 -1
  451. package/dist/index371.js +20 -17
  452. package/dist/index371.js.map +1 -1
  453. package/dist/index372.js +45 -5
  454. package/dist/index372.js.map +1 -1
  455. package/dist/index373.js +15 -198
  456. package/dist/index373.js.map +1 -1
  457. package/dist/index374.js +5 -74
  458. package/dist/index374.js.map +1 -1
  459. package/dist/index375.js +192 -115
  460. package/dist/index375.js.map +1 -1
  461. package/dist/index376.js +73 -4
  462. package/dist/index376.js.map +1 -1
  463. package/dist/index377.js +122 -19
  464. package/dist/index377.js.map +1 -1
  465. package/dist/index378.js +4 -8
  466. package/dist/index378.js.map +1 -1
  467. package/dist/index379.js +5 -27
  468. package/dist/index379.js.map +1 -1
  469. package/dist/index38.js +36 -26
  470. package/dist/index38.js.map +1 -1
  471. package/dist/index380.js +4 -138
  472. package/dist/index380.js.map +1 -1
  473. package/dist/index381.js +15 -12
  474. package/dist/index381.js.map +1 -1
  475. package/dist/index382.js +8 -46
  476. package/dist/index382.js.map +1 -1
  477. package/dist/index383.js +5 -3
  478. package/dist/index383.js.map +1 -1
  479. package/dist/index384.js +4 -21
  480. package/dist/index384.js.map +1 -1
  481. package/dist/index385.js +542 -72
  482. package/dist/index385.js.map +1 -1
  483. package/dist/index386.js +46 -11
  484. package/dist/index386.js.map +1 -1
  485. package/dist/index387.js +17 -3
  486. package/dist/index387.js.map +1 -1
  487. package/dist/index388.js +5 -71
  488. package/dist/index388.js.map +1 -1
  489. package/dist/index389.js +7 -35
  490. package/dist/index389.js.map +1 -1
  491. package/dist/index39.js +26 -21
  492. package/dist/index39.js.map +1 -1
  493. package/dist/index390.js +7 -7
  494. package/dist/index390.js.map +1 -1
  495. package/dist/index391.js +7 -15
  496. package/dist/index391.js.map +1 -1
  497. package/dist/index392.js +11 -4
  498. package/dist/index392.js.map +1 -1
  499. package/dist/index393.js +8 -4
  500. package/dist/index393.js.map +1 -1
  501. package/dist/index394.js +13 -4
  502. package/dist/index394.js.map +1 -1
  503. package/dist/index395.js +8 -15
  504. package/dist/index395.js.map +1 -1
  505. package/dist/index396.js +27 -9
  506. package/dist/index396.js.map +1 -1
  507. package/dist/index397.js +137 -5
  508. package/dist/index397.js.map +1 -1
  509. package/dist/index398.js +12 -4
  510. package/dist/index398.js.map +1 -1
  511. package/dist/index399.js +44 -543
  512. package/dist/index399.js.map +1 -1
  513. package/dist/index4.js +2 -2
  514. package/dist/index40.js +20 -56
  515. package/dist/index40.js.map +1 -1
  516. package/dist/index400.js +4 -47
  517. package/dist/index400.js.map +1 -1
  518. package/dist/index401.js +21 -17
  519. package/dist/index401.js.map +1 -1
  520. package/dist/index402.js +75 -5
  521. package/dist/index402.js.map +1 -1
  522. package/dist/index403.js +12 -8
  523. package/dist/index403.js.map +1 -1
  524. package/dist/index404.js +3 -6
  525. package/dist/index404.js.map +1 -1
  526. package/dist/index405.js +71 -7
  527. package/dist/index405.js.map +1 -1
  528. package/dist/index406.js +35 -11
  529. package/dist/index406.js.map +1 -1
  530. package/dist/index407.js +7 -9
  531. package/dist/index407.js.map +1 -1
  532. package/dist/index408.js +15 -12
  533. package/dist/index408.js.map +1 -1
  534. package/dist/index41.js +59 -51
  535. package/dist/index41.js.map +1 -1
  536. package/dist/index411.js +5 -3
  537. package/dist/index411.js.map +1 -1
  538. package/dist/index412.js +55 -14
  539. package/dist/index412.js.map +1 -1
  540. package/dist/index413.js +66 -490
  541. package/dist/index413.js.map +1 -1
  542. package/dist/index414.js +31 -5
  543. package/dist/index414.js.map +1 -1
  544. package/dist/index415.js +9 -56
  545. package/dist/index415.js.map +1 -1
  546. package/dist/index416.js +146 -61
  547. package/dist/index416.js.map +1 -1
  548. package/dist/index417.js +103 -26
  549. package/dist/index417.js.map +1 -1
  550. package/dist/index418.js +15 -9
  551. package/dist/index418.js.map +1 -1
  552. package/dist/index419.js +3 -153
  553. package/dist/index419.js.map +1 -1
  554. package/dist/index42.js +50 -21
  555. package/dist/index42.js.map +1 -1
  556. package/dist/index420.js +490 -106
  557. package/dist/index420.js.map +1 -1
  558. package/dist/index423.js +1 -1
  559. package/dist/index424.js +1 -1
  560. package/dist/index427.js +1 -1
  561. package/dist/index428.js +1 -1
  562. package/dist/index43.js +18 -127
  563. package/dist/index43.js.map +1 -1
  564. package/dist/index430.js +16 -2
  565. package/dist/index430.js.map +1 -1
  566. package/dist/index431.js +29 -2
  567. package/dist/index431.js.map +1 -1
  568. package/dist/index432.js +13 -2
  569. package/dist/index432.js.map +1 -1
  570. package/dist/index433.js +7 -2
  571. package/dist/index433.js.map +1 -1
  572. package/dist/index434.js +2 -16
  573. package/dist/index434.js.map +1 -1
  574. package/dist/index435.js +2 -29
  575. package/dist/index435.js.map +1 -1
  576. package/dist/index436.js +2 -13
  577. package/dist/index436.js.map +1 -1
  578. package/dist/index437.js +2 -7
  579. package/dist/index437.js.map +1 -1
  580. package/dist/index44.js +122 -39
  581. package/dist/index44.js.map +1 -1
  582. package/dist/index45.js +42 -85
  583. package/dist/index45.js.map +1 -1
  584. package/dist/index46.js +87 -123
  585. package/dist/index46.js.map +1 -1
  586. package/dist/index47.js +126 -5
  587. package/dist/index47.js.map +1 -1
  588. package/dist/index48.js +5 -332
  589. package/dist/index48.js.map +1 -1
  590. package/dist/index49.js +321 -246
  591. package/dist/index49.js.map +1 -1
  592. package/dist/index5.js +2 -2
  593. package/dist/index50.js +254 -23
  594. package/dist/index50.js.map +1 -1
  595. package/dist/index51.js +25 -129
  596. package/dist/index51.js.map +1 -1
  597. package/dist/index52.js +129 -24
  598. package/dist/index52.js.map +1 -1
  599. package/dist/index53.js +22 -19
  600. package/dist/index53.js.map +1 -1
  601. package/dist/index54.js +19 -134
  602. package/dist/index54.js.map +1 -1
  603. package/dist/index55.js +133 -30
  604. package/dist/index55.js.map +1 -1
  605. package/dist/index56.js +30 -24
  606. package/dist/index56.js.map +1 -1
  607. package/dist/index57.js +26 -38
  608. package/dist/index57.js.map +1 -1
  609. package/dist/index58.js +39 -19
  610. package/dist/index58.js.map +1 -1
  611. package/dist/index59.js +18 -133
  612. package/dist/index59.js.map +1 -1
  613. package/dist/index6.js +4 -4
  614. package/dist/index60.js +134 -49
  615. package/dist/index60.js.map +1 -1
  616. package/dist/index61.js +48 -25
  617. package/dist/index61.js.map +1 -1
  618. package/dist/index62.js +28 -57
  619. package/dist/index62.js.map +1 -1
  620. package/dist/index63.js +57 -56
  621. package/dist/index63.js.map +1 -1
  622. package/dist/index7.js +11 -11
  623. package/dist/index8.js +2 -2
  624. package/dist/index9.js +1 -1
  625. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index245.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js"],"sourcesContent":["import { DayFlag } from \"../UI.js\";\nvar FocusTargetPriority;\n(function (FocusTargetPriority) {\n FocusTargetPriority[FocusTargetPriority[\"Today\"] = 0] = \"Today\";\n FocusTargetPriority[FocusTargetPriority[\"Selected\"] = 1] = \"Selected\";\n FocusTargetPriority[FocusTargetPriority[\"LastFocused\"] = 2] = \"LastFocused\";\n FocusTargetPriority[FocusTargetPriority[\"FocusedModifier\"] = 3] = \"FocusedModifier\";\n})(FocusTargetPriority || (FocusTargetPriority = {}));\n/**\n * Determines if a day is focusable based on its modifiers.\n *\n * A day is considered focusable if it is not disabled, hidden, or outside the\n * displayed month.\n *\n * @param modifiers The modifiers applied to the day.\n * @returns `true` if the day is focusable, otherwise `false`.\n */\nfunction isFocusableDay(modifiers) {\n return (!modifiers[DayFlag.disabled] &&\n !modifiers[DayFlag.hidden] &&\n !modifiers[DayFlag.outside]);\n}\n/**\n * Calculates the focus target day based on priority.\n *\n * This function determines the day that should receive focus in the calendar,\n * prioritizing days with specific modifiers (e.g., \"focused\", \"today\") or\n * selection states.\n *\n * @param days The array of `CalendarDay` objects to evaluate.\n * @param getModifiers A function to retrieve the modifiers for a given day.\n * @param isSelected A function to determine if a day is selected.\n * @param lastFocused The last focused day, if any.\n * @returns The `CalendarDay` that should receive focus, or `undefined` if no\n * focusable day is found.\n */\nexport function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {\n let focusTarget;\n let foundFocusTargetPriority = -1;\n for (const day of days) {\n const modifiers = getModifiers(day);\n if (isFocusableDay(modifiers)) {\n if (modifiers[DayFlag.focused] &&\n foundFocusTargetPriority < FocusTargetPriority.FocusedModifier) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.FocusedModifier;\n }\n else if (lastFocused?.isEqualTo(day) &&\n foundFocusTargetPriority < FocusTargetPriority.LastFocused) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.LastFocused;\n }\n else if (isSelected(day.date) &&\n foundFocusTargetPriority < FocusTargetPriority.Selected) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.Selected;\n }\n else if (modifiers[DayFlag.today] &&\n foundFocusTargetPriority < FocusTargetPriority.Today) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.Today;\n }\n }\n }\n if (!focusTarget) {\n // Return the first day that is focusable\n focusTarget = days.find((day) => isFocusableDay(getModifiers(day)));\n }\n return focusTarget;\n}\n"],"names":["FocusTargetPriority","isFocusableDay","modifiers","DayFlag","calculateFocusTarget","days","getModifiers","isSelected","lastFocused","focusTarget","foundFocusTargetPriority","day"],"mappings":";AACA,IAAIA;AAAA,CACH,SAAUA,GAAqB;AAC5B,EAAAA,EAAoBA,EAAoB,QAAW,CAAC,IAAI,SACxDA,EAAoBA,EAAoB,WAAc,CAAC,IAAI,YAC3DA,EAAoBA,EAAoB,cAAiB,CAAC,IAAI,eAC9DA,EAAoBA,EAAoB,kBAAqB,CAAC,IAAI;AACtE,GAAGA,MAAwBA,IAAsB,CAAA,EAAG;AAUpD,SAASC,EAAeC,GAAW;AAC/B,SAAQ,CAACA,EAAUC,EAAQ,QAAQ,KAC/B,CAACD,EAAUC,EAAQ,MAAM,KACzB,CAACD,EAAUC,EAAQ,OAAO;AAClC;AAeO,SAASC,EAAqBC,GAAMC,GAAcC,GAAYC,GAAa;AAC9E,MAAIC,GACAC,IAA2B;AAC/B,aAAWC,KAAON,GAAM;AACpB,UAAMH,IAAYI,EAAaK,CAAG;AAClC,IAAIV,EAAeC,CAAS,MACpBA,EAAUC,EAAQ,OAAO,KACzBO,IAA2BV,EAAoB,mBAC/CS,IAAcE,GACdD,IAA2BV,EAAoB,mBAE1CQ,GAAa,UAAUG,CAAG,KAC/BD,IAA2BV,EAAoB,eAC/CS,IAAcE,GACdD,IAA2BV,EAAoB,eAE1CO,EAAWI,EAAI,IAAI,KACxBD,IAA2BV,EAAoB,YAC/CS,IAAcE,GACdD,IAA2BV,EAAoB,YAE1CE,EAAUC,EAAQ,KAAK,KAC5BO,IAA2BV,EAAoB,UAC/CS,IAAcE,GACdD,IAA2BV,EAAoB;AAAA,EAG3D;AACA,SAAKS,MAEDA,IAAcJ,EAAK,KAAK,CAACM,MAAQV,EAAeK,EAAaK,CAAG,CAAC,CAAC,IAE/DF;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index245.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/components/FloatingFocusManager.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { getNodeName, isHTMLElement } from '@floating-ui/utils/dom';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { mergeCleanups } from '@base-ui/utils/mergeCleanups';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useTimeout } from '@base-ui/utils/useTimeout';\nimport { platform } from '@base-ui/utils/platform';\nimport { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';\nimport { ownerDocument, ownerWindow } from '@base-ui/utils/owner';\nimport { FocusGuard } from \"../../utils/FocusGuard.mjs\";\nimport { activeElement, contains, getTarget, isTypeableCombobox, getFloatingFocusElement, isTypeableElement } from \"../utils/element.mjs\";\nimport { isVirtualClick, isVirtualPointerEvent, stopEvent } from \"../utils/event.mjs\";\nimport { tabbable, focusable, isOutsideEvent, isTabbable, getNextTabbable, getPreviousTabbable } from \"../utils/tabbable.mjs\";\nimport { getNodeAncestors, getNodeChildren } from \"../utils/nodes.mjs\";\nimport { isElementVisible } from \"../utils/composite.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { createAttribute } from \"../utils/createAttribute.mjs\";\nimport { enqueueFocus } from \"../utils/enqueueFocus.mjs\";\nimport { markOthers } from \"../utils/markOthers.mjs\";\nimport { usePortalContext } from \"./FloatingPortal.mjs\";\nimport { useFloatingTree } from \"./FloatingTree.mjs\";\nimport { CLICK_TRIGGER_IDENTIFIER } from \"../../internals/constants.mjs\";\nimport { resolveRef } from \"../../utils/resolveRef.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction getEventType(event, lastInteractionType) {\n const win = ownerWindow(getTarget(event));\n if (event instanceof win.KeyboardEvent) {\n return 'keyboard';\n }\n if (event instanceof win.FocusEvent) {\n // Focus events can be caused by a preceding pointer interaction (e.g., focusout on outside press).\n // Prefer the last known pointer type if provided, else treat as keyboard.\n return lastInteractionType || 'keyboard';\n }\n if ('pointerType' in event) {\n return event.pointerType || 'keyboard';\n }\n if ('touches' in event) {\n return 'touch';\n }\n if (event instanceof win.MouseEvent) {\n // onClick events may not contain pointer events, and will fall through to here\n return lastInteractionType || (event.detail === 0 ? 'keyboard' : 'mouse');\n }\n return '';\n}\nconst LIST_LIMIT = 20;\nlet previouslyFocusedElements = [];\nfunction clearDisconnectedPreviouslyFocusedElements() {\n previouslyFocusedElements = previouslyFocusedElements.filter(entry => {\n return entry.deref()?.isConnected;\n });\n}\nfunction addPreviouslyFocusedElement(element) {\n clearDisconnectedPreviouslyFocusedElements();\n if (element && getNodeName(element) !== 'body') {\n previouslyFocusedElements.push(new WeakRef(element));\n if (previouslyFocusedElements.length > LIST_LIMIT) {\n previouslyFocusedElements = previouslyFocusedElements.slice(-LIST_LIMIT);\n }\n }\n}\nfunction getPreviouslyFocusedElement() {\n clearDisconnectedPreviouslyFocusedElements();\n return previouslyFocusedElements[previouslyFocusedElements.length - 1]?.deref();\n}\nfunction getFirstTabbableElement(container) {\n if (!container) {\n return null;\n }\n if (isTabbable(container)) {\n return container;\n }\n return tabbable(container)[0] || container;\n}\nfunction handleTabIndex(floatingFocusElement) {\n if (floatingFocusElement.hasAttribute('tabindex') && !floatingFocusElement.hasAttribute('data-tabindex')) {\n return;\n }\n if (!floatingFocusElement.getAttribute('role')?.includes('dialog')) {\n return;\n }\n const focusableElements = focusable(floatingFocusElement);\n const tabbableContent = focusableElements.filter(element => {\n const dataTabIndex = element.getAttribute('data-tabindex') || '';\n return isTabbable(element) || element.hasAttribute('data-tabindex') && !dataTabIndex.startsWith('-');\n });\n const tabIndex = floatingFocusElement.getAttribute('tabindex');\n if (tabbableContent.length === 0) {\n if (tabIndex !== '0') {\n floatingFocusElement.setAttribute('tabindex', '0');\n // Mark our own write so the externally-managed early-return above doesn't\n // mistake it for a user-authored `tabindex` and freeze management.\n floatingFocusElement.setAttribute('data-tabindex', '0');\n }\n } else if (tabIndex !== '-1' || floatingFocusElement.hasAttribute('data-tabindex') && floatingFocusElement.getAttribute('data-tabindex') !== '-1') {\n floatingFocusElement.setAttribute('tabindex', '-1');\n floatingFocusElement.setAttribute('data-tabindex', '-1');\n }\n}\n/**\n * Provides focus management for the floating element.\n * @see https://floating-ui.com/docs/FloatingFocusManager\n * @internal\n */\nexport function FloatingFocusManager(props) {\n const {\n context,\n children,\n disabled = false,\n initialFocus = true,\n returnFocus = true,\n restoreFocus = false,\n modal = true,\n closeOnFocusOut = true,\n openInteractionType = '',\n nextFocusableElement,\n previousFocusableElement,\n beforeContentFocusGuardRef,\n externalTree,\n getInsideElements\n } = props;\n const store = 'rootStore' in context ? context.rootStore : context;\n const open = store.useState('open');\n const domReference = store.useState('domReferenceElement');\n const floating = store.useState('floatingElement');\n const {\n events,\n dataRef\n } = store.context;\n const getNodeId = useStableCallback(() => dataRef.current.floatingContext?.nodeId);\n const ignoreInitialFocus = initialFocus === false;\n // If the reference is a combobox and is typeable (e.g. input/textarea),\n // there are different focus semantics. The guards should not be rendered, but\n // aria-hidden should be applied to all nodes still. Further, the visually\n // hidden dismiss button should only appear at the end of the list, not the\n // start.\n const isUntrappedTypeableCombobox = isTypeableCombobox(domReference) && ignoreInitialFocus;\n const initialFocusRef = useValueAsRef(initialFocus);\n const returnFocusRef = useValueAsRef(returnFocus);\n const openInteractionTypeRef = useValueAsRef(openInteractionType);\n const openRef = useValueAsRef(open);\n const tree = useFloatingTree(externalTree);\n const portalContext = usePortalContext();\n const preventReturnFocusRef = React.useRef(false);\n const isPointerDownRef = React.useRef(false);\n const pointerDownOutsideRef = React.useRef(false);\n const lastFocusedTabbableRef = React.useRef(null);\n const closeTypeRef = React.useRef('');\n const lastInteractionTypeRef = React.useRef('');\n const beforeGuardRef = React.useRef(null);\n const afterGuardRef = React.useRef(null);\n const mergedBeforeGuardRef = useMergedRefs(beforeGuardRef, beforeContentFocusGuardRef, portalContext?.beforeInsideRef);\n const mergedAfterGuardRef = useMergedRefs(afterGuardRef, portalContext?.afterInsideRef);\n const blurTimeout = useTimeout();\n const pointerDownTimeout = useTimeout();\n const restoreFocusFrame = useAnimationFrame();\n const isInsidePortal = portalContext != null;\n const floatingFocusElement = getFloatingFocusElement(floating);\n const getTabbableContent = useStableCallback((container = floatingFocusElement) => {\n return container ? tabbable(container) : [];\n });\n const getResolvedInsideElements = useStableCallback(() => getInsideElements?.().filter(element => element != null) ?? []);\n\n // Prevent Tab from escaping the modal when there are no tabbable elements.\n React.useEffect(() => {\n if (disabled || !modal) {\n return undefined;\n }\n function onKeyDown(event) {\n if (event.key === 'Tab') {\n // The focus guards have nothing to focus, so we need to stop the event.\n if (contains(floatingFocusElement, activeElement(ownerDocument(floatingFocusElement))) && getTabbableContent().length === 0 && !isUntrappedTypeableCombobox) {\n stopEvent(event);\n }\n }\n }\n const doc = ownerDocument(floatingFocusElement);\n return addEventListener(doc, 'keydown', onKeyDown);\n }, [disabled, floatingFocusElement, modal, isUntrappedTypeableCombobox, getTabbableContent]);\n\n // Track pointer/keyboard interactions to disambiguate focus and outside presses.\n React.useEffect(() => {\n if (disabled || !open) {\n return undefined;\n }\n const doc = ownerDocument(floatingFocusElement);\n function clearPointerDownOutside() {\n pointerDownOutsideRef.current = false;\n }\n function onPointerDown(event) {\n const target = getTarget(event);\n const insideElements = getResolvedInsideElements();\n const pointerTargetInside = contains(floating, target) || contains(domReference, target) || contains(portalContext?.portalNode, target) || insideElements.some(element => element === target || contains(element, target));\n pointerDownOutsideRef.current = !pointerTargetInside;\n lastInteractionTypeRef.current = event.pointerType || 'keyboard';\n if (target?.closest(`[${CLICK_TRIGGER_IDENTIFIER}]`)) {\n isPointerDownRef.current = true;\n // Reset on the next tick so a single click on a click-trigger doesn't\n // permanently suppress focus-out closing for the lifetime of the instance.\n pointerDownTimeout.start(0, () => {\n isPointerDownRef.current = false;\n });\n }\n }\n function onKeyDown() {\n lastInteractionTypeRef.current = 'keyboard';\n }\n return mergeCleanups(addEventListener(doc, 'pointerdown', onPointerDown, true), addEventListener(doc, 'pointerup', clearPointerDownOutside, true), addEventListener(doc, 'pointercancel', clearPointerDownOutside, true), addEventListener(doc, 'keydown', onKeyDown, true),\n // Avoid a stale `true` leaking into the next open (e.g. keep-mounted popups)\n // if the popup dismissed between pointerdown and pointerup.\n clearPointerDownOutside);\n }, [disabled, floating, domReference, floatingFocusElement, open, portalContext, pointerDownTimeout, getResolvedInsideElements]);\n\n // Close on focus out and restore focus within the floating tree when needed.\n React.useEffect(() => {\n if (disabled || !closeOnFocusOut) {\n return undefined;\n }\n const doc = ownerDocument(floatingFocusElement);\n\n // In Safari, buttons lose focus when pressing them.\n function handlePointerDown() {\n isPointerDownRef.current = true;\n pointerDownTimeout.start(0, () => {\n isPointerDownRef.current = false;\n });\n }\n function handleFocusIn(event) {\n const target = getTarget(event);\n if (isTabbable(target)) {\n lastFocusedTabbableRef.current = target;\n }\n }\n function handleFocusOutside(event) {\n const relatedTarget = event.relatedTarget;\n const currentTarget = event.currentTarget;\n const target = getTarget(event);\n\n // When focus is lost to the body (e.g. on a backdrop press), record the element that\n // had focus so a confirmation dialog opened while the body is focused can return focus\n // to it. Scoped to `modal` to avoid non-modal popups polluting the shared stack.\n if (modal && relatedTarget == null && target != null && contains(floating, target)) {\n addPreviouslyFocusedElement(target);\n }\n queueMicrotask(() => {\n const nodeId = getNodeId();\n const triggers = store.context.triggerElements;\n const insideElements = getResolvedInsideElements();\n const isRelatedFocusGuard = relatedTarget?.hasAttribute(createAttribute('focus-guard')) && [beforeGuardRef.current, afterGuardRef.current, portalContext?.beforeInsideRef.current, portalContext?.afterInsideRef.current, portalContext?.beforeOutsideRef.current, portalContext?.afterOutsideRef.current, resolveRef(previousFocusableElement), resolveRef(nextFocusableElement)].includes(relatedTarget);\n const movedToUnrelatedNode = !(contains(domReference, relatedTarget) || contains(floating, relatedTarget) || contains(relatedTarget, floating) || contains(portalContext?.portalNode, relatedTarget) || insideElements.some(element => element === relatedTarget || contains(element, relatedTarget)) || relatedTarget != null && triggers.hasElement(relatedTarget) || triggers.hasMatchingElement(trigger => contains(trigger, relatedTarget)) || isRelatedFocusGuard || tree && (getNodeChildren(tree.nodesRef.current, nodeId).find(node => contains(node.context?.elements.floating, relatedTarget) || contains(node.context?.elements.domReference, relatedTarget)) || getNodeAncestors(tree.nodesRef.current, nodeId).find(node => [node.context?.elements.floating, getFloatingFocusElement(node.context?.elements.floating)].includes(relatedTarget) || node.context?.elements.domReference === relatedTarget)));\n if (currentTarget === domReference && floatingFocusElement) {\n handleTabIndex(floatingFocusElement);\n }\n\n // Restore focus to the previous tabbable element index to prevent\n // focus from being lost outside the floating tree.\n if (restoreFocus && currentTarget !== domReference && !isElementVisible(target) && activeElement(doc) === doc.body) {\n // Let `FloatingPortal` effect knows that focus is still inside the\n // floating tree.\n if (isHTMLElement(floatingFocusElement)) {\n floatingFocusElement.focus();\n // If explicitly requested to restore focus to the popup container, do not search\n // for the next/previous tabbable element.\n if (restoreFocus === 'popup') {\n // If the element is removed on pointerdown, focus tries to move it,\n // but since it's removed at the same time, focus gets lost as it\n // happens after the .focus() call above.\n // In this case, focus needs to be moved asynchronously.\n restoreFocusFrame.request(() => {\n floatingFocusElement.focus();\n });\n return;\n }\n }\n const tabbableContent = getTabbableContent();\n const prevTabbable = lastFocusedTabbableRef.current;\n const nodeToFocus = (prevTabbable && tabbableContent.includes(prevTabbable) ? prevTabbable : null) || tabbableContent[tabbableContent.length - 1] || floatingFocusElement;\n if (isHTMLElement(nodeToFocus)) {\n nodeToFocus.focus();\n }\n }\n\n // https://github.com/floating-ui/floating-ui/issues/3060\n if (dataRef.current.insideReactTree) {\n dataRef.current.insideReactTree = false;\n return;\n }\n\n // Focus did not move inside the floating tree, and there are no tabbable\n // portal guards to handle closing.\n if ((isUntrappedTypeableCombobox ? true : !modal) && relatedTarget && movedToUnrelatedNode && !isPointerDownRef.current && (\n // Fix React 18 Strict Mode returnFocus due to double rendering.\n // For an \"untrapped\" typeable combobox (input role=combobox with\n // initialFocus=false), re-opening the popup and tabbing out should still close it even\n // when the previously focused element (e.g. the next tabbable outside the popup) is\n // focused again. Otherwise, the popup remains open on the second Tab sequence:\n // click input -> Tab (closes) -> click input -> Tab.\n // Allow closing when `isUntrappedTypeableCombobox` regardless of the previously focused element.\n isUntrappedTypeableCombobox || relatedTarget !== getPreviouslyFocusedElement())) {\n preventReturnFocusRef.current = true;\n store.setOpen(false, createChangeEventDetails(REASONS.focusOut, event));\n }\n });\n }\n function markInsideReactTree() {\n if (pointerDownOutsideRef.current) {\n return;\n }\n dataRef.current.insideReactTree = true;\n blurTimeout.start(0, () => {\n dataRef.current.insideReactTree = false;\n });\n }\n const domReferenceElement = isHTMLElement(domReference) ? domReference : null;\n if (!floating && !domReferenceElement) {\n return undefined;\n }\n return mergeCleanups(domReferenceElement && addEventListener(domReferenceElement, 'focusout', handleFocusOutside), domReferenceElement && addEventListener(domReferenceElement, 'pointerdown', handlePointerDown), floating && addEventListener(floating, 'focusin', handleFocusIn), floating && addEventListener(floating, 'focusout', handleFocusOutside), floating && portalContext && addEventListener(floating, 'focusout', markInsideReactTree, true));\n }, [disabled, domReference, floating, floatingFocusElement, modal, tree, portalContext, store, closeOnFocusOut, restoreFocus, getTabbableContent, isUntrappedTypeableCombobox, getNodeId, dataRef, blurTimeout, pointerDownTimeout, restoreFocusFrame, nextFocusableElement, previousFocusableElement, getResolvedInsideElements]);\n\n // Hide everything outside the floating tree from assistive tech while open.\n React.useEffect(() => {\n if (disabled || !floating || !open) {\n return undefined;\n }\n\n // Don't hide portals nested within the parent portal.\n const portalNodes = Array.from(portalContext?.portalNode?.querySelectorAll(`[${createAttribute('portal')}]`) || []);\n const ancestors = tree ? getNodeAncestors(tree.nodesRef.current, getNodeId()) : [];\n const rootAncestorComboboxDomReference = ancestors.find(node => isTypeableCombobox(node.context?.elements.domReference || null))?.context?.elements.domReference;\n const controlInsideElements = [floating, ...portalNodes, beforeGuardRef.current, afterGuardRef.current, portalContext?.beforeOutsideRef.current, portalContext?.afterOutsideRef.current, ...getResolvedInsideElements()];\n const insideElements = [...controlInsideElements, rootAncestorComboboxDomReference, resolveRef(previousFocusableElement), resolveRef(nextFocusableElement), isUntrappedTypeableCombobox ? domReference : null].filter(x => x != null);\n const ariaHiddenCleanup = markOthers(insideElements, {\n ariaHidden: modal || isUntrappedTypeableCombobox,\n mark: false\n });\n const markerInsideElements = [floating, ...portalNodes].filter(x => x != null);\n const markerCleanup = markOthers(markerInsideElements);\n return () => {\n markerCleanup();\n ariaHiddenCleanup();\n };\n }, [open, disabled, domReference, floating, modal, portalContext, isUntrappedTypeableCombobox, tree, getNodeId, nextFocusableElement, previousFocusableElement, getResolvedInsideElements]);\n\n // Focus the initial element when the floating element opens.\n useIsoLayoutEffect(() => {\n if (!open || disabled || !isHTMLElement(floatingFocusElement)) {\n return;\n }\n const doc = ownerDocument(floatingFocusElement);\n const previouslyFocusedElement = activeElement(doc);\n\n // Wait for any layout effect state setters to execute to set `tabIndex`.\n queueMicrotask(() => {\n const initialFocusValueOrFn = initialFocusRef.current;\n const resolvedInitialFocus = typeof initialFocusValueOrFn === 'function' ? initialFocusValueOrFn(openInteractionTypeRef.current || '') : initialFocusValueOrFn;\n\n // `null` should fallback to default behavior in case of an empty ref.\n if (resolvedInitialFocus === undefined || resolvedInitialFocus === false) {\n return;\n }\n const focusAlreadyInsideFloatingEl = contains(floatingFocusElement, previouslyFocusedElement);\n if (focusAlreadyInsideFloatingEl) {\n return;\n }\n let focusableElements = null;\n const getDefaultFocusElement = () => {\n if (focusableElements == null) {\n focusableElements = getTabbableContent(floatingFocusElement);\n }\n return focusableElements[0] || floatingFocusElement;\n };\n let elToFocus;\n if (resolvedInitialFocus === true || resolvedInitialFocus === null) {\n elToFocus = getDefaultFocusElement();\n } else {\n elToFocus = resolveRef(resolvedInitialFocus);\n }\n elToFocus = elToFocus || getDefaultFocusElement();\n const hadFocusInside = contains(floatingFocusElement, activeElement(doc));\n enqueueFocus(elToFocus, {\n preventScroll: elToFocus === floatingFocusElement,\n shouldFocus() {\n // This focus is queued on the next animation frame. If the floating element has closed\n // before it runs — e.g. tabbing out of a kept-mounted popup — don't pull focus back\n // onto the initial element after it has legitimately moved elsewhere.\n if (!openRef.current) {\n return false;\n }\n if (hadFocusInside) {\n return true;\n }\n const currentActiveElement = activeElement(doc);\n const focusMovedInside = currentActiveElement !== elToFocus && contains(floatingFocusElement, currentActiveElement);\n return !focusMovedInside;\n }\n });\n });\n }, [disabled, open, floatingFocusElement, getTabbableContent, initialFocusRef, openInteractionTypeRef, openRef]);\n\n // Track return focus targets and restore focus on unmount/close.\n useIsoLayoutEffect(() => {\n if (disabled || !floatingFocusElement) {\n return undefined;\n }\n const doc = ownerDocument(floatingFocusElement);\n const elementFocusedBeforeOpen = activeElement(doc);\n // Only nullish interaction types represent programmatic opens. The empty\n // string default is intentionally not treated as programmatic.\n const preferPreviousFocus = openInteractionTypeRef.current == null;\n addPreviouslyFocusedElement(elementFocusedBeforeOpen);\n\n // Dismissing via outside press should always ignore `returnFocus` to\n // prevent unwanted scrolling.\n function onOpenChangeLocal(details) {\n if (!details.open) {\n closeTypeRef.current = getEventType(details.nativeEvent, lastInteractionTypeRef.current);\n }\n if (details.reason === REASONS.triggerHover && details.nativeEvent.type === 'mouseleave') {\n preventReturnFocusRef.current = true;\n }\n if (details.reason !== REASONS.outsidePress) {\n return;\n }\n if (details.nested) {\n preventReturnFocusRef.current = false;\n } else if (isVirtualClick(details.nativeEvent) || isVirtualPointerEvent(details.nativeEvent)) {\n preventReturnFocusRef.current = false;\n } else {\n let isPreventScrollSupported = false;\n ownerDocument(floatingFocusElement).createElement('div').focus({\n get preventScroll() {\n isPreventScrollSupported = true;\n return false;\n }\n });\n if (isPreventScrollSupported) {\n preventReturnFocusRef.current = false;\n } else {\n preventReturnFocusRef.current = true;\n }\n }\n }\n events.on('openchange', onOpenChangeLocal);\n function getReturnElement() {\n const returnFocusValueOrFn = returnFocusRef.current;\n let resolvedReturnFocusValue = typeof returnFocusValueOrFn === 'function' ? returnFocusValueOrFn(closeTypeRef.current) : returnFocusValueOrFn;\n\n // `null` should fallback to default behavior in case of an empty ref.\n if (resolvedReturnFocusValue === undefined || resolvedReturnFocusValue === false) {\n return null;\n }\n if (resolvedReturnFocusValue === null) {\n resolvedReturnFocusValue = true;\n }\n const referenceReturnElement = domReference?.isConnected ? domReference : null;\n const previousReturnElement = elementFocusedBeforeOpen?.isConnected && getNodeName(elementFocusedBeforeOpen) !== 'body' ? elementFocusedBeforeOpen : null;\n let defaultReturnElement = preferPreviousFocus ? previousReturnElement || referenceReturnElement : referenceReturnElement || previousReturnElement;\n if (!defaultReturnElement) {\n defaultReturnElement = getPreviouslyFocusedElement() || null;\n }\n if (typeof resolvedReturnFocusValue === 'boolean') {\n return defaultReturnElement;\n }\n return resolveRef(resolvedReturnFocusValue) || defaultReturnElement || null;\n }\n return () => {\n events.off('openchange', onOpenChangeLocal);\n const activeEl = activeElement(doc);\n const insideElements = getResolvedInsideElements();\n const isFocusInsideFloatingTree = contains(floating, activeEl) || insideElements.some(element => element === activeEl || contains(element, activeEl)) || tree && getNodeChildren(tree.nodesRef.current, getNodeId(), false).some(node => contains(node.context?.elements.floating, activeEl));\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const returnFocusValueOrFn = returnFocusRef.current;\n const returnElement = getReturnElement();\n queueMicrotask(() => {\n // This is `returnElement`, if it's tabbable, or its first tabbable child.\n const tabbableReturnElement = getFirstTabbableElement(returnElement);\n const hasExplicitReturnFocus = typeof returnFocusValueOrFn !== 'boolean';\n if (returnFocusValueOrFn && !preventReturnFocusRef.current && isHTMLElement(tabbableReturnElement) && (\n // If the focus moved somewhere else after mount, avoid returning focus\n // since it likely entered a different element which should be\n // respected: https://github.com/floating-ui/floating-ui/issues/2607\n !hasExplicitReturnFocus && tabbableReturnElement !== activeEl && activeEl !== doc.body ? isFocusInsideFloatingTree : true)) {\n tabbableReturnElement.focus({\n preventScroll: true\n });\n }\n preventReturnFocusRef.current = false;\n });\n };\n }, [disabled, floating, floatingFocusElement, returnFocusRef, openInteractionTypeRef, events, tree, domReference, getNodeId, getResolvedInsideElements]);\n\n // Safari may randomly scroll to the bottom of the page if an input inside a popup has focus\n // when the popup unmounts from the DOM.\n // By blurring it before the popup unmounts, we can prevent this behavior.\n useIsoLayoutEffect(() => {\n if (!platform.engine.webkit || open || !floating) {\n return;\n }\n const activeEl = activeElement(ownerDocument(floating));\n if (!isHTMLElement(activeEl) || !isTypeableElement(activeEl)) {\n return;\n }\n if (contains(floating, activeEl)) {\n activeEl.blur();\n }\n }, [open, floating]);\n\n // Synchronize the `context` & `modal` value to the FloatingPortal context.\n // It will decide whether or not it needs to render its own guards.\n useIsoLayoutEffect(() => {\n if (disabled || !portalContext) {\n return undefined;\n }\n portalContext.setFocusManagerState({\n modal,\n closeOnFocusOut,\n open,\n onOpenChange: store.setOpen,\n domReference\n });\n return () => {\n portalContext.setFocusManagerState(null);\n };\n }, [disabled, portalContext, modal, open, store, closeOnFocusOut, domReference]);\n\n // Keep the floating element tabIndex in sync and clear stale focus records.\n useIsoLayoutEffect(() => {\n if (disabled || !floatingFocusElement) {\n return undefined;\n }\n handleTabIndex(floatingFocusElement);\n return () => {\n queueMicrotask(clearDisconnectedPreviouslyFocusedElements);\n };\n }, [disabled, floatingFocusElement]);\n const shouldRenderGuards = !disabled && (modal ? !isUntrappedTypeableCombobox : true) && (isInsidePortal || modal);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [shouldRenderGuards && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"inside\",\n ref: mergedBeforeGuardRef,\n onFocus: event => {\n if (modal) {\n const els = getTabbableContent();\n enqueueFocus(els[els.length - 1]);\n } else if (portalContext?.portalNode) {\n preventReturnFocusRef.current = false;\n if (isOutsideEvent(event, portalContext.portalNode)) {\n const nextTabbable = getNextTabbable(domReference);\n nextTabbable?.focus();\n } else {\n resolveRef(previousFocusableElement ?? portalContext.beforeOutsideRef)?.focus();\n }\n }\n }\n }), children, shouldRenderGuards && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"inside\",\n ref: mergedAfterGuardRef,\n onFocus: event => {\n if (modal) {\n enqueueFocus(getTabbableContent()[0]);\n } else if (portalContext?.portalNode) {\n if (closeOnFocusOut) {\n preventReturnFocusRef.current = true;\n }\n if (isOutsideEvent(event, portalContext.portalNode)) {\n const prevTabbable = getPreviousTabbable(domReference);\n prevTabbable?.focus();\n } else {\n resolveRef(nextFocusableElement ?? portalContext.afterOutsideRef)?.focus();\n }\n }\n }\n })]\n });\n}"],"names":["getEventType","event","lastInteractionType","win","ownerWindow","getTarget","LIST_LIMIT","previouslyFocusedElements","clearDisconnectedPreviouslyFocusedElements","entry","addPreviouslyFocusedElement","element","getNodeName","getPreviouslyFocusedElement","getFirstTabbableElement","container","isTabbable","tabbable","handleTabIndex","floatingFocusElement","tabbableContent","focusable","dataTabIndex","tabIndex","FloatingFocusManager","props","context","children","disabled","initialFocus","returnFocus","restoreFocus","modal","closeOnFocusOut","openInteractionType","nextFocusableElement","previousFocusableElement","beforeContentFocusGuardRef","externalTree","getInsideElements","store","open","domReference","floating","events","dataRef","getNodeId","useStableCallback","ignoreInitialFocus","isUntrappedTypeableCombobox","isTypeableCombobox","initialFocusRef","useValueAsRef","returnFocusRef","openInteractionTypeRef","openRef","tree","useFloatingTree","portalContext","usePortalContext","preventReturnFocusRef","React","isPointerDownRef","pointerDownOutsideRef","lastFocusedTabbableRef","closeTypeRef","lastInteractionTypeRef","beforeGuardRef","afterGuardRef","mergedBeforeGuardRef","useMergedRefs","mergedAfterGuardRef","blurTimeout","useTimeout","pointerDownTimeout","restoreFocusFrame","useAnimationFrame","isInsidePortal","getFloatingFocusElement","getTabbableContent","getResolvedInsideElements","onKeyDown","contains","activeElement","ownerDocument","stopEvent","doc","addEventListener","clearPointerDownOutside","onPointerDown","target","insideElements","pointerTargetInside","CLICK_TRIGGER_IDENTIFIER","mergeCleanups","handlePointerDown","handleFocusIn","handleFocusOutside","relatedTarget","currentTarget","nodeId","triggers","isRelatedFocusGuard","createAttribute","resolveRef","movedToUnrelatedNode","trigger","getNodeChildren","node","getNodeAncestors","isElementVisible","isHTMLElement","prevTabbable","nodeToFocus","createChangeEventDetails","REASONS.focusOut","markInsideReactTree","domReferenceElement","portalNodes","rootAncestorComboboxDomReference","x","ariaHiddenCleanup","markOthers","markerInsideElements","markerCleanup","useIsoLayoutEffect","previouslyFocusedElement","initialFocusValueOrFn","resolvedInitialFocus","focusableElements","getDefaultFocusElement","elToFocus","hadFocusInside","enqueueFocus","currentActiveElement","elementFocusedBeforeOpen","preferPreviousFocus","onOpenChangeLocal","details","REASONS.triggerHover","REASONS.outsidePress","isVirtualClick","isVirtualPointerEvent","isPreventScrollSupported","getReturnElement","returnFocusValueOrFn","resolvedReturnFocusValue","referenceReturnElement","previousReturnElement","defaultReturnElement","activeEl","isFocusInsideFloatingTree","returnElement","tabbableReturnElement","hasExplicitReturnFocus","platform.engine.webkit","isTypeableElement","shouldRenderGuards","_jsxs","_jsx","FocusGuard","els","isOutsideEvent","getNextTabbable","getPreviousTabbable"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,SAASA,GAAaC,GAAOC,GAAqB;AAChD,QAAMC,IAAMC,GAAYC,EAAUJ,CAAK,CAAC;AACxC,SAAIA,aAAiBE,EAAI,gBAChB,aAELF,aAAiBE,EAAI,aAGhBD,KAAuB,aAE5B,iBAAiBD,IACZA,EAAM,eAAe,aAE1B,aAAaA,IACR,UAELA,aAAiBE,EAAI,aAEhBD,MAAwBD,EAAM,WAAW,IAAI,aAAa,WAE5D;AACT;AACA,MAAMK,KAAa;AACnB,IAAIC,IAA4B,CAAA;AAChC,SAASC,KAA6C;AACpD,EAAAD,IAA4BA,EAA0B,OAAO,CAAAE,MACpDA,EAAM,MAAK,GAAI,WACvB;AACH;AACA,SAASC,GAA4BC,GAAS;AAC5C,EAAAH,GAA0C,GACtCG,KAAWC,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oB,CAAC;AACnC,QAAM0I,KAAqB,CAACjI,MAAaI,IAAQ,CAACiB,IAA8B,QAAU4B,MAAkB7C;AAC5G,SAAoB8H,gBAAAA,GAAAA,KAAMjG,EAAM,UAAU;AAAA,IACxC,UAAU,CAACgG,MAAmCE,gBAAAA,GAAAA,IAAKC,IAAY;AAAA,MAC7D,aAAa;AAAA,MACb,KAAK3F;AAAA,MACL,SAAS,CAAApE,MAAS;AAChB,YAAI+B,GAAO;AACT,gBAAMiI,IAAMlF,EAAkB;AAC9B,UAAAsD,GAAa4B,EAAIA,EAAI,SAAS,CAAC,CAAC;AAAA,QAClC,MAAO,CAAIvG,GAAe,eACxBE,EAAsB,UAAU,IAC5BsG,GAAejK,GAAOyD,EAAc,UAAU,IAC3ByG,GAAgBzH,CAAY,GACnC,MAAK,IAEnB8D,EAAWpE,KAA4BsB,EAAc,gBAAgB,GAAG,MAAK;AAAA,MAGnF;AAAA,IACN,CAAK,GAAG/B,GAAUkI,MAAmCE,gBAAAA,GAAAA,IAAKC,IAAY;AAAA,MAChE,aAAa;AAAA,MACb,KAAKzF;AAAA,MACL,SAAS,CAAAtE,MAAS;AAChB,QAAI+B,IACFqG,GAAatD,IAAqB,CAAC,CAAC,IAC3BrB,GAAe,eACpBzB,MACF2B,EAAsB,UAAU,KAE9BsG,GAAejK,GAAOyD,EAAc,UAAU,IAC3B0G,GAAoB1H,CAAY,GACvC,MAAK,IAEnB8D,EAAWrE,KAAwBuB,EAAc,eAAe,GAAG,MAAK;AAAA,MAG9E;AAAA,IACN,CAAK,CAAC;AAAA,EACN,CAAG;AACH;","x_google_ignoreList":[0]}
package/dist/index246.js CHANGED
@@ -1,13 +1,8 @@
1
- import { dateMatchModifiers as u } from "./index31.js";
2
- import { getFocusableDate as g } from "./index364.js";
3
- import { CalendarDay as m } from "./index198.js";
4
- function h(t, i, a, d, f, e, n, s = 0) {
5
- if (s > 365)
6
- return;
7
- const o = g(t, i, a.date, d, f, e, n), r = !!(e.disabled && u(o, e.disabled, n)), l = !!(e.hidden && u(o, e.hidden, n)), D = o, c = new m(o, D, n);
8
- return !r && !l ? c : h(t, i, c, d, f, e, n, s + 1);
1
+ import { isReactVersionAtLeast as r } from "./index351.js";
2
+ function n(e) {
3
+ return r(19) ? e : e ? "true" : void 0;
9
4
  }
10
5
  export {
11
- h as getNextFocus
6
+ n as inertValue
12
7
  };
13
8
  //# sourceMappingURL=index246.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index246.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js"],"sourcesContent":["import { CalendarDay } from \"../classes/index.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\nimport { getFocusableDate } from \"./getFocusableDate.js\";\n/**\n * Determines the next focusable day in the calendar.\n *\n * This function recursively calculates the next focusable day based on the\n * movement direction and modifiers applied to the days.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDay The currently focused day.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @param attempt The current recursion attempt (used to limit recursion depth).\n * @returns The next focusable day, or `undefined` if no focusable day is found.\n */\nexport function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {\n if (attempt > 365) {\n // Limit the recursion to 365 attempts\n return undefined;\n }\n const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, calendarStartMonth, calendarEndMonth, props, dateLib);\n const isDisabled = Boolean(props.disabled &&\n dateMatchModifiers(focusableDate, props.disabled, dateLib));\n const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));\n const targetMonth = focusableDate;\n const focusDay = new CalendarDay(focusableDate, targetMonth, dateLib);\n if (!isDisabled && !isHidden) {\n return focusDay;\n }\n // Recursively attempt to find the next focusable date\n return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);\n}\n"],"names":["getNextFocus","moveBy","moveDir","refDay","calendarStartMonth","calendarEndMonth","props","dateLib","attempt","focusableDate","getFocusableDate","isDisabled","dateMatchModifiers","isHidden","targetMonth","focusDay","CalendarDay"],"mappings":";;;AAoBO,SAASA,EAAaC,GAAQC,GAASC,GAAQC,GAAoBC,GAAkBC,GAAOC,GAASC,IAAU,GAAG;AACrH,MAAIA,IAAU;AAEV;AAEJ,QAAMC,IAAgBC,EAAiBT,GAAQC,GAASC,EAAO,MAAMC,GAAoBC,GAAkBC,GAAOC,CAAO,GACnHI,IAAa,GAAQL,EAAM,YAC7BM,EAAmBH,GAAeH,EAAM,UAAUC,CAAO,IACvDM,IAAW,GAAQP,EAAM,UAAUM,EAAmBH,GAAeH,EAAM,QAAQC,CAAO,IAC1FO,IAAcL,GACdM,IAAW,IAAIC,EAAYP,GAAeK,GAAaP,CAAO;AACpE,SAAI,CAACI,KAAc,CAACE,IACTE,IAGJf,EAAaC,GAAQC,GAASa,GAAUX,GAAoBC,GAAkBC,GAAOC,GAASC,IAAU,CAAC;AACpH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index246.js","sources":["../../../node_modules/@base-ui/utils/inertValue.mjs"],"sourcesContent":["import { isReactVersionAtLeast } from \"./reactVersion.mjs\";\nexport function inertValue(value) {\n if (isReactVersionAtLeast(19)) {\n return value;\n }\n // compatibility with React < 19\n return value ? 'true' : undefined;\n}"],"names":["inertValue","value","isReactVersionAtLeast"],"mappings":";AACO,SAASA,EAAWC,GAAO;AAChC,SAAIC,EAAsB,EAAE,IACnBD,IAGFA,IAAQ,SAAS;AAC1B;","x_google_ignoreList":[0]}
package/dist/index247.js CHANGED
@@ -1,22 +1,31 @@
1
- import { useControlledValue as x } from "./index244.js";
2
- function C(i, d) {
3
- const { selected: s, required: f, onSelect: l } = i, [r, m] = x(s, l ? s : void 0), e = l ? s : r, { isSameDay: o } = d, u = (t) => e?.some((c) => o(c, t)) ?? !1, { min: S, max: a } = i;
4
- return {
5
- selected: e,
6
- select: (t, c, h) => {
7
- let n = [...e ?? []];
8
- if (u(t)) {
9
- if (e?.length === S || f && e?.length === 1)
10
- return;
11
- n = e?.filter((y) => !o(y, t));
12
- } else
13
- e?.length === a ? n = [t] : n = [...n, t];
14
- return l || m(n), l?.(n, t, c, h), n;
15
- },
16
- isSelected: u
17
- };
18
- }
1
+ import * as i from "react";
2
+ import { j as s } from "./index30.js";
3
+ const a = /* @__PURE__ */ i.forwardRef(function(r, n) {
4
+ const {
5
+ cutout: e,
6
+ ...p
7
+ } = r;
8
+ let o;
9
+ if (e) {
10
+ const t = e.getBoundingClientRect();
11
+ o = `polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${t.left}px ${t.top}px,${t.left}px ${t.bottom}px,${t.right}px ${t.bottom}px,${t.right}px ${t.top}px,${t.left}px ${t.top}px)`;
12
+ }
13
+ return /* @__PURE__ */ s.jsx("div", {
14
+ ref: n,
15
+ role: "presentation",
16
+ "data-base-ui-inert": "",
17
+ ...p,
18
+ style: {
19
+ position: "fixed",
20
+ inset: 0,
21
+ userSelect: "none",
22
+ WebkitUserSelect: "none",
23
+ clipPath: o
24
+ }
25
+ });
26
+ });
27
+ process.env.NODE_ENV !== "production" && (a.displayName = "InternalBackdrop");
19
28
  export {
20
- C as useMulti
29
+ a as InternalBackdrop
21
30
  };
22
31
  //# sourceMappingURL=index247.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index247.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage multiple-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected dates, a function to select dates,\n * and a function to check if a date is selected.\n */\nexport function useMulti(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useMulti","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","isSelected","date","d","min","max","triggerDate","modifiers","e","newDates"],"mappings":";AAUO,SAASA,EAASC,GAAOC,GAAS;AACrC,QAAM,EAAE,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMJ,GACvD,CAACK,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG,GACvB,EAAE,WAAAI,EAAS,IAAKR,GAChBS,IAAa,CAACC,MACTH,GAAU,KAAK,CAACI,MAAMH,EAAUG,GAAGD,CAAI,CAAC,KAAK,IAElD,EAAE,KAAAE,GAAK,KAAAC,EAAG,IAAKd;AA8BrB,SAAO;AAAA,IACH,UAAAQ;AAAA,IACA,QA/BW,CAACO,GAAaC,GAAWC,MAAM;AAC1C,UAAIC,IAAW,CAAC,GAAIV,KAAY,CAAA,CAAG;AACnC,UAAIE,EAAWK,CAAW,GAAG;AAKzB,YAJIP,GAAU,WAAWK,KAIrBV,KAAYK,GAAU,WAAW;AAEjC;AAEJ,QAAAU,IAAWV,GAAU,OAAO,CAACI,MAAM,CAACH,EAAUG,GAAGG,CAAW,CAAC;AAAA,MACjE;AAEI,QAAIP,GAAU,WAAWM,IAErBI,IAAW,CAACH,CAAW,IAIvBG,IAAW,CAAC,GAAGA,GAAUH,CAAW;AAG5C,aAAKX,KACDE,EAAYY,CAAQ,GAExBd,IAAWc,GAAUH,GAAaC,GAAWC,CAAC,GACvCC;AAAA,IACX;AAAA,IAII,YAAAR;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index247.js","sources":["../../../node_modules/@base-ui/react/utils/InternalBackdrop.mjs"],"sourcesContent":["import * as React from 'react';\n\n/**\n * @internal\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const InternalBackdrop = /*#__PURE__*/React.forwardRef(function InternalBackdrop(props, ref) {\n const {\n cutout,\n ...otherProps\n } = props;\n let clipPath;\n if (cutout) {\n const rect = cutout.getBoundingClientRect();\n clipPath = `polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${rect.left}px ${rect.top}px,${rect.left}px ${rect.bottom}px,${rect.right}px ${rect.bottom}px,${rect.right}px ${rect.top}px,${rect.left}px ${rect.top}px)`;\n }\n return /*#__PURE__*/_jsx(\"div\", {\n ref: ref,\n role: \"presentation\"\n // Ensures Floating UI's outside press detection runs, as it considers\n // it an element that existed when the popup rendered.\n ,\n \"data-base-ui-inert\": \"\",\n ...otherProps,\n style: {\n position: 'fixed',\n inset: 0,\n userSelect: 'none',\n WebkitUserSelect: 'none',\n clipPath\n }\n });\n});\nif (process.env.NODE_ENV !== \"production\") InternalBackdrop.displayName = \"InternalBackdrop\";"],"names":["InternalBackdrop","React","props","ref","cutout","otherProps","clipPath","rect","_jsx"],"mappings":";;AAMY,MAACA,IAAgC,gBAAAC,EAAM,WAAW,SAA0BC,GAAOC,GAAK;AAClG,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAMH;AACJ,MAAII;AACJ,MAAIF,GAAQ;AACV,UAAMG,IAAOH,EAAO,sBAAqB;AACzC,IAAAE,IAAW,iDAAiDC,EAAK,IAAI,MAAMA,EAAK,GAAG,MAAMA,EAAK,IAAI,MAAMA,EAAK,MAAM,MAAMA,EAAK,KAAK,MAAMA,EAAK,MAAM,MAAMA,EAAK,KAAK,MAAMA,EAAK,GAAG,MAAMA,EAAK,IAAI,MAAMA,EAAK,GAAG;AAAA,EACjN;AACA,SAAoBC,gBAAAA,EAAAA,IAAK,OAAO;AAAA,IAC9B,KAAKL;AAAA,IACL,MAAM;AAAA,IAIN,sBAAsB;AAAA,IACtB,GAAGE;AAAA,IACH,OAAO;AAAA,MACL,UAAU;AAAA,MACV,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,kBAAkB;AAAA,MAClB,UAAAC;AAAA,IACN;AAAA,EACA,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcN,EAAiB,cAAc;","x_google_ignoreList":[0]}
package/dist/index248.js CHANGED
@@ -1,24 +1,130 @@
1
- import { useControlledValue as T } from "./index244.js";
2
- import { rangeIncludesDate as h } from "./index125.js";
3
- import { addToRange as k } from "./index250.js";
4
- import { rangeContainsModifiers as q } from "./index252.js";
5
- function v(f, s) {
6
- const { disabled: d, excludeDisabled: r, resetOnSelect: a, selected: c, required: m, onSelect: l } = f, [u, S] = T(c, l ? c : void 0), o = l ? c : u;
1
+ import * as o from "react";
2
+ import * as j from "react-dom";
3
+ import { isNode as w } from "./index334.js";
4
+ import { addEventListener as S } from "./index326.js";
5
+ import { mergeCleanups as G } from "./index395.js";
6
+ import { useId as _ } from "./index350.js";
7
+ import { useIsoLayoutEffect as h } from "./index287.js";
8
+ import { useStableCallback as L } from "./index288.js";
9
+ import { EMPTY_OBJECT as k } from "./index290.js";
10
+ import { FocusGuard as T } from "./index396.js";
11
+ import { enableFocusInside as I, isOutsideEvent as E, getPreviousTabbable as q, getNextTabbable as A, disableFocusInside as B } from "./index397.js";
12
+ import { createChangeEventDetails as H } from "./index235.js";
13
+ import { createAttribute as J } from "./index400.js";
14
+ import { useRenderElement as Y } from "./index232.js";
15
+ import { ownerVisuallyHidden as z } from "./index251.js";
16
+ import { j as d } from "./index30.js";
17
+ import { focusOut as K } from "./index237.js";
18
+ const N = /* @__PURE__ */ o.createContext(null);
19
+ process.env.NODE_ENV !== "production" && (N.displayName = "PortalContext");
20
+ const Q = () => o.useContext(N), U = J("portal");
21
+ function W(C = {}) {
22
+ const {
23
+ ref: m,
24
+ container: n,
25
+ componentProps: g = k,
26
+ elementProps: F
27
+ } = C, p = _(), b = Q()?.portalNode, [a, c] = o.useState(null), [e, u] = o.useState(null), R = L((t) => {
28
+ t !== null && u(t);
29
+ }), r = o.useRef(null);
30
+ h(() => {
31
+ if (n === null) {
32
+ r.current && (r.current = null, u(null), c(null));
33
+ return;
34
+ }
35
+ if (p == null)
36
+ return;
37
+ const t = (n && (w(n) ? n : n.current)) ?? b ?? document.body;
38
+ if (t == null) {
39
+ r.current && (r.current = null, u(null), c(null));
40
+ return;
41
+ }
42
+ r.current !== t && (r.current = t, u(null), c(t));
43
+ }, [n, b, p]);
44
+ const i = Y("div", g, {
45
+ ref: [m, R],
46
+ props: [{
47
+ id: p,
48
+ [U]: ""
49
+ }, F]
50
+ });
7
51
  return {
8
- selected: o,
9
- select: (n, y, R) => {
10
- const { min: p, max: x } = f;
11
- let e;
12
- if (n) {
13
- const t = o?.from, i = o?.to, C = !!t && !!i, F = !!t && !!i && s.isSameDay(t, i) && s.isSameDay(n, t);
14
- a && (C || !o?.from) ? !m && F ? e = void 0 : e = { from: n, to: void 0 } : e = k(n, o, p, x, m, s);
15
- }
16
- return r && d && e?.from && e.to && q({ from: e.from, to: e.to }, d, s) && (e.from = n, e.to = void 0), l || S(e), l?.(e, n, y, R), e;
17
- },
18
- isSelected: (n) => o && h(o, n, !1, s)
52
+ portalNode: e,
53
+ portalSubtree: a && i ? /* @__PURE__ */ j.createPortal(i, a) : null
19
54
  };
20
55
  }
56
+ const X = /* @__PURE__ */ o.forwardRef(function(m, n) {
57
+ const {
58
+ render: g,
59
+ className: F,
60
+ style: p,
61
+ children: v,
62
+ container: b,
63
+ renderGuards: a,
64
+ ...c
65
+ } = m, {
66
+ portalNode: e,
67
+ portalSubtree: u
68
+ } = W({
69
+ container: b,
70
+ ref: n,
71
+ componentProps: m,
72
+ elementProps: c
73
+ }), R = o.useRef(null), r = o.useRef(null), i = o.useRef(null), x = o.useRef(null), [t, D] = o.useState(null), f = o.useRef(!1), y = t?.modal, O = t?.open, P = typeof a == "boolean" ? a : !!t && !t.modal && t.open && !!e;
74
+ o.useEffect(() => {
75
+ if (!e || y)
76
+ return;
77
+ function s(l) {
78
+ e && l.relatedTarget && E(l) && (l.type === "focusin" ? f.current && (I(e), f.current = !1) : (B(e), f.current = !0));
79
+ }
80
+ return G(S(e, "focusin", s, !0), S(e, "focusout", s, !0));
81
+ }, [e, y]), h(() => {
82
+ !e || O !== !0 || !f.current || (I(e), f.current = !1);
83
+ }, [O, e]);
84
+ const M = o.useMemo(() => ({
85
+ beforeOutsideRef: R,
86
+ afterOutsideRef: r,
87
+ beforeInsideRef: i,
88
+ afterInsideRef: x,
89
+ portalNode: e,
90
+ setFocusManagerState: D
91
+ }), [e]);
92
+ return /* @__PURE__ */ d.jsxs(o.Fragment, {
93
+ children: [u, /* @__PURE__ */ d.jsxs(N.Provider, {
94
+ value: M,
95
+ children: [P && e && /* @__PURE__ */ d.jsx(T, {
96
+ "data-type": "outside",
97
+ ref: R,
98
+ onFocus: (s) => {
99
+ if (E(s, e))
100
+ i.current?.focus();
101
+ else {
102
+ const l = t ? t.domReference : null;
103
+ q(l)?.focus();
104
+ }
105
+ }
106
+ }), P && e && /* @__PURE__ */ d.jsx("span", {
107
+ "aria-owns": e.id,
108
+ style: z
109
+ }), e && /* @__PURE__ */ j.createPortal(v, e), P && e && /* @__PURE__ */ d.jsx(T, {
110
+ "data-type": "outside",
111
+ ref: r,
112
+ onFocus: (s) => {
113
+ if (E(s, e))
114
+ x.current?.focus();
115
+ else {
116
+ const l = t ? t.domReference : null;
117
+ A(l)?.focus(), t?.closeOnFocusOut && t?.onOpenChange(!1, H(K, s.nativeEvent));
118
+ }
119
+ }
120
+ })]
121
+ })]
122
+ });
123
+ });
124
+ process.env.NODE_ENV !== "production" && (X.displayName = "FloatingPortal");
21
125
  export {
22
- v as useRange
126
+ X as FloatingPortal,
127
+ W as useFloatingPortalNode,
128
+ Q as usePortalContext
23
129
  };
24
130
  //# sourceMappingURL=index248.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index248.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\n/**\n * Hook to manage range selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected range, a function to select a\n * range, and a function to check if a date is within the range.\n */\nexport function useRange(props, dateLib) {\n const { disabled, excludeDisabled, resetOnSelect, selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);\n const select = (triggerDate, modifiers, e) => {\n const { min, max } = props;\n let newRange;\n if (triggerDate) {\n const selectedFrom = selected?.from;\n const selectedTo = selected?.to;\n const hasFullRange = !!selectedFrom && !!selectedTo;\n const isClickingSingleDayRange = !!selectedFrom &&\n !!selectedTo &&\n dateLib.isSameDay(selectedFrom, selectedTo) &&\n dateLib.isSameDay(triggerDate, selectedFrom);\n if (resetOnSelect && (hasFullRange || !selected?.from)) {\n if (!required && isClickingSingleDayRange) {\n newRange = undefined;\n }\n else {\n newRange = { from: triggerDate, to: undefined };\n }\n }\n else {\n newRange = addToRange(triggerDate, selected, min, max, required, dateLib);\n }\n }\n if (excludeDisabled && disabled && newRange?.from && newRange.to) {\n if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {\n // if a disabled days is found, the range is reset\n newRange.from = triggerDate;\n newRange.to = undefined;\n }\n }\n if (!onSelect) {\n setSelected(newRange);\n }\n onSelect?.(newRange, triggerDate, modifiers, e);\n return newRange;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useRange","props","dateLib","disabled","excludeDisabled","resetOnSelect","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","triggerDate","modifiers","e","min","max","newRange","selectedFrom","selectedTo","hasFullRange","isClickingSingleDayRange","addToRange","rangeContainsModifiers","date","rangeIncludesDate"],"mappings":";;;;AAYO,SAASA,EAASC,GAAOC,GAAS;AACrC,QAAM,EAAE,UAAAC,GAAU,iBAAAC,GAAiB,eAAAC,GAAe,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMP,GACjG,CAACQ,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG;AAsC7B,SAAO;AAAA,IACH,UAAAG;AAAA,IACA,QAtCW,CAACC,GAAaC,GAAWC,MAAM;AAC1C,YAAM,EAAE,KAAAC,GAAK,KAAAC,EAAG,IAAKhB;AACrB,UAAIiB;AACJ,UAAIL,GAAa;AACb,cAAMM,IAAeP,GAAU,MACzBQ,IAAaR,GAAU,IACvBS,IAAe,CAAC,CAACF,KAAgB,CAAC,CAACC,GACnCE,IAA2B,CAAC,CAACH,KAC/B,CAAC,CAACC,KACFlB,EAAQ,UAAUiB,GAAcC,CAAU,KAC1ClB,EAAQ,UAAUW,GAAaM,CAAY;AAC/C,QAAId,MAAkBgB,KAAgB,CAACT,GAAU,QACzC,CAACL,KAAYe,IACbJ,IAAW,SAGXA,IAAW,EAAE,MAAML,GAAa,IAAI,OAAS,IAIjDK,IAAWK,EAAWV,GAAaD,GAAUI,GAAKC,GAAKV,GAAUL,CAAO;AAAA,MAEhF;AACA,aAAIE,KAAmBD,KAAYe,GAAU,QAAQA,EAAS,MACtDM,EAAuB,EAAE,MAAMN,EAAS,MAAM,IAAIA,EAAS,GAAE,GAAIf,GAAUD,CAAO,MAElFgB,EAAS,OAAOL,GAChBK,EAAS,KAAK,SAGjBV,KACDE,EAAYQ,CAAQ,GAExBV,IAAWU,GAAUL,GAAaC,GAAWC,CAAC,GACvCG;AAAA,IACX;AAAA,IAII,YAxCe,CAACO,MAASb,KAAYc,EAAkBd,GAAUa,GAAM,IAAOvB,CAAO;AAAA,EAyC7F;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index248.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/components/FloatingPortal.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { isNode } from '@floating-ui/utils/dom';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { mergeCleanups } from '@base-ui/utils/mergeCleanups';\nimport { useId } from '@base-ui/utils/useId';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { FocusGuard } from \"../../utils/FocusGuard.mjs\";\nimport { enableFocusInside, disableFocusInside, getPreviousTabbable, getNextTabbable, isOutsideEvent } from \"../utils/tabbable.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { createAttribute } from \"../utils/createAttribute.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { ownerVisuallyHidden } from \"../../internals/constants.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst PortalContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") PortalContext.displayName = \"PortalContext\";\nexport const usePortalContext = () => React.useContext(PortalContext);\nconst attr = createAttribute('portal');\nexport function useFloatingPortalNode(props = {}) {\n const {\n ref,\n container: containerProp,\n componentProps = EMPTY_OBJECT,\n elementProps\n } = props;\n const uniqueId = useId();\n const portalContext = usePortalContext();\n const parentPortalNode = portalContext?.portalNode;\n const [containerElement, setContainerElement] = React.useState(null);\n const [portalNode, setPortalNode] = React.useState(null);\n const setPortalNodeRef = useStableCallback(node => {\n if (node !== null) {\n // the useIsoLayoutEffect below watching containerProp / parentPortalNode\n // sets setPortalNode(null) when the container becomes null or changes.\n // So even though the ref callback now ignores null, the portal node still gets cleared.\n setPortalNode(node);\n }\n });\n const containerRef = React.useRef(null);\n useIsoLayoutEffect(() => {\n // Wait for the container to be resolved if explicitly `null`.\n if (containerProp === null) {\n if (containerRef.current) {\n containerRef.current = null;\n setPortalNode(null);\n setContainerElement(null);\n }\n return;\n }\n\n // React 17 does not use React.useId().\n if (uniqueId == null) {\n return;\n }\n const resolvedContainer = (containerProp && (isNode(containerProp) ? containerProp : containerProp.current)) ?? parentPortalNode ?? document.body;\n if (resolvedContainer == null) {\n if (containerRef.current) {\n containerRef.current = null;\n setPortalNode(null);\n setContainerElement(null);\n }\n return;\n }\n if (containerRef.current !== resolvedContainer) {\n containerRef.current = resolvedContainer;\n setPortalNode(null);\n setContainerElement(resolvedContainer);\n }\n }, [containerProp, parentPortalNode, uniqueId]);\n const portalElement = useRenderElement('div', componentProps, {\n ref: [ref, setPortalNodeRef],\n props: [{\n id: uniqueId,\n [attr]: ''\n }, elementProps]\n });\n\n // This `createPortal` call injects `portalElement` into the `container`.\n // Another call inside `FloatingPortal`/`FloatingPortalLite` then injects the children into `portalElement`.\n const portalSubtree = containerElement && portalElement ? /*#__PURE__*/ReactDOM.createPortal(portalElement, containerElement) : null;\n return {\n portalNode,\n portalSubtree\n };\n}\n\n/**\n * Portals the floating element into a given container element — by default,\n * outside of the app root and into the body.\n * This is necessary to ensure the floating element can appear outside any\n * potential parent containers that cause clipping (such as `overflow: hidden`),\n * while retaining its location in the React tree.\n * @see https://floating-ui.com/docs/FloatingPortal\n * @internal\n */\nexport const FloatingPortal = /*#__PURE__*/React.forwardRef(function FloatingPortal(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n children,\n container,\n renderGuards,\n ...elementProps\n } = componentProps;\n const {\n portalNode,\n portalSubtree\n } = useFloatingPortalNode({\n container,\n ref: forwardedRef,\n componentProps,\n elementProps\n });\n const beforeOutsideRef = React.useRef(null);\n const afterOutsideRef = React.useRef(null);\n const beforeInsideRef = React.useRef(null);\n const afterInsideRef = React.useRef(null);\n const [focusManagerState, setFocusManagerState] = React.useState(null);\n const focusInsideDisabledRef = React.useRef(false);\n const modal = focusManagerState?.modal;\n const open = focusManagerState?.open;\n const shouldRenderGuards = typeof renderGuards === 'boolean' ? renderGuards : !!focusManagerState && !focusManagerState.modal && focusManagerState.open && !!portalNode;\n\n // https://codesandbox.io/s/tabbable-portal-f4tng?file=/src/TabbablePortal.tsx\n React.useEffect(() => {\n if (!portalNode || modal) {\n return undefined;\n }\n\n // Make sure elements inside the portal element are tabbable only when the\n // portal has already been focused, either by tabbing into a focus trap\n // element outside or using the mouse.\n function onFocus(event) {\n if (portalNode && event.relatedTarget && isOutsideEvent(event)) {\n if (event.type === 'focusin') {\n if (focusInsideDisabledRef.current) {\n enableFocusInside(portalNode);\n focusInsideDisabledRef.current = false;\n }\n } else {\n disableFocusInside(portalNode);\n focusInsideDisabledRef.current = true;\n }\n }\n }\n\n // Listen to the event on the capture phase so they run before the focus\n // trap elements onFocus prop is called.\n return mergeCleanups(addEventListener(portalNode, 'focusin', onFocus, true), addEventListener(portalNode, 'focusout', onFocus, true));\n }, [portalNode, modal]);\n useIsoLayoutEffect(() => {\n if (!portalNode || open !== true || !focusInsideDisabledRef.current) {\n return;\n }\n\n // Restore tabbability before the focus manager's queued focus-on-open step runs.\n enableFocusInside(portalNode);\n focusInsideDisabledRef.current = false;\n }, [open, portalNode]);\n const portalContextValue = React.useMemo(() => ({\n beforeOutsideRef,\n afterOutsideRef,\n beforeInsideRef,\n afterInsideRef,\n portalNode,\n setFocusManagerState\n }), [portalNode]);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [portalSubtree, /*#__PURE__*/_jsxs(PortalContext.Provider, {\n value: portalContextValue,\n children: [shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"outside\",\n ref: beforeOutsideRef,\n onFocus: event => {\n if (isOutsideEvent(event, portalNode)) {\n beforeInsideRef.current?.focus();\n } else {\n const domReference = focusManagerState ? focusManagerState.domReference : null;\n const prevTabbable = getPreviousTabbable(domReference);\n prevTabbable?.focus();\n }\n }\n }), shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(\"span\", {\n \"aria-owns\": portalNode.id,\n style: ownerVisuallyHidden\n }), portalNode && /*#__PURE__*/ReactDOM.createPortal(children, portalNode), shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"outside\",\n ref: afterOutsideRef,\n onFocus: event => {\n if (isOutsideEvent(event, portalNode)) {\n afterInsideRef.current?.focus();\n } else {\n const domReference = focusManagerState ? focusManagerState.domReference : null;\n const nextTabbable = getNextTabbable(domReference);\n nextTabbable?.focus();\n if (focusManagerState?.closeOnFocusOut) {\n focusManagerState?.onOpenChange(false, createChangeEventDetails(REASONS.focusOut, event.nativeEvent));\n }\n }\n }\n })]\n })]\n });\n});\nif (process.env.NODE_ENV !== \"production\") FloatingPortal.displayName = \"FloatingPortal\";"],"names":["PortalContext","React","usePortalContext","attr","createAttribute","useFloatingPortalNode","props","ref","containerProp","componentProps","EMPTY_OBJECT","elementProps","uniqueId","useId","parentPortalNode","containerElement","setContainerElement","portalNode","setPortalNode","setPortalNodeRef","useStableCallback","node","containerRef","useIsoLayoutEffect","resolvedContainer","isNode","portalElement","useRenderElement","ReactDOM","FloatingPortal","forwardedRef","render","className","style","children","container","renderGuards","portalSubtree","beforeOutsideRef","afterOutsideRef","beforeInsideRef","afterInsideRef","focusManagerState","setFocusManagerState","focusInsideDisabledRef","modal","open","shouldRenderGuards","onFocus","event","isOutsideEvent","enableFocusInside","disableFocusInside","mergeCleanups","addEventListener","portalContextValue","_jsxs","_jsx","FocusGuard","domReference","getPreviousTabbable","ownerVisuallyHidden","getNextTabbable","createChangeEventDetails","REASONS.focusOut"],"mappings":";;;;;;;;;;;;;;;;;AAmBA,MAAMA,IAA6B,gBAAAC,EAAM,cAAc,IAAI;AACvD,QAAQ,IAAI,aAAa,iBAAcD,EAAc,cAAc;AAC3D,MAACE,IAAmB,MAAMD,EAAM,WAAWD,CAAa,GAC9DG,IAAOC,EAAgB,QAAQ;AAC9B,SAASC,EAAsBC,IAAQ,IAAI;AAChD,QAAM;AAAA,IACJ,KAAAC;AAAA,IACA,WAAWC;AAAA,IACX,gBAAAC,IAAiBC;AAAA,IACjB,cAAAC;AAAA,EACJ,IAAML,GACEM,IAAWC,EAAK,GAEhBC,IADgBZ,EAAgB,GACE,YAClC,CAACa,GAAkBC,CAAmB,IAAIf,EAAM,SAAS,IAAI,GAC7D,CAACgB,GAAYC,CAAa,IAAIjB,EAAM,SAAS,IAAI,GACjDkB,IAAmBC,EAAkB,CAAAC,MAAQ;AACjD,IAAIA,MAAS,QAIXH,EAAcG,CAAI;AAAA,EAEtB,CAAC,GACKC,IAAerB,EAAM,OAAO,IAAI;AACtC,EAAAsB,EAAmB,MAAM;AAEvB,QAAIf,MAAkB,MAAM;AAC1B,MAAIc,EAAa,YACfA,EAAa,UAAU,MACvBJ,EAAc,IAAI,GAClBF,EAAoB,IAAI;AAE1B;AAAA,IACF;AAGA,QAAIJ,KAAY;AACd;AAEF,UAAMY,KAAqBhB,MAAkBiB,EAAOjB,CAAa,IAAIA,IAAgBA,EAAc,aAA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S,CAAAW,MAAS;AAChB,cAAIC,EAAeD,GAAOhC,CAAU;AAClC,YAAAuB,EAAgB,SAAS,MAAK;AAAA,eACzB;AACL,kBAAMmB,IAAejB,IAAoBA,EAAkB,eAAe;AAE1E,YADqBkB,EAAoBD,CAAY,GACvC,MAAK;AAAA,UACrB;AAAA,QACF;AAAA,MACR,CAAO,GAAGZ,KAAsB9B,KAA2BwC,gBAAAA,EAAAA,IAAK,QAAQ;AAAA,QAChE,aAAaxC,EAAW;AAAA,QACxB,OAAO4C;AAAA,MACf,CAAO,GAAG5C,KAA2B,gBAAAW,EAAS,aAAaM,GAAUjB,CAAU,GAAG8B,KAAsB9B,KAA2BwC,gBAAAA,EAAAA,IAAKC,GAAY;AAAA,QAC5I,aAAa;AAAA,QACb,KAAKnB;AAAA,QACL,SAAS,CAAAU,MAAS;AAChB,cAAIC,EAAeD,GAAOhC,CAAU;AAClC,YAAAwB,EAAe,SAAS,MAAK;AAAA,eACxB;AACL,kBAAMkB,IAAejB,IAAoBA,EAAkB,eAAe;AAE1E,YADqBoB,EAAgBH,CAAY,GACnC,MAAK,GACfjB,GAAmB,mBACrBA,GAAmB,aAAa,IAAOqB,EAAyBC,GAAkBf,EAAM,WAAW,CAAC;AAAA,UAExG;AAAA,QACF;AAAA,MACR,CAAO,CAAC;AAAA,IACR,CAAK,CAAC;AAAA,EACN,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcpB,EAAe,cAAc;","x_google_ignoreList":[0]}
package/dist/index249.js CHANGED
@@ -1,16 +1,67 @@
1
- import { useControlledValue as a } from "./index244.js";
2
- function q(u, S) {
3
- const { selected: c, required: s, onSelect: t } = u, [f, r] = a(c, t ? c : void 0), e = t ? c : f, { isSameDay: d } = S;
4
- return {
5
- selected: e,
6
- select: (n, o, i) => {
7
- let l = n;
8
- return !s && e && e && d(n, e) && (l = void 0), t || r(l), t?.(l, n, o, i), l;
9
- },
10
- isSelected: (n) => e ? d(e, n) : !1
11
- };
1
+ import * as w from "react";
2
+ import { useOnFirstRender as y } from "./index283.js";
3
+ import { useDialogRoot as T, DialogInteractions as k } from "./index353.js";
4
+ import { useDialogRootContext as V, IsDrawerContext as A, DialogRootContext as B } from "./index231.js";
5
+ import { DialogStore as E } from "./index354.js";
6
+ import { j as a } from "./index30.js";
7
+ function J(c, l = "dialog") {
8
+ const {
9
+ children: r,
10
+ open: s,
11
+ defaultOpen: i = !1,
12
+ onOpenChange: g,
13
+ onOpenChangeComplete: m,
14
+ disablePointerDismissal: f = !1,
15
+ modal: C = !0,
16
+ actionsRef: x,
17
+ handle: D,
18
+ triggerId: d,
19
+ defaultTriggerId: p = null
20
+ } = c, P = l === "drawer", o = l === "alert-dialog", R = o ? !0 : C, I = o || f, h = o ? "alertdialog" : "dialog", u = V(!0), t = {
21
+ modal: R,
22
+ disablePointerDismissal: I,
23
+ nested: !!u,
24
+ role: h
25
+ }, e = E.useStore(D?.store, {
26
+ open: i,
27
+ openProp: s,
28
+ activeTriggerId: p,
29
+ triggerIdProp: d,
30
+ ...t
31
+ });
32
+ y(() => {
33
+ const n = s === void 0 && e.state.open === !1 && i === !0 ? {
34
+ open: !0,
35
+ activeTriggerId: p
36
+ } : null;
37
+ o ? e.update(n ? {
38
+ ...t,
39
+ ...n
40
+ } : t) : n && e.update(n);
41
+ }), e.useControlledProp("openProp", s), e.useControlledProp("triggerIdProp", d), e.useSyncedValues(t), e.useContextCallback("onOpenChange", g), e.useContextCallback("onOpenChangeComplete", m);
42
+ const S = e.useState("open"), v = e.useState("mounted"), O = e.useState("payload");
43
+ T({
44
+ store: e,
45
+ actionsRef: x
46
+ });
47
+ const b = S || v, j = w.useMemo(() => ({
48
+ store: e
49
+ }), [e]);
50
+ return /* @__PURE__ */ a.jsx(A.Provider, {
51
+ value: !1,
52
+ children: /* @__PURE__ */ a.jsxs(B.Provider, {
53
+ value: j,
54
+ children: [b && /* @__PURE__ */ a.jsx(k, {
55
+ store: e,
56
+ parentContext: u?.store.context,
57
+ isDrawer: P
58
+ }), typeof r == "function" ? r({
59
+ payload: O
60
+ }) : r]
61
+ })
62
+ });
12
63
  }
13
64
  export {
14
- q as useSingle
65
+ J as useRenderDialogRoot
15
66
  };
16
67
  //# sourceMappingURL=index249.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index249.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage single-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected date, a function to select a date,\n * and a function to check if a date is selected.\n */\nexport function useSingle(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (compareDate) => {\n return selected ? isSameDay(selected, compareDate) : false;\n };\n const select = (triggerDate, modifiers, e) => {\n let newDate = triggerDate;\n if (!required && selected && selected && isSameDay(triggerDate, selected)) {\n // If the date is the same, clear the selection.\n newDate = undefined;\n }\n if (!onSelect) {\n setSelected(newDate);\n }\n if (required) {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n else {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n return newDate;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useSingle","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","triggerDate","modifiers","e","newDate","compareDate"],"mappings":";AAUO,SAASA,EAAUC,GAAOC,GAAS;AACtC,QAAM,EAAE,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMJ,GACvD,CAACK,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG,GACvB,EAAE,WAAAI,EAAS,IAAKR;AAqBtB,SAAO;AAAA,IACH,UAAAO;AAAA,IACA,QAnBW,CAACE,GAAaC,GAAWC,MAAM;AAC1C,UAAIC,IAAUH;AACd,aAAI,CAACP,KAAYK,KAAYA,KAAYC,EAAUC,GAAaF,CAAQ,MAEpEK,IAAU,SAETT,KACDE,EAAYO,CAAO,GAGnBT,IAAWS,GAASH,GAAaC,GAAWC,CAAC,GAK1CC;AAAA,IACX;AAAA,IAII,YAvBe,CAACC,MACTN,IAAWC,EAAUD,GAAUM,CAAW,IAAI;AAAA,EAuB7D;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index249.js","sources":["../../../node_modules/@base-ui/react/dialog/root/useRenderDialogRoot.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useOnFirstRender } from '@base-ui/utils/useOnFirstRender';\nimport { DialogInteractions, useDialogRoot } from \"./useDialogRoot.mjs\";\nimport { DialogRootContext, IsDrawerContext, useDialogRootContext } from \"./DialogRootContext.mjs\";\nimport { DialogStore } from \"../store/DialogStore.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function useRenderDialogRoot(props, mode = 'dialog') {\n const {\n children,\n open: openProp,\n defaultOpen = false,\n onOpenChange,\n onOpenChangeComplete,\n disablePointerDismissal: disablePointerDismissalProp = false,\n modal: modalProp = true,\n actionsRef,\n handle,\n triggerId: triggerIdProp,\n defaultTriggerId: defaultTriggerIdProp = null\n } = props;\n const isDrawer = mode === 'drawer';\n const isAlertDialog = mode === 'alert-dialog';\n const modal = isAlertDialog ? true : modalProp;\n const disablePointerDismissal = isAlertDialog || disablePointerDismissalProp;\n const role = isAlertDialog ? 'alertdialog' : 'dialog';\n const parentDialogRootContext = useDialogRootContext(true);\n const nested = Boolean(parentDialogRootContext);\n const rootState = {\n modal,\n disablePointerDismissal,\n nested,\n role\n };\n const store = DialogStore.useStore(handle?.store, {\n open: defaultOpen,\n openProp,\n activeTriggerId: defaultTriggerIdProp,\n triggerIdProp,\n ...rootState\n });\n\n // Support initially open state when uncontrolled\n useOnFirstRender(() => {\n const nextState = openProp === undefined && store.state.open === false && defaultOpen === true ? {\n open: true,\n activeTriggerId: defaultTriggerIdProp\n } : null;\n if (isAlertDialog) {\n // Handles can reuse plain Dialog stores; alert dialog invariants must exist immediately.\n store.update(nextState ? {\n ...rootState,\n ...nextState\n } : rootState);\n } else if (nextState) {\n store.update(nextState);\n }\n });\n store.useControlledProp('openProp', openProp);\n store.useControlledProp('triggerIdProp', triggerIdProp);\n store.useSyncedValues(rootState);\n store.useContextCallback('onOpenChange', onOpenChange);\n store.useContextCallback('onOpenChangeComplete', onOpenChangeComplete);\n const open = store.useState('open');\n const mounted = store.useState('mounted');\n const payload = store.useState('payload');\n useDialogRoot({\n store,\n actionsRef\n });\n const shouldRenderInteractions = open || mounted;\n const contextValue = React.useMemo(() => ({\n store\n }), [store]);\n return /*#__PURE__*/_jsx(IsDrawerContext.Provider, {\n value: false,\n children: /*#__PURE__*/_jsxs(DialogRootContext.Provider, {\n value: contextValue,\n children: [shouldRenderInteractions && /*#__PURE__*/_jsx(DialogInteractions, {\n store: store,\n parentContext: parentDialogRootContext?.store.context,\n isDrawer: isDrawer\n }), typeof children === 'function' ? children({\n payload\n }) : children]\n })\n });\n}"],"names":["useRenderDialogRoot","props","mode","children","openProp","defaultOpen","onOpenChange","onOpenChangeComplete","disablePointerDismissalProp","modalProp","actionsRef","handle","triggerIdProp","defaultTriggerIdProp","isDrawer","isAlertDialog","modal","disablePointerDismissal","role","parentDialogRootContext","useDialogRootContext","rootState","store","DialogStore","useOnFirstRender","nextState","open","mounted","payload","useDialogRoot","shouldRenderInteractions","contextValue","React","_jsx","IsDrawerContext","_jsxs","DialogRootContext","DialogInteractions"],"mappings":";;;;;;AAQO,SAASA,EAAoBC,GAAOC,IAAO,UAAU;AAC1D,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,MAAMC;AAAA,IACN,aAAAC,IAAc;AAAA,IACd,cAAA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,OAAAP;AAAA,IACA,YAAAZ;AAAA,EACJ,CAAG;AACD,QAAMoB,IAA2BJ,KAAQC,GACnCI,IAAeC,EAAM,QAAQ,OAAO;AAAA,IACxC,OAAAV;AAAA,EACJ,IAAM,CAACA,CAAK,CAAC;AACX,SAAoBW,gBAAAA,EAAAA,IAAKC,EAAgB,UAAU;AAAA,IACjD,OAAO;AAAA,IACP,UAAuBC,gBAAAA,EAAAA,KAAMC,EAAkB,UAAU;AAAA,MACvD,OAAOL;AAAA,MACP,UAAU,CAACD,KAAyCG,gBAAAA,EAAAA,IAAKI,GAAoB;AAAA,QAC3E,OAAOf;AAAA,QACP,eAAeH,GAAyB,MAAM;AAAA,QAC9C,UAAUL;AAAA,MAClB,CAAO,GAAG,OAAOX,KAAa,aAAaA,EAAS;AAAA,QAC5C,SAAAyB;AAAA,MACR,CAAO,IAAIzB,CAAQ;AAAA,IACnB,CAAK;AAAA,EACL,CAAG;AACH;","x_google_ignoreList":[0]}
package/dist/index25.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as l } from "./index29.js";
1
+ import { c as l } from "./index28.js";
2
2
  import { useRef as w, useEffect as f } from "react";
3
3
  const a = /* @__PURE__ */ new Set([" ", "Spacebar", "PageUp", "PageDown", "Home", "End", "ArrowDown", "ArrowUp"]);
4
4
  function p(u) {
package/dist/index250.js CHANGED
@@ -1,33 +1,12 @@
1
- import { defaultDateLib as D } from "./index105.js";
2
- function w(f, g, n = 0, s = 0, l = !1, u = D) {
3
- const { from: o, to: i } = g || {}, { isSameDay: r, isAfter: m, isBefore: c } = u;
4
- let e;
5
- if (!o && !i)
6
- e = { from: f, to: n > 0 ? void 0 : f };
7
- else if (o && !i)
8
- r(o, f) ? n === 0 ? e = { from: o, to: f } : l ? e = { from: o, to: void 0 } : e = void 0 : c(f, o) ? e = { from: f, to: o } : e = { from: o, to: f };
9
- else if (o && i)
10
- if (r(o, f) && r(i, f))
11
- l ? e = { from: o, to: i } : e = void 0;
12
- else if (r(o, f))
13
- e = { from: o, to: n > 0 ? void 0 : f };
14
- else if (r(i, f))
15
- e = { from: f, to: n > 0 ? void 0 : f };
16
- else if (c(f, o))
17
- e = { from: f, to: i };
18
- else if (m(f, o))
19
- e = { from: o, to: f };
20
- else if (m(f, i))
21
- e = { from: o, to: f };
22
- else
23
- throw new Error("Invalid range");
24
- if (e?.from && e?.to) {
25
- const t = u.differenceInCalendarDays(e.to, e.from);
26
- s > 0 && t > s ? e = { from: f, to: void 0 } : n > 1 && t < n && (e = { from: f, to: void 0 });
27
- }
28
- return e;
1
+ function n(a, s) {
2
+ return function(e, ...t) {
3
+ const r = new URL(a);
4
+ return r.searchParams.set("code", e.toString()), t.forEach((o) => r.searchParams.append("args[]", o)), `${s} error #${e}; visit ${r} for the full message.`;
5
+ };
29
6
  }
7
+ const u = n("https://base-ui.com/production-error", "Base UI");
30
8
  export {
31
- w as addToRange
9
+ n as createFormatErrorMessage,
10
+ u as default
32
11
  };
33
12
  //# sourceMappingURL=index250.js.map