@rpcbase/ui 0.223.0 → 0.225.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 (700) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/components/Dialog/index.d.ts +13 -9
  3. package/dist/components/Dialog/index.d.ts.map +1 -1
  4. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  5. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  6. package/dist/components/I18nField/index.d.ts +7 -2
  7. package/dist/components/I18nField/index.d.ts.map +1 -1
  8. package/dist/components/Select/index.d.ts +16 -10
  9. package/dist/components/Select/index.d.ts.map +1 -1
  10. package/dist/index10.js +102 -103
  11. package/dist/index10.js.map +1 -1
  12. package/dist/index106.js +36 -36
  13. package/dist/index107.js +1 -1
  14. package/dist/index11.js +139 -132
  15. package/dist/index11.js.map +1 -1
  16. package/dist/index118.js +6 -6
  17. package/dist/index12.js +1 -1
  18. package/dist/index121.js +10 -10
  19. package/dist/index123.js +2 -2
  20. package/dist/index124.js +3 -3
  21. package/dist/index125.js +1 -1
  22. package/dist/index127.js +2 -2
  23. package/dist/index129.js +2 -2
  24. package/dist/index150.js +5 -46
  25. package/dist/index150.js.map +1 -1
  26. package/dist/index151.js +68 -5
  27. package/dist/index151.js.map +1 -1
  28. package/dist/index152.js +2 -69
  29. package/dist/index152.js.map +1 -1
  30. package/dist/index153.js +364 -2
  31. package/dist/index153.js.map +1 -1
  32. package/dist/index154.js +201 -303
  33. package/dist/index154.js.map +1 -1
  34. package/dist/index155.js +46 -247
  35. package/dist/index155.js.map +1 -1
  36. package/dist/index156.js +42 -56
  37. package/dist/index156.js.map +1 -1
  38. package/dist/index157.js +169 -46
  39. package/dist/index157.js.map +1 -1
  40. package/dist/index158.js +96 -156
  41. package/dist/index158.js.map +1 -1
  42. package/dist/index159.js +24 -109
  43. package/dist/index159.js.map +1 -1
  44. package/dist/index16.js +77 -72
  45. package/dist/index16.js.map +1 -1
  46. package/dist/index160.js +8 -25
  47. package/dist/index160.js.map +1 -1
  48. package/dist/index161.js +5 -8
  49. package/dist/index161.js.map +1 -1
  50. package/dist/index162.js +5 -4
  51. package/dist/index162.js.map +1 -1
  52. package/dist/index163.js +4 -5
  53. package/dist/index163.js.map +1 -1
  54. package/dist/index164.js +466 -4
  55. package/dist/index164.js.map +1 -1
  56. package/dist/index165.js +139 -420
  57. package/dist/index165.js.map +1 -1
  58. package/dist/index166.js +71 -149
  59. package/dist/index166.js.map +1 -1
  60. package/dist/index167.js +229 -74
  61. package/dist/index167.js.map +1 -1
  62. package/dist/index168.js +9 -262
  63. package/dist/index168.js.map +1 -1
  64. package/dist/index169.js +42 -9
  65. package/dist/index169.js.map +1 -1
  66. package/dist/index170.js +4 -42
  67. package/dist/index170.js.map +1 -1
  68. package/dist/index171.js +11 -4
  69. package/dist/index171.js.map +1 -1
  70. package/dist/index172.js +63 -41
  71. package/dist/index172.js.map +1 -1
  72. package/dist/index173.js +35 -227
  73. package/dist/index173.js.map +1 -1
  74. package/dist/index174.js +14 -22
  75. package/dist/index174.js.map +1 -1
  76. package/dist/index175.js +23 -24
  77. package/dist/index175.js.map +1 -1
  78. package/dist/index176.js +104 -394
  79. package/dist/index176.js.map +1 -1
  80. package/dist/index177.js +13 -59
  81. package/dist/index177.js.map +1 -1
  82. package/dist/index178.js +4 -8
  83. package/dist/index178.js.map +1 -1
  84. package/dist/index179.js +4 -67
  85. package/dist/index179.js.map +1 -1
  86. package/dist/index18.js +6 -6
  87. package/dist/index180.js +5 -20
  88. package/dist/index180.js.map +1 -1
  89. package/dist/index181.js +11 -16
  90. package/dist/index181.js.map +1 -1
  91. package/dist/index182.js +19 -5
  92. package/dist/index182.js.map +1 -1
  93. package/dist/index183.js +13 -6
  94. package/dist/index183.js.map +1 -1
  95. package/dist/index184.js +261 -6
  96. package/dist/index184.js.map +1 -1
  97. package/dist/index185.js +4 -4
  98. package/dist/index185.js.map +1 -1
  99. package/dist/index186.js +28 -7
  100. package/dist/index186.js.map +1 -1
  101. package/dist/index187.js +126 -16
  102. package/dist/index187.js.map +1 -1
  103. package/dist/index188.js +5 -4
  104. package/dist/index188.js.map +1 -1
  105. package/dist/index189.js +78 -4
  106. package/dist/index189.js.map +1 -1
  107. package/dist/index19.js +280 -208
  108. package/dist/index19.js.map +1 -1
  109. package/dist/index190.js +66 -12
  110. package/dist/index190.js.map +1 -1
  111. package/dist/index191.js +8 -9
  112. package/dist/index191.js.map +1 -1
  113. package/dist/index192.js +16 -14
  114. package/dist/index192.js.map +1 -1
  115. package/dist/index193.js +92 -13
  116. package/dist/index193.js.map +1 -1
  117. package/dist/index194.js +65 -4
  118. package/dist/index194.js.map +1 -1
  119. package/dist/index195.js +45 -5
  120. package/dist/index195.js.map +1 -1
  121. package/dist/index196.js +58 -6
  122. package/dist/index196.js.map +1 -1
  123. package/dist/index197.js +8 -5
  124. package/dist/index197.js.map +1 -1
  125. package/dist/index198.js +65 -53
  126. package/dist/index198.js.map +1 -1
  127. package/dist/index199.js +19 -8
  128. package/dist/index199.js.map +1 -1
  129. package/dist/index200.js +16 -4
  130. package/dist/index200.js.map +1 -1
  131. package/dist/index201.js +5 -4
  132. package/dist/index201.js.map +1 -1
  133. package/dist/index202.js +5 -8
  134. package/dist/index202.js.map +1 -1
  135. package/dist/index203.js +6 -4
  136. package/dist/index203.js.map +1 -1
  137. package/dist/index204.js +4 -4
  138. package/dist/index204.js.map +1 -1
  139. package/dist/index205.js +6 -3
  140. package/dist/index205.js.map +1 -1
  141. package/dist/index206.js +16 -10
  142. package/dist/index206.js.map +1 -1
  143. package/dist/index207.js +4 -9
  144. package/dist/index207.js.map +1 -1
  145. package/dist/index208.js +4 -9
  146. package/dist/index208.js.map +1 -1
  147. package/dist/index209.js +12 -10
  148. package/dist/index209.js.map +1 -1
  149. package/dist/index210.js +9 -10
  150. package/dist/index210.js.map +1 -1
  151. package/dist/index211.js +13 -9
  152. package/dist/index211.js.map +1 -1
  153. package/dist/index212.js +13 -6
  154. package/dist/index212.js.map +1 -1
  155. package/dist/index213.js +4 -5
  156. package/dist/index213.js.map +1 -1
  157. package/dist/index214.js +5 -4
  158. package/dist/index214.js.map +1 -1
  159. package/dist/index215.js +6 -5
  160. package/dist/index215.js.map +1 -1
  161. package/dist/index216.js +5 -6
  162. package/dist/index216.js.map +1 -1
  163. package/dist/index217.js +54 -5
  164. package/dist/index217.js.map +1 -1
  165. package/dist/index218.js +8 -16
  166. package/dist/index218.js.map +1 -1
  167. package/dist/index219.js +4 -7
  168. package/dist/index219.js.map +1 -1
  169. package/dist/index220.js +4 -10
  170. package/dist/index220.js.map +1 -1
  171. package/dist/index221.js +8 -10
  172. package/dist/index221.js.map +1 -1
  173. package/dist/index222.js +4 -21
  174. package/dist/index222.js.map +1 -1
  175. package/dist/index223.js +4 -10
  176. package/dist/index223.js.map +1 -1
  177. package/dist/index224.js +3 -9
  178. package/dist/index224.js.map +1 -1
  179. package/dist/index225.js +10 -9
  180. package/dist/index225.js.map +1 -1
  181. package/dist/index226.js +9 -4
  182. package/dist/index226.js.map +1 -1
  183. package/dist/index227.js +9 -5
  184. package/dist/index227.js.map +1 -1
  185. package/dist/index228.js +10 -16
  186. package/dist/index228.js.map +1 -1
  187. package/dist/index229.js +10 -9
  188. package/dist/index229.js.map +1 -1
  189. package/dist/index230.js +9 -18
  190. package/dist/index230.js.map +1 -1
  191. package/dist/index231.js +6 -15
  192. package/dist/index231.js.map +1 -1
  193. package/dist/index232.js +5 -12
  194. package/dist/index232.js.map +1 -1
  195. package/dist/index233.js +4 -29
  196. package/dist/index233.js.map +1 -1
  197. package/dist/index234.js +5 -12
  198. package/dist/index234.js.map +1 -1
  199. package/dist/index235.js +6 -25
  200. package/dist/index235.js.map +1 -1
  201. package/dist/index236.js +5 -5
  202. package/dist/index236.js.map +1 -1
  203. package/dist/index237.js +29 -13
  204. package/dist/index237.js.map +1 -1
  205. package/dist/index238.js +11 -153
  206. package/dist/index238.js.map +1 -1
  207. package/dist/index239.js +23 -28
  208. package/dist/index239.js.map +1 -1
  209. package/dist/index240.js +5 -9
  210. package/dist/index240.js.map +1 -1
  211. package/dist/index241.js +13 -45
  212. package/dist/index241.js.map +1 -1
  213. package/dist/index242.js +7 -11
  214. package/dist/index242.js.map +1 -1
  215. package/dist/index243.js +9 -43
  216. package/dist/index243.js.map +1 -1
  217. package/dist/index244.js +9 -94
  218. package/dist/index244.js.map +1 -1
  219. package/dist/index245.js +20 -85
  220. package/dist/index245.js.map +1 -1
  221. package/dist/index246.js +10 -105
  222. package/dist/index246.js.map +1 -1
  223. package/dist/index247.js +9 -52
  224. package/dist/index247.js.map +1 -1
  225. package/dist/index248.js +9 -11
  226. package/dist/index248.js.map +1 -1
  227. package/dist/index249.js +4 -37
  228. package/dist/index249.js.map +1 -1
  229. package/dist/index250.js +5 -8
  230. package/dist/index250.js.map +1 -1
  231. package/dist/index251.js +14 -114
  232. package/dist/index251.js.map +1 -1
  233. package/dist/index252.js +9 -17
  234. package/dist/index252.js.map +1 -1
  235. package/dist/index253.js +18 -15
  236. package/dist/index253.js.map +1 -1
  237. package/dist/index254.js +15 -3
  238. package/dist/index254.js.map +1 -1
  239. package/dist/index255.js +10 -34
  240. package/dist/index255.js.map +1 -1
  241. package/dist/index256.js +13 -20
  242. package/dist/index256.js.map +1 -1
  243. package/dist/index257.js +154 -9
  244. package/dist/index257.js.map +1 -1
  245. package/dist/index258.js +30 -8
  246. package/dist/index258.js.map +1 -1
  247. package/dist/index259.js +9 -19
  248. package/dist/index259.js.map +1 -1
  249. package/dist/index260.js +45 -25
  250. package/dist/index260.js.map +1 -1
  251. package/dist/index261.js +11 -16
  252. package/dist/index261.js.map +1 -1
  253. package/dist/index262.js +43 -23
  254. package/dist/index262.js.map +1 -1
  255. package/dist/index263.js +95 -28
  256. package/dist/index263.js.map +1 -1
  257. package/dist/index264.js +87 -5
  258. package/dist/index264.js.map +1 -1
  259. package/dist/index265.js +105 -4
  260. package/dist/index265.js.map +1 -1
  261. package/dist/index266.js +52 -17
  262. package/dist/index266.js.map +1 -1
  263. package/dist/index267.js +11 -12
  264. package/dist/index267.js.map +1 -1
  265. package/dist/index268.js +36 -19
  266. package/dist/index268.js.map +1 -1
  267. package/dist/index269.js +9 -5
  268. package/dist/index269.js.map +1 -1
  269. package/dist/index270.js +117 -3
  270. package/dist/index270.js.map +1 -1
  271. package/dist/index271.js +17 -23
  272. package/dist/index271.js.map +1 -1
  273. package/dist/index272.js +14 -111
  274. package/dist/index272.js.map +1 -1
  275. package/dist/index273.js +3 -15
  276. package/dist/index273.js.map +1 -1
  277. package/dist/index274.js +29 -522
  278. package/dist/index274.js.map +1 -1
  279. package/dist/index275.js +19 -124
  280. package/dist/index275.js.map +1 -1
  281. package/dist/index276.js +9 -133
  282. package/dist/index276.js.map +1 -1
  283. package/dist/index277.js +8 -4
  284. package/dist/index277.js.map +1 -1
  285. package/dist/index278.js +19 -4
  286. package/dist/index278.js.map +1 -1
  287. package/dist/index279.js +29 -4
  288. package/dist/index279.js.map +1 -1
  289. package/dist/index28.js +1 -1
  290. package/dist/index280.js +16 -15
  291. package/dist/index280.js.map +1 -1
  292. package/dist/index281.js +66 -8
  293. package/dist/index281.js.map +1 -1
  294. package/dist/index282.js +8 -5
  295. package/dist/index282.js.map +1 -1
  296. package/dist/index283.js +11 -4
  297. package/dist/index283.js.map +1 -1
  298. package/dist/index284.js +7 -544
  299. package/dist/index284.js.map +1 -1
  300. package/dist/index285.js +6 -47
  301. package/dist/index285.js.map +1 -1
  302. package/dist/index286.js +13 -17
  303. package/dist/index286.js.map +1 -1
  304. package/dist/index287.js +3 -5
  305. package/dist/index287.js.map +1 -1
  306. package/dist/index288.js +3 -7
  307. package/dist/index288.js.map +1 -1
  308. package/dist/index289.js +99 -6
  309. package/dist/index289.js.map +1 -1
  310. package/dist/index290.js +17 -7
  311. package/dist/index290.js.map +1 -1
  312. package/dist/index291.js +5 -11
  313. package/dist/index291.js.map +1 -1
  314. package/dist/index292.js +29 -8
  315. package/dist/index292.js.map +1 -1
  316. package/dist/index293.js +51 -12
  317. package/dist/index293.js.map +1 -1
  318. package/dist/index294.js +131 -62
  319. package/dist/index294.js.map +1 -1
  320. package/dist/index295.js +9 -69
  321. package/dist/index295.js.map +1 -1
  322. package/dist/index296.js +4 -8
  323. package/dist/index296.js.map +1 -1
  324. package/dist/index297.js +4 -14
  325. package/dist/index297.js.map +1 -1
  326. package/dist/index298.js +12 -66
  327. package/dist/index298.js.map +1 -1
  328. package/dist/index299.js +21 -4
  329. package/dist/index299.js.map +1 -1
  330. package/dist/index30.js +1 -1
  331. package/dist/index300.js +121 -54
  332. package/dist/index300.js.map +1 -1
  333. package/dist/index301.js +28 -68
  334. package/dist/index301.js.map +1 -1
  335. package/dist/index302.js +33 -31
  336. package/dist/index302.js.map +1 -1
  337. package/dist/index303.js +74 -9
  338. package/dist/index303.js.map +1 -1
  339. package/dist/index304.js +262 -152
  340. package/dist/index304.js.map +1 -1
  341. package/dist/index305.js +28 -107
  342. package/dist/index305.js.map +1 -1
  343. package/dist/index306.js +6 -3
  344. package/dist/index306.js.map +1 -1
  345. package/dist/index307.js +141 -21
  346. package/dist/index307.js.map +1 -1
  347. package/dist/index308.js +61 -15
  348. package/dist/index308.js.map +1 -1
  349. package/dist/index309.js +48 -27
  350. package/dist/index309.js.map +1 -1
  351. package/dist/index31.js +227 -120
  352. package/dist/index31.js.map +1 -1
  353. package/dist/index310.js +15 -13
  354. package/dist/index310.js.map +1 -1
  355. package/dist/index311.js +20 -7
  356. package/dist/index311.js.map +1 -1
  357. package/dist/index312.js +12 -23
  358. package/dist/index312.js.map +1 -1
  359. package/dist/index313.js +51 -13
  360. package/dist/index313.js.map +1 -1
  361. package/dist/index314.js +14 -25
  362. package/dist/index314.js.map +1 -1
  363. package/dist/index315.js +22 -5
  364. package/dist/index315.js.map +1 -1
  365. package/dist/index316.js +55 -0
  366. package/dist/index316.js.map +1 -0
  367. package/dist/index317.js +29 -0
  368. package/dist/index317.js.map +1 -0
  369. package/dist/index318.js +45 -0
  370. package/dist/index318.js.map +1 -0
  371. package/dist/index319.js +43 -0
  372. package/dist/index319.js.map +1 -0
  373. package/dist/index32.js +21 -229
  374. package/dist/index32.js.map +1 -1
  375. package/dist/index320.js +48 -0
  376. package/dist/index320.js.map +1 -0
  377. package/dist/index321.js +24 -0
  378. package/dist/index321.js.map +1 -0
  379. package/dist/index322.js +74 -0
  380. package/dist/index322.js.map +1 -0
  381. package/dist/index323.js +21 -0
  382. package/dist/index323.js.map +1 -0
  383. package/dist/index324.js +15 -0
  384. package/dist/index324.js.map +1 -0
  385. package/dist/index325.js +17 -0
  386. package/dist/index325.js.map +1 -0
  387. package/dist/index326.js +22 -0
  388. package/dist/index326.js.map +1 -0
  389. package/dist/index327.js +40 -0
  390. package/dist/index327.js.map +1 -0
  391. package/dist/index328.js +282 -0
  392. package/dist/index328.js.map +1 -0
  393. package/dist/index329.js +72 -0
  394. package/dist/index329.js.map +1 -0
  395. package/dist/index33.js +4 -23
  396. package/dist/index33.js.map +1 -1
  397. package/dist/index330.js +87 -0
  398. package/dist/index330.js.map +1 -0
  399. package/dist/index331.js +7 -0
  400. package/dist/index331.js.map +1 -0
  401. package/dist/index332.js +33 -0
  402. package/dist/index332.js.map +1 -0
  403. package/dist/index333.js +20 -0
  404. package/dist/index333.js.map +1 -0
  405. package/dist/index334.js +38 -0
  406. package/dist/index334.js.map +1 -0
  407. package/dist/index335.js +20 -0
  408. package/dist/index335.js.map +1 -0
  409. package/dist/index336.js +7 -0
  410. package/dist/index336.js.map +1 -0
  411. package/dist/index337.js +30 -0
  412. package/dist/index337.js.map +1 -0
  413. package/dist/index338.js +7 -0
  414. package/dist/index338.js.map +1 -0
  415. package/dist/index339.js +82 -0
  416. package/dist/index339.js.map +1 -0
  417. package/dist/index34.js +62 -51
  418. package/dist/index34.js.map +1 -1
  419. package/dist/index340.js +273 -0
  420. package/dist/index340.js.map +1 -0
  421. package/dist/index341.js +15 -0
  422. package/dist/index341.js.map +1 -0
  423. package/dist/index342.js +14 -0
  424. package/dist/index342.js.map +1 -0
  425. package/dist/index343.js +29 -0
  426. package/dist/index343.js.map +1 -0
  427. package/dist/index344.js +20 -0
  428. package/dist/index344.js.map +1 -0
  429. package/dist/index345.js +129 -0
  430. package/dist/index345.js.map +1 -0
  431. package/dist/index346.js +9 -0
  432. package/dist/index346.js.map +1 -0
  433. package/dist/index347.js +44 -0
  434. package/dist/index347.js.map +1 -0
  435. package/dist/index348.js +69 -0
  436. package/dist/index348.js.map +1 -0
  437. package/dist/index349.js +17 -0
  438. package/dist/index349.js.map +1 -0
  439. package/dist/index35.js +38 -21
  440. package/dist/index35.js.map +1 -1
  441. package/dist/index350.js +11 -0
  442. package/dist/index350.js.map +1 -0
  443. package/dist/index351.js +9 -0
  444. package/dist/index351.js.map +1 -0
  445. package/dist/index352.js +7 -0
  446. package/dist/index352.js.map +1 -0
  447. package/dist/index353.js +14 -0
  448. package/dist/index353.js.map +1 -0
  449. package/dist/index354.js +11 -0
  450. package/dist/index354.js.map +1 -0
  451. package/dist/index355.js +403 -0
  452. package/dist/index355.js.map +1 -0
  453. package/dist/index356.js +56 -0
  454. package/dist/index356.js.map +1 -0
  455. package/dist/index357.js +15 -0
  456. package/dist/index357.js.map +1 -0
  457. package/dist/index358.js +15 -0
  458. package/dist/index358.js.map +1 -0
  459. package/dist/index359.js +8 -0
  460. package/dist/index359.js.map +1 -0
  461. package/dist/index36.js +75 -127
  462. package/dist/index36.js.map +1 -1
  463. package/dist/index360.js +21 -0
  464. package/dist/index360.js.map +1 -0
  465. package/dist/index361.js +16 -0
  466. package/dist/index361.js.map +1 -0
  467. package/dist/index362.js +24 -0
  468. package/dist/index362.js.map +1 -0
  469. package/dist/index363.js +12 -0
  470. package/dist/index363.js.map +1 -0
  471. package/dist/index364.js +29 -0
  472. package/dist/index364.js.map +1 -0
  473. package/dist/index365.js +30 -0
  474. package/dist/index365.js.map +1 -0
  475. package/dist/index366.js +141 -0
  476. package/dist/index366.js.map +1 -0
  477. package/dist/index367.js +16 -0
  478. package/dist/index367.js.map +1 -0
  479. package/dist/index368.js +230 -0
  480. package/dist/index368.js.map +1 -0
  481. package/dist/index369.js +7 -0
  482. package/dist/index369.js.map +1 -0
  483. package/dist/index37.js +22 -221
  484. package/dist/index37.js.map +1 -1
  485. package/dist/index370.js +23 -0
  486. package/dist/index370.js.map +1 -0
  487. package/dist/index371.js +81 -0
  488. package/dist/index371.js.map +1 -0
  489. package/dist/index372.js +15 -0
  490. package/dist/index372.js.map +1 -0
  491. package/dist/index373.js +7 -0
  492. package/dist/index373.js.map +1 -0
  493. package/dist/index374.js +81 -0
  494. package/dist/index374.js.map +1 -0
  495. package/dist/index375.js +204 -0
  496. package/dist/index375.js.map +1 -0
  497. package/dist/index376.js +75 -0
  498. package/dist/index376.js.map +1 -0
  499. package/dist/index377.js +12 -0
  500. package/dist/index377.js.map +1 -0
  501. package/dist/index378.js +19 -0
  502. package/dist/index378.js.map +1 -0
  503. package/dist/index379.js +20 -0
  504. package/dist/index379.js.map +1 -0
  505. package/dist/index38.js +37 -90
  506. package/dist/index38.js.map +1 -1
  507. package/dist/index380.js +7 -0
  508. package/dist/index380.js.map +1 -0
  509. package/dist/index381.js +15 -0
  510. package/dist/index381.js.map +1 -0
  511. package/dist/index382.js +9 -0
  512. package/dist/index382.js.map +1 -0
  513. package/dist/index383.js +24 -0
  514. package/dist/index383.js.map +1 -0
  515. package/dist/index384.js +48 -0
  516. package/dist/index384.js.map +1 -0
  517. package/dist/index385.js +21 -0
  518. package/dist/index385.js.map +1 -0
  519. package/dist/index386.js +8 -0
  520. package/dist/index386.js.map +1 -0
  521. package/dist/index387.js +8 -0
  522. package/dist/index387.js.map +1 -0
  523. package/dist/index388.js +8 -0
  524. package/dist/index388.js.map +1 -0
  525. package/dist/index389.js +7 -0
  526. package/dist/index389.js.map +1 -0
  527. package/dist/index39.js +28 -119
  528. package/dist/index39.js.map +1 -1
  529. package/dist/index390.js +19 -0
  530. package/dist/index390.js.map +1 -0
  531. package/dist/index391.js +12 -0
  532. package/dist/index391.js.map +1 -0
  533. package/dist/index392.js +9 -0
  534. package/dist/index392.js.map +1 -0
  535. package/dist/index393.js +8 -0
  536. package/dist/index393.js.map +1 -0
  537. package/dist/index394.js +549 -0
  538. package/dist/index394.js.map +1 -0
  539. package/dist/index395.js +50 -0
  540. package/dist/index395.js.map +1 -0
  541. package/dist/index396.js +21 -0
  542. package/dist/index396.js.map +1 -0
  543. package/dist/index397.js +9 -0
  544. package/dist/index397.js.map +1 -0
  545. package/dist/index398.js +11 -0
  546. package/dist/index398.js.map +1 -0
  547. package/dist/index399.js +10 -0
  548. package/dist/index399.js.map +1 -0
  549. package/dist/index40.js +23 -6
  550. package/dist/index40.js.map +1 -1
  551. package/dist/index400.js +11 -0
  552. package/dist/index400.js.map +1 -0
  553. package/dist/index401.js +15 -0
  554. package/dist/index401.js.map +1 -0
  555. package/dist/index402.js +12 -0
  556. package/dist/index402.js.map +1 -0
  557. package/dist/index403.js +16 -0
  558. package/dist/index403.js.map +1 -0
  559. package/dist/index404.js +18 -0
  560. package/dist/index404.js.map +1 -0
  561. package/dist/index405.js +495 -0
  562. package/dist/index405.js.map +1 -0
  563. package/dist/index406.js +6 -0
  564. package/dist/index406.js.map +1 -0
  565. package/dist/index407.js +6 -0
  566. package/dist/index407.js.map +1 -0
  567. package/dist/index408.js +8 -0
  568. package/dist/index408.js.map +1 -0
  569. package/dist/index409.js +59 -0
  570. package/dist/index409.js.map +1 -0
  571. package/dist/index41.js +51 -817
  572. package/dist/index41.js.map +1 -1
  573. package/dist/index410.js +71 -0
  574. package/dist/index410.js.map +1 -0
  575. package/dist/index411.js +34 -0
  576. package/dist/index411.js.map +1 -0
  577. package/dist/index412.js +12 -0
  578. package/dist/index412.js.map +1 -0
  579. package/dist/index413.js +156 -0
  580. package/dist/index413.js.map +1 -0
  581. package/dist/index414.js +111 -0
  582. package/dist/index414.js.map +1 -0
  583. package/dist/index415.js +11 -0
  584. package/dist/index415.js.map +1 -0
  585. package/dist/index416.js +5 -0
  586. package/dist/index416.js.map +1 -0
  587. package/dist/index417.js +47 -0
  588. package/dist/index417.js.map +1 -0
  589. package/dist/index418.js +59 -0
  590. package/dist/index418.js.map +1 -0
  591. package/dist/index419.js +11 -0
  592. package/dist/index419.js.map +1 -0
  593. package/dist/index42.js +51 -57
  594. package/dist/index42.js.map +1 -1
  595. package/dist/index420.js +5 -0
  596. package/dist/index420.js.map +1 -0
  597. package/dist/index421.js +58 -0
  598. package/dist/index421.js.map +1 -0
  599. package/dist/index422.js +59 -0
  600. package/dist/index422.js.map +1 -0
  601. package/dist/index423.js +19 -0
  602. package/dist/index423.js.map +1 -0
  603. package/dist/index424.js +32 -0
  604. package/dist/index424.js.map +1 -0
  605. package/dist/index425.js +16 -0
  606. package/dist/index425.js.map +1 -0
  607. package/dist/index426.js +10 -0
  608. package/dist/index426.js.map +1 -0
  609. package/dist/index427.js +5 -0
  610. package/dist/index427.js.map +1 -0
  611. package/dist/index428.js +5 -0
  612. package/dist/index428.js.map +1 -0
  613. package/dist/index429.js +5 -0
  614. package/dist/index429.js.map +1 -0
  615. package/dist/index43.js +21 -7
  616. package/dist/index43.js.map +1 -1
  617. package/dist/index430.js +5 -0
  618. package/dist/index430.js.map +1 -0
  619. package/dist/index44.js +130 -2
  620. package/dist/index44.js.map +1 -1
  621. package/dist/index45.js +221 -11
  622. package/dist/index45.js.map +1 -1
  623. package/dist/index46.js +90 -18
  624. package/dist/index46.js.map +1 -1
  625. package/dist/index47.js +118 -7
  626. package/dist/index47.js.map +1 -1
  627. package/dist/index48.js +6 -2
  628. package/dist/index48.js.map +1 -1
  629. package/dist/index49.js +326 -23
  630. package/dist/index49.js.map +1 -1
  631. package/dist/index50.js +247 -221
  632. package/dist/index50.js.map +1 -1
  633. package/dist/index51.js +27 -2
  634. package/dist/index51.js.map +1 -1
  635. package/dist/index52.js +129 -2
  636. package/dist/index52.js.map +1 -1
  637. package/dist/index53.js +26 -7
  638. package/dist/index53.js.map +1 -1
  639. package/dist/index54.js +22 -33
  640. package/dist/index54.js.map +1 -1
  641. package/dist/index55.js +143 -46
  642. package/dist/index55.js.map +1 -1
  643. package/dist/index56.js +35 -8
  644. package/dist/index56.js.map +1 -1
  645. package/dist/index57.js +29 -12
  646. package/dist/index57.js.map +1 -1
  647. package/dist/index58.js +41 -2
  648. package/dist/index58.js.map +1 -1
  649. package/dist/index59.js +21 -2
  650. package/dist/index59.js.map +1 -1
  651. package/dist/index6.js +84 -85
  652. package/dist/index6.js.map +1 -1
  653. package/dist/index60.js +132 -6
  654. package/dist/index60.js.map +1 -1
  655. package/dist/index61.js +51 -8
  656. package/dist/index61.js.map +1 -1
  657. package/dist/index62.js +30 -6
  658. package/dist/index62.js.map +1 -1
  659. package/dist/index63.js +57 -4
  660. package/dist/index63.js.map +1 -1
  661. package/dist/index64.js +7 -47
  662. package/dist/index64.js.map +1 -1
  663. package/dist/index65.js +2 -51
  664. package/dist/index65.js.map +1 -1
  665. package/dist/index66.js +11 -7
  666. package/dist/index66.js.map +1 -1
  667. package/dist/index67.js +17 -13
  668. package/dist/index67.js.map +1 -1
  669. package/dist/index68.js +7 -133
  670. package/dist/index68.js.map +1 -1
  671. package/dist/index69.js +2 -11
  672. package/dist/index69.js.map +1 -1
  673. package/dist/index7.js +123 -98
  674. package/dist/index7.js.map +1 -1
  675. package/dist/index70.js +22 -215
  676. package/dist/index70.js.map +1 -1
  677. package/dist/index71.js +234 -13
  678. package/dist/index71.js.map +1 -1
  679. package/dist/index72.js +2 -47
  680. package/dist/index72.js.map +1 -1
  681. package/dist/index73.js +2 -50
  682. package/dist/index73.js.map +1 -1
  683. package/dist/index74.js +2 -4
  684. package/dist/index74.js.map +1 -1
  685. package/dist/index75.js +2 -6
  686. package/dist/index75.js.map +1 -1
  687. package/dist/index76.js +6 -28
  688. package/dist/index76.js.map +1 -1
  689. package/dist/index77.js +8 -50
  690. package/dist/index77.js.map +1 -1
  691. package/dist/index78.js +6 -9
  692. package/dist/index78.js.map +1 -1
  693. package/dist/index8.js +53 -54
  694. package/dist/index8.js.map +1 -1
  695. package/dist/index9.js +1 -1
  696. package/dist/lib/render-as-child.d.ts +5 -0
  697. package/dist/lib/render-as-child.d.ts.map +1 -0
  698. package/package.json +3 -6
  699. package/dist/lib/react-compose-refs.d.ts +0 -5
  700. package/dist/lib/react-compose-refs.d.ts.map +0 -1
package/dist/index184.js CHANGED
@@ -1,10 +1,265 @@
1
- import { getBroadcastWeeksInMonth as n } from "./index265.js";
2
- import { startOfBroadcastWeek as s } from "./index185.js";
3
- function d(e, t) {
4
- const o = s(e, t), r = n(e, t);
5
- return t.addDays(o, r * 7 - 1);
1
+ import * as p from "react";
2
+ import { isHTMLElement as G, getNodeName as We, getWindow as _e } from "./index294.js";
3
+ import { addEventListener as I } from "./index346.js";
4
+ import { mergeCleanups as Te } from "./index363.js";
5
+ import { useMergedRefs as Fe } from "./index281.js";
6
+ import { useValueAsRef as te } from "./index314.js";
7
+ import { useStableCallback as ne } from "./index292.js";
8
+ import { useIsoLayoutEffect as _ } from "./index297.js";
9
+ import { useTimeout as ye } from "./index332.js";
10
+ import { isWebKit as Ue } from "./index347.js";
11
+ import { useAnimationFrame as $e } from "./index348.js";
12
+ import { ownerDocument as O } from "./index331.js";
13
+ import { FocusGuard as xe } from "./index364.js";
14
+ import { isTypeableCombobox as Ie, getFloatingFocusElement as he, isTypeableElement as Be } from "./index337.js";
15
+ import { isVirtualClick as ze, isVirtualPointerEvent as Je, stopEvent as Qe } from "./index365.js";
16
+ import { isOutsideEvent as ve, getNextTabbable as Xe, getPreviousTabbable as Ye, tabbable as Se, isTabbable as ue, focusable as Ze } from "./index366.js";
17
+ import { getNodeAncestors as Ce, getNodeChildren as ke } from "./index367.js";
18
+ import { isElementVisible as et } from "./index368.js";
19
+ import { createChangeEventDetails as tt } from "./index175.js";
20
+ import { createAttribute as Ae } from "./index369.js";
21
+ import { enqueueFocus as re } from "./index370.js";
22
+ import { markOthers as Oe } from "./index371.js";
23
+ import { usePortalContext as nt } from "./index187.js";
24
+ import { useFloatingTree as rt } from "./index372.js";
25
+ import { CLICK_TRIGGER_IDENTIFIER as ot } from "./index192.js";
26
+ import { resolveRef as w } from "./index373.js";
27
+ import { j as oe } from "./index30.js";
28
+ import { activeElement as V, contains as a, getTarget as B } from "./index305.js";
29
+ import { triggerHover as st, outsidePress as ut, focusOut as it } from "./index177.js";
30
+ function ct(t, h) {
31
+ const D = _e(B(t));
32
+ return t instanceof D.KeyboardEvent ? "keyboard" : t instanceof D.FocusEvent ? h || "keyboard" : "pointerType" in t ? t.pointerType || "keyboard" : "touches" in t ? "touch" : t instanceof D.MouseEvent ? h || (t.detail === 0 ? "keyboard" : "mouse") : "";
33
+ }
34
+ const we = 20;
35
+ let N = [];
36
+ function ie() {
37
+ N = N.filter((t) => t.deref()?.isConnected);
38
+ }
39
+ function ft(t) {
40
+ ie(), t && We(t) !== "body" && (N.push(new WeakRef(t)), N.length > we && (N = N.slice(-we)));
41
+ }
42
+ function se() {
43
+ return ie(), N[N.length - 1]?.deref();
44
+ }
45
+ function at(t) {
46
+ return t ? ue(t) ? t : Se(t)[0] || t : null;
47
+ }
48
+ function Ne(t, h) {
49
+ if (t.hasAttribute("tabindex") && !t.hasAttribute("data-tabindex") || !h.current.includes("floating") && !t.getAttribute("role")?.includes("dialog"))
50
+ return;
51
+ const c = Ze(t).filter((L) => {
52
+ const j = L.getAttribute("data-tabindex") || "";
53
+ return ue(L) || L.hasAttribute("data-tabindex") && !j.startsWith("-");
54
+ }), q = t.getAttribute("tabindex");
55
+ h.current.includes("floating") || c.length === 0 ? q !== "0" && t.setAttribute("tabindex", "0") : (q !== "-1" || t.hasAttribute("data-tabindex") && t.getAttribute("data-tabindex") !== "-1") && (t.setAttribute("tabindex", "-1"), t.setAttribute("data-tabindex", "-1"));
56
+ }
57
+ function Lt(t) {
58
+ const {
59
+ context: h,
60
+ children: D,
61
+ disabled: c = !1,
62
+ initialFocus: q = !0,
63
+ returnFocus: L = !0,
64
+ restoreFocus: j = !1,
65
+ modal: E = !0,
66
+ closeOnFocusOut: K = !0,
67
+ openInteractionType: De = "",
68
+ nextFocusableElement: H,
69
+ previousFocusableElement: W,
70
+ beforeContentFocusGuardRef: Pe,
71
+ externalTree: Me,
72
+ getInsideElements: Ge
73
+ } = t, v = "rootStore" in h ? h.rootStore : h, T = v.useState("open"), f = v.useState("domReferenceElement"), i = v.useState("floatingElement"), {
74
+ events: z,
75
+ dataRef: S
76
+ } = v.context, P = ne(() => S.current.floatingContext?.nodeId), ce = q === !1, C = Ie(f) && ce, M = p.useRef(["content"]), fe = te(q), J = te(L), ae = te(De), F = rt(Me), u = nt(), y = p.useRef(!1), U = p.useRef(!1), Q = p.useRef(!1), le = p.useRef(null), de = p.useRef(""), X = p.useRef(""), Y = p.useRef(null), Z = p.useRef(null), Ve = Fe(Y, Pe, u?.beforeInsideRef), qe = Fe(Z, u?.afterInsideRef), me = ye(), be = ye(), pe = $e(), Le = u != null, o = he(i), k = ne((n = o) => n ? Se(n) : []), A = ne(() => Ge?.().filter((n) => n != null) ?? []);
77
+ p.useEffect(() => {
78
+ if (c || !E)
79
+ return;
80
+ function n(m) {
81
+ m.key === "Tab" && a(o, V(O(o))) && k().length === 0 && !C && Qe(m);
82
+ }
83
+ const d = O(o);
84
+ return I(d, "keydown", n);
85
+ }, [c, f, o, E, M, C, k]), p.useEffect(() => {
86
+ if (c || !T)
87
+ return;
88
+ const n = O(o);
89
+ function d() {
90
+ Q.current = !1;
91
+ }
92
+ function m(s) {
93
+ const r = B(s), l = A(), e = a(i, r) || a(f, r) || a(u?.portalNode, r) || l.some((g) => g === r || a(g, r));
94
+ Q.current = !e, X.current = s.pointerType || "keyboard", r?.closest(`[${ot}]`) && (U.current = !0);
95
+ }
96
+ function R() {
97
+ X.current = "keyboard";
98
+ }
99
+ return Te(I(n, "pointerdown", m, !0), I(n, "pointerup", d, !0), I(n, "pointercancel", d, !0), I(n, "keydown", R, !0));
100
+ }, [c, i, f, o, T, u, A]), p.useEffect(() => {
101
+ if (c || !K)
102
+ return;
103
+ const n = O(o);
104
+ function d() {
105
+ U.current = !0, be.start(0, () => {
106
+ U.current = !1;
107
+ });
108
+ }
109
+ function m(l) {
110
+ const e = B(l);
111
+ ue(e) && (le.current = e);
112
+ }
113
+ function R(l) {
114
+ const e = l.relatedTarget, g = l.currentTarget, x = B(l);
115
+ queueMicrotask(() => {
116
+ const $ = P(), ge = v.context.triggerElements, je = A(), Ke = e?.hasAttribute(Ae("focus-guard")) && [Y.current, Z.current, u?.beforeInsideRef.current, u?.afterInsideRef.current, u?.beforeOutsideRef.current, u?.afterOutsideRef.current, w(W), w(H)].includes(e), He = !(a(f, e) || a(i, e) || a(e, i) || a(u?.portalNode, e) || je.some((b) => b === e || a(b, e)) || e != null && ge.hasElement(e) || ge.hasMatchingElement((b) => a(b, e)) || Ke || F && (ke(F.nodesRef.current, $).find((b) => a(b.context?.elements.floating, e) || a(b.context?.elements.domReference, e)) || Ce(F.nodesRef.current, $).find((b) => [b.context?.elements.floating, he(b.context?.elements.floating)].includes(e) || b.context?.elements.domReference === e)));
117
+ if (g === f && o && Ne(o, M), j && g !== f && !et(x) && V(n) === n.body) {
118
+ if (G(o) && (o.focus(), j === "popup")) {
119
+ pe.request(() => {
120
+ o.focus();
121
+ });
122
+ return;
123
+ }
124
+ const b = k(), ee = le.current, Ee = (ee && b.includes(ee) ? ee : null) || b[b.length - 1] || o;
125
+ G(Ee) && Ee.focus();
126
+ }
127
+ if (S.current.insideReactTree) {
128
+ S.current.insideReactTree = !1;
129
+ return;
130
+ }
131
+ (C || !E) && e && He && !U.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
132
+ // For an "untrapped" typeable combobox (input role=combobox with
133
+ // initialFocus=false), re-opening the popup and tabbing out should still close it even
134
+ // when the previously focused element (e.g. the next tabbable outside the popup) is
135
+ // focused again. Otherwise, the popup remains open on the second Tab sequence:
136
+ // click input -> Tab (closes) -> click input -> Tab.
137
+ // Allow closing when `isUntrappedTypeableCombobox` regardless of the previously focused element.
138
+ (C || e !== se()) && (y.current = !0, v.setOpen(!1, tt(it, l)));
139
+ });
140
+ }
141
+ function s() {
142
+ Q.current || (S.current.insideReactTree = !0, me.start(0, () => {
143
+ S.current.insideReactTree = !1;
144
+ }));
145
+ }
146
+ const r = G(f) ? f : null;
147
+ if (!(!i && !r))
148
+ return Te(r && I(r, "focusout", R), r && I(r, "pointerdown", d), i && I(i, "focusin", m), i && I(i, "focusout", R), i && u && I(i, "focusout", s, !0));
149
+ }, [c, f, i, o, E, F, u, v, K, j, k, C, P, M, S, me, be, pe, H, W, A]), p.useEffect(() => {
150
+ if (c || !i || !T)
151
+ return;
152
+ const n = Array.from(u?.portalNode?.querySelectorAll(`[${Ae("portal")}]`) || []), m = (F ? Ce(F.nodesRef.current, P()) : []).find((g) => Ie(g.context?.elements.domReference || null))?.context?.elements.domReference, s = [...[i, ...n, Y.current, Z.current, u?.beforeOutsideRef.current, u?.afterOutsideRef.current, ...A()], m, w(W), w(H), C ? f : null].filter((g) => g != null), r = Oe(s, {
153
+ ariaHidden: E || C,
154
+ mark: !1
155
+ }), l = [i, ...n].filter((g) => g != null), e = Oe(l);
156
+ return () => {
157
+ e(), r();
158
+ };
159
+ }, [T, c, f, i, E, M, u, C, F, P, H, W, A]), _(() => {
160
+ if (!T || c || !G(o))
161
+ return;
162
+ const n = O(o), d = V(n);
163
+ queueMicrotask(() => {
164
+ const m = fe.current, R = typeof m == "function" ? m(ae.current || "") : m;
165
+ if (R === void 0 || R === !1 || a(o, d))
166
+ return;
167
+ let r = null;
168
+ const l = () => (r == null && (r = k(o)), r[0] || o);
169
+ let e;
170
+ R === !0 || R === null ? e = l() : e = w(R), e = e || l(), re(e, {
171
+ preventScroll: e === o
172
+ });
173
+ });
174
+ }, [c, T, o, ce, k, fe, ae]), _(() => {
175
+ if (c || !o)
176
+ return;
177
+ const n = O(o), d = V(n);
178
+ ft(d);
179
+ function m(s) {
180
+ if (s.open || (de.current = ct(s.nativeEvent, X.current)), s.reason === st && s.nativeEvent.type === "mouseleave" && (y.current = !0), s.reason === ut)
181
+ if (s.nested)
182
+ y.current = !1;
183
+ else if (ze(s.nativeEvent) || Je(s.nativeEvent))
184
+ y.current = !1;
185
+ else {
186
+ let r = !1;
187
+ O(o).createElement("div").focus({
188
+ get preventScroll() {
189
+ return r = !0, !1;
190
+ }
191
+ }), r ? y.current = !1 : y.current = !0;
192
+ }
193
+ }
194
+ z.on("openchange", m);
195
+ function R() {
196
+ const s = J.current;
197
+ let r = typeof s == "function" ? s(de.current) : s;
198
+ if (r === void 0 || r === !1)
199
+ return null;
200
+ if (r === null && (r = !0), typeof r == "boolean") {
201
+ const e = f || se();
202
+ return e && e.isConnected ? e : null;
203
+ }
204
+ const l = f || se();
205
+ return w(r) || l || null;
206
+ }
207
+ return () => {
208
+ z.off("openchange", m);
209
+ const s = V(n), r = A(), l = a(i, s) || r.some((x) => x === s || a(x, s)) || F && ke(F.nodesRef.current, P(), !1).some((x) => a(x.context?.elements.floating, s)), e = J.current, g = R();
210
+ queueMicrotask(() => {
211
+ const x = at(g), $ = typeof e != "boolean";
212
+ e && !y.current && G(x) && // If the focus moved somewhere else after mount, avoid returning focus
213
+ // since it likely entered a different element which should be
214
+ // respected: https://github.com/floating-ui/floating-ui/issues/2607
215
+ (!(!$ && x !== s && s !== n.body) || l) && x.focus({
216
+ preventScroll: !0
217
+ }), y.current = !1;
218
+ });
219
+ };
220
+ }, [c, i, o, J, S, z, F, f, P, A]), _(() => {
221
+ if (!Ue || T || !i)
222
+ return;
223
+ const n = V(O(i));
224
+ !G(n) || !Be(n) || a(i, n) && n.blur();
225
+ }, [T, i]), _(() => {
226
+ if (!(c || !u))
227
+ return u.setFocusManagerState({
228
+ modal: E,
229
+ closeOnFocusOut: K,
230
+ open: T,
231
+ onOpenChange: v.setOpen,
232
+ domReference: f
233
+ }), () => {
234
+ u.setFocusManagerState(null);
235
+ };
236
+ }, [c, u, E, T, v, K, f]), _(() => {
237
+ if (!(c || !o))
238
+ return Ne(o, M), () => {
239
+ queueMicrotask(ie);
240
+ };
241
+ }, [c, o, M]);
242
+ const Re = !c && (E ? !C : !0) && (Le || E);
243
+ return /* @__PURE__ */ oe.jsxs(p.Fragment, {
244
+ children: [Re && /* @__PURE__ */ oe.jsx(xe, {
245
+ "data-type": "inside",
246
+ ref: Ve,
247
+ onFocus: (n) => {
248
+ if (E) {
249
+ const d = k();
250
+ re(d[d.length - 1]);
251
+ } else u?.portalNode && (y.current = !1, ve(n, u.portalNode) ? Xe(f)?.focus() : w(W ?? u.beforeOutsideRef)?.focus());
252
+ }
253
+ }), D, Re && /* @__PURE__ */ oe.jsx(xe, {
254
+ "data-type": "inside",
255
+ ref: qe,
256
+ onFocus: (n) => {
257
+ E ? re(k()[0]) : u?.portalNode && (K && (y.current = !0), ve(n, u.portalNode) ? Ye(f)?.focus() : w(H ?? u.afterOutsideRef)?.focus());
258
+ }
259
+ })]
260
+ });
6
261
  }
7
262
  export {
8
- d as endOfBroadcastWeek
263
+ Lt as FloatingFocusManager
9
264
  };
10
265
  //# sourceMappingURL=index184.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index184.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js"],"sourcesContent":["import { getBroadcastWeeksInMonth } from \"./getBroadcastWeeksInMonth.js\";\nimport { startOfBroadcastWeek } from \"./startOfBroadcastWeek.js\";\n/**\n * Returns the end date of the week in the broadcast calendar.\n *\n * The broadcast week ends on the last day of the last broadcast week for the\n * given date.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the end of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The end date of the broadcast week.\n */\nexport function endOfBroadcastWeek(date, dateLib) {\n const startDate = startOfBroadcastWeek(date, dateLib);\n const numberOfWeeks = getBroadcastWeeksInMonth(date, dateLib);\n const endDate = dateLib.addDays(startDate, numberOfWeeks * 7 - 1);\n return endDate;\n}\n"],"names":["endOfBroadcastWeek","date","dateLib","startDate","startOfBroadcastWeek","numberOfWeeks","getBroadcastWeeksInMonth"],"mappings":";;AAaO,SAASA,EAAmBC,GAAMC,GAAS;AAC9C,QAAMC,IAAYC,EAAqBH,GAAMC,CAAO,GAC9CG,IAAgBC,EAAyBL,GAAMC,CAAO;AAE5D,SADgBA,EAAQ,QAAQC,GAAWE,IAAgB,IAAI,CAAC;AAEpE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index184.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager.js"],"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 { isWebKit } from '@base-ui/utils/detectBrowser';\nimport { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';\nimport { ownerDocument, ownerWindow } from '@base-ui/utils/owner';\nimport { FocusGuard } from \"../../utils/FocusGuard.js\";\nimport { activeElement, contains, getTarget, isTypeableCombobox, getFloatingFocusElement, isTypeableElement } from \"../utils/element.js\";\nimport { isVirtualClick, isVirtualPointerEvent, stopEvent } from \"../utils/event.js\";\nimport { tabbable, focusable, isOutsideEvent, isTabbable, getNextTabbable, getPreviousTabbable } from \"../utils/tabbable.js\";\nimport { getNodeAncestors, getNodeChildren } from \"../utils/nodes.js\";\nimport { isElementVisible } from \"../utils/composite.js\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.js\";\nimport { REASONS } from \"../../internals/reasons.js\";\nimport { createAttribute } from \"../utils/createAttribute.js\";\nimport { enqueueFocus } from \"../utils/enqueueFocus.js\";\nimport { markOthers } from \"../utils/markOthers.js\";\nimport { usePortalContext } from \"./FloatingPortal.js\";\nimport { useFloatingTree } from \"./FloatingTree.js\";\nimport { CLICK_TRIGGER_IDENTIFIER } from \"../../internals/constants.js\";\nimport { resolveRef } from \"../../utils/resolveRef.js\";\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, orderRef) {\n if (floatingFocusElement.hasAttribute('tabindex') && !floatingFocusElement.hasAttribute('data-tabindex')) {\n return;\n }\n if (!orderRef.current.includes('floating') && !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 (orderRef.current.includes('floating') || tabbableContent.length === 0) {\n if (tabIndex !== '0') {\n floatingFocusElement.setAttribute('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 orderRef = React.useRef(['content']);\n const initialFocusRef = useValueAsRef(initialFocus);\n const returnFocusRef = useValueAsRef(returnFocus);\n const openInteractionTypeRef = useValueAsRef(openInteractionType);\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, domReference, floatingFocusElement, modal, orderRef, 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 }\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 }, [disabled, floating, domReference, floatingFocusElement, open, portalContext, 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 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, orderRef);\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, orderRef, 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, orderRef, 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 enqueueFocus(elToFocus, {\n preventScroll: elToFocus === floatingFocusElement\n });\n });\n }, [disabled, open, floatingFocusElement, ignoreInitialFocus, getTabbableContent, initialFocusRef, openInteractionTypeRef]);\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 previouslyFocusedElement = activeElement(doc);\n addPreviouslyFocusedElement(previouslyFocusedElement);\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 if (typeof resolvedReturnFocusValue === 'boolean') {\n const el = domReference || getPreviouslyFocusedElement();\n return el && el.isConnected ? el : null;\n }\n const fallback = domReference || getPreviouslyFocusedElement();\n return resolveRef(resolvedReturnFocusValue) || fallback || 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, dataRef, 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 (!isWebKit || 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 // 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, orderRef);\n return () => {\n queueMicrotask(clearDisconnectedPreviouslyFocusedElements);\n };\n }, [disabled, floatingFocusElement, orderRef]);\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","orderRef","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","React","initialFocusRef","useValueAsRef","returnFocusRef","openInteractionTypeRef","tree","useFloatingTree","portalContext","usePortalContext","preventReturnFocusRef","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","enqueueFocus","onOpenChangeLocal","details","REASONS.triggerHover","REASONS.outsidePress","isVirtualClick","isVirtualPointerEvent","isPreventScrollSupported","getReturnElement","returnFocusValueOrFn","resolvedReturnFocusValue","el","fallback","activeEl","isFocusInsideFloatingTree","returnElement","tabbableReturnElement","hasExplicitReturnFocus","isWebKit","isTypeableElement","shouldRenderGuards","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MAAM;AACX,uBAAeZ,EAA0C;AAAA,MAC3D;AAAA,EACF,GAAG,CAACqB,GAAUV,GAAsBC,CAAQ,CAAC;AAC7C,QAAMoI,KAAqB,CAAC3H,MAAaI,IAAQ,CAACiB,IAA8B,QAAU2B,MAAkB5C;AAC5G,SAAoBwH,gBAAAA,GAAAA,KAAMrG,EAAM,UAAU;AAAA,IACxC,UAAU,CAACoG,MAAmCE,gBAAAA,GAAAA,IAAKC,IAAY;AAAA,MAC7D,aAAa;AAAA,MACb,KAAKtF;AAAA,MACL,SAAS,CAAApE,MAAS;AAChB,YAAIgC,GAAO;AACT,gBAAM2H,IAAM7E,EAAkB;AAC9B,UAAAqD,GAAawB,EAAIA,EAAI,SAAS,CAAC,CAAC;AAAA,QAClC,MAAO,CAAIjG,GAAe,eACxBE,EAAsB,UAAU,IAC5BgG,GAAe5J,GAAO0D,EAAc,UAAU,IAC3BmG,GAAgBnH,CAAY,GACnC,MAAK,IAEnB6D,EAAWnE,KAA4BsB,EAAc,gBAAgB,GAAG,MAAK;AAAA,MAGnF;AAAA,IACN,CAAK,GAAG/B,GAAU4H,MAAmCE,gBAAAA,GAAAA,IAAKC,IAAY;AAAA,MAChE,aAAa;AAAA,MACb,KAAKpF;AAAA,MACL,SAAS,CAAAtE,MAAS;AAChB,QAAIgC,IACFmG,GAAarD,IAAqB,CAAC,CAAC,IAC3BpB,GAAe,eACpBzB,MACF2B,EAAsB,UAAU,KAE9BgG,GAAe5J,GAAO0D,EAAc,UAAU,IAC3BoG,GAAoBpH,CAAY,GACvC,MAAK,IAEnB6D,EAAWpE,KAAwBuB,EAAc,eAAe,GAAG,MAAK;AAAA,MAG9E;AAAA,IACN,CAAK,CAAC;AAAA,EACN,CAAG;AACH;","x_google_ignoreList":[0]}
package/dist/index185.js CHANGED
@@ -1,8 +1,8 @@
1
- function n(s, e) {
2
- const t = e.startOfMonth(s), r = t.getDay();
3
- return r === 1 ? t : r === 0 ? e.addDays(t, -6) : e.addDays(t, -1 * (r - 1));
1
+ import { isReactVersionAtLeast as r } from "./index291.js";
2
+ function n(e) {
3
+ return r(19) ? e : e ? "true" : void 0;
4
4
  }
5
5
  export {
6
- n as startOfBroadcastWeek
6
+ n as inertValue
7
7
  };
8
8
  //# sourceMappingURL=index185.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index185.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js"],"sourcesContent":["/**\n * Returns the start date of the week in the broadcast calendar.\n *\n * The broadcast week starts on Monday. If the first day of the month is not a\n * Monday, this function calculates the previous Monday as the start of the\n * broadcast week.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the start of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The start date of the broadcast week.\n */\nexport function startOfBroadcastWeek(date, dateLib) {\n const firstOfMonth = dateLib.startOfMonth(date);\n const dayOfWeek = firstOfMonth.getDay();\n if (dayOfWeek === 1) {\n return firstOfMonth;\n }\n else if (dayOfWeek === 0) {\n return dateLib.addDays(firstOfMonth, -1 * 6);\n }\n else {\n return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));\n }\n}\n"],"names":["startOfBroadcastWeek","date","dateLib","firstOfMonth","dayOfWeek"],"mappings":"AAYO,SAASA,EAAqBC,GAAMC,GAAS;AAChD,QAAMC,IAAeD,EAAQ,aAAaD,CAAI,GACxCG,IAAYD,EAAa,OAAM;AACrC,SAAIC,MAAc,IACPD,IAEFC,MAAc,IACZF,EAAQ,QAAQC,GAAc,EAAM,IAGpCD,EAAQ,QAAQC,GAAc,MAAMC,IAAY,EAAE;AAEjE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index185.js","sources":["../../../node_modules/@base-ui/utils/esm/inertValue.js"],"sourcesContent":["import { isReactVersionAtLeast } from \"./reactVersion.js\";\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/index186.js CHANGED
@@ -1,10 +1,31 @@
1
- import { constructFrom as i } from "./index277.js";
2
- import { toDate as n } from "./index278.js";
3
- function s(e, r, o) {
4
- const t = n(e, o?.in);
5
- return isNaN(r) ? i(e, NaN) : (r && t.setDate(t.getDate() + r), t);
6
- }
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");
7
28
  export {
8
- s as addDays
29
+ a as InternalBackdrop
9
30
  };
10
31
  //# sourceMappingURL=index186.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index186.js","sources":["../../../node_modules/date-fns/addDays.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addDays} function options.\n */\n\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of days to be added.\n * @param options - An object with options\n *\n * @returns The new date with the days added\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\nexport function addDays(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n if (!amount) return _date;\n\n _date.setDate(_date.getDate() + amount);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default addDays;\n"],"names":["addDays","date","amount","options","_date","toDate","constructFrom"],"mappings":";;AA6BO,SAASA,EAAQC,GAAMC,GAAQC,GAAS;AAC7C,QAAMC,IAAQC,EAAOJ,GAAME,GAAS,EAAE;AACtC,SAAI,MAAMD,CAAM,IAAUI,EAA6BL,GAAM,GAAG,KAG3DC,KAELE,EAAM,QAAQA,EAAM,QAAO,IAAKF,CAAM,GAC/BE;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index186.js","sources":["../../../node_modules/@base-ui/react/esm/utils/InternalBackdrop.js"],"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/index187.js CHANGED
@@ -1,20 +1,130 @@
1
- import { constructFrom as s } from "./index277.js";
2
- import { toDate as a } from "./index278.js";
3
- function M(n, o, i) {
4
- const t = a(n, i?.in);
5
- if (isNaN(o)) return s(n, NaN);
6
- if (!o)
7
- return t;
8
- const r = t.getDate(), e = s(n, t.getTime());
9
- e.setMonth(t.getMonth() + o + 1, 0);
10
- const f = e.getDate();
11
- return r >= f ? e : (t.setFullYear(
12
- e.getFullYear(),
13
- e.getMonth(),
14
- r
15
- ), t);
1
+ import * as o from "react";
2
+ import * as I from "react-dom";
3
+ import { isNode as V } from "./index294.js";
4
+ import { addEventListener as O } from "./index346.js";
5
+ import { mergeCleanups as w } from "./index363.js";
6
+ import { useId as G } from "./index290.js";
7
+ import { useIsoLayoutEffect as _ } from "./index297.js";
8
+ import { useStableCallback as L } from "./index292.js";
9
+ import { EMPTY_OBJECT as k } from "./index285.js";
10
+ import { FocusGuard as S } from "./index364.js";
11
+ import { enableFocusInside as T, isOutsideEvent as C, getPreviousTabbable as q, getNextTabbable as A, disableFocusInside as B } from "./index366.js";
12
+ import { createChangeEventDetails as H } from "./index175.js";
13
+ import { createAttribute as J } from "./index369.js";
14
+ import { useRenderElement as Y } from "./index172.js";
15
+ import { ownerVisuallyHidden as z } from "./index192.js";
16
+ import { j as i } from "./index30.js";
17
+ import { focusOut as K } from "./index177.js";
18
+ const g = /* @__PURE__ */ o.createContext(null);
19
+ process.env.NODE_ENV !== "production" && (g.displayName = "PortalContext");
20
+ const Q = () => o.useContext(g), U = J("portal");
21
+ function W(F = {}) {
22
+ const {
23
+ ref: d,
24
+ container: n,
25
+ componentProps: R = k,
26
+ elementProps: x
27
+ } = F, m = G(), a = Q()?.portalNode, [E, c] = o.useState(null), [e, u] = o.useState(null), p = L((t) => {
28
+ t !== null && u(t);
29
+ }), r = o.useRef(null);
30
+ _(() => {
31
+ if (n === null) {
32
+ r.current && (r.current = null, u(null), c(null));
33
+ return;
34
+ }
35
+ if (m == null)
36
+ return;
37
+ const t = (n && (V(n) ? n : n.current)) ?? a ?? 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, a, m]);
44
+ const f = Y("div", R, {
45
+ ref: [d, p],
46
+ props: [{
47
+ id: m,
48
+ [U]: ""
49
+ }, x]
50
+ });
51
+ return {
52
+ portalNode: e,
53
+ portalSubtree: E && f ? /* @__PURE__ */ I.createPortal(f, E) : null
54
+ };
16
55
  }
56
+ const X = /* @__PURE__ */ o.forwardRef(function(d, n) {
57
+ const {
58
+ children: R,
59
+ container: x,
60
+ className: m,
61
+ render: j,
62
+ renderGuards: a,
63
+ style: E,
64
+ ...c
65
+ } = d, {
66
+ portalNode: e,
67
+ portalSubtree: u
68
+ } = W({
69
+ container: x,
70
+ ref: n,
71
+ componentProps: d,
72
+ elementProps: c
73
+ }), p = o.useRef(null), r = o.useRef(null), f = o.useRef(null), P = o.useRef(null), [t, h] = o.useState(null), b = o.useRef(!1), v = t?.modal, y = t?.open, N = typeof a == "boolean" ? a : !!t && !t.modal && t.open && !!e;
74
+ o.useEffect(() => {
75
+ if (!e || v)
76
+ return;
77
+ function s(l) {
78
+ e && l.relatedTarget && C(l) && (l.type === "focusin" ? b.current && (T(e), b.current = !1) : (B(e), b.current = !0));
79
+ }
80
+ return w(O(e, "focusin", s, !0), O(e, "focusout", s, !0));
81
+ }, [e, v]), o.useEffect(() => {
82
+ !e || y !== !1 || (T(e), b.current = !1);
83
+ }, [y, e]);
84
+ const D = o.useMemo(() => ({
85
+ beforeOutsideRef: p,
86
+ afterOutsideRef: r,
87
+ beforeInsideRef: f,
88
+ afterInsideRef: P,
89
+ portalNode: e,
90
+ setFocusManagerState: h
91
+ }), [e]);
92
+ return /* @__PURE__ */ i.jsxs(o.Fragment, {
93
+ children: [u, /* @__PURE__ */ i.jsxs(g.Provider, {
94
+ value: D,
95
+ children: [N && e && /* @__PURE__ */ i.jsx(S, {
96
+ "data-type": "outside",
97
+ ref: p,
98
+ onFocus: (s) => {
99
+ if (C(s, e))
100
+ f.current?.focus();
101
+ else {
102
+ const l = t ? t.domReference : null;
103
+ q(l)?.focus();
104
+ }
105
+ }
106
+ }), N && e && /* @__PURE__ */ i.jsx("span", {
107
+ "aria-owns": e.id,
108
+ style: z
109
+ }), e && /* @__PURE__ */ I.createPortal(R, e), N && e && /* @__PURE__ */ i.jsx(S, {
110
+ "data-type": "outside",
111
+ ref: r,
112
+ onFocus: (s) => {
113
+ if (C(s, e))
114
+ P.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");
17
125
  export {
18
- M as addMonths
126
+ X as FloatingPortal,
127
+ W as useFloatingPortalNode,
128
+ Q as usePortalContext
19
129
  };
20
130
  //# sourceMappingURL=index187.js.map