@rpcbase/ui 0.226.0 → 0.227.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (719) hide show
  1. package/dist/components/PhoneNumberInput/index.d.ts +1 -1
  2. package/dist/components/PhoneNumberInput/index.d.ts.map +1 -1
  3. package/dist/components/PhoneNumberInput/normalization.d.ts +0 -28
  4. package/dist/components/PhoneNumberInput/normalization.d.ts.map +1 -1
  5. package/dist/components/PhoneNumberInput/types.d.ts +4 -4
  6. package/dist/components/PhoneNumberInput/types.d.ts.map +1 -1
  7. package/dist/index100.js +4 -11
  8. package/dist/index100.js.map +1 -1
  9. package/dist/index101.js +8 -68
  10. package/dist/index101.js.map +1 -1
  11. package/dist/index102.js +6 -38
  12. package/dist/index102.js.map +1 -1
  13. package/dist/index103.js +5 -14
  14. package/dist/index103.js.map +1 -1
  15. package/dist/index104.js +4 -23
  16. package/dist/index104.js.map +1 -1
  17. package/dist/index105.js +6 -110
  18. package/dist/index105.js.map +1 -1
  19. package/dist/index106.js +146 -13
  20. package/dist/index106.js.map +1 -1
  21. package/dist/index107.js +39 -4
  22. package/dist/index107.js.map +1 -1
  23. package/dist/index108.js +5 -4
  24. package/dist/index108.js.map +1 -1
  25. package/dist/index109.js +8 -5
  26. package/dist/index109.js.map +1 -1
  27. package/dist/index110.js +13 -11
  28. package/dist/index110.js.map +1 -1
  29. package/dist/index111.js +13 -19
  30. package/dist/index111.js.map +1 -1
  31. package/dist/index112.js +8 -13
  32. package/dist/index112.js.map +1 -1
  33. package/dist/index113.js +31 -261
  34. package/dist/index113.js.map +1 -1
  35. package/dist/index114.js +10 -4
  36. package/dist/index114.js.map +1 -1
  37. package/dist/index115.js +11 -28
  38. package/dist/index115.js.map +1 -1
  39. package/dist/index116.js +8 -126
  40. package/dist/index116.js.map +1 -1
  41. package/dist/index117.js +13 -5
  42. package/dist/index117.js.map +1 -1
  43. package/dist/index118.js +101 -78
  44. package/dist/index118.js.map +1 -1
  45. package/dist/index119.js +20 -67
  46. package/dist/index119.js.map +1 -1
  47. package/dist/index120.js +53 -8
  48. package/dist/index120.js.map +1 -1
  49. package/dist/index121.js +73 -16
  50. package/dist/index121.js.map +1 -1
  51. package/dist/index122.js +9 -92
  52. package/dist/index122.js.map +1 -1
  53. package/dist/index123.js +17 -62
  54. package/dist/index123.js.map +1 -1
  55. package/dist/index124.js +15 -44
  56. package/dist/index124.js.map +1 -1
  57. package/dist/index125.js +24 -52
  58. package/dist/index125.js.map +1 -1
  59. package/dist/index126.js +6 -4
  60. package/dist/index126.js.map +1 -1
  61. package/dist/index127.js +5 -4
  62. package/dist/index127.js.map +1 -1
  63. package/dist/index128.js +23 -15
  64. package/dist/index128.js.map +1 -1
  65. package/dist/index129.js +35 -6
  66. package/dist/index129.js.map +1 -1
  67. package/dist/index130.js +16 -8
  68. package/dist/index130.js.map +1 -1
  69. package/dist/index131.js +6 -16
  70. package/dist/index131.js.map +1 -1
  71. package/dist/index132.js +4 -4
  72. package/dist/index132.js.map +1 -1
  73. package/dist/index133.js +4 -4
  74. package/dist/index133.js.map +1 -1
  75. package/dist/index134.js +4 -5
  76. package/dist/index134.js.map +1 -1
  77. package/dist/index135.js +4 -5
  78. package/dist/index135.js.map +1 -1
  79. package/dist/index136.js +3 -4
  80. package/dist/index136.js.map +1 -1
  81. package/dist/index137.js +6 -4
  82. package/dist/index137.js.map +1 -1
  83. package/dist/index138.js +24 -7
  84. package/dist/index138.js.map +1 -1
  85. package/dist/index139.js +7 -24
  86. package/dist/index139.js.map +1 -1
  87. package/dist/index140.js +6 -6
  88. package/dist/index140.js.map +1 -1
  89. package/dist/index141.js +5 -4
  90. package/dist/index141.js.map +1 -1
  91. package/dist/index142.js +3 -6
  92. package/dist/index142.js.map +1 -1
  93. package/dist/index143.js +3 -5
  94. package/dist/index143.js.map +1 -1
  95. package/dist/index144.js +4 -4
  96. package/dist/index144.js.map +1 -1
  97. package/dist/index145.js +3 -5
  98. package/dist/index145.js.map +1 -1
  99. package/dist/index146.js +4 -4
  100. package/dist/index146.js.map +1 -1
  101. package/dist/index147.js +3 -8
  102. package/dist/index147.js.map +1 -1
  103. package/dist/index148.js +3 -5
  104. package/dist/index148.js.map +1 -1
  105. package/dist/index149.js +3 -4
  106. package/dist/index149.js.map +1 -1
  107. package/dist/index150.js +11 -4
  108. package/dist/index150.js.map +1 -1
  109. package/dist/index151.js +68 -6
  110. package/dist/index151.js.map +1 -1
  111. package/dist/index152.js +35 -143
  112. package/dist/index152.js.map +1 -1
  113. package/dist/index153.js +13 -39
  114. package/dist/index153.js.map +1 -1
  115. package/dist/index154.js +23 -4
  116. package/dist/index154.js.map +1 -1
  117. package/dist/index155.js +108 -5
  118. package/dist/index155.js.map +1 -1
  119. package/dist/index156.js +13 -14
  120. package/dist/index156.js.map +1 -1
  121. package/dist/index157.js +4 -13
  122. package/dist/index157.js.map +1 -1
  123. package/dist/index158.js +4 -8
  124. package/dist/index158.js.map +1 -1
  125. package/dist/index159.js +5 -32
  126. package/dist/index159.js.map +1 -1
  127. package/dist/index160.js +11 -10
  128. package/dist/index160.js.map +1 -1
  129. package/dist/index161.js +18 -9
  130. package/dist/index161.js.map +1 -1
  131. package/dist/index162.js +13 -9
  132. package/dist/index162.js.map +1 -1
  133. package/dist/index163.js +258 -10
  134. package/dist/index163.js.map +1 -1
  135. package/dist/index164.js +4 -101
  136. package/dist/index164.js.map +1 -1
  137. package/dist/index165.js +28 -20
  138. package/dist/index165.js.map +1 -1
  139. package/dist/index166.js +122 -49
  140. package/dist/index166.js.map +1 -1
  141. package/dist/index167.js +5 -72
  142. package/dist/index167.js.map +1 -1
  143. package/dist/index168.js +78 -9
  144. package/dist/index168.js.map +1 -1
  145. package/dist/index169.js +64 -18
  146. package/dist/index169.js.map +1 -1
  147. package/dist/index170.js +8 -16
  148. package/dist/index170.js.map +1 -1
  149. package/dist/index171.js +16 -24
  150. package/dist/index171.js.map +1 -1
  151. package/dist/index172.js +92 -6
  152. package/dist/index172.js.map +1 -1
  153. package/dist/index173.js +65 -5
  154. package/dist/index173.js.map +1 -1
  155. package/dist/index174.js +43 -21
  156. package/dist/index174.js.map +1 -1
  157. package/dist/index175.js +6 -35
  158. package/dist/index175.js.map +1 -1
  159. package/dist/index176.js +69 -16
  160. package/dist/index176.js.map +1 -1
  161. package/dist/index177.js +2 -7
  162. package/dist/index177.js.map +1 -1
  163. package/dist/index178.js +363 -4
  164. package/dist/index178.js.map +1 -1
  165. package/dist/index179.js +261 -4
  166. package/dist/index179.js.map +1 -1
  167. package/dist/index18.js +377 -414
  168. package/dist/index18.js.map +1 -1
  169. package/dist/index180.js +60 -4
  170. package/dist/index180.js.map +1 -1
  171. package/dist/index181.js +46 -4
  172. package/dist/index181.js.map +1 -1
  173. package/dist/index182.js +169 -3
  174. package/dist/index182.js.map +1 -1
  175. package/dist/index183.js +109 -6
  176. package/dist/index183.js.map +1 -1
  177. package/dist/index184.js +25 -24
  178. package/dist/index184.js.map +1 -1
  179. package/dist/index185.js +8 -8
  180. package/dist/index185.js.map +1 -1
  181. package/dist/index186.js +4 -6
  182. package/dist/index186.js.map +1 -1
  183. package/dist/index187.js +5 -5
  184. package/dist/index187.js.map +1 -1
  185. package/dist/index188.js +4 -3
  186. package/dist/index188.js.map +1 -1
  187. package/dist/index189.js +466 -3
  188. package/dist/index189.js.map +1 -1
  189. package/dist/index190.js +185 -4
  190. package/dist/index190.js.map +1 -1
  191. package/dist/index191.js +107 -3
  192. package/dist/index191.js.map +1 -1
  193. package/dist/index192.js +262 -4
  194. package/dist/index192.js.map +1 -1
  195. package/dist/index193.js +9 -3
  196. package/dist/index193.js.map +1 -1
  197. package/dist/index194.js +42 -3
  198. package/dist/index194.js.map +1 -1
  199. package/dist/index195.js +4 -3
  200. package/dist/index195.js.map +1 -1
  201. package/dist/index196.js +20 -14
  202. package/dist/index196.js.map +1 -1
  203. package/dist/index197.js +58 -146
  204. package/dist/index197.js.map +1 -1
  205. package/dist/index198.js +6 -30
  206. package/dist/index198.js.map +1 -1
  207. package/dist/index199.js +11 -9
  208. package/dist/index199.js.map +1 -1
  209. package/dist/index200.js +46 -44
  210. package/dist/index200.js.map +1 -1
  211. package/dist/index201.js +4 -12
  212. package/dist/index201.js.map +1 -1
  213. package/dist/index202.js +28 -43
  214. package/dist/index202.js.map +1 -1
  215. package/dist/index203.js +14 -93
  216. package/dist/index203.js.map +1 -1
  217. package/dist/index204.js +5 -86
  218. package/dist/index204.js.map +1 -1
  219. package/dist/index205.js +21 -105
  220. package/dist/index205.js.map +1 -1
  221. package/dist/index206.js +50 -51
  222. package/dist/index206.js.map +1 -1
  223. package/dist/index207.js +25 -11
  224. package/dist/index207.js.map +1 -1
  225. package/dist/index208.js +41 -37
  226. package/dist/index208.js.map +1 -1
  227. package/dist/index209.js +39 -8
  228. package/dist/index209.js.map +1 -1
  229. package/dist/index210.js +45 -117
  230. package/dist/index210.js.map +1 -1
  231. package/dist/index211.js +20 -17
  232. package/dist/index211.js.map +1 -1
  233. package/dist/index212.js +69 -14
  234. package/dist/index212.js.map +1 -1
  235. package/dist/index213.js +17 -3
  236. package/dist/index213.js.map +1 -1
  237. package/dist/index214.js +11 -36
  238. package/dist/index214.js.map +1 -1
  239. package/dist/index215.js +27 -20
  240. package/dist/index215.js.map +1 -1
  241. package/dist/index216.js +13 -9
  242. package/dist/index216.js.map +1 -1
  243. package/dist/index217.js +18 -8
  244. package/dist/index217.js.map +1 -1
  245. package/dist/index218.js +35 -18
  246. package/dist/index218.js.map +1 -1
  247. package/dist/index219.js +260 -26
  248. package/dist/index219.js.map +1 -1
  249. package/dist/index220.js +277 -15
  250. package/dist/index220.js.map +1 -1
  251. package/dist/index221.js +66 -64
  252. package/dist/index221.js.map +1 -1
  253. package/dist/index222.js +99 -8
  254. package/dist/index222.js.map +1 -1
  255. package/dist/index223.js +82 -10
  256. package/dist/index223.js.map +1 -1
  257. package/dist/index224.js +3 -8
  258. package/dist/index224.js.map +1 -1
  259. package/dist/index225.js +29 -5
  260. package/dist/index225.js.map +1 -1
  261. package/dist/index226.js +16 -13
  262. package/dist/index226.js.map +1 -1
  263. package/dist/index227.js +35 -4
  264. package/dist/index227.js.map +1 -1
  265. package/dist/index228.js +16 -3
  266. package/dist/index228.js.map +1 -1
  267. package/dist/index229.js +3 -99
  268. package/dist/index229.js.map +1 -1
  269. package/dist/index230.js +24 -27
  270. package/dist/index230.js.map +1 -1
  271. package/dist/index231.js +27 -50
  272. package/dist/index231.js.map +1 -1
  273. package/dist/index232.js +4 -18
  274. package/dist/index232.js.map +1 -1
  275. package/dist/index233.js +78 -5
  276. package/dist/index233.js.map +1 -1
  277. package/dist/index234.js +260 -113
  278. package/dist/index234.js.map +1 -1
  279. package/dist/index235.js +11 -27
  280. package/dist/index235.js.map +1 -1
  281. package/dist/index236.js +10 -32
  282. package/dist/index236.js.map +1 -1
  283. package/dist/index237.js +25 -73
  284. package/dist/index237.js.map +1 -1
  285. package/dist/index238.js +14 -260
  286. package/dist/index238.js.map +1 -1
  287. package/dist/index239.js +121 -24
  288. package/dist/index239.js.map +1 -1
  289. package/dist/index240.js +5 -6
  290. package/dist/index240.js.map +1 -1
  291. package/dist/index241.js +40 -142
  292. package/dist/index241.js.map +1 -1
  293. package/dist/index242.js +57 -53
  294. package/dist/index242.js.map +1 -1
  295. package/dist/index243.js +13 -49
  296. package/dist/index243.js.map +1 -1
  297. package/dist/index244.js +8 -15
  298. package/dist/index244.js.map +1 -1
  299. package/dist/index245.js +4 -132
  300. package/dist/index245.js.map +1 -1
  301. package/dist/index246.js +3 -8
  302. package/dist/index246.js.map +1 -1
  303. package/dist/index247.js +10 -4
  304. package/dist/index247.js.map +1 -1
  305. package/dist/index248.js +8 -4
  306. package/dist/index248.js.map +1 -1
  307. package/dist/index249.js +133 -11
  308. package/dist/index249.js.map +1 -1
  309. package/dist/index250.js +397 -19
  310. package/dist/index250.js.map +1 -1
  311. package/dist/index251.js +53 -20
  312. package/dist/index251.js.map +1 -1
  313. package/dist/index252.js +11 -11
  314. package/dist/index252.js.map +1 -1
  315. package/dist/index253.js +11 -50
  316. package/dist/index253.js.map +1 -1
  317. package/dist/index254.js +58 -16
  318. package/dist/index254.js.map +1 -1
  319. package/dist/index255.js +8 -21
  320. package/dist/index255.js.map +1 -1
  321. package/dist/index256.js +64 -49
  322. package/dist/index256.js.map +1 -1
  323. package/dist/index257.js +19 -25
  324. package/dist/index257.js.map +1 -1
  325. package/dist/index258.js +16 -41
  326. package/dist/index258.js.map +1 -1
  327. package/dist/index259.js +5 -39
  328. package/dist/index259.js.map +1 -1
  329. package/dist/index260.js +6 -45
  330. package/dist/index260.js.map +1 -1
  331. package/dist/index261.js +6 -20
  332. package/dist/index261.js.map +1 -1
  333. package/dist/index262.js +4 -70
  334. package/dist/index262.js.map +1 -1
  335. package/dist/index263.js +6 -17
  336. package/dist/index263.js.map +1 -1
  337. package/dist/index264.js +16 -11
  338. package/dist/index264.js.map +1 -1
  339. package/dist/index265.js +4 -13
  340. package/dist/index265.js.map +1 -1
  341. package/dist/index266.js +4 -18
  342. package/dist/index266.js.map +1 -1
  343. package/dist/index267.js +12 -36
  344. package/dist/index267.js.map +1 -1
  345. package/dist/index268.js +9 -278
  346. package/dist/index268.js.map +1 -1
  347. package/dist/index269.js +13 -68
  348. package/dist/index269.js.map +1 -1
  349. package/dist/index270.js +13 -83
  350. package/dist/index270.js.map +1 -1
  351. package/dist/index271.js +4 -3
  352. package/dist/index271.js.map +1 -1
  353. package/dist/index272.js +5 -29
  354. package/dist/index272.js.map +1 -1
  355. package/dist/index273.js +6 -16
  356. package/dist/index273.js.map +1 -1
  357. package/dist/index274.js +6 -35
  358. package/dist/index274.js.map +1 -1
  359. package/dist/index275.js +52 -14
  360. package/dist/index275.js.map +1 -1
  361. package/dist/index276.js +8 -3
  362. package/dist/index276.js.map +1 -1
  363. package/dist/index277.js +4 -26
  364. package/dist/index277.js.map +1 -1
  365. package/dist/index278.js +5 -4
  366. package/dist/index278.js.map +1 -1
  367. package/dist/index279.js +8 -78
  368. package/dist/index279.js.map +1 -1
  369. package/dist/index280.js +4 -269
  370. package/dist/index280.js.map +1 -1
  371. package/dist/index281.js +4 -11
  372. package/dist/index281.js.map +1 -1
  373. package/dist/index282.js +3 -10
  374. package/dist/index282.js.map +1 -1
  375. package/dist/index283.js +10 -25
  376. package/dist/index283.js.map +1 -1
  377. package/dist/index284.js +9 -16
  378. package/dist/index284.js.map +1 -1
  379. package/dist/index285.js +9 -125
  380. package/dist/index285.js.map +1 -1
  381. package/dist/index286.js +10 -5
  382. package/dist/index286.js.map +1 -1
  383. package/dist/index287.js +10 -40
  384. package/dist/index287.js.map +1 -1
  385. package/dist/index288.js +9 -65
  386. package/dist/index288.js.map +1 -1
  387. package/dist/index289.js +7 -14
  388. package/dist/index289.js.map +1 -1
  389. package/dist/index290.js +5 -7
  390. package/dist/index290.js.map +1 -1
  391. package/dist/index291.js +4 -5
  392. package/dist/index291.js.map +1 -1
  393. package/dist/index292.js +5 -3
  394. package/dist/index292.js.map +1 -1
  395. package/dist/index293.js +6 -10
  396. package/dist/index293.js.map +1 -1
  397. package/dist/index294.js +5 -7
  398. package/dist/index294.js.map +1 -1
  399. package/dist/index295.js +14 -397
  400. package/dist/index295.js.map +1 -1
  401. package/dist/index296.js +7 -52
  402. package/dist/index296.js.map +1 -1
  403. package/dist/index297.js +10 -11
  404. package/dist/index297.js.map +1 -1
  405. package/dist/index298.js +10 -11
  406. package/dist/index298.js.map +1 -1
  407. package/dist/index299.js +21 -58
  408. package/dist/index299.js.map +1 -1
  409. package/dist/index300.js +10 -8
  410. package/dist/index300.js.map +1 -1
  411. package/dist/index301.js +9 -66
  412. package/dist/index301.js.map +1 -1
  413. package/dist/index302.js +9 -19
  414. package/dist/index302.js.map +1 -1
  415. package/dist/index303.js +4 -16
  416. package/dist/index303.js.map +1 -1
  417. package/dist/index304.js +5 -5
  418. package/dist/index304.js.map +1 -1
  419. package/dist/index305.js +15 -4
  420. package/dist/index305.js.map +1 -1
  421. package/dist/index306.js +9 -6
  422. package/dist/index306.js.map +1 -1
  423. package/dist/index307.js +18 -4
  424. package/dist/index307.js.map +1 -1
  425. package/dist/index308.js +15 -6
  426. package/dist/index308.js.map +1 -1
  427. package/dist/index309.js +12 -16
  428. package/dist/index309.js.map +1 -1
  429. package/dist/index31.js +24 -24
  430. package/dist/index310.js +29 -4
  431. package/dist/index310.js.map +1 -1
  432. package/dist/index311.js +12 -4
  433. package/dist/index311.js.map +1 -1
  434. package/dist/index312.js +25 -12
  435. package/dist/index312.js.map +1 -1
  436. package/dist/index313.js +5 -9
  437. package/dist/index313.js.map +1 -1
  438. package/dist/index314.js +8 -13
  439. package/dist/index314.js.map +1 -1
  440. package/dist/index315.js +11 -13
  441. package/dist/index315.js.map +1 -1
  442. package/dist/index316.js +8 -4
  443. package/dist/index316.js.map +1 -1
  444. package/dist/index317.js +13 -5
  445. package/dist/index317.js.map +1 -1
  446. package/dist/index318.js +3 -6
  447. package/dist/index318.js.map +1 -1
  448. package/dist/index319.js +3 -5
  449. package/dist/index319.js.map +1 -1
  450. package/dist/index32.js +3 -3
  451. package/dist/index320.js +16 -53
  452. package/dist/index320.js.map +1 -1
  453. package/dist/index321.js +5 -8
  454. package/dist/index321.js.map +1 -1
  455. package/dist/index322.js +51 -4
  456. package/dist/index322.js.map +1 -1
  457. package/dist/index323.js +122 -4
  458. package/dist/index323.js.map +1 -1
  459. package/dist/index324.js +32 -8
  460. package/dist/index324.js.map +1 -1
  461. package/dist/index325.js +73 -4
  462. package/dist/index325.js.map +1 -1
  463. package/dist/index326.js +142 -4
  464. package/dist/index326.js.map +1 -1
  465. package/dist/index327.js +61 -3
  466. package/dist/index327.js.map +1 -1
  467. package/dist/index328.js +49 -10
  468. package/dist/index328.js.map +1 -1
  469. package/dist/index329.js +15 -10
  470. package/dist/index329.js.map +1 -1
  471. package/dist/index330.js +8 -9
  472. package/dist/index330.js.map +1 -1
  473. package/dist/index331.js +5 -11
  474. package/dist/index331.js.map +1 -1
  475. package/dist/index332.js +11 -10
  476. package/dist/index332.js.map +1 -1
  477. package/dist/index333.js +21 -9
  478. package/dist/index333.js.map +1 -1
  479. package/dist/index334.js +13 -6
  480. package/dist/index334.js.map +1 -1
  481. package/dist/index335.js +154 -5
  482. package/dist/index335.js.map +1 -1
  483. package/dist/index336.js +30 -4
  484. package/dist/index336.js.map +1 -1
  485. package/dist/index337.js +9 -5
  486. package/dist/index337.js.map +1 -1
  487. package/dist/index338.js +48 -6
  488. package/dist/index338.js.map +1 -1
  489. package/dist/index339.js +11 -5
  490. package/dist/index339.js.map +1 -1
  491. package/dist/index34.js +4 -4
  492. package/dist/index340.js +42 -14
  493. package/dist/index340.js.map +1 -1
  494. package/dist/index341.js +95 -7
  495. package/dist/index341.js.map +1 -1
  496. package/dist/index342.js +85 -9
  497. package/dist/index342.js.map +1 -1
  498. package/dist/index343.js +104 -9
  499. package/dist/index343.js.map +1 -1
  500. package/dist/index344.js +52 -21
  501. package/dist/index344.js.map +1 -1
  502. package/dist/index345.js +11 -10
  503. package/dist/index345.js.map +1 -1
  504. package/dist/index346.js +37 -9
  505. package/dist/index346.js.map +1 -1
  506. package/dist/index347.js +7 -8
  507. package/dist/index347.js.map +1 -1
  508. package/dist/index348.js +116 -4
  509. package/dist/index348.js.map +1 -1
  510. package/dist/index349.js +17 -5
  511. package/dist/index349.js.map +1 -1
  512. package/dist/index35.js +5 -5
  513. package/dist/index350.js +14 -15
  514. package/dist/index350.js.map +1 -1
  515. package/dist/index351.js +3 -9
  516. package/dist/index351.js.map +1 -1
  517. package/dist/index352.js +34 -16
  518. package/dist/index352.js.map +1 -1
  519. package/dist/index353.js +20 -15
  520. package/dist/index353.js.map +1 -1
  521. package/dist/index354.js +9 -12
  522. package/dist/index354.js.map +1 -1
  523. package/dist/index355.js +8 -29
  524. package/dist/index355.js.map +1 -1
  525. package/dist/index356.js +18 -11
  526. package/dist/index356.js.map +1 -1
  527. package/dist/index357.js +26 -23
  528. package/dist/index357.js.map +1 -1
  529. package/dist/index358.js +16 -5
  530. package/dist/index358.js.map +1 -1
  531. package/dist/index359.js +4 -21
  532. package/dist/index359.js.map +1 -1
  533. package/dist/index36.js +10 -10
  534. package/dist/index360.js +11 -8
  535. package/dist/index360.js.map +1 -1
  536. package/dist/index361.js +16 -25
  537. package/dist/index361.js.map +1 -1
  538. package/dist/index362.js +5 -26
  539. package/dist/index362.js.map +1 -1
  540. package/dist/index363.js +19 -136
  541. package/dist/index363.js.map +1 -1
  542. package/dist/index364.js +44 -12
  543. package/dist/index364.js.map +1 -1
  544. package/dist/index365.js +15 -224
  545. package/dist/index365.js.map +1 -1
  546. package/dist/index366.js +5 -4
  547. package/dist/index366.js.map +1 -1
  548. package/dist/index367.js +199 -18
  549. package/dist/index367.js.map +1 -1
  550. package/dist/index368.js +76 -76
  551. package/dist/index368.js.map +1 -1
  552. package/dist/index369.js +5 -12
  553. package/dist/index369.js.map +1 -1
  554. package/dist/index37.js +3 -3
  555. package/dist/index370.js +18 -4
  556. package/dist/index370.js.map +1 -1
  557. package/dist/index371.js +12 -77
  558. package/dist/index371.js.map +1 -1
  559. package/dist/index372.js +7 -199
  560. package/dist/index372.js.map +1 -1
  561. package/dist/index373.js +25 -71
  562. package/dist/index373.js.map +1 -1
  563. package/dist/index374.js +27 -9
  564. package/dist/index374.js.map +1 -1
  565. package/dist/index375.js +137 -16
  566. package/dist/index375.js.map +1 -1
  567. package/dist/index376.js +12 -15
  568. package/dist/index376.js.map +1 -1
  569. package/dist/index377.js +227 -4
  570. package/dist/index377.js.map +1 -1
  571. package/dist/index378.js +3 -11
  572. package/dist/index378.js.map +1 -1
  573. package/dist/index379.js +19 -5
  574. package/dist/index379.js.map +1 -1
  575. package/dist/index38.js +4 -4
  576. package/dist/index380.js +76 -19
  577. package/dist/index380.js.map +1 -1
  578. package/dist/index381.js +12 -45
  579. package/dist/index381.js.map +1 -1
  580. package/dist/index382.js +4 -18
  581. package/dist/index382.js.map +1 -1
  582. package/dist/index383.js +71 -4
  583. package/dist/index383.js.map +1 -1
  584. package/dist/index384.js +9 -5
  585. package/dist/index384.js.map +1 -1
  586. package/dist/index385.js +16 -18
  587. package/dist/index385.js.map +1 -1
  588. package/dist/index386.js +20 -12
  589. package/dist/index386.js.map +1 -1
  590. package/dist/index387.js +3 -15
  591. package/dist/index387.js.map +1 -1
  592. package/dist/index388.js +3 -492
  593. package/dist/index388.js.map +1 -1
  594. package/dist/index389.js +5 -3
  595. package/dist/index389.js.map +1 -1
  596. package/dist/index39.js +5 -5
  597. package/dist/index390.js +5 -3
  598. package/dist/index390.js.map +1 -1
  599. package/dist/index391.js +4 -5
  600. package/dist/index391.js.map +1 -1
  601. package/dist/index392.js +15 -4
  602. package/dist/index392.js.map +1 -1
  603. package/dist/index393.js +9 -4
  604. package/dist/index393.js.map +1 -1
  605. package/dist/index394.js +5 -15
  606. package/dist/index394.js.map +1 -1
  607. package/dist/index395.js +4 -8
  608. package/dist/index395.js.map +1 -1
  609. package/dist/index396.js +545 -5
  610. package/dist/index396.js.map +1 -1
  611. package/dist/index397.js +47 -5
  612. package/dist/index397.js.map +1 -1
  613. package/dist/index398.js +15 -543
  614. package/dist/index398.js.map +1 -1
  615. package/dist/index399.js +6 -47
  616. package/dist/index399.js.map +1 -1
  617. package/dist/index40.js +3 -3
  618. package/dist/index400.js +7 -17
  619. package/dist/index400.js.map +1 -1
  620. package/dist/index401.js +6 -5
  621. package/dist/index401.js.map +1 -1
  622. package/dist/index402.js +7 -7
  623. package/dist/index402.js.map +1 -1
  624. package/dist/index403.js +11 -6
  625. package/dist/index403.js.map +1 -1
  626. package/dist/index404.js +8 -7
  627. package/dist/index404.js.map +1 -1
  628. package/dist/index405.js +12 -11
  629. package/dist/index405.js.map +1 -1
  630. package/dist/index406.js +14 -8
  631. package/dist/index406.js.map +1 -1
  632. package/dist/index407.js +491 -12
  633. package/dist/index407.js.map +1 -1
  634. package/dist/index41.js +10 -10
  635. package/dist/index410.js +1 -1
  636. package/dist/index411.js +1 -1
  637. package/dist/index414.js +1 -1
  638. package/dist/index415.js +1 -1
  639. package/dist/index423.js +2 -2
  640. package/dist/index425.js +2 -2
  641. package/dist/index44.js +23 -22
  642. package/dist/index44.js.map +1 -1
  643. package/dist/index45.js +22 -196
  644. package/dist/index45.js.map +1 -1
  645. package/dist/index48.js +2 -2
  646. package/dist/index49.js +34 -34
  647. package/dist/index50.js +29 -29
  648. package/dist/index51.js +2 -2
  649. package/dist/index52.js +12 -12
  650. package/dist/index53.js +4 -4
  651. package/dist/index54.js +1 -1
  652. package/dist/index55.js +22 -22
  653. package/dist/index56.js +5 -5
  654. package/dist/index57.js +5 -5
  655. package/dist/index58.js +8 -8
  656. package/dist/index59.js +5 -5
  657. package/dist/index60.js +17 -17
  658. package/dist/index61.js +5 -5
  659. package/dist/index62.js +3 -3
  660. package/dist/index66.js +1 -1
  661. package/dist/index67.js +1 -1
  662. package/dist/index70.js +1 -1
  663. package/dist/index71.js +1 -1
  664. package/dist/index72.js +2 -6
  665. package/dist/index72.js.map +1 -1
  666. package/dist/index73.js +2 -8
  667. package/dist/index73.js.map +1 -1
  668. package/dist/index74.js +2 -6
  669. package/dist/index74.js.map +1 -1
  670. package/dist/index75.js +2 -2
  671. package/dist/index76.js +6 -2
  672. package/dist/index76.js.map +1 -1
  673. package/dist/index77.js +8 -2
  674. package/dist/index77.js.map +1 -1
  675. package/dist/index78.js +6 -2
  676. package/dist/index78.js.map +1 -1
  677. package/dist/index79.js +52 -6
  678. package/dist/index79.js.map +1 -1
  679. package/dist/index80.js +4 -68
  680. package/dist/index80.js.map +1 -1
  681. package/dist/index81.js +5 -2
  682. package/dist/index81.js.map +1 -1
  683. package/dist/index82.js +15 -363
  684. package/dist/index82.js.map +1 -1
  685. package/dist/index83.js +5 -261
  686. package/dist/index83.js.map +1 -1
  687. package/dist/index84.js +7 -60
  688. package/dist/index84.js.map +1 -1
  689. package/dist/index85.js +16 -46
  690. package/dist/index85.js.map +1 -1
  691. package/dist/index86.js +4 -169
  692. package/dist/index86.js.map +1 -1
  693. package/dist/index87.js +4 -109
  694. package/dist/index87.js.map +1 -1
  695. package/dist/index88.js +5 -24
  696. package/dist/index88.js.map +1 -1
  697. package/dist/index89.js +6 -8
  698. package/dist/index89.js.map +1 -1
  699. package/dist/index90.js +4 -4
  700. package/dist/index90.js.map +1 -1
  701. package/dist/index91.js +4 -5
  702. package/dist/index91.js.map +1 -1
  703. package/dist/index92.js +6 -4
  704. package/dist/index92.js.map +1 -1
  705. package/dist/index93.js +24 -466
  706. package/dist/index93.js.map +1 -1
  707. package/dist/index94.js +6 -185
  708. package/dist/index94.js.map +1 -1
  709. package/dist/index95.js +4 -107
  710. package/dist/index95.js.map +1 -1
  711. package/dist/index96.js +6 -262
  712. package/dist/index96.js.map +1 -1
  713. package/dist/index97.js +5 -9
  714. package/dist/index97.js.map +1 -1
  715. package/dist/index98.js +4 -42
  716. package/dist/index98.js.map +1 -1
  717. package/dist/index99.js +5 -4
  718. package/dist/index99.js.map +1 -1
  719. package/package.json +1 -1
package/dist/index113.js CHANGED
@@ -1,265 +1,35 @@
1
- import * as p from "react";
2
- import { isHTMLElement as G, getNodeName as We, getWindow as _e } from "./index245.js";
3
- import { addEventListener as I } from "./index286.js";
4
- import { mergeCleanups as Te } from "./index360.js";
5
- import { useMergedRefs as Fe } from "./index221.js";
6
- import { useValueAsRef as te } from "./index254.js";
7
- import { useStableCallback as ne } from "./index230.js";
8
- import { useIsoLayoutEffect as _ } from "./index248.js";
9
- import { useTimeout as ye } from "./index272.js";
10
- import { isWebKit as Ue } from "./index287.js";
11
- import { useAnimationFrame as $e } from "./index288.js";
12
- import { ownerDocument as O } from "./index271.js";
13
- import { FocusGuard as xe } from "./index361.js";
14
- import { isTypeableCombobox as Ie, getFloatingFocusElement as he, isTypeableElement as Be } from "./index277.js";
15
- import { isVirtualClick as ze, isVirtualPointerEvent as Je, stopEvent as Qe } from "./index362.js";
16
- import { isOutsideEvent as ve, getNextTabbable as Xe, getPreviousTabbable as Ye, tabbable as Se, isTabbable as ue, focusable as Ze } from "./index363.js";
17
- import { getNodeAncestors as Ce, getNodeChildren as ke } from "./index364.js";
18
- import { isElementVisible as et } from "./index365.js";
19
- import { createChangeEventDetails as tt } from "./index104.js";
20
- import { createAttribute as Ae } from "./index366.js";
21
- import { enqueueFocus as re } from "./index367.js";
22
- import { markOthers as Oe } from "./index368.js";
23
- import { usePortalContext as nt } from "./index116.js";
24
- import { useFloatingTree as rt } from "./index369.js";
25
- import { CLICK_TRIGGER_IDENTIFIER as ot } from "./index121.js";
26
- import { resolveRef as w } from "./index370.js";
27
- import { j as oe } from "./index30.js";
28
- import { activeElement as V, contains as a, getTarget as B } from "./index239.js";
29
- import { triggerHover as st, outsidePress as ut, focusOut as it } from "./index106.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
- });
1
+ import * as o from "./index138.js";
2
+ import { labelWeekday as b } from "./index146.js";
3
+ import { labelWeekNumberHeader as i } from "./index148.js";
4
+ import { labelNav as n } from "./index143.js";
5
+ import { labelGridcell as t } from "./index141.js";
6
+ import { labelGrid as d } from "./index140.js";
7
+ import { labelYearDropdown as p } from "./index149.js";
8
+ import { labelWeekNumber as m } from "./index147.js";
9
+ import { labelPrevious as f } from "./index145.js";
10
+ import { labelNext as N } from "./index144.js";
11
+ import { labelMonthDropdown as k } from "./index142.js";
12
+ import { labelDayButton as D } from "./index139.js";
13
+ const r = (l, a, e) => a || (e ? typeof e == "function" ? e : (...W) => e : l);
14
+ function Y(l, a) {
15
+ const e = a.locale?.labels ?? {};
16
+ return {
17
+ ...o,
18
+ ...l ?? {},
19
+ labelDayButton: r(D, l?.labelDayButton, e.labelDayButton),
20
+ labelMonthDropdown: r(k, l?.labelMonthDropdown, e.labelMonthDropdown),
21
+ labelNext: r(N, l?.labelNext, e.labelNext),
22
+ labelPrevious: r(f, l?.labelPrevious, e.labelPrevious),
23
+ labelWeekNumber: r(m, l?.labelWeekNumber, e.labelWeekNumber),
24
+ labelYearDropdown: r(p, l?.labelYearDropdown, e.labelYearDropdown),
25
+ labelGrid: r(d, l?.labelGrid, e.labelGrid),
26
+ labelGridcell: r(t, l?.labelGridcell, e.labelGridcell),
27
+ labelNav: r(n, l?.labelNav, e.labelNav),
28
+ labelWeekNumberHeader: r(i, l?.labelWeekNumberHeader, e.labelWeekNumberHeader),
29
+ labelWeekday: r(b, l?.labelWeekday, e.labelWeekday)
30
+ };
261
31
  }
262
32
  export {
263
- Lt as FloatingFocusManager
33
+ Y as getLabels
264
34
  };
265
35
  //# sourceMappingURL=index113.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index113.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","_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,GAAYD,CAAO,MAAM,WACtCJ,EAA0B,KAAK,IAAI,QAAQI,CAAO,CAAC,GAC/CJ,EAA0B,SAASD,OACrCC,IAA4BA,EAA0B,MAAM,CAACD,EAAU;AAG7E;AACA,SAASO,KAA8B;AACrC,SAAAL,GAA0C,GACnCD,EAA0BA,EAA0B,SAAS,CAAC,GAAG,MAAK;AAC/E;AACA,SAASO,GAAwBC,GAAW;AAC1C,SAAKA,IAGDC,GAAWD,CAAS,IACfA,IAEFE,GAASF,CAAS,EAAE,CAAC,KAAKA,IALxB;AAMX;AACA,SAASG,GAAeC,GAAsBC,GAAU;AAItD,MAHID,EAAqB,aAAa,UAAU,KAAK,CAACA,EAAqB,aAAa,eAAe,KAGnG,CAACC,EAAS,QAAQ,SAAS,UAAU,KAAK,CAACD,EAAqB,aAAa,MAAM,GAAG,SAAS,QAAQ;AACzG;AAGF,QAAME,IADoBC,GAAUH,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helpers/getLabels.js"],"sourcesContent":["import * as defaultLabels from \"../labels/index.js\";\nconst resolveLabel = (defaultLabel, customLabel, localeLabel) => {\n if (customLabel)\n return customLabel;\n if (localeLabel) {\n return (typeof localeLabel === \"function\"\n ? localeLabel\n : (..._args) => localeLabel);\n }\n return defaultLabel;\n};\n/**\n * Merges custom labels from the props with the default labels.\n *\n * When available, uses the locale-provided translation for `labelNext`.\n *\n * @param customLabels The custom labels provided in the DayPicker props.\n * @param options Options from the date library, used to resolve locale\n * translations.\n * @returns The merged labels object with locale-aware defaults.\n */\nexport function getLabels(customLabels, options) {\n const localeLabels = options.locale?.labels ?? {};\n return {\n ...defaultLabels,\n ...(customLabels ?? {}),\n labelDayButton: resolveLabel(defaultLabels.labelDayButton, customLabels?.labelDayButton, localeLabels.labelDayButton),\n labelMonthDropdown: resolveLabel(defaultLabels.labelMonthDropdown, customLabels?.labelMonthDropdown, localeLabels.labelMonthDropdown),\n labelNext: resolveLabel(defaultLabels.labelNext, customLabels?.labelNext, localeLabels.labelNext),\n labelPrevious: resolveLabel(defaultLabels.labelPrevious, customLabels?.labelPrevious, localeLabels.labelPrevious),\n labelWeekNumber: resolveLabel(defaultLabels.labelWeekNumber, customLabels?.labelWeekNumber, localeLabels.labelWeekNumber),\n labelYearDropdown: resolveLabel(defaultLabels.labelYearDropdown, customLabels?.labelYearDropdown, localeLabels.labelYearDropdown),\n labelGrid: resolveLabel(defaultLabels.labelGrid, customLabels?.labelGrid, localeLabels.labelGrid),\n labelGridcell: resolveLabel(defaultLabels.labelGridcell, customLabels?.labelGridcell, localeLabels.labelGridcell),\n labelNav: resolveLabel(defaultLabels.labelNav, customLabels?.labelNav, localeLabels.labelNav),\n labelWeekNumberHeader: resolveLabel(defaultLabels.labelWeekNumberHeader, customLabels?.labelWeekNumberHeader, localeLabels.labelWeekNumberHeader),\n labelWeekday: resolveLabel(defaultLabels.labelWeekday, customLabels?.labelWeekday, localeLabels.labelWeekday),\n };\n}\n"],"names":["resolveLabel","defaultLabel","customLabel","localeLabel","_args","getLabels","customLabels","options","localeLabels","defaultLabels","defaultLabels.labelDayButton","defaultLabels.labelMonthDropdown","defaultLabels.labelNext","defaultLabels.labelPrevious","defaultLabels.labelWeekNumber","defaultLabels.labelYearDropdown","defaultLabels.labelGrid","defaultLabels.labelGridcell","defaultLabels.labelNav","defaultLabels.labelWeekNumberHeader","defaultLabels.labelWeekday"],"mappings":";;;;;;;;;;;;AACA,MAAMA,IAAe,CAACC,GAAcC,GAAaC,MACzCD,MAEAC,IACQ,OAAOA,KAAgB,aACzBA,IACA,IAAIC,MAAUD,IAEjBF;AAYJ,SAASI,EAAUC,GAAcC,GAAS;AAC7C,QAAMC,IAAeD,EAAQ,QAAQ,UAAU,CAAA;AAC/C,SAAO;AAAA,IACH,GAAGE;AAAAA,IACH,GAAIH,KAAgB,CAAA;AAAA,IACpB,gBAAgBN,EAAaU,GAA8BJ,GAAc,gBAAgBE,EAAa,cAAc;AAAA,IACpH,oBAAoBR,EAAaW,GAAkCL,GAAc,oBAAoBE,EAAa,kBAAkB;AAAA,IACpI,WAAWR,EAAaY,GAAyBN,GAAc,WAAWE,EAAa,SAAS;AAAA,IAChG,eAAeR,EAAaa,GAA6BP,GAAc,eAAeE,EAAa,aAAa;AAAA,IAChH,iBAAiBR,EAAac,GAA+BR,GAAc,iBAAiBE,EAAa,eAAe;AAAA,IACxH,mBAAmBR,EAAae,GAAiCT,GAAc,mBAAmBE,EAAa,iBAAiB;AAAA,IAChI,WAAWR,EAAagB,GAAyBV,GAAc,WAAWE,EAAa,SAAS;AAAA,IAChG,eAAeR,EAAaiB,GAA6BX,GAAc,eAAeE,EAAa,aAAa;AAAA,IAChH,UAAUR,EAAakB,GAAwBZ,GAAc,UAAUE,EAAa,QAAQ;AAAA,IAC5F,uBAAuBR,EAAamB,GAAqCb,GAAc,uBAAuBE,EAAa,qBAAqB;AAAA,IAChJ,cAAcR,EAAaoB,GAA4Bd,GAAc,cAAcE,EAAa,YAAY;AAAA,EACpH;AACA;","x_google_ignoreList":[0]}
package/dist/index114.js CHANGED
@@ -1,8 +1,14 @@
1
- import { isReactVersionAtLeast as r } from "./index233.js";
2
- function n(e) {
3
- return r(19) ? e : e ? "true" : void 0;
1
+ function d(o, n, s, a, e) {
2
+ const { startOfMonth: r, startOfYear: c, endOfYear: f, eachMonthOfInterval: l, getMonth: p } = e;
3
+ return l({
4
+ start: c(o),
5
+ end: f(o)
6
+ }).map((t) => {
7
+ const O = a.formatMonthDropdown(t, e), h = p(t), u = n && t < r(n) || s && t > r(s) || !1;
8
+ return { value: h, label: O, disabled: u };
9
+ });
4
10
  }
5
11
  export {
6
- n as inertValue
12
+ d as getMonthOptions
7
13
  };
8
14
  //# sourceMappingURL=index114.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index114.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]}
1
+ {"version":3,"file":"index114.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js"],"sourcesContent":["/**\n * Returns the months to show in the dropdown.\n *\n * This function generates a list of months for the current year, formatted\n * using the provided formatter, and determines whether each month should be\n * disabled based on the navigation range.\n *\n * @param displayMonth The currently displayed month.\n * @param navStart The start date for navigation.\n * @param navEnd The end date for navigation.\n * @param formatters The formatters to use for formatting the month labels.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dropdown options representing the months, or `undefined`\n * if no months are available.\n */\nexport function getMonthOptions(displayMonth, navStart, navEnd, formatters, dateLib) {\n const { startOfMonth, startOfYear, endOfYear, eachMonthOfInterval, getMonth, } = dateLib;\n const months = eachMonthOfInterval({\n start: startOfYear(displayMonth),\n end: endOfYear(displayMonth),\n });\n const options = months.map((month) => {\n const label = formatters.formatMonthDropdown(month, dateLib);\n const value = getMonth(month);\n const disabled = (navStart && month < startOfMonth(navStart)) ||\n (navEnd && month > startOfMonth(navEnd)) ||\n false;\n return { value, label, disabled };\n });\n return options;\n}\n"],"names":["getMonthOptions","displayMonth","navStart","navEnd","formatters","dateLib","startOfMonth","startOfYear","endOfYear","eachMonthOfInterval","getMonth","month","label","value","disabled"],"mappings":"AAeO,SAASA,EAAgBC,GAAcC,GAAUC,GAAQC,GAAYC,GAAS;AACjF,QAAM,EAAE,cAAAC,GAAc,aAAAC,GAAa,WAAAC,GAAW,qBAAAC,GAAqB,UAAAC,EAAQ,IAAML;AAajF,SAZeI,EAAoB;AAAA,IAC/B,OAAOF,EAAYN,CAAY;AAAA,IAC/B,KAAKO,EAAUP,CAAY;AAAA,EACnC,CAAK,EACsB,IAAI,CAACU,MAAU;AAClC,UAAMC,IAAQR,EAAW,oBAAoBO,GAAON,CAAO,GACrDQ,IAAQH,EAASC,CAAK,GACtBG,IAAYZ,KAAYS,IAAQL,EAAaJ,CAAQ,KACtDC,KAAUQ,IAAQL,EAAaH,CAAM,KACtC;AACJ,WAAO,EAAE,OAAAU,GAAO,OAAAD,GAAO,UAAAE,EAAQ;AAAA,EACnC,CAAC;AAEL;","x_google_ignoreList":[0]}
package/dist/index115.js CHANGED
@@ -1,31 +1,14 @@
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");
1
+ import { UI as f } from "./index119.js";
2
+ function n(r, o = {}, i = {}) {
3
+ let e = { ...o?.[f.Day] };
4
+ return Object.entries(r).filter(([, t]) => t === !0).forEach(([t]) => {
5
+ e = {
6
+ ...e,
7
+ ...i?.[t]
8
+ };
9
+ }), e;
10
+ }
28
11
  export {
29
- a as InternalBackdrop
12
+ n as getStyleForModifiers
30
13
  };
31
14
  //# sourceMappingURL=index115.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index115.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]}
1
+ {"version":3,"file":"index115.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js"],"sourcesContent":["import { UI } from \"../UI.js\";\n/**\n * Returns the computed style for a day based on its modifiers.\n *\n * This function merges the base styles for the day with any styles associated\n * with active modifiers.\n *\n * @param dayModifiers The modifiers applied to the day.\n * @param styles The base styles for the calendar elements.\n * @param modifiersStyles The styles associated with specific modifiers.\n * @returns The computed style for the day.\n */\nexport function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {\n let style = { ...styles?.[UI.Day] };\n Object.entries(dayModifiers)\n .filter(([, active]) => active === true)\n .forEach(([modifier]) => {\n style = {\n ...style,\n ...modifiersStyles?.[modifier],\n };\n });\n return style;\n}\n"],"names":["getStyleForModifiers","dayModifiers","styles","modifiersStyles","style","UI","active","modifier"],"mappings":";AAYO,SAASA,EAAqBC,GAAcC,IAAS,CAAA,GAAIC,IAAkB,CAAA,GAAI;AAClF,MAAIC,IAAQ,EAAE,GAAGF,IAASG,EAAG,GAAG,EAAC;AACjC,gBAAO,QAAQJ,CAAY,EACtB,OAAO,CAAC,CAAA,EAAGK,CAAM,MAAMA,MAAW,EAAI,EACtC,QAAQ,CAAC,CAACC,CAAQ,MAAM;AACzB,IAAAH,IAAQ;AAAA,MACJ,GAAGA;AAAA,MACH,GAAGD,IAAkBI,CAAQ;AAAA,IACzC;AAAA,EACI,CAAC,GACMH;AACX;","x_google_ignoreList":[0]}