@rpcbase/ui 0.253.0 → 0.254.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 (564) hide show
  1. package/dist/components/Notifications/types.d.ts +1 -0
  2. package/dist/components/Notifications/types.d.ts.map +1 -1
  3. package/dist/index10.js +2 -2
  4. package/dist/index105.js +36 -36
  5. package/dist/index106.js +1 -1
  6. package/dist/index11.js +2 -2
  7. package/dist/index117.js +6 -6
  8. package/dist/index12.js +3 -3
  9. package/dist/index120.js +10 -10
  10. package/dist/index122.js +2 -2
  11. package/dist/index123.js +3 -3
  12. package/dist/index124.js +1 -1
  13. package/dist/index126.js +2 -2
  14. package/dist/index128.js +2 -2
  15. package/dist/index13.js +2 -2
  16. package/dist/index14.js +2 -2
  17. package/dist/index15.js +2 -2
  18. package/dist/index150.js +3 -3
  19. package/dist/index156.js +1 -1
  20. package/dist/index16.js +8 -8
  21. package/dist/index163.js +2 -2
  22. package/dist/index164.js +7 -7
  23. package/dist/index167.js +4 -4
  24. package/dist/index169.js +1 -1
  25. package/dist/index17.js +1 -1
  26. package/dist/index172.js +3 -3
  27. package/dist/index175.js +1 -1
  28. package/dist/index176.js +4 -4
  29. package/dist/index18.js +7 -7
  30. package/dist/index182.js +1 -1
  31. package/dist/index184.js +4 -4
  32. package/dist/index185.js +14 -14
  33. package/dist/index187.js +1 -1
  34. package/dist/index188.js +6 -6
  35. package/dist/index189.js +2 -2
  36. package/dist/index19.js +16 -16
  37. package/dist/index192.js +2 -2
  38. package/dist/index193.js +6 -6
  39. package/dist/index194.js +59 -20
  40. package/dist/index194.js.map +1 -1
  41. package/dist/index195.js +8 -66
  42. package/dist/index195.js.map +1 -1
  43. package/dist/index196.js +87 -6
  44. package/dist/index196.js.map +1 -1
  45. package/dist/index197.js +19 -5
  46. package/dist/index197.js.map +1 -1
  47. package/dist/index198.js +16 -11
  48. package/dist/index198.js.map +1 -1
  49. package/dist/index199.js +5 -3
  50. package/dist/index199.js.map +1 -1
  51. package/dist/index200.js +4 -49
  52. package/dist/index200.js.map +1 -1
  53. package/dist/index201.js +7 -4
  54. package/dist/index201.js.map +1 -1
  55. package/dist/index202.js +4 -29
  56. package/dist/index202.js.map +1 -1
  57. package/dist/index203.js +6 -16
  58. package/dist/index203.js.map +1 -1
  59. package/dist/index204.js +16 -5
  60. package/dist/index204.js.map +1 -1
  61. package/dist/index205.js +4 -21
  62. package/dist/index205.js.map +1 -1
  63. package/dist/index206.js +4 -53
  64. package/dist/index206.js.map +1 -1
  65. package/dist/index207.js +12 -20
  66. package/dist/index207.js.map +1 -1
  67. package/dist/index208.js +9 -41
  68. package/dist/index208.js.map +1 -1
  69. package/dist/index209.js +13 -39
  70. package/dist/index209.js.map +1 -1
  71. package/dist/index21.js +1 -1
  72. package/dist/index210.js +14 -46
  73. package/dist/index210.js.map +1 -1
  74. package/dist/index211.js +4 -20
  75. package/dist/index211.js.map +1 -1
  76. package/dist/index212.js +5 -70
  77. package/dist/index212.js.map +1 -1
  78. package/dist/index213.js +6 -17
  79. package/dist/index213.js.map +1 -1
  80. package/dist/index214.js +5 -3
  81. package/dist/index214.js.map +1 -1
  82. package/dist/index215.js +54 -11
  83. package/dist/index215.js.map +1 -1
  84. package/dist/index216.js +8 -13
  85. package/dist/index216.js.map +1 -1
  86. package/dist/index217.js +4 -18
  87. package/dist/index217.js.map +1 -1
  88. package/dist/index218.js +4 -36
  89. package/dist/index218.js.map +1 -1
  90. package/dist/index219.js +8 -239
  91. package/dist/index219.js.map +1 -1
  92. package/dist/index22.js +2 -2
  93. package/dist/index220.js +4 -252
  94. package/dist/index220.js.map +1 -1
  95. package/dist/index221.js +4 -68
  96. package/dist/index221.js.map +1 -1
  97. package/dist/index222.js +3 -99
  98. package/dist/index222.js.map +1 -1
  99. package/dist/index223.js +10 -83
  100. package/dist/index223.js.map +1 -1
  101. package/dist/index224.js +9 -3
  102. package/dist/index224.js.map +1 -1
  103. package/dist/index225.js +9 -29
  104. package/dist/index225.js.map +1 -1
  105. package/dist/index226.js +10 -16
  106. package/dist/index226.js.map +1 -1
  107. package/dist/index227.js +11 -35
  108. package/dist/index227.js.map +1 -1
  109. package/dist/index228.js +9 -17
  110. package/dist/index228.js.map +1 -1
  111. package/dist/index229.js +6 -3
  112. package/dist/index229.js.map +1 -1
  113. package/dist/index23.js +1 -1
  114. package/dist/index230.js +5 -26
  115. package/dist/index230.js.map +1 -1
  116. package/dist/index231.js +4 -28
  117. package/dist/index231.js.map +1 -1
  118. package/dist/index232.js +6 -4
  119. package/dist/index232.js.map +1 -1
  120. package/dist/index233.js +6 -78
  121. package/dist/index233.js.map +1 -1
  122. package/dist/index234.js +5 -272
  123. package/dist/index234.js.map +1 -1
  124. package/dist/index235.js +28 -10
  125. package/dist/index235.js.map +1 -1
  126. package/dist/index236.js +12 -10
  127. package/dist/index236.js.map +1 -1
  128. package/dist/index237.js +25 -25
  129. package/dist/index237.js.map +1 -1
  130. package/dist/index238.js +5 -16
  131. package/dist/index238.js.map +1 -1
  132. package/dist/index239.js +15 -124
  133. package/dist/index239.js.map +1 -1
  134. package/dist/index24.js +1 -1
  135. package/dist/index240.js +7 -5
  136. package/dist/index240.js.map +1 -1
  137. package/dist/index241.js +10 -65
  138. package/dist/index241.js.map +1 -1
  139. package/dist/index242.js +10 -13
  140. package/dist/index242.js.map +1 -1
  141. package/dist/index243.js +21 -7
  142. package/dist/index243.js.map +1 -1
  143. package/dist/index244.js +8 -5
  144. package/dist/index244.js.map +1 -1
  145. package/dist/index245.js +9 -3
  146. package/dist/index245.js.map +1 -1
  147. package/dist/index246.js +9 -10
  148. package/dist/index246.js.map +1 -1
  149. package/dist/index247.js +4 -7
  150. package/dist/index247.js.map +1 -1
  151. package/dist/index248.js +5 -133
  152. package/dist/index248.js.map +1 -1
  153. package/dist/index249.js +16 -399
  154. package/dist/index249.js.map +1 -1
  155. package/dist/index25.js +1 -1
  156. package/dist/index250.js +10 -5
  157. package/dist/index250.js.map +1 -1
  158. package/dist/index251.js +17 -51
  159. package/dist/index251.js.map +1 -1
  160. package/dist/index252.js +20 -11
  161. package/dist/index252.js.map +1 -1
  162. package/dist/index253.js +12 -27
  163. package/dist/index253.js.map +1 -1
  164. package/dist/index254.js +153 -10
  165. package/dist/index254.js.map +1 -1
  166. package/dist/index255.js +32 -58
  167. package/dist/index255.js.map +1 -1
  168. package/dist/index256.js +11 -8
  169. package/dist/index256.js.map +1 -1
  170. package/dist/index257.js +43 -81
  171. package/dist/index257.js.map +1 -1
  172. package/dist/index258.js +9 -19
  173. package/dist/index258.js.map +1 -1
  174. package/dist/index259.js +11 -16
  175. package/dist/index259.js.map +1 -1
  176. package/dist/index260.js +42 -4
  177. package/dist/index260.js.map +1 -1
  178. package/dist/index261.js +96 -4
  179. package/dist/index261.js.map +1 -1
  180. package/dist/index262.js +86 -6
  181. package/dist/index262.js.map +1 -1
  182. package/dist/index263.js +105 -4
  183. package/dist/index263.js.map +1 -1
  184. package/dist/index264.js +52 -6
  185. package/dist/index264.js.map +1 -1
  186. package/dist/index265.js +11 -16
  187. package/dist/index265.js.map +1 -1
  188. package/dist/index266.js +4 -4
  189. package/dist/index266.js.map +1 -1
  190. package/dist/index267.js +37 -4
  191. package/dist/index267.js.map +1 -1
  192. package/dist/index268.js +8 -12
  193. package/dist/index268.js.map +1 -1
  194. package/dist/index269.js +135 -9
  195. package/dist/index269.js.map +1 -1
  196. package/dist/index270.js +17 -13
  197. package/dist/index270.js.map +1 -1
  198. package/dist/index271.js +15 -13
  199. package/dist/index271.js.map +1 -1
  200. package/dist/index272.js +3 -4
  201. package/dist/index272.js.map +1 -1
  202. package/dist/index273.js +36 -5
  203. package/dist/index273.js.map +1 -1
  204. package/dist/index274.js +20 -6
  205. package/dist/index274.js.map +1 -1
  206. package/dist/index275.js +9 -5
  207. package/dist/index275.js.map +1 -1
  208. package/dist/index276.js +8 -54
  209. package/dist/index276.js.map +1 -1
  210. package/dist/index277.js +24 -8
  211. package/dist/index277.js.map +1 -1
  212. package/dist/index278.js +28 -4
  213. package/dist/index278.js.map +1 -1
  214. package/dist/index279.js +16 -4
  215. package/dist/index279.js.map +1 -1
  216. package/dist/index28.js +1 -1
  217. package/dist/index280.js +20 -9
  218. package/dist/index280.js.map +1 -1
  219. package/dist/index281.js +66 -4
  220. package/dist/index281.js.map +1 -1
  221. package/dist/index282.js +6 -4
  222. package/dist/index282.js.map +1 -1
  223. package/dist/index283.js +5 -3
  224. package/dist/index283.js.map +1 -1
  225. package/dist/index284.js +11 -10
  226. package/dist/index284.js.map +1 -1
  227. package/dist/index285.js +3 -9
  228. package/dist/index285.js.map +1 -1
  229. package/dist/index286.js +50 -9
  230. package/dist/index286.js.map +1 -1
  231. package/dist/index287.js +4 -11
  232. package/dist/index287.js.map +1 -1
  233. package/dist/index288.js +29 -10
  234. package/dist/index288.js.map +1 -1
  235. package/dist/index289.js +16 -9
  236. package/dist/index289.js.map +1 -1
  237. package/dist/index29.js +3 -56
  238. package/dist/index29.js.map +1 -1
  239. package/dist/index290.js +5 -6
  240. package/dist/index290.js.map +1 -1
  241. package/dist/index291.js +21 -5
  242. package/dist/index291.js.map +1 -1
  243. package/dist/index292.js +53 -4
  244. package/dist/index292.js.map +1 -1
  245. package/dist/index293.js +20 -5
  246. package/dist/index293.js.map +1 -1
  247. package/dist/index294.js +41 -6
  248. package/dist/index294.js.map +1 -1
  249. package/dist/index295.js +39 -5
  250. package/dist/index295.js.map +1 -1
  251. package/dist/index296.js +46 -17
  252. package/dist/index296.js.map +1 -1
  253. package/dist/index297.js +20 -7
  254. package/dist/index297.js.map +1 -1
  255. package/dist/index298.js +69 -9
  256. package/dist/index298.js.map +1 -1
  257. package/dist/index299.js +17 -10
  258. package/dist/index299.js.map +1 -1
  259. package/dist/index3.js +2 -2
  260. package/dist/index30.js +242 -3
  261. package/dist/index30.js.map +1 -1
  262. package/dist/index300.js +3 -21
  263. package/dist/index300.js.map +1 -1
  264. package/dist/index301.js +11 -8
  265. package/dist/index301.js.map +1 -1
  266. package/dist/index302.js +13 -9
  267. package/dist/index302.js.map +1 -1
  268. package/dist/index303.js +18 -9
  269. package/dist/index303.js.map +1 -1
  270. package/dist/index304.js +36 -4
  271. package/dist/index304.js.map +1 -1
  272. package/dist/index305.js +239 -5
  273. package/dist/index305.js.map +1 -1
  274. package/dist/index306.js +251 -15
  275. package/dist/index306.js.map +1 -1
  276. package/dist/index307.js +68 -9
  277. package/dist/index307.js.map +1 -1
  278. package/dist/index308.js +98 -17
  279. package/dist/index308.js.map +1 -1
  280. package/dist/index309.js +82 -19
  281. package/dist/index309.js.map +1 -1
  282. package/dist/index31.js +21 -239
  283. package/dist/index31.js.map +1 -1
  284. package/dist/index310.js +3 -12
  285. package/dist/index310.js.map +1 -1
  286. package/dist/index311.js +28 -28
  287. package/dist/index311.js.map +1 -1
  288. package/dist/index312.js +16 -12
  289. package/dist/index312.js.map +1 -1
  290. package/dist/index313.js +34 -25
  291. package/dist/index313.js.map +1 -1
  292. package/dist/index314.js +17 -5
  293. package/dist/index314.js.map +1 -1
  294. package/dist/index315.js +3 -154
  295. package/dist/index315.js.map +1 -1
  296. package/dist/index316.js +25 -31
  297. package/dist/index316.js.map +1 -1
  298. package/dist/index317.js +28 -11
  299. package/dist/index317.js.map +1 -1
  300. package/dist/index318.js +4 -50
  301. package/dist/index318.js.map +1 -1
  302. package/dist/index319.js +78 -9
  303. package/dist/index319.js.map +1 -1
  304. package/dist/index32.js +4 -23
  305. package/dist/index32.js.map +1 -1
  306. package/dist/index320.js +271 -10
  307. package/dist/index320.js.map +1 -1
  308. package/dist/index321.js +11 -43
  309. package/dist/index321.js.map +1 -1
  310. package/dist/index322.js +10 -97
  311. package/dist/index322.js.map +1 -1
  312. package/dist/index323.js +25 -86
  313. package/dist/index323.js.map +1 -1
  314. package/dist/index324.js +15 -104
  315. package/dist/index324.js.map +1 -1
  316. package/dist/index325.js +123 -50
  317. package/dist/index325.js.map +1 -1
  318. package/dist/index326.js +5 -11
  319. package/dist/index326.js.map +1 -1
  320. package/dist/index327.js +65 -4
  321. package/dist/index327.js.map +1 -1
  322. package/dist/index328.js +13 -37
  323. package/dist/index328.js.map +1 -1
  324. package/dist/index329.js +7 -8
  325. package/dist/index329.js.map +1 -1
  326. package/dist/index33.js +6 -3
  327. package/dist/index33.js.map +1 -1
  328. package/dist/index330.js +5 -3
  329. package/dist/index330.js.map +1 -1
  330. package/dist/index331.js +3 -9
  331. package/dist/index331.js.map +1 -1
  332. package/dist/index332.js +10 -135
  333. package/dist/index332.js.map +1 -1
  334. package/dist/index333.js +7 -17
  335. package/dist/index333.js.map +1 -1
  336. package/dist/index334.js +132 -14
  337. package/dist/index334.js.map +1 -1
  338. package/dist/index335.js +398 -35
  339. package/dist/index335.js.map +1 -1
  340. package/dist/index336.js +5 -21
  341. package/dist/index336.js.map +1 -1
  342. package/dist/index337.js +52 -8
  343. package/dist/index337.js.map +1 -1
  344. package/dist/index338.js +11 -24
  345. package/dist/index338.js.map +1 -1
  346. package/dist/index339.js +27 -28
  347. package/dist/index339.js.map +1 -1
  348. package/dist/index34.js +38 -8
  349. package/dist/index34.js.map +1 -1
  350. package/dist/index340.js +11 -16
  351. package/dist/index340.js.map +1 -1
  352. package/dist/index349.js +2 -2
  353. package/dist/index35.js +74 -35
  354. package/dist/index35.js.map +1 -1
  355. package/dist/index350.js +4 -4
  356. package/dist/index357.js +1 -1
  357. package/dist/index358.js +5 -5
  358. package/dist/index359.js +1 -1
  359. package/dist/index36.js +20 -74
  360. package/dist/index36.js.map +1 -1
  361. package/dist/index362.js +4 -5
  362. package/dist/index362.js.map +1 -1
  363. package/dist/index363.js +18 -4
  364. package/dist/index363.js.map +1 -1
  365. package/dist/index364.js +13 -3
  366. package/dist/index364.js.map +1 -1
  367. package/dist/index365.js +4 -11
  368. package/dist/index365.js.map +1 -1
  369. package/dist/index366.js +20 -20
  370. package/dist/index366.js.map +1 -1
  371. package/dist/index367.js +4 -45
  372. package/dist/index367.js.map +1 -1
  373. package/dist/index368.js +11 -17
  374. package/dist/index368.js.map +1 -1
  375. package/dist/index369.js +6 -5
  376. package/dist/index369.js.map +1 -1
  377. package/dist/index37.js +33 -18
  378. package/dist/index37.js.map +1 -1
  379. package/dist/index370.js +3 -201
  380. package/dist/index370.js.map +1 -1
  381. package/dist/index371.js +20 -73
  382. package/dist/index371.js.map +1 -1
  383. package/dist/index372.js +43 -122
  384. package/dist/index372.js.map +1 -1
  385. package/dist/index373.js +18 -5
  386. package/dist/index373.js.map +1 -1
  387. package/dist/index374.js +4 -17
  388. package/dist/index374.js.map +1 -1
  389. package/dist/index375.js +200 -12
  390. package/dist/index375.js.map +1 -1
  391. package/dist/index376.js +73 -4
  392. package/dist/index376.js.map +1 -1
  393. package/dist/index377.js +122 -19
  394. package/dist/index377.js.map +1 -1
  395. package/dist/index379.js +5 -5
  396. package/dist/index38.js +26 -36
  397. package/dist/index38.js.map +1 -1
  398. package/dist/index380.js +3 -3
  399. package/dist/index382.js +1 -1
  400. package/dist/index384.js +1 -1
  401. package/dist/index385.js +2 -2
  402. package/dist/index386.js +1 -1
  403. package/dist/index388.js +2 -2
  404. package/dist/index389.js +2 -2
  405. package/dist/index39.js +21 -26
  406. package/dist/index39.js.map +1 -1
  407. package/dist/index392.js +5 -3
  408. package/dist/index392.js.map +1 -1
  409. package/dist/index393.js +5 -3
  410. package/dist/index393.js.map +1 -1
  411. package/dist/index394.js +4 -5
  412. package/dist/index394.js.map +1 -1
  413. package/dist/index395.js +15 -4
  414. package/dist/index395.js.map +1 -1
  415. package/dist/index396.js +9 -4
  416. package/dist/index396.js.map +1 -1
  417. package/dist/index397.js +5 -15
  418. package/dist/index397.js.map +1 -1
  419. package/dist/index398.js +4 -8
  420. package/dist/index398.js.map +1 -1
  421. package/dist/index399.js +545 -5
  422. package/dist/index399.js.map +1 -1
  423. package/dist/index4.js +2 -2
  424. package/dist/index40.js +56 -20
  425. package/dist/index40.js.map +1 -1
  426. package/dist/index400.js +47 -5
  427. package/dist/index400.js.map +1 -1
  428. package/dist/index401.js +15 -543
  429. package/dist/index401.js.map +1 -1
  430. package/dist/index402.js +6 -47
  431. package/dist/index402.js.map +1 -1
  432. package/dist/index403.js +7 -17
  433. package/dist/index403.js.map +1 -1
  434. package/dist/index404.js +6 -5
  435. package/dist/index404.js.map +1 -1
  436. package/dist/index405.js +7 -7
  437. package/dist/index405.js.map +1 -1
  438. package/dist/index406.js +11 -6
  439. package/dist/index406.js.map +1 -1
  440. package/dist/index407.js +8 -7
  441. package/dist/index407.js.map +1 -1
  442. package/dist/index408.js +12 -11
  443. package/dist/index408.js.map +1 -1
  444. package/dist/index409.js +3 -9
  445. package/dist/index409.js.map +1 -1
  446. package/dist/index41.js +51 -59
  447. package/dist/index41.js.map +1 -1
  448. package/dist/index410.js +3 -13
  449. package/dist/index410.js.map +1 -1
  450. package/dist/index411.js +3 -15
  451. package/dist/index411.js.map +1 -1
  452. package/dist/index412.js +15 -3
  453. package/dist/index412.js.map +1 -1
  454. package/dist/index413.js +1 -1
  455. package/dist/index414.js +68 -8
  456. package/dist/index414.js.map +1 -1
  457. package/dist/index415.js +31 -2
  458. package/dist/index415.js.map +1 -1
  459. package/dist/index416.js +9 -44
  460. package/dist/index416.js.map +1 -1
  461. package/dist/index417.js +152 -55
  462. package/dist/index417.js.map +1 -1
  463. package/dist/index418.js +108 -8
  464. package/dist/index418.js.map +1 -1
  465. package/dist/index419.js +5 -2
  466. package/dist/index419.js.map +1 -1
  467. package/dist/index42.js +21 -50
  468. package/dist/index42.js.map +1 -1
  469. package/dist/index420.js +55 -54
  470. package/dist/index420.js.map +1 -1
  471. package/dist/index421.js +7 -55
  472. package/dist/index421.js.map +1 -1
  473. package/dist/index422.js +2 -33
  474. package/dist/index422.js.map +1 -1
  475. package/dist/index423.js +43 -4
  476. package/dist/index423.js.map +1 -1
  477. package/dist/index424.js +55 -55
  478. package/dist/index424.js.map +1 -1
  479. package/dist/index425.js +8 -68
  480. package/dist/index425.js.map +1 -1
  481. package/dist/index426.js +2 -31
  482. package/dist/index426.js.map +1 -1
  483. package/dist/index427.js +55 -9
  484. package/dist/index427.js.map +1 -1
  485. package/dist/index428.js +55 -152
  486. package/dist/index428.js.map +1 -1
  487. package/dist/index429.js +32 -107
  488. package/dist/index429.js.map +1 -1
  489. package/dist/index43.js +127 -18
  490. package/dist/index43.js.map +1 -1
  491. package/dist/index430.js +16 -2
  492. package/dist/index430.js.map +1 -1
  493. package/dist/index431.js +29 -2
  494. package/dist/index431.js.map +1 -1
  495. package/dist/index432.js +13 -2
  496. package/dist/index432.js.map +1 -1
  497. package/dist/index433.js +7 -2
  498. package/dist/index433.js.map +1 -1
  499. package/dist/index434.js +2 -16
  500. package/dist/index434.js.map +1 -1
  501. package/dist/index435.js +2 -29
  502. package/dist/index435.js.map +1 -1
  503. package/dist/index436.js +2 -13
  504. package/dist/index436.js.map +1 -1
  505. package/dist/index437.js +2 -7
  506. package/dist/index437.js.map +1 -1
  507. package/dist/index44.js +39 -122
  508. package/dist/index44.js.map +1 -1
  509. package/dist/index45.js +85 -42
  510. package/dist/index45.js.map +1 -1
  511. package/dist/index46.js +123 -87
  512. package/dist/index46.js.map +1 -1
  513. package/dist/index47.js +5 -126
  514. package/dist/index47.js.map +1 -1
  515. package/dist/index48.js +332 -5
  516. package/dist/index48.js.map +1 -1
  517. package/dist/index49.js +245 -320
  518. package/dist/index49.js.map +1 -1
  519. package/dist/index5.js +2 -2
  520. package/dist/index50.js +23 -254
  521. package/dist/index50.js.map +1 -1
  522. package/dist/index51.js +129 -25
  523. package/dist/index51.js.map +1 -1
  524. package/dist/index52.js +24 -129
  525. package/dist/index52.js.map +1 -1
  526. package/dist/index53.js +19 -22
  527. package/dist/index53.js.map +1 -1
  528. package/dist/index54.js +134 -19
  529. package/dist/index54.js.map +1 -1
  530. package/dist/index55.js +30 -133
  531. package/dist/index55.js.map +1 -1
  532. package/dist/index56.js +24 -30
  533. package/dist/index56.js.map +1 -1
  534. package/dist/index57.js +38 -26
  535. package/dist/index57.js.map +1 -1
  536. package/dist/index58.js +19 -39
  537. package/dist/index58.js.map +1 -1
  538. package/dist/index59.js +133 -18
  539. package/dist/index59.js.map +1 -1
  540. package/dist/index6.js +4 -4
  541. package/dist/index60.js +49 -134
  542. package/dist/index60.js.map +1 -1
  543. package/dist/index61.js +25 -48
  544. package/dist/index61.js.map +1 -1
  545. package/dist/index62.js +57 -28
  546. package/dist/index62.js.map +1 -1
  547. package/dist/index63.js +56 -57
  548. package/dist/index63.js.map +1 -1
  549. package/dist/index64.js +5 -5
  550. package/dist/index64.js.map +1 -1
  551. package/dist/index66.js +22 -10
  552. package/dist/index66.js.map +1 -1
  553. package/dist/index67.js +232 -17
  554. package/dist/index67.js.map +1 -1
  555. package/dist/index68.js +5 -5
  556. package/dist/index68.js.map +1 -1
  557. package/dist/index7.js +11 -11
  558. package/dist/index70.js +10 -22
  559. package/dist/index70.js.map +1 -1
  560. package/dist/index71.js +17 -232
  561. package/dist/index71.js.map +1 -1
  562. package/dist/index8.js +2 -2
  563. package/dist/index9.js +1 -1
  564. package/package.json +1 -1
package/dist/index219.js CHANGED
@@ -1,243 +1,12 @@
1
- import * as l from "react";
2
- import { addEventListener as i } from "./index240.js";
3
- import { mergeCleanups as G } from "./index378.js";
4
- import { ownerDocument as fe } from "./index224.js";
5
- import { useStableCallback as p } from "./index202.js";
6
- import { useTimeout as de, Timeout as pe } from "./index225.js";
7
- import { isElement as _, isShadowRoot as Be, isLastTraversableNode as J, getParentNode as ve, isHTMLElement as Ae, getComputedStyle as He } from "./index248.js";
8
- import { useFloatingTree as Ne } from "./index386.js";
9
- import { createChangeEventDetails as Q } from "./index175.js";
10
- import { createAttribute as Le } from "./index383.js";
11
- import { isEventTargetWithin as Z, isRootElement as Fe } from "./index230.js";
12
- import { isReactEvent as $e } from "./index253.js";
13
- import { getNodeChildren as me } from "./index381.js";
14
- import { getTarget as z, contains as B } from "./index231.js";
15
- import { triggerPress as qe, escapeKey as Ve, outsidePress as Ue } from "./index177.js";
16
- import { webkit as je } from "./index250.js";
17
- function Ge() {
18
- return !1;
19
- }
20
- function Je(f) {
21
- return {
22
- escapeKey: typeof f == "boolean" ? f : f?.escapeKey ?? !1,
23
- outsidePress: typeof f == "boolean" ? f : f?.outsidePress ?? !0
24
- };
25
- }
26
- function dt(f, he = {}) {
27
- const {
28
- enabled: m = !0,
29
- escapeKey: v = !0,
30
- outsidePress: I = !0,
31
- outsidePressEvent: ge = "sloppy",
32
- referencePress: ye = Ge,
33
- bubbles: Pe,
34
- externalTree: Ee
35
- } = he, n = "rootStore" in f ? f.rootStore : f, C = n.useState("open"), ee = n.useState("floatingElement"), {
36
- dataRef: h
37
- } = n.context, S = Ne(Ee), Te = p(typeof I == "function" ? I : () => !1), y = typeof I == "function" ? Te : I, te = y !== !1, re = p(() => ge), {
38
- escapeKey: K,
39
- outsidePress: ne
40
- } = Je(Pe), O = l.useRef(!1), X = l.useRef(!1), P = l.useRef(!1), A = l.useRef(!1), H = l.useRef(""), s = l.useRef(null), D = de(), se = de(), g = p(() => {
41
- se.clear(), h.current.insideReactTree = !1;
42
- }), N = p((r) => {
43
- const a = h.current.floatingContext?.nodeId;
44
- return (S ? me(S.nodesRef.current, a) : []).some((x) => x.context?.open && !x.context.dataRef.current[r]);
45
- }), E = p((r) => Z(r, n.select("floatingElement")) || Z(r, n.select("domReferenceElement"))), L = p((r) => {
46
- ye() && n.setOpen(!1, Q(qe, r.nativeEvent));
47
- }), b = p((r) => {
48
- if (!C || !m || !v || r.key !== "Escape" || A.current || !K && N("__escapeKeyBubbles"))
49
- return;
50
- const a = $e(r) ? r.nativeEvent : r, w = Q(Ve, a);
51
- n.setOpen(!1, w), w.isCanceled || r.preventDefault(), !K && !w.isPropagationAllowed && r.stopPropagation();
52
- }), T = p(() => {
53
- h.current.insideReactTree = !0, se.start(0, g);
54
- }), F = p((r) => {
55
- if (!C || !m || r.button !== 0)
56
- return;
57
- const a = z(r.nativeEvent);
58
- B(n.select("floatingElement"), a) && (O.current || (O.current = !0, X.current = !1));
59
- }), $ = p((r) => {
60
- !C || !m || (r.defaultPrevented || r.nativeEvent.defaultPrevented) && O.current && (X.current = !0);
61
- });
62
- l.useEffect(() => {
63
- if (!C || !m)
64
- return;
65
- h.current.__escapeKeyBubbles = K, h.current.__outsidePressBubbles = ne;
66
- const r = new pe(), a = new pe();
67
- function w() {
68
- r.clear(), A.current = !0;
69
- }
70
- function x() {
71
- r.start(
72
- // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
73
- // Only apply to WebKit for the test to remain 0ms.
74
- je ? 5 : 0,
75
- () => {
76
- A.current = !1;
77
- }
78
- );
79
- }
80
- function ce() {
81
- P.current = !0, a.start(0, () => {
82
- P.current = !1;
83
- });
84
- }
85
- function ie() {
86
- O.current = !1, X.current = !1;
87
- }
88
- function R() {
89
- const e = H.current, t = e === "pen" || !e ? "mouse" : e, o = re(), c = typeof o == "function" ? o() : o;
90
- return typeof c == "string" ? c : c[t];
91
- }
92
- function Re(e) {
93
- const t = R();
94
- return t === "intentional" && e.type !== "click" || t === "sloppy" && e.type === "click";
95
- }
96
- function ue(e) {
97
- const t = h.current.floatingContext?.nodeId, o = S && me(S.nodesRef.current, t).some((c) => Z(e, c.context?.elements.floating));
98
- return E(e) || o;
99
- }
100
- function W(e) {
101
- if (Re(e)) {
102
- e.type !== "click" && !E(e) && (a.clear(), P.current = !1), g();
103
- return;
104
- }
105
- if (h.current.insideReactTree) {
106
- g();
107
- return;
108
- }
109
- const t = z(e), o = `[${Le("inert")}]`, c = _(t) ? t.getRootNode() : null, k = Array.from((Be(c) ? c : fe(n.select("floatingElement"))).querySelectorAll(o)), ae = n.context.triggerElements;
110
- if (t && (ae.hasElement(t) || ae.hasMatchingElement((d) => B(d, t))))
111
- return;
112
- let M = _(t) ? t : null;
113
- for (; M && !J(M); ) {
114
- const d = ve(M);
115
- if (J(d) || !_(d))
116
- break;
117
- M = d;
118
- }
119
- if (!(k.length && _(t) && !Fe(t) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
120
- !B(t, n.select("floatingElement")) && // If the target root element contains none of the markers, then the
121
- // element was injected after the floating element rendered.
122
- k.every((d) => !B(M, d)))) {
123
- if (Ae(t) && !("touches" in e)) {
124
- const d = J(t), j = He(t), le = /auto|scroll/, Ie = d || le.test(j.overflowX), Ke = d || le.test(j.overflowY), Xe = Ie && t.clientWidth > 0 && t.scrollWidth > t.clientWidth, xe = Ke && t.clientHeight > 0 && t.scrollHeight > t.clientHeight, We = j.direction === "rtl", Ye = xe && (We ? e.offsetX <= t.offsetWidth - t.clientWidth : e.offsetX > t.clientWidth), _e = Xe && e.offsetY > t.clientHeight;
125
- if (Ye || _e)
126
- return;
127
- }
128
- if (!ue(e)) {
129
- if (R() === "intentional" && P.current) {
130
- a.clear(), P.current = !1;
131
- return;
132
- }
133
- typeof y == "function" && !y(e) || N("__outsidePressBubbles") || (n.setOpen(!1, Q(Ue, e)), g());
134
- }
135
- }
136
- }
137
- function be(e) {
138
- R() !== "sloppy" || e.pointerType === "touch" || !n.select("open") || !m || E(e) || W(e);
139
- }
140
- function we(e) {
141
- if (R() !== "sloppy" || !n.select("open") || !m || E(e))
142
- return;
143
- const t = e.touches[0];
144
- t && (s.current = {
145
- startTime: Date.now(),
146
- startX: t.clientX,
147
- startY: t.clientY,
148
- dismissOnTouchEnd: !1,
149
- dismissOnMouseDown: !0
150
- }, D.start(1e3, () => {
151
- s.current && (s.current.dismissOnTouchEnd = !1, s.current.dismissOnMouseDown = !1);
152
- }));
153
- }
154
- function Y(e, t) {
155
- const o = z(e);
156
- if (!o)
157
- return;
158
- const c = i(o, e.type, () => {
159
- t(e), c();
160
- });
161
- }
162
- function Ce(e) {
163
- H.current = "touch", Y(e, we);
164
- }
165
- function V(e) {
166
- D.clear(), e.type === "pointerdown" && (H.current = e.pointerType), !(e.type === "mousedown" && s.current && !s.current.dismissOnMouseDown) && Y(e, (t) => {
167
- t.type === "pointerdown" ? be(t) : W(t);
168
- });
169
- }
170
- function U(e) {
171
- if (!O.current)
172
- return;
173
- const t = X.current;
174
- if (ie(), R() === "intentional") {
175
- if (e.type === "pointercancel") {
176
- t && ce();
177
- return;
178
- }
179
- if (!ue(e)) {
180
- if (t) {
181
- ce();
182
- return;
183
- }
184
- typeof y == "function" && !y(e) || (a.clear(), P.current = !0, g());
185
- }
186
- }
187
- }
188
- function Se(e) {
189
- if (R() !== "sloppy" || !s.current || E(e))
190
- return;
191
- const t = e.touches[0];
192
- if (!t)
193
- return;
194
- const o = Math.abs(t.clientX - s.current.startX), c = Math.abs(t.clientY - s.current.startY), k = Math.sqrt(o * o + c * c);
195
- k > 5 && (s.current.dismissOnTouchEnd = !0), k > 10 && (W(e), D.clear(), s.current = null);
196
- }
197
- function Oe(e) {
198
- Y(e, Se);
199
- }
200
- function De(e) {
201
- R() !== "sloppy" || !s.current || E(e) || (s.current.dismissOnTouchEnd && W(e), D.clear(), s.current = null);
202
- }
203
- function ke(e) {
204
- Y(e, De);
205
- }
206
- const u = fe(ee), Me = G(v && G(i(u, "keydown", b), i(u, "compositionstart", w), i(u, "compositionend", x)), te && G(i(u, "click", V, !0), i(u, "pointerdown", V, !0), i(u, "pointerup", U, !0), i(u, "pointercancel", U, !0), i(u, "mousedown", V, !0), i(u, "mouseup", U, !0), i(u, "touchstart", Ce, !0), i(u, "touchmove", Oe, !0), i(u, "touchend", ke, !0)));
207
- return () => {
208
- Me(), r.clear(), a.clear(), ie(), P.current = !1;
209
- };
210
- }, [h, ee, v, te, y, C, m, K, ne, b, g, re, N, E, S, n, D]), l.useEffect(g, [y, g]);
211
- const q = l.useMemo(() => ({
212
- onKeyDown: b,
213
- onPointerDown: L,
214
- onClick: L
215
- }), [b, L]), oe = l.useMemo(() => ({
216
- onKeyDown: b,
217
- // `onMouseDown` may be blocked if `event.preventDefault()` is called in
218
- // `onPointerDown`, such as with <NumberField.ScrubArea>.
219
- // See https://github.com/mui/base-ui/pull/3379
220
- onPointerDown: $,
221
- onMouseDown: $,
222
- onClickCapture: T,
223
- onMouseDownCapture(r) {
224
- T(), F(r);
225
- },
226
- onPointerDownCapture(r) {
227
- T(), F(r);
228
- },
229
- onMouseUpCapture: T,
230
- onTouchEndCapture: T,
231
- onTouchMoveCapture: T
232
- }), [b, T, F, $]);
233
- return l.useMemo(() => m ? {
234
- reference: q,
235
- floating: oe,
236
- trigger: q
237
- } : {}, [m, q, oe]);
1
+ import { millisecondsInWeek as f } from "./index394.js";
2
+ import { startOfWeek as m } from "./index233.js";
3
+ import { startOfWeekYear as i } from "./index407.js";
4
+ import { toDate as n } from "./index393.js";
5
+ function s(r, t) {
6
+ const e = n(r, t?.in), o = +m(e, t) - +i(e, t);
7
+ return Math.round(o / f) + 1;
238
8
  }
239
9
  export {
240
- Je as normalizeProp,
241
- dt as useDismiss
10
+ s as getWeek
242
11
  };
243
12
  //# sourceMappingURL=index219.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index219.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/hooks/useDismiss.mjs"],"sourcesContent":["'use client';\n\n/* eslint-disable no-underscore-dangle */\nimport * as React from 'react';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { mergeCleanups } from '@base-ui/utils/mergeCleanups';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { Timeout, useTimeout } from '@base-ui/utils/useTimeout';\nimport { getComputedStyle, getParentNode, isElement, isHTMLElement, isLastTraversableNode, isShadowRoot } from '@floating-ui/utils/dom';\nimport { platform } from '@base-ui/utils/platform';\nimport { useFloatingTree } from \"../components/FloatingTree.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { createAttribute } from \"../utils/createAttribute.mjs\";\nimport { contains, getTarget, isEventTargetWithin, isRootElement } from \"../utils/element.mjs\";\nimport { isReactEvent } from \"../utils/event.mjs\";\nimport { getNodeChildren } from \"../utils/nodes.mjs\";\nfunction alwaysFalse() {\n return false;\n}\nexport function normalizeProp(normalizable) {\n return {\n escapeKey: typeof normalizable === 'boolean' ? normalizable : normalizable?.escapeKey ?? false,\n outsidePress: typeof normalizable === 'boolean' ? normalizable : normalizable?.outsidePress ?? true\n };\n}\n/**\n * Closes the floating element when a dismissal is requested — by default, when\n * the user presses the `escape` key or outside of the floating element.\n * @see https://floating-ui.com/docs/useDismiss\n */\nexport function useDismiss(context, props = {}) {\n const {\n enabled = true,\n escapeKey = true,\n outsidePress: outsidePressProp = true,\n outsidePressEvent = 'sloppy',\n referencePress = alwaysFalse,\n bubbles,\n externalTree\n } = props;\n const store = 'rootStore' in context ? context.rootStore : context;\n const open = store.useState('open');\n const floatingElement = store.useState('floatingElement');\n const {\n dataRef\n } = store.context;\n const tree = useFloatingTree(externalTree);\n const outsidePressFn = useStableCallback(typeof outsidePressProp === 'function' ? outsidePressProp : () => false);\n const outsidePress = typeof outsidePressProp === 'function' ? outsidePressFn : outsidePressProp;\n const outsidePressEnabled = outsidePress !== false;\n const getOutsidePressEventProp = useStableCallback(() => outsidePressEvent);\n const {\n escapeKey: escapeKeyBubbles,\n outsidePress: outsidePressBubbles\n } = normalizeProp(bubbles);\n const pressStartedInsideRef = React.useRef(false);\n const pressStartPreventedRef = React.useRef(false);\n // Ignore only the very next outside click after dragging from inside to outside.\n const suppressNextOutsideClickRef = React.useRef(false);\n const isComposingRef = React.useRef(false);\n const currentPointerTypeRef = React.useRef('');\n const touchStateRef = React.useRef(null);\n const cancelDismissOnEndTimeout = useTimeout();\n const clearInsideReactTreeTimeout = useTimeout();\n const clearInsideReactTree = useStableCallback(() => {\n clearInsideReactTreeTimeout.clear();\n dataRef.current.insideReactTree = false;\n });\n const hasBlockingChild = useStableCallback(bubbleKey => {\n const nodeId = dataRef.current.floatingContext?.nodeId;\n const children = tree ? getNodeChildren(tree.nodesRef.current, nodeId) : [];\n return children.some(child => child.context?.open && !child.context.dataRef.current[bubbleKey]);\n });\n const isEventWithinOwnElements = useStableCallback(event => {\n return isEventTargetWithin(event, store.select('floatingElement')) || isEventTargetWithin(event, store.select('domReferenceElement'));\n });\n const closeOnReferencePress = useStableCallback(event => {\n if (!referencePress()) {\n return;\n }\n store.setOpen(false, createChangeEventDetails(REASONS.triggerPress, event.nativeEvent));\n });\n const closeOnEscapeKeyDown = useStableCallback(event => {\n if (!open || !enabled || !escapeKey || event.key !== 'Escape') {\n return;\n }\n\n // Wait until IME is settled. Pressing `Escape` while composing should\n // close the compose menu, but not the floating element.\n if (isComposingRef.current) {\n return;\n }\n if (!escapeKeyBubbles && hasBlockingChild('__escapeKeyBubbles')) {\n return;\n }\n const native = isReactEvent(event) ? event.nativeEvent : event;\n const eventDetails = createChangeEventDetails(REASONS.escapeKey, native);\n store.setOpen(false, eventDetails);\n if (!eventDetails.isCanceled) {\n event.preventDefault();\n }\n if (!escapeKeyBubbles && !eventDetails.isPropagationAllowed) {\n event.stopPropagation();\n }\n });\n const markInsideReactTree = useStableCallback(() => {\n dataRef.current.insideReactTree = true;\n clearInsideReactTreeTimeout.start(0, clearInsideReactTree);\n });\n const markPressStartedInsideReactTree = useStableCallback(event => {\n if (!open || !enabled || event.button !== 0) {\n return;\n }\n const target = getTarget(event.nativeEvent);\n\n // Only treat presses that start within the floating DOM subtree as inside.\n // This avoids suppressing parent dismissal when interacting with nested portals.\n if (!contains(store.select('floatingElement'), target)) {\n return;\n }\n if (!pressStartedInsideRef.current) {\n pressStartedInsideRef.current = true;\n pressStartPreventedRef.current = false;\n }\n });\n const markInsidePressStartPrevented = useStableCallback(event => {\n if (!open || !enabled) {\n return;\n }\n if (!(event.defaultPrevented || event.nativeEvent.defaultPrevented)) {\n return;\n }\n if (pressStartedInsideRef.current) {\n pressStartPreventedRef.current = true;\n }\n });\n React.useEffect(() => {\n if (!open || !enabled) {\n return undefined;\n }\n dataRef.current.__escapeKeyBubbles = escapeKeyBubbles;\n dataRef.current.__outsidePressBubbles = outsidePressBubbles;\n const compositionTimeout = new Timeout();\n const preventedPressSuppressionTimeout = new Timeout();\n function handleCompositionStart() {\n compositionTimeout.clear();\n isComposingRef.current = true;\n }\n function handleCompositionEnd() {\n // Safari fires `compositionend` before `keydown`, so we need to wait\n // until the next tick to set `isComposing` to `false`.\n // https://bugs.webkit.org/show_bug.cgi?id=165004\n compositionTimeout.start(\n // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.\n // Only apply to WebKit for the test to remain 0ms.\n platform.engine.webkit ? 5 : 0, () => {\n isComposingRef.current = false;\n });\n }\n function suppressImmediateOutsideClickAfterPreventedStart() {\n suppressNextOutsideClickRef.current = true;\n // Firefox can emit the synthetic outside click in a later task after\n // pointer lock exit, so microtask clearing is too early here.\n preventedPressSuppressionTimeout.start(0, () => {\n suppressNextOutsideClickRef.current = false;\n });\n }\n function resetPressStartState() {\n pressStartedInsideRef.current = false;\n pressStartPreventedRef.current = false;\n }\n function getOutsidePressEvent() {\n const type = currentPointerTypeRef.current;\n const computedType = type === 'pen' || !type ? 'mouse' : type;\n const outsidePressEventValue = getOutsidePressEventProp();\n const resolved = typeof outsidePressEventValue === 'function' ? outsidePressEventValue() : outsidePressEventValue;\n if (typeof resolved === 'string') {\n return resolved;\n }\n return resolved[computedType];\n }\n function shouldIgnoreEvent(event) {\n const computedOutsidePressEvent = getOutsidePressEvent();\n return computedOutsidePressEvent === 'intentional' && event.type !== 'click' || computedOutsidePressEvent === 'sloppy' && event.type === 'click';\n }\n function isEventWithinFloatingTree(event) {\n const nodeId = dataRef.current.floatingContext?.nodeId;\n const targetIsInsideChildren = tree && getNodeChildren(tree.nodesRef.current, nodeId).some(node => isEventTargetWithin(event, node.context?.elements.floating));\n return isEventWithinOwnElements(event) || targetIsInsideChildren;\n }\n function closeOnPressOutside(event) {\n if (shouldIgnoreEvent(event)) {\n // A new press began outside the floating element and its trigger. Clear any\n // leftover drag-out suppression so this press's eventual click can dismiss.\n if (event.type !== 'click' && !isEventWithinOwnElements(event)) {\n preventedPressSuppressionTimeout.clear();\n suppressNextOutsideClickRef.current = false;\n }\n clearInsideReactTree();\n return;\n }\n if (dataRef.current.insideReactTree) {\n clearInsideReactTree();\n return;\n }\n const target = getTarget(event);\n const inertSelector = `[${createAttribute('inert')}]`;\n const targetRoot = isElement(target) ? target.getRootNode() : null;\n const markers = Array.from((isShadowRoot(targetRoot) ? targetRoot : ownerDocument(store.select('floatingElement'))).querySelectorAll(inertSelector));\n const triggers = store.context.triggerElements;\n\n // If another trigger is clicked, don't close the floating element.\n if (target && (triggers.hasElement(target) || triggers.hasMatchingElement(trigger => contains(trigger, target)))) {\n return;\n }\n let targetRootAncestor = isElement(target) ? target : null;\n while (targetRootAncestor && !isLastTraversableNode(targetRootAncestor)) {\n const nextParent = getParentNode(targetRootAncestor);\n if (isLastTraversableNode(nextParent) || !isElement(nextParent)) {\n break;\n }\n targetRootAncestor = nextParent;\n }\n\n // Check if the click occurred on a third-party element injected after the\n // floating element rendered.\n if (markers.length && isElement(target) && !isRootElement(target) &&\n // Clicked on a direct ancestor (e.g. FloatingOverlay).\n !contains(target, store.select('floatingElement')) &&\n // If the target root element contains none of the markers, then the\n // element was injected after the floating element rendered.\n markers.every(marker => !contains(targetRootAncestor, marker))) {\n return;\n }\n\n // Check if the click occurred on the scrollbar\n // Skip for touch events: scrollbars don't receive touch events on most platforms\n if (isHTMLElement(target) && !('touches' in event)) {\n const lastTraversableNode = isLastTraversableNode(target);\n const style = getComputedStyle(target);\n const scrollRe = /auto|scroll/;\n const isScrollableX = lastTraversableNode || scrollRe.test(style.overflowX);\n const isScrollableY = lastTraversableNode || scrollRe.test(style.overflowY);\n const canScrollX = isScrollableX && target.clientWidth > 0 && target.scrollWidth > target.clientWidth;\n const canScrollY = isScrollableY && target.clientHeight > 0 && target.scrollHeight > target.clientHeight;\n const isRTL = style.direction === 'rtl';\n\n // Check click position relative to scrollbar.\n // In some browsers it is possible to change the <body> (or window)\n // scrollbar to the left side, but is very rare and is difficult to\n // check for. Plus, for modal dialogs with backdrops, it is more\n // important that the backdrop is checked but not so much the window.\n const pressedVerticalScrollbar = canScrollY && (isRTL ? event.offsetX <= target.offsetWidth - target.clientWidth : event.offsetX > target.clientWidth);\n const pressedHorizontalScrollbar = canScrollX && event.offsetY > target.clientHeight;\n if (pressedVerticalScrollbar || pressedHorizontalScrollbar) {\n return;\n }\n }\n if (isEventWithinFloatingTree(event)) {\n return;\n }\n\n // In intentional mode, a press that starts inside and ends outside gets\n // one suppressed outside click. Run this after inside-target checks so\n // inside clicks don't consume the one-shot suppression.\n if (getOutsidePressEvent() === 'intentional' && suppressNextOutsideClickRef.current) {\n preventedPressSuppressionTimeout.clear();\n suppressNextOutsideClickRef.current = false;\n return;\n }\n if (typeof outsidePress === 'function' && !outsidePress(event)) {\n return;\n }\n if (hasBlockingChild('__outsidePressBubbles')) {\n return;\n }\n store.setOpen(false, createChangeEventDetails(REASONS.outsidePress, event));\n clearInsideReactTree();\n }\n function handlePointerDown(event) {\n if (getOutsidePressEvent() !== 'sloppy' || event.pointerType === 'touch' || !store.select('open') || !enabled || isEventWithinOwnElements(event)) {\n return;\n }\n closeOnPressOutside(event);\n }\n function handleTouchStart(event) {\n if (getOutsidePressEvent() !== 'sloppy' || !store.select('open') || !enabled || isEventWithinOwnElements(event)) {\n return;\n }\n const touch = event.touches[0];\n if (touch) {\n touchStateRef.current = {\n startTime: Date.now(),\n startX: touch.clientX,\n startY: touch.clientY,\n dismissOnTouchEnd: false,\n dismissOnMouseDown: true\n };\n cancelDismissOnEndTimeout.start(1000, () => {\n if (touchStateRef.current) {\n touchStateRef.current.dismissOnTouchEnd = false;\n touchStateRef.current.dismissOnMouseDown = false;\n }\n });\n }\n }\n function addTargetEventListenerOnce(event, listener) {\n const target = getTarget(event);\n if (!target) {\n return;\n }\n const unsubscribe = addEventListener(target, event.type, () => {\n listener(event);\n unsubscribe();\n });\n }\n function handleTouchStartCapture(event) {\n currentPointerTypeRef.current = 'touch';\n addTargetEventListenerOnce(event, handleTouchStart);\n }\n function closeOnPressOutsideCapture(event) {\n cancelDismissOnEndTimeout.clear();\n if (event.type === 'pointerdown') {\n currentPointerTypeRef.current = event.pointerType;\n }\n if (event.type === 'mousedown' && touchStateRef.current && !touchStateRef.current.dismissOnMouseDown) {\n return;\n }\n addTargetEventListenerOnce(event, targetEvent => {\n if (targetEvent.type === 'pointerdown') {\n handlePointerDown(targetEvent);\n } else {\n closeOnPressOutside(targetEvent);\n }\n });\n }\n function handlePressEndCapture(event) {\n if (!pressStartedInsideRef.current) {\n return;\n }\n const pressStartedInsideDefaultPrevented = pressStartPreventedRef.current;\n resetPressStartState();\n if (getOutsidePressEvent() !== 'intentional') {\n return;\n }\n if (event.type === 'pointercancel') {\n if (pressStartedInsideDefaultPrevented) {\n suppressImmediateOutsideClickAfterPreventedStart();\n }\n return;\n }\n if (isEventWithinFloatingTree(event)) {\n return;\n }\n\n // If pointerdown was prevented, no click may be generated for that\n // interaction. However, Firefox may still emit an immediate click after\n // pointerup (e.g. NumberField scrub with pointer lock), so suppress for\n // one tick to absorb that synthetic click only.\n if (pressStartedInsideDefaultPrevented) {\n suppressImmediateOutsideClickAfterPreventedStart();\n return;\n }\n\n // Avoid suppressing when outsidePress explicitly ignores this target.\n if (typeof outsidePress === 'function' && !outsidePress(event)) {\n return;\n }\n preventedPressSuppressionTimeout.clear();\n suppressNextOutsideClickRef.current = true;\n clearInsideReactTree();\n }\n function handleTouchMove(event) {\n if (getOutsidePressEvent() !== 'sloppy' || !touchStateRef.current || isEventWithinOwnElements(event)) {\n return;\n }\n const touch = event.touches[0];\n if (!touch) {\n return;\n }\n const deltaX = Math.abs(touch.clientX - touchStateRef.current.startX);\n const deltaY = Math.abs(touch.clientY - touchStateRef.current.startY);\n const distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n if (distance > 5) {\n touchStateRef.current.dismissOnTouchEnd = true;\n }\n if (distance > 10) {\n closeOnPressOutside(event);\n cancelDismissOnEndTimeout.clear();\n touchStateRef.current = null;\n }\n }\n function handleTouchMoveCapture(event) {\n addTargetEventListenerOnce(event, handleTouchMove);\n }\n function handleTouchEnd(event) {\n if (getOutsidePressEvent() !== 'sloppy' || !touchStateRef.current || isEventWithinOwnElements(event)) {\n return;\n }\n if (touchStateRef.current.dismissOnTouchEnd) {\n closeOnPressOutside(event);\n }\n cancelDismissOnEndTimeout.clear();\n touchStateRef.current = null;\n }\n function handleTouchEndCapture(event) {\n addTargetEventListenerOnce(event, handleTouchEnd);\n }\n const doc = ownerDocument(floatingElement);\n const unsubscribe = mergeCleanups(escapeKey && mergeCleanups(addEventListener(doc, 'keydown', closeOnEscapeKeyDown), addEventListener(doc, 'compositionstart', handleCompositionStart), addEventListener(doc, 'compositionend', handleCompositionEnd)), outsidePressEnabled && mergeCleanups(addEventListener(doc, 'click', closeOnPressOutsideCapture, true), addEventListener(doc, 'pointerdown', closeOnPressOutsideCapture, true), addEventListener(doc, 'pointerup', handlePressEndCapture, true), addEventListener(doc, 'pointercancel', handlePressEndCapture, true), addEventListener(doc, 'mousedown', closeOnPressOutsideCapture, true), addEventListener(doc, 'mouseup', handlePressEndCapture, true), addEventListener(doc, 'touchstart', handleTouchStartCapture, true), addEventListener(doc, 'touchmove', handleTouchMoveCapture, true), addEventListener(doc, 'touchend', handleTouchEndCapture, true)));\n return () => {\n unsubscribe();\n compositionTimeout.clear();\n preventedPressSuppressionTimeout.clear();\n resetPressStartState();\n suppressNextOutsideClickRef.current = false;\n };\n }, [dataRef, floatingElement, escapeKey, outsidePressEnabled, outsidePress, open, enabled, escapeKeyBubbles, outsidePressBubbles, closeOnEscapeKeyDown, clearInsideReactTree, getOutsidePressEventProp, hasBlockingChild, isEventWithinOwnElements, tree, store, cancelDismissOnEndTimeout]);\n React.useEffect(clearInsideReactTree, [outsidePress, clearInsideReactTree]);\n const reference = React.useMemo(() => ({\n onKeyDown: closeOnEscapeKeyDown,\n onPointerDown: closeOnReferencePress,\n onClick: closeOnReferencePress\n }), [closeOnEscapeKeyDown, closeOnReferencePress]);\n const floating = React.useMemo(() => ({\n onKeyDown: closeOnEscapeKeyDown,\n // `onMouseDown` may be blocked if `event.preventDefault()` is called in\n // `onPointerDown`, such as with <NumberField.ScrubArea>.\n // See https://github.com/mui/base-ui/pull/3379\n onPointerDown: markInsidePressStartPrevented,\n onMouseDown: markInsidePressStartPrevented,\n onClickCapture: markInsideReactTree,\n onMouseDownCapture(event) {\n markInsideReactTree();\n markPressStartedInsideReactTree(event);\n },\n onPointerDownCapture(event) {\n markInsideReactTree();\n markPressStartedInsideReactTree(event);\n },\n onMouseUpCapture: markInsideReactTree,\n onTouchEndCapture: markInsideReactTree,\n onTouchMoveCapture: markInsideReactTree\n }), [closeOnEscapeKeyDown, markInsideReactTree, markPressStartedInsideReactTree, markInsidePressStartPrevented]);\n return React.useMemo(() => enabled ? {\n reference,\n floating,\n trigger: reference\n } : {}, [enabled, reference, floating]);\n}"],"names":["alwaysFalse","normalizeProp","normalizable","useDismiss","context","props","enabled","escapeKey","outsidePressProp","outsidePressEvent","referencePress","bubbles","externalTree","store","open","floatingElement","dataRef","tree","useFloatingTree","outsidePressFn","useStableCallback","outsidePress","outsidePressEnabled","getOutsidePressEventProp","escapeKeyBubbles","outsidePressBubbles","pressStartedInsideRef","React","pressStartPreventedRef","suppressNextOutsideClickRef","isComposingRef","currentPointerTypeRef","touchStateRef","cancelDismissOnEndTimeout","useTimeout","clearInsideReactTreeTimeout","clearInsideReactTree","hasBlockingChild","bubbleKey","nodeId","getNodeChildren","child","isEventWithinOwnElements","event","isEventTargetWithin","closeOnReferencePress","createChangeEventDetails","REASONS.triggerPress","closeOnEscapeKeyDown","native","isReactEvent","eventDetails","REASONS.escapeKey","markInsideReactTree","markPressStartedInsideReactTree","target","getTarget","contains","markInsidePressStartPrevented","compositionTimeout","Timeout","preventedPressSuppressionTimeout","handleCompositionStart","handleCompositionEnd","platform.engine.webkit","suppressImmediateOutsideClickAfterPreventedStart","resetPressStartState","getOutsidePressEvent","type","computedType","outsidePressEventValue","resolved","shouldIgnoreEvent","computedOutsidePressEvent","isEventWithinFloatingTree","targetIsInsideChildren","node","closeOnPressOutside","inertSelector","createAttribute","targetRoot","isElement","markers","isShadowRoot","ownerDocument","triggers","trigger","targetRootAncestor","isLastTraversableNode","nextParent","getParentNode","isRootElement","marker","isHTMLElement","lastTraversableNode","style","getComputedStyle","scrollRe","isScrollableX","isScrollableY","canScrollX","canScrollY","isRTL","pressedVerticalScrollbar","pressedHorizontalScrollbar","REASONS.outsidePress","handlePointerDown","handleTouchStart","touch","addTargetEventListenerOnce","listener","unsubscribe","addEventListener","handleTouchStartCapture","closeOnPressOutsideCapture","targetEvent","handlePressEndCapture","pressStartedInsideDefaultPrevented","handleTouchMove","deltaX","deltaY","distance","handleTouchMoveCapture","handleTouchEnd","handleTouchEndCapture","doc","mergeCleanups","reference","floating"],"mappings":";;;;;;;;;;;;;;;;AAkBA,SAASA,KAAc;AACrB,SAAO;AACT;AACO,SAASC,GAAcC,GAAc;AAC1C,SAAO;AAAA,IACL,WAAW,OAAOA,KAAiB,YAAYA,IAAeA,GAAc,aAAa;AAAA,IACzF,cAAc,OAAOA,KAAiB,YAAYA,IAAeA,GAAc,gBAAgB;AAAA,EACnG;AACA;AAMO,SAASC,GAAWC,GAASC,KAAQ,IAAI;AAC9C,QAAM;AAAA,IACJ,SAAAC,IAAU;AAAA,IACd,WAAIC,IAAY;AAAA,IACZ,cAAcC,IAAmB;AAAA,IACjC,mBAAAC,KAAoB;AAAA,IACpB,gBAAAC,KAAiBV;AAAA,IACjB,SAAAW;AAAA,IACA,cAAAC;AAAA,EACJ,IAAMP,IACEQ,IAAQ,eAAeT,IAAUA,EAAQ,YAAYA,GACrDU,IAAOD,EAAM,SAAS,MAAM,GAC5BE,KAAkBF,EAAM,SAAS,iBAAiB,GAClD;AAAA,IACJ,SAAAG;AAAA,EACJ,IAAMH,EAAM,SACJI,IAAOC,GAAgBN,EAAY,GACnCO,KAAiBC,EAAkB,OAAOZ,KAAqB,aAAaA,IAAmB,MAAM,EAAK,GAC1Ga,IAAe,OAAOb,KAAqB,aAAaW,KAAiBX,GACz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AK,GACtCK,GAAoB,GACpBrC,EAA4B,UAAU;AAAA,IACxC;AAAA,EACF,GAAG,CAACb,GAASD,IAAiBR,GAAWe,IAAqBD,GAAcP,GAAMR,GAASkB,GAAkBC,IAAqBuB,GAAsBZ,GAAsBb,IAA0Bc,GAAkBK,GAA0BzB,GAAMJ,GAAOoB,CAAyB,CAAC,GAC3RN,EAAM,UAAUS,GAAsB,CAACf,GAAce,CAAoB,CAAC;AAC1E,QAAM2F,IAAYpG,EAAM,QAAQ,OAAO;AAAA,IACrC,WAAWqB;AAAA,IACX,eAAeH;AAAA,IACf,SAASA;AAAA,EACb,IAAM,CAACG,GAAsBH,CAAqB,CAAC,GAC3CmF,KAAWrG,EAAM,QAAQ,OAAO;AAAA,IACpC,WAAWqB;AAAA;AAAA;AAAA;AAAA,IAIX,eAAeU;AAAA,IACf,aAAaA;AAAA,IACb,gBAAgBL;AAAA,IAChB,mBAAmBV,GAAO;AACxB,MAAAU,EAAmB,GACnBC,EAAgCX,CAAK;AAAA,IACvC;AAAA,IACA,qBAAqBA,GAAO;AAC1B,MAAAU,EAAmB,GACnBC,EAAgCX,CAAK;AAAA,IACvC;AAAA,IACA,kBAAkBU;AAAA,IAClB,mBAAmBA;AAAA,IACnB,oBAAoBA;AAAA,EACxB,IAAM,CAACL,GAAsBK,GAAqBC,GAAiCI,CAA6B,CAAC;AAC/G,SAAO/B,EAAM,QAAQ,MAAMrB,IAAU;AAAA,IACnC,WAAAyH;AAAA,IACA,UAAAC;AAAA,IACA,SAASD;AAAA,EACb,IAAM,CAAA,GAAI,CAACzH,GAASyH,GAAWC,EAAQ,CAAC;AACxC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index219.js","sources":["../../../node_modules/date-fns/getWeek.js"],"sourcesContent":["import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { startOfWeekYear } from \"./startOfWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeek} function options.\n */\n\n/**\n * @name getWeek\n * @category Week Helpers\n * @summary Get the local week index of the given date.\n *\n * @description\n * Get the local week index of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The week\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005 with default options?\n * const result = getWeek(new Date(2005, 0, 2))\n * //=> 2\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January?\n * const result = getWeek(new Date(2005, 0, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> 53\n */\nexport function getWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getWeek;\n"],"names":["getWeek","date","options","_date","toDate","diff","startOfWeek","startOfWeekYear","millisecondsInWeek"],"mappings":";;;;AA2CO,SAASA,EAAQC,GAAMC,GAAS;AACrC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAO,CAACC,EAAYH,GAAOD,CAAO,IAAI,CAACK,EAAgBJ,GAAOD,CAAO;AAK3E,SAAO,KAAK,MAAMG,IAAOG,CAAkB,IAAI;AACjD;","x_google_ignoreList":[0]}
package/dist/index22.js CHANGED
@@ -1,6 +1,6 @@
1
- import { c as m } from "./index28.js";
1
+ import { c as m } from "./index29.js";
2
2
  import { useState as p, useEffect as d } from "react";
3
- import { setOptions as g, importLibrary as w } from "./index29.js";
3
+ import { setOptions as g, importLibrary as w } from "./index63.js";
4
4
  let l = null, f = null;
5
5
  const u = /* @__PURE__ */ new Map(), h = (r) => {
6
6
  if (!r) {
package/dist/index220.js CHANGED
@@ -1,256 +1,8 @@
1
- import * as f from "react";
2
- import { useAnimationFrame as Me } from "./index241.js";
3
- import { useIsoLayoutEffect as T } from "./index201.js";
4
- import { ownerDocument as be } from "./index224.js";
5
- import { useStableCallback as S } from "./index202.js";
6
- import { useValueAsRef as k } from "./index203.js";
7
- import { isHTMLElement as Pe } from "./index248.js";
8
- import { createChangeEventDetails as ce } from "./index175.js";
9
- import { useFloatingParentNodeId as ze, useFloatingTree as We } from "./index386.js";
10
- import { isIndexOutOfListBounds as Fe, getMinListIndex as ie, getMaxListIndex as ve, findNonDisabledListIndex as G } from "./index382.js";
11
- import { ARROW_LEFT as B, ARROW_RIGHT as Q, ARROW_UP as Se, ARROW_DOWN as le } from "./index390.js";
12
- import { getFloatingFocusElement as _e, isTypeableCombobox as qe } from "./index230.js";
13
- import { enqueueFocus as He } from "./index384.js";
14
- import { stopEvent as P, isVirtualClick as Ge, isVirtualPointerEvent as $e } from "./index253.js";
15
- import { activeElement as ue, contains as se, getTarget as Be } from "./index231.js";
16
- import { listNavigation as Te, focusOut as Qe } from "./index177.js";
17
- const Ue = "Escape";
18
- function U(c, d, n) {
19
- switch (c) {
20
- case "vertical":
21
- return d;
22
- case "horizontal":
23
- return n;
24
- default:
25
- return d || n;
26
- }
27
- }
28
- function $(c, d) {
29
- return U(d, c === Se || c === le, c === B || c === Q);
30
- }
31
- function ae(c, d, n) {
32
- return U(d, c === le, n ? c === B : c === Q) || c === "Enter" || c === " " || c === "";
33
- }
34
- function je(c, d, n) {
35
- return U(d, n ? c === B : c === Q, c === le);
36
- }
37
- function Je(c, d, n, p) {
38
- const K = n ? c === Q : c === B, R = c === Se;
39
- return d === "both" || d === "horizontal" && p ? c === Ue : U(d, K, R);
40
- }
41
- function dr(c, d) {
42
- const {
43
- listRef: n,
44
- activeIndex: p,
45
- onNavigate: K = () => {
46
- },
47
- enabled: R = !0,
48
- selectedIndex: L = null,
49
- allowEscape: j = !1,
50
- loopFocus: V = !1,
51
- nested: w = !1,
52
- rtl: O = !1,
53
- virtual: s = !1,
54
- focusItemOnOpen: y = "auto",
55
- focusItemOnHover: J = !0,
56
- openOnArrowKeyDown: X = !0,
57
- disabledIndices: x = void 0,
58
- orientation: a = "vertical",
59
- parentOrientation: Ke,
60
- id: fe,
61
- resetOnPointerLeave: Le = !0,
62
- externalTree: Ce,
63
- grid: Y
64
- } = d, de = Y != null;
65
- process.env.NODE_ENV !== "production" && (j && (V || console.warn("`useListNavigation` looping must be enabled to allow escaping."), s || console.warn("`useListNavigation` must be virtual to allow escaping.")), a === "vertical" && de && console.warn("In grid list navigation mode, the `orientation` should", 'be either "horizontal" or "both".'));
66
- const g = "rootStore" in c ? c.rootStore : c, m = g.useState("open"), E = g.useState("floatingElement"), I = g.useState("domReferenceElement"), me = g.context.dataRef, De = _e(E), Z = qe(I), C = k(De), ee = ze(), F = We(Ce), M = f.useRef(y), o = f.useRef(L ?? -1), b = f.useRef(null), v = f.useRef(!0), u = S((e) => {
67
- K(o.current === -1 ? null : o.current, e);
68
- }), D = f.useRef(!!E), pe = f.useRef(m), h = f.useRef(!1), z = f.useRef(!1), re = f.useRef(null), Ne = k(x), W = k(m), N = k(L), ge = k(Le), Ae = Me(), Re = Me(), te = S(() => {
69
- function e(i) {
70
- s ? F?.events.emit("virtualfocus", i) : re.current = He(i, {
71
- sync: h.current,
72
- preventScroll: !0
73
- });
74
- }
75
- const r = n.current[o.current], l = z.current;
76
- r && e(r), (h.current ? (i) => i() : (i) => Ae.request(i))(() => {
77
- const i = n.current[o.current] || r;
78
- if (!i)
79
- return;
80
- r || e(i), // eslint-disable-next-line @typescript-eslint/no-use-before-define
81
- oe && (l || !v.current) && i.scrollIntoView?.({
82
- block: "nearest",
83
- inline: "nearest"
84
- });
85
- });
86
- });
87
- T(() => {
88
- me.current.orientation = a;
89
- }, [me, a]), T(() => {
90
- R && (m && E ? (o.current = L ?? -1, M.current && L != null && (z.current = !0, u())) : D.current && (o.current = -1, u()));
91
- }, [R, m, E, L, u]), T(() => {
92
- if (R) {
93
- if (!m) {
94
- h.current = !1;
95
- return;
96
- }
97
- if (E)
98
- if (p == null) {
99
- if (h.current = !1, N.current != null)
100
- return;
101
- if (D.current && (o.current = -1, te()), (!pe.current || !D.current) && M.current && (b.current != null || M.current === !0 && b.current == null)) {
102
- let e = 0;
103
- const r = () => {
104
- n.current[0] == null ? (e < 2 && (e ? (t) => Re.request(t) : queueMicrotask)(r), e += 1) : (o.current = b.current == null || ae(b.current, a, O) || w ? ie(n) : ve(n), b.current = null, u());
105
- };
106
- r();
107
- }
108
- } else Fe(n.current, p) || (o.current = p, te(), z.current = !1);
109
- }
110
- }, [R, m, E, p, N, w, n, a, O, u, te, Re]), T(() => {
111
- if (!R || E || !F || s || !D.current)
112
- return;
113
- const e = F.nodesRef.current, r = e.find((i) => i.id === ee)?.context?.elements.floating, l = ue(be(I ?? r ?? null)), t = e.some((i) => i.context && se(i.context.elements.floating, l));
114
- r && !t && v.current && r.focus({
115
- preventScroll: !0
116
- });
117
- }, [R, E, I, F, ee, s]), T(() => {
118
- pe.current = m, D.current = !!E;
119
- }), T(() => {
120
- m || (b.current = null, M.current = y);
121
- }, [m, y]);
122
- const he = p != null, ne = S((e) => {
123
- if (!W.current)
124
- return;
125
- const r = n.current.indexOf(e.currentTarget);
126
- r !== -1 && (o.current !== r || p !== r) && (o.current = r, u(e));
127
- }), _ = S(() => Ke ?? F?.nodesRef.current.find((e) => e.id === ee)?.context?.dataRef?.current.orientation), Ee = S(() => ie(n, Ne.current)), A = S((e) => {
128
- if (v.current = !1, h.current = !0, e.which === 229 || !W.current && e.currentTarget === C.current)
129
- return;
130
- if (w && Je(e.key, a, O, de)) {
131
- $(e.key, _()) || P(e), g.setOpen(!1, ce(Te, e.nativeEvent)), Pe(I) && (s ? F?.events.emit("virtualfocus", I) : I.focus());
132
- return;
133
- }
134
- const r = o.current, l = ie(n, x), t = ve(n, x);
135
- if (Z || (e.key === "Home" && (P(e), o.current = l, u(e)), e.key === "End" && (P(e), o.current = t, u(e))), Y != null) {
136
- const i = Y(e, o.current, n, a, V, O, x, l, t);
137
- if (i != null && (o.current = i, u(e)), a === "both")
138
- return;
139
- }
140
- if ($(e.key, a)) {
141
- if (P(e), m && !s && ue(e.currentTarget.ownerDocument) === e.currentTarget) {
142
- o.current = ae(e.key, a, O) ? l : t, u(e);
143
- return;
144
- }
145
- ae(e.key, a, O) ? V ? r >= t ? j && r !== n.current.length ? o.current = -1 : (h.current = !1, o.current = l) : o.current = G(n.current, {
146
- startingIndex: r,
147
- disabledIndices: x
148
- }) : o.current = Math.min(t, G(n.current, {
149
- startingIndex: r,
150
- disabledIndices: x
151
- })) : V ? r <= l ? j && r !== -1 ? o.current = n.current.length : (h.current = !1, o.current = t) : o.current = G(n.current, {
152
- startingIndex: r,
153
- decrement: !0,
154
- disabledIndices: x
155
- }) : o.current = Math.max(l, G(n.current, {
156
- startingIndex: r,
157
- decrement: !0,
158
- disabledIndices: x
159
- })), Fe(n.current, o.current) && (o.current = -1), u(e);
160
- }
161
- }), oe = f.useMemo(() => ({
162
- onFocus(r) {
163
- h.current = !0, ne(r);
164
- },
165
- onClick: ({
166
- currentTarget: r
167
- }) => r.focus({
168
- preventScroll: !0
169
- }),
170
- // Safari
171
- onMouseMove(r) {
172
- h.current = !0, z.current = !1, J && ne(r);
173
- },
174
- onPointerLeave(r) {
175
- if (!W.current || !v.current || r.pointerType === "touch")
176
- return;
177
- h.current = !0;
178
- const l = r.relatedTarget;
179
- if (!(!J || n.current.includes(l)) && ge.current && (re.current?.(), re.current = null, o.current = -1, u(r), !s)) {
180
- const t = C.current, i = ue(be(t));
181
- t && se(t, i) && t.focus({
182
- preventScroll: !0
183
- });
184
- }
185
- }
186
- }), [ne, W, C, J, n, u, ge, s]), q = f.useMemo(() => s && m && he && {
187
- "aria-activedescendant": `${fe}-${p}`
188
- }, [s, m, he, fe, p]), Ie = f.useMemo(() => ({
189
- "aria-orientation": a === "both" ? void 0 : a,
190
- ...Z ? {} : q,
191
- onKeyDown(e) {
192
- if (e.key === "Tab" && e.shiftKey && m && !s) {
193
- const r = Be(e.nativeEvent);
194
- if (r && !se(C.current, r))
195
- return;
196
- P(e), g.setOpen(!1, ce(Qe, e.nativeEvent)), Pe(I) && I.focus();
197
- return;
198
- }
199
- A(e);
200
- },
201
- onPointerMove() {
202
- v.current = !0;
203
- }
204
- }), [q, A, C, a, Z, g, m, s, I]), H = f.useMemo(() => {
205
- function e(t) {
206
- g.setOpen(!0, ce(Te, t.nativeEvent, t.currentTarget));
207
- }
208
- function r(t) {
209
- y === "auto" && Ge(t.nativeEvent) && (M.current = !s);
210
- }
211
- function l(t) {
212
- M.current = y, y === "auto" && $e(t.nativeEvent) && (M.current = !0);
213
- }
214
- return {
215
- onKeyDown(t) {
216
- const i = g.select("open");
217
- v.current = !1;
218
- const xe = t.key.startsWith("Arrow"), we = je(t.key, _(), O), ye = $(t.key, a), ke = (w ? we : ye) || t.key === "Enter" || t.key.trim() === "";
219
- if (s && i)
220
- return A(t);
221
- if (!(!i && !X && xe)) {
222
- if (ke) {
223
- const Ve = $(t.key, _());
224
- b.current = w && Ve ? null : t.key;
225
- }
226
- if (w) {
227
- we && (P(t), i ? (o.current = Ee(), u(t)) : e(t));
228
- return;
229
- }
230
- ye && (N.current != null && (o.current = N.current), P(t), !i && X ? e(t) : A(t), i && u(t));
231
- }
232
- },
233
- onFocus(t) {
234
- g.select("open") && !s && (o.current = -1, u(t));
235
- },
236
- onPointerDown: l,
237
- onPointerEnter: l,
238
- onMouseDown: r,
239
- onClick: r
240
- };
241
- }, [A, y, Ee, w, u, g, X, a, _, O, N, s]), Oe = f.useMemo(() => ({
242
- ...q,
243
- ...H
244
- }), [q, H]);
245
- return f.useMemo(() => R ? {
246
- reference: Oe,
247
- floating: Ie,
248
- item: oe,
249
- trigger: H
250
- } : {}, [R, Oe, Ie, H, oe]);
1
+ import { toDate as t } from "./index393.js";
2
+ function f(r, o) {
3
+ return +t(r) > +t(o);
251
4
  }
252
5
  export {
253
- Ue as ESCAPE,
254
- dr as useListNavigation
6
+ f as isAfter
255
7
  };
256
8
  //# sourceMappingURL=index220.js.map