@rpcbase/ui 0.253.0 → 0.255.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 (556) 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/index105.js +36 -36
  4. package/dist/index117.js +6 -6
  5. package/dist/index120.js +10 -10
  6. package/dist/index122.js +2 -2
  7. package/dist/index123.js +3 -3
  8. package/dist/index124.js +1 -1
  9. package/dist/index126.js +2 -2
  10. package/dist/index128.js +2 -2
  11. package/dist/index167.js +3 -3
  12. package/dist/index171.js +58 -14
  13. package/dist/index171.js.map +1 -1
  14. package/dist/index172.js +8 -68
  15. package/dist/index172.js.map +1 -1
  16. package/dist/index173.js +87 -37
  17. package/dist/index173.js.map +1 -1
  18. package/dist/index174.js +19 -13
  19. package/dist/index174.js.map +1 -1
  20. package/dist/index175.js +16 -23
  21. package/dist/index175.js.map +1 -1
  22. package/dist/index176.js +5 -111
  23. package/dist/index176.js.map +1 -1
  24. package/dist/index177.js +6 -13
  25. package/dist/index177.js.map +1 -1
  26. package/dist/index178.js +6 -4
  27. package/dist/index178.js.map +1 -1
  28. package/dist/index179.js +5 -4
  29. package/dist/index179.js.map +1 -1
  30. package/dist/index180.js +7 -5
  31. package/dist/index180.js.map +1 -1
  32. package/dist/index181.js +16 -11
  33. package/dist/index181.js.map +1 -1
  34. package/dist/index182.js +4 -19
  35. package/dist/index182.js.map +1 -1
  36. package/dist/index183.js +5 -11
  37. package/dist/index183.js.map +1 -1
  38. package/dist/index184.js +12 -176
  39. package/dist/index184.js.map +1 -1
  40. package/dist/index185.js +9 -279
  41. package/dist/index185.js.map +1 -1
  42. package/dist/index186.js +13 -4
  43. package/dist/index186.js.map +1 -1
  44. package/dist/index187.js +14 -28
  45. package/dist/index187.js.map +1 -1
  46. package/dist/index188.js +4 -126
  47. package/dist/index188.js.map +1 -1
  48. package/dist/index189.js +5 -63
  49. package/dist/index189.js.map +1 -1
  50. package/dist/index190.js +6 -8
  51. package/dist/index190.js.map +1 -1
  52. package/dist/index191.js +6 -16
  53. package/dist/index191.js.map +1 -1
  54. package/dist/index192.js +53 -29
  55. package/dist/index192.js.map +1 -1
  56. package/dist/index193.js +8 -69
  57. package/dist/index193.js.map +1 -1
  58. package/dist/index194.js +5 -20
  59. package/dist/index194.js.map +1 -1
  60. package/dist/index195.js +4 -66
  61. package/dist/index195.js.map +1 -1
  62. package/dist/index196.js +8 -6
  63. package/dist/index196.js.map +1 -1
  64. package/dist/index197.js +4 -5
  65. package/dist/index197.js.map +1 -1
  66. package/dist/index198.js +4 -11
  67. package/dist/index198.js.map +1 -1
  68. package/dist/index199.js +3 -3
  69. package/dist/index199.js.map +1 -1
  70. package/dist/index200.js +10 -50
  71. package/dist/index200.js.map +1 -1
  72. package/dist/index201.js +10 -4
  73. package/dist/index201.js.map +1 -1
  74. package/dist/index202.js +9 -29
  75. package/dist/index202.js.map +1 -1
  76. package/dist/index203.js +10 -16
  77. package/dist/index203.js.map +1 -1
  78. package/dist/index204.js +10 -5
  79. package/dist/index204.js.map +1 -1
  80. package/dist/index205.js +9 -21
  81. package/dist/index205.js.map +1 -1
  82. package/dist/index206.js +6 -53
  83. package/dist/index206.js.map +1 -1
  84. package/dist/index207.js +5 -20
  85. package/dist/index207.js.map +1 -1
  86. package/dist/index208.js +4 -41
  87. package/dist/index208.js.map +1 -1
  88. package/dist/index209.js +5 -39
  89. package/dist/index209.js.map +1 -1
  90. package/dist/index210.js +7 -46
  91. package/dist/index210.js.map +1 -1
  92. package/dist/index211.js +5 -20
  93. package/dist/index211.js.map +1 -1
  94. package/dist/index212.js +13 -67
  95. package/dist/index212.js.map +1 -1
  96. package/dist/index213.js +7 -17
  97. package/dist/index213.js.map +1 -1
  98. package/dist/index214.js +10 -3
  99. package/dist/index214.js.map +1 -1
  100. package/dist/index215.js +10 -11
  101. package/dist/index215.js.map +1 -1
  102. package/dist/index216.js +21 -13
  103. package/dist/index216.js.map +1 -1
  104. package/dist/index217.js +8 -18
  105. package/dist/index217.js.map +1 -1
  106. package/dist/index218.js +9 -36
  107. package/dist/index218.js.map +1 -1
  108. package/dist/index219.js +9 -239
  109. package/dist/index219.js.map +1 -1
  110. package/dist/index220.js +4 -252
  111. package/dist/index220.js.map +1 -1
  112. package/dist/index221.js +5 -68
  113. package/dist/index221.js.map +1 -1
  114. package/dist/index222.js +15 -98
  115. package/dist/index222.js.map +1 -1
  116. package/dist/index223.js +9 -83
  117. package/dist/index223.js.map +1 -1
  118. package/dist/index224.js +18 -3
  119. package/dist/index224.js.map +1 -1
  120. package/dist/index225.js +19 -28
  121. package/dist/index225.js.map +1 -1
  122. package/dist/index226.js +12 -16
  123. package/dist/index226.js.map +1 -1
  124. package/dist/index227.js +29 -34
  125. package/dist/index227.js.map +1 -1
  126. package/dist/index228.js +12 -17
  127. package/dist/index228.js.map +1 -1
  128. package/dist/index229.js +25 -3
  129. package/dist/index229.js.map +1 -1
  130. package/dist/index230.js +5 -26
  131. package/dist/index230.js.map +1 -1
  132. package/dist/index231.js +14 -28
  133. package/dist/index231.js.map +1 -1
  134. package/dist/index232.js +69 -4
  135. package/dist/index232.js.map +1 -1
  136. package/dist/index233.js +38 -79
  137. package/dist/index233.js.map +1 -1
  138. package/dist/index234.js +14 -273
  139. package/dist/index234.js.map +1 -1
  140. package/dist/index235.js +23 -11
  141. package/dist/index235.js.map +1 -1
  142. package/dist/index236.js +111 -10
  143. package/dist/index236.js.map +1 -1
  144. package/dist/index237.js +13 -26
  145. package/dist/index237.js.map +1 -1
  146. package/dist/index238.js +4 -16
  147. package/dist/index238.js.map +1 -1
  148. package/dist/index239.js +4 -126
  149. package/dist/index239.js.map +1 -1
  150. package/dist/index240.js +5 -6
  151. package/dist/index240.js.map +1 -1
  152. package/dist/index241.js +11 -65
  153. package/dist/index241.js.map +1 -1
  154. package/dist/index242.js +20 -14
  155. package/dist/index242.js.map +1 -1
  156. package/dist/index243.js +11 -8
  157. package/dist/index243.js.map +1 -1
  158. package/dist/index244.js +176 -5
  159. package/dist/index244.js.map +1 -1
  160. package/dist/index245.js +279 -3
  161. package/dist/index245.js.map +1 -1
  162. package/dist/index246.js +4 -10
  163. package/dist/index246.js.map +1 -1
  164. package/dist/index247.js +28 -8
  165. package/dist/index247.js.map +1 -1
  166. package/dist/index248.js +124 -131
  167. package/dist/index248.js.map +1 -1
  168. package/dist/index249.js +61 -397
  169. package/dist/index249.js.map +1 -1
  170. package/dist/index250.js +9 -5
  171. package/dist/index250.js.map +1 -1
  172. package/dist/index251.js +16 -53
  173. package/dist/index251.js.map +1 -1
  174. package/dist/index252.js +30 -11
  175. package/dist/index252.js.map +1 -1
  176. package/dist/index253.js +69 -27
  177. package/dist/index253.js.map +1 -1
  178. package/dist/index254.js +20 -12
  179. package/dist/index254.js.map +1 -1
  180. package/dist/index255.js +65 -57
  181. package/dist/index255.js.map +1 -1
  182. package/dist/index256.js +6 -8
  183. package/dist/index256.js.map +1 -1
  184. package/dist/index257.js +5 -87
  185. package/dist/index257.js.map +1 -1
  186. package/dist/index258.js +11 -19
  187. package/dist/index258.js.map +1 -1
  188. package/dist/index259.js +3 -16
  189. package/dist/index259.js.map +1 -1
  190. package/dist/index260.js +49 -4
  191. package/dist/index260.js.map +1 -1
  192. package/dist/index261.js +4 -6
  193. package/dist/index261.js.map +1 -1
  194. package/dist/index262.js +29 -6
  195. package/dist/index262.js.map +1 -1
  196. package/dist/index263.js +16 -4
  197. package/dist/index263.js.map +1 -1
  198. package/dist/index264.js +5 -6
  199. package/dist/index264.js.map +1 -1
  200. package/dist/index265.js +21 -16
  201. package/dist/index265.js.map +1 -1
  202. package/dist/index266.js +53 -4
  203. package/dist/index266.js.map +1 -1
  204. package/dist/index267.js +20 -4
  205. package/dist/index267.js.map +1 -1
  206. package/dist/index268.js +41 -12
  207. package/dist/index268.js.map +1 -1
  208. package/dist/index269.js +39 -9
  209. package/dist/index269.js.map +1 -1
  210. package/dist/index270.js +46 -14
  211. package/dist/index270.js.map +1 -1
  212. package/dist/index271.js +20 -13
  213. package/dist/index271.js.map +1 -1
  214. package/dist/index272.js +70 -4
  215. package/dist/index272.js.map +1 -1
  216. package/dist/index273.js +17 -5
  217. package/dist/index273.js.map +1 -1
  218. package/dist/index274.js +3 -6
  219. package/dist/index274.js.map +1 -1
  220. package/dist/index275.js +11 -5
  221. package/dist/index275.js.map +1 -1
  222. package/dist/index276.js +12 -53
  223. package/dist/index276.js.map +1 -1
  224. package/dist/index277.js +18 -8
  225. package/dist/index277.js.map +1 -1
  226. package/dist/index278.js +36 -4
  227. package/dist/index278.js.map +1 -1
  228. package/dist/index279.js +239 -4
  229. package/dist/index279.js.map +1 -1
  230. package/dist/index280.js +252 -8
  231. package/dist/index280.js.map +1 -1
  232. package/dist/index281.js +68 -4
  233. package/dist/index281.js.map +1 -1
  234. package/dist/index282.js +99 -4
  235. package/dist/index282.js.map +1 -1
  236. package/dist/index283.js +83 -3
  237. package/dist/index283.js.map +1 -1
  238. package/dist/index284.js +3 -10
  239. package/dist/index284.js.map +1 -1
  240. package/dist/index285.js +29 -9
  241. package/dist/index285.js.map +1 -1
  242. package/dist/index286.js +16 -9
  243. package/dist/index286.js.map +1 -1
  244. package/dist/index287.js +35 -11
  245. package/dist/index287.js.map +1 -1
  246. package/dist/index288.js +17 -10
  247. package/dist/index288.js.map +1 -1
  248. package/dist/index289.js +3 -9
  249. package/dist/index289.js.map +1 -1
  250. package/dist/index290.js +26 -6
  251. package/dist/index290.js.map +1 -1
  252. package/dist/index291.js +28 -5
  253. package/dist/index291.js.map +1 -1
  254. package/dist/index292.js +4 -5
  255. package/dist/index292.js.map +1 -1
  256. package/dist/index293.js +78 -5
  257. package/dist/index293.js.map +1 -1
  258. package/dist/index294.js +272 -6
  259. package/dist/index294.js.map +1 -1
  260. package/dist/index295.js +11 -5
  261. package/dist/index295.js.map +1 -1
  262. package/dist/index296.js +10 -16
  263. package/dist/index296.js.map +1 -1
  264. package/dist/index297.js +25 -7
  265. package/dist/index297.js.map +1 -1
  266. package/dist/index298.js +16 -10
  267. package/dist/index298.js.map +1 -1
  268. package/dist/index299.js +124 -9
  269. package/dist/index299.js.map +1 -1
  270. package/dist/index300.js +5 -21
  271. package/dist/index300.js.map +1 -1
  272. package/dist/index301.js +65 -8
  273. package/dist/index301.js.map +1 -1
  274. package/dist/index302.js +14 -10
  275. package/dist/index302.js.map +1 -1
  276. package/dist/index303.js +7 -9
  277. package/dist/index303.js.map +1 -1
  278. package/dist/index304.js +5 -4
  279. package/dist/index304.js.map +1 -1
  280. package/dist/index305.js +3 -5
  281. package/dist/index305.js.map +1 -1
  282. package/dist/index306.js +10 -16
  283. package/dist/index306.js.map +1 -1
  284. package/dist/index307.js +7 -9
  285. package/dist/index307.js.map +1 -1
  286. package/dist/index308.js +132 -17
  287. package/dist/index308.js.map +1 -1
  288. package/dist/index309.js +397 -18
  289. package/dist/index309.js.map +1 -1
  290. package/dist/index310.js +5 -13
  291. package/dist/index310.js.map +1 -1
  292. package/dist/index311.js +52 -29
  293. package/dist/index311.js.map +1 -1
  294. package/dist/index312.js +11 -12
  295. package/dist/index312.js.map +1 -1
  296. package/dist/index313.js +27 -25
  297. package/dist/index313.js.map +1 -1
  298. package/dist/index314.js +11 -5
  299. package/dist/index314.js.map +1 -1
  300. package/dist/index317.js +1 -1
  301. package/dist/index318.js +1 -1
  302. package/dist/index321.js +2 -2
  303. package/dist/index322.js +2 -2
  304. package/dist/index325.js +1 -1
  305. package/dist/index330.js +135 -3
  306. package/dist/index330.js.map +1 -1
  307. package/dist/index331.js +17 -9
  308. package/dist/index331.js.map +1 -1
  309. package/dist/index332.js +13 -133
  310. package/dist/index332.js.map +1 -1
  311. package/dist/index333.js +3 -17
  312. package/dist/index333.js.map +1 -1
  313. package/dist/index334.js +33 -12
  314. package/dist/index334.js.map +1 -1
  315. package/dist/index335.js +19 -35
  316. package/dist/index335.js.map +1 -1
  317. package/dist/index336.js +8 -20
  318. package/dist/index336.js.map +1 -1
  319. package/dist/index337.js +24 -8
  320. package/dist/index337.js.map +1 -1
  321. package/dist/index338.js +23 -19
  322. package/dist/index338.js.map +1 -1
  323. package/dist/index339.js +14 -26
  324. package/dist/index339.js.map +1 -1
  325. package/dist/index34.js +2 -2
  326. package/dist/index340.js +9 -16
  327. package/dist/index340.js.map +1 -1
  328. package/dist/index341.js +4 -8
  329. package/dist/index341.js.map +1 -1
  330. package/dist/index342.js +18 -12
  331. package/dist/index342.js.map +1 -1
  332. package/dist/index343.js +12 -8
  333. package/dist/index343.js.map +1 -1
  334. package/dist/index344.js +8 -13
  335. package/dist/index344.js.map +1 -1
  336. package/dist/index345.js +11 -3
  337. package/dist/index345.js.map +1 -1
  338. package/dist/index346.js +8 -3
  339. package/dist/index346.js.map +1 -1
  340. package/dist/index347.js +12 -16
  341. package/dist/index347.js.map +1 -1
  342. package/dist/index348.js +3 -5
  343. package/dist/index348.js.map +1 -1
  344. package/dist/index349.js +3 -51
  345. package/dist/index349.js.map +1 -1
  346. package/dist/index35.js +5 -5
  347. package/dist/index350.js +16 -60
  348. package/dist/index350.js.map +1 -1
  349. package/dist/index351.js +49 -64
  350. package/dist/index351.js.map +1 -1
  351. package/dist/index352.js +5 -8
  352. package/dist/index352.js.map +1 -1
  353. package/dist/index353.js +62 -5
  354. package/dist/index353.js.map +1 -1
  355. package/dist/index354.js +66 -11
  356. package/dist/index354.js.map +1 -1
  357. package/dist/index355.js +8 -21
  358. package/dist/index355.js.map +1 -1
  359. package/dist/index356.js +5 -17
  360. package/dist/index356.js.map +1 -1
  361. package/dist/index357.js +12 -8
  362. package/dist/index357.js.map +1 -1
  363. package/dist/index358.js +21 -144
  364. package/dist/index358.js.map +1 -1
  365. package/dist/index359.js +14 -77
  366. package/dist/index359.js.map +1 -1
  367. package/dist/index36.js +11 -11
  368. package/dist/index360.js +8 -62
  369. package/dist/index360.js.map +1 -1
  370. package/dist/index361.js +145 -15
  371. package/dist/index361.js.map +1 -1
  372. package/dist/index362.js +79 -5
  373. package/dist/index362.js.map +1 -1
  374. package/dist/index363.js +62 -4
  375. package/dist/index363.js.map +1 -1
  376. package/dist/index364.js +15 -3
  377. package/dist/index364.js.map +1 -1
  378. package/dist/index366.js +4 -21
  379. package/dist/index366.js.map +1 -1
  380. package/dist/index367.js +6 -45
  381. package/dist/index367.js.map +1 -1
  382. package/dist/index368.js +3 -18
  383. package/dist/index368.js.map +1 -1
  384. package/dist/index369.js +21 -5
  385. package/dist/index369.js.map +1 -1
  386. package/dist/index37.js +3 -3
  387. package/dist/index370.js +44 -200
  388. package/dist/index370.js.map +1 -1
  389. package/dist/index371.js +17 -73
  390. package/dist/index371.js.map +1 -1
  391. package/dist/index372.js +5 -124
  392. package/dist/index372.js.map +1 -1
  393. package/dist/index373.js +200 -4
  394. package/dist/index373.js.map +1 -1
  395. package/dist/index374.js +74 -18
  396. package/dist/index374.js.map +1 -1
  397. package/dist/index375.js +123 -12
  398. package/dist/index375.js.map +1 -1
  399. package/dist/index378.js +4 -8
  400. package/dist/index378.js.map +1 -1
  401. package/dist/index379.js +5 -27
  402. package/dist/index379.js.map +1 -1
  403. package/dist/index38.js +4 -4
  404. package/dist/index380.js +4 -138
  405. package/dist/index380.js.map +1 -1
  406. package/dist/index381.js +15 -12
  407. package/dist/index381.js.map +1 -1
  408. package/dist/index382.js +8 -46
  409. package/dist/index382.js.map +1 -1
  410. package/dist/index383.js +5 -3
  411. package/dist/index383.js.map +1 -1
  412. package/dist/index384.js +4 -21
  413. package/dist/index384.js.map +1 -1
  414. package/dist/index385.js +542 -72
  415. package/dist/index385.js.map +1 -1
  416. package/dist/index386.js +46 -11
  417. package/dist/index386.js.map +1 -1
  418. package/dist/index387.js +17 -3
  419. package/dist/index387.js.map +1 -1
  420. package/dist/index388.js +5 -71
  421. package/dist/index388.js.map +1 -1
  422. package/dist/index389.js +7 -35
  423. package/dist/index389.js.map +1 -1
  424. package/dist/index39.js +5 -5
  425. package/dist/index390.js +7 -7
  426. package/dist/index390.js.map +1 -1
  427. package/dist/index391.js +7 -15
  428. package/dist/index391.js.map +1 -1
  429. package/dist/index392.js +12 -3
  430. package/dist/index392.js.map +1 -1
  431. package/dist/index393.js +9 -3
  432. package/dist/index393.js.map +1 -1
  433. package/dist/index394.js +12 -4
  434. package/dist/index394.js.map +1 -1
  435. package/dist/index395.js +8 -4
  436. package/dist/index395.js.map +1 -1
  437. package/dist/index396.js +27 -4
  438. package/dist/index396.js.map +1 -1
  439. package/dist/index397.js +136 -14
  440. package/dist/index397.js.map +1 -1
  441. package/dist/index398.js +12 -8
  442. package/dist/index398.js.map +1 -1
  443. package/dist/index399.js +46 -5
  444. package/dist/index399.js.map +1 -1
  445. package/dist/index40.js +3 -3
  446. package/dist/index400.js +3 -4
  447. package/dist/index400.js.map +1 -1
  448. package/dist/index401.js +20 -544
  449. package/dist/index401.js.map +1 -1
  450. package/dist/index402.js +75 -46
  451. package/dist/index402.js.map +1 -1
  452. package/dist/index403.js +12 -18
  453. package/dist/index403.js.map +1 -1
  454. package/dist/index404.js +3 -5
  455. package/dist/index404.js.map +1 -1
  456. package/dist/index405.js +71 -7
  457. package/dist/index405.js.map +1 -1
  458. package/dist/index406.js +35 -6
  459. package/dist/index406.js.map +1 -1
  460. package/dist/index407.js +7 -8
  461. package/dist/index407.js.map +1 -1
  462. package/dist/index408.js +15 -11
  463. package/dist/index408.js.map +1 -1
  464. package/dist/index409.js +3 -9
  465. package/dist/index409.js.map +1 -1
  466. package/dist/index41.js +10 -10
  467. package/dist/index410.js +3 -13
  468. package/dist/index410.js.map +1 -1
  469. package/dist/index411.js +4 -14
  470. package/dist/index411.js.map +1 -1
  471. package/dist/index412.js +56 -3
  472. package/dist/index412.js.map +1 -1
  473. package/dist/index413.js +66 -490
  474. package/dist/index413.js.map +1 -1
  475. package/dist/index414.js +31 -8
  476. package/dist/index414.js.map +1 -1
  477. package/dist/index415.js +9 -2
  478. package/dist/index415.js.map +1 -1
  479. package/dist/index416.js +150 -41
  480. package/dist/index416.js.map +1 -1
  481. package/dist/index417.js +108 -56
  482. package/dist/index417.js.map +1 -1
  483. package/dist/index418.js +3 -8
  484. package/dist/index418.js.map +1 -1
  485. package/dist/index419.js +15 -2
  486. package/dist/index419.js.map +1 -1
  487. package/dist/index420.js +487 -50
  488. package/dist/index420.js.map +1 -1
  489. package/dist/index421.js +7 -55
  490. package/dist/index421.js.map +1 -1
  491. package/dist/index422.js +2 -33
  492. package/dist/index422.js.map +1 -1
  493. package/dist/index423.js +43 -4
  494. package/dist/index423.js.map +1 -1
  495. package/dist/index424.js +55 -55
  496. package/dist/index424.js.map +1 -1
  497. package/dist/index425.js +8 -68
  498. package/dist/index425.js.map +1 -1
  499. package/dist/index426.js +2 -31
  500. package/dist/index426.js.map +1 -1
  501. package/dist/index427.js +55 -9
  502. package/dist/index427.js.map +1 -1
  503. package/dist/index428.js +55 -152
  504. package/dist/index428.js.map +1 -1
  505. package/dist/index429.js +32 -107
  506. package/dist/index429.js.map +1 -1
  507. package/dist/index430.js +16 -2
  508. package/dist/index430.js.map +1 -1
  509. package/dist/index431.js +29 -2
  510. package/dist/index431.js.map +1 -1
  511. package/dist/index432.js +13 -2
  512. package/dist/index432.js.map +1 -1
  513. package/dist/index433.js +7 -2
  514. package/dist/index433.js.map +1 -1
  515. package/dist/index434.js +2 -16
  516. package/dist/index434.js.map +1 -1
  517. package/dist/index435.js +2 -29
  518. package/dist/index435.js.map +1 -1
  519. package/dist/index436.js +2 -13
  520. package/dist/index436.js.map +1 -1
  521. package/dist/index437.js +2 -7
  522. package/dist/index437.js.map +1 -1
  523. package/dist/index44.js +1 -1
  524. package/dist/index45.js +2 -2
  525. package/dist/index49.js +36 -36
  526. package/dist/index50.js +29 -29
  527. package/dist/index51.js +2 -2
  528. package/dist/index52.js +12 -12
  529. package/dist/index53.js +4 -4
  530. package/dist/index54.js +1 -1
  531. package/dist/index55.js +21 -21
  532. package/dist/index56.js +5 -5
  533. package/dist/index57.js +5 -5
  534. package/dist/index58.js +8 -8
  535. package/dist/index59.js +5 -5
  536. package/dist/index60.js +17 -17
  537. package/dist/index61.js +5 -5
  538. package/dist/index62.js +3 -3
  539. package/dist/index66.js +1 -1
  540. package/dist/index67.js +1 -1
  541. package/dist/index70.js +1 -1
  542. package/dist/index71.js +1 -1
  543. package/dist/index72.js +2 -6
  544. package/dist/index72.js.map +1 -1
  545. package/dist/index73.js +2 -8
  546. package/dist/index73.js.map +1 -1
  547. package/dist/index74.js +2 -6
  548. package/dist/index74.js.map +1 -1
  549. package/dist/index75.js +2 -2
  550. package/dist/index76.js +6 -2
  551. package/dist/index76.js.map +1 -1
  552. package/dist/index77.js +8 -2
  553. package/dist/index77.js.map +1 -1
  554. package/dist/index78.js +6 -2
  555. package/dist/index78.js.map +1 -1
  556. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index374.js","sources":["../../../node_modules/date-fns/locale/en-US.js"],"sourcesContent":["import { formatDistance } from \"./en-US/_lib/formatDistance.js\";\nimport { formatLong } from \"./en-US/_lib/formatLong.js\";\nimport { formatRelative } from \"./en-US/_lib/formatRelative.js\";\nimport { localize } from \"./en-US/_lib/localize.js\";\nimport { match } from \"./en-US/_lib/match.js\";\n\n/**\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)\n * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)\n */\nexport const enUS = {\n code: \"en-US\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1,\n },\n};\n\n// Fallback for modularized imports:\nexport default enUS;\n"],"names":["enUS","formatDistance","formatLong","formatRelative","localize","match"],"mappings":";;;;;AAcY,MAACA,IAAO;AAAA,EAClB,MAAM;AAAA,EACN,gBAAgBC;AAAA,EAChB,YAAYC;AAAA,EACZ,gBAAgBC;AAAA,EAChB,UAAUC;AAAA,EACV,OAAOC;AAAA,EACP,SAAS;AAAA,IACP,cAAc;AAAA,IACd,uBAAuB;AAAA,EAC3B;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index374.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/hooks/useFloating.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useFloating as usePosition } from '@floating-ui/react-dom';\nimport { isElement } from '@floating-ui/utils/dom';\nimport { useFloatingTree } from \"../components/FloatingTree.mjs\";\nimport { useFloatingRootContext } from \"./useFloatingRootContext.mjs\";\n\n/**\n * Provides data to position a floating element and context to add interactions.\n * @see https://floating-ui.com/docs/useFloating\n */\nexport function useFloating(options = {}) {\n const {\n nodeId,\n externalTree\n } = options;\n const internalStore = useFloatingRootContext(options);\n const store = options.rootContext || internalStore;\n const referenceElement = store.useState('referenceElement');\n const floatingElement = store.useState('floatingElement');\n const domReferenceElement = store.useState('domReferenceElement');\n const open = store.useState('open');\n const floatingId = store.useState('floatingId');\n const [positionReference, setPositionReferenceRaw] = React.useState(null);\n const [localDomReference, setLocalDomReference] = React.useState(undefined);\n const [localFloatingElement, setLocalFloatingElement] = React.useState(undefined);\n const domReferenceRef = React.useRef(null);\n const tree = useFloatingTree(externalTree);\n const storeElements = React.useMemo(() => ({\n reference: referenceElement,\n floating: floatingElement,\n domReference: domReferenceElement\n }), [referenceElement, floatingElement, domReferenceElement]);\n const position = usePosition({\n ...options,\n elements: {\n ...storeElements,\n ...(positionReference && {\n reference: positionReference\n })\n }\n });\n const localDomReferenceElement = isElement(localDomReference) ? localDomReference : null;\n const syncedFloatingElement = localFloatingElement === undefined ? store.state.floatingElement : localFloatingElement;\n store.useSyncedValue('referenceElement', localDomReference ?? null);\n store.useSyncedValue('domReferenceElement', localDomReference === undefined ? domReferenceElement : localDomReferenceElement);\n store.useSyncedValue('floatingElement', syncedFloatingElement);\n const setPositionReference = React.useCallback(node => {\n const computedPositionReference = isElement(node) ? {\n getBoundingClientRect: () => node.getBoundingClientRect(),\n getClientRects: () => node.getClientRects(),\n contextElement: node\n } : node;\n // Store the positionReference in state if the DOM reference is specified externally via the\n // `elements.reference` option. This ensures that it won't be overridden on future renders.\n setPositionReferenceRaw(computedPositionReference);\n position.refs.setReference(computedPositionReference);\n }, [position.refs]);\n const setReference = React.useCallback(node => {\n if (isElement(node) || node === null) {\n domReferenceRef.current = node;\n setLocalDomReference(node);\n }\n\n // Backwards-compatibility for passing a virtual element to `reference`\n // after it has set the DOM reference.\n if (isElement(position.refs.reference.current) || position.refs.reference.current === null ||\n // Don't allow setting virtual elements using the old technique back to\n // `null` to support `positionReference` + an unstable `reference`\n // callback ref.\n node !== null && !isElement(node)) {\n position.refs.setReference(node);\n }\n }, [position.refs, setLocalDomReference]);\n const setFloating = React.useCallback(node => {\n setLocalFloatingElement(node);\n position.refs.setFloating(node);\n }, [position.refs]);\n const refs = React.useMemo(() => ({\n ...position.refs,\n setReference,\n setFloating,\n setPositionReference,\n domReference: domReferenceRef\n }), [position.refs, setReference, setFloating, setPositionReference]);\n const elements = React.useMemo(() => ({\n ...position.elements,\n domReference: domReferenceElement\n }), [position.elements, domReferenceElement]);\n const context = React.useMemo(() => ({\n ...position,\n dataRef: store.context.dataRef,\n open,\n onOpenChange: store.setOpen,\n events: store.context.events,\n floatingId,\n refs,\n elements,\n nodeId,\n rootStore: store\n }), [position, refs, elements, nodeId, store, open, floatingId]);\n useIsoLayoutEffect(() => {\n if (domReferenceElement) {\n domReferenceRef.current = domReferenceElement;\n }\n }, [domReferenceElement]);\n useIsoLayoutEffect(() => {\n store.context.dataRef.current.floatingContext = context;\n const node = tree?.nodesRef.current.find(n => n.id === nodeId);\n if (node) {\n node.context = context;\n }\n });\n return React.useMemo(() => ({\n ...position,\n context,\n refs,\n elements,\n rootStore: store\n }), [position, refs, elements, context, store]);\n}"],"names":["useFloating","options","nodeId","externalTree","internalStore","useFloatingRootContext","store","referenceElement","floatingElement","domReferenceElement","open","floatingId","positionReference","setPositionReferenceRaw","React","localDomReference","setLocalDomReference","localFloatingElement","setLocalFloatingElement","domReferenceRef","tree","useFloatingTree","storeElements","position","usePosition","localDomReferenceElement","isElement","syncedFloatingElement","setPositionReference","node","computedPositionReference","setReference","setFloating","refs","elements","context","useIsoLayoutEffect","n"],"mappings":";;;;;;AAaO,SAASA,EAAYC,IAAU,IAAI;AACxC,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,cAAAC;AAAA,EACJ,IAAMF,GACEG,IAAgBC,EAAuBJ,CAAO,GAC9CK,IAAQL,EAAQ,eAAeG,GAC/BG,IAAmBD,EAAM,SAAS,kBAAkB,GACpDE,IAAkBF,EAAM,SAAS,iBAAiB,GAClDG,IAAsBH,EAAM,SAAS,qBAAqB,GAC1DI,IAAOJ,EAAM,SAAS,MAAM,GAC5BK,IAAaL,EAAM,SAAS,YAAY,GACxC,CAACM,GAAmBC,CAAuB,IAAIC,EAAM,SAAS,IAAI,GAClE,CAACC,GAAmBC,CAAoB,IAAIF,EAAM,SAAS,MAAS,GACpE,CAACG,GAAsBC,CAAuB,IAAIJ,EAAM,SAAS,MAAS,GAC1EK,IAAkBL,EAAM,OAAO,IAAI,GACnCM,IAAOC,EAAgBlB,CAAY,GACnCmB,IAAgBR,EAAM,QAAQ,OAAO;AAAA,IACzC,WAAWP;AAAA,IACX,UAAUC;AAAA,IACV,cAAcC;AAAA,EAClB,IAAM,CAACF,GAAkBC,GAAiBC,CAAmB,CAAC,GACtDc,IAAWC,EAAY;AAAA,IAC3B,GAAGvB;AAAA,IACH,UAAU;AAAA,MACR,GAAGqB;AAAA,MACH,GAAIV,KAAqB;AAAA,QACvB,WAAWA;AAAA,MACnB;AAAA,IACA;AAAA,EACA,CAAG,GACKa,IAA2BC,EAAUX,CAAiB,IAAIA,IAAoB,MAC9EY,IAAwBV,MAAyB,SAAYX,EAAM,MAAM,kBAAkBW;AACjG,EAAAX,EAAM,eAAe,oBAAoBS,KAAqB,IAAI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,CAAmB,CAAC,GACtC0B,IAAUrB,EAAM,QAAQ,OAAO;AAAA,IACnC,GAAGS;AAAA,IACH,SAASjB,EAAM,QAAQ;AAAA,IACvB,MAAAI;AAAA,IACA,cAAcJ,EAAM;AAAA,IACpB,QAAQA,EAAM,QAAQ;AAAA,IACtB,YAAAK;AAAA,IACA,MAAAsB;AAAA,IACA,UAAAC;AAAA,IACA,QAAAhC;AAAA,IACA,WAAWI;AAAA,EACf,IAAM,CAACiB,GAAUU,GAAMC,GAAUhC,GAAQI,GAAOI,GAAMC,CAAU,CAAC;AAC/D,SAAAyB,EAAmB,MAAM;AACvB,IAAI3B,MACFU,EAAgB,UAAUV;AAAA,EAE9B,GAAG,CAACA,CAAmB,CAAC,GACxB2B,EAAmB,MAAM;AACvB,IAAA9B,EAAM,QAAQ,QAAQ,QAAQ,kBAAkB6B;AAChD,UAAMN,IAAOT,GAAM,SAAS,QAAQ,KAAK,CAAAiB,MAAKA,EAAE,OAAOnC,CAAM;AAC7D,IAAI2B,MACFA,EAAK,UAAUM;AAAA,EAEnB,CAAC,GACMrB,EAAM,QAAQ,OAAO;AAAA,IAC1B,GAAGS;AAAA,IACH,SAAAY;AAAA,IACA,MAAAF;AAAA,IACA,UAAAC;AAAA,IACA,WAAW5B;AAAA,EACf,IAAM,CAACiB,GAAUU,GAAMC,GAAUC,GAAS7B,CAAK,CAAC;AAChD;","x_google_ignoreList":[0]}
package/dist/index375.js CHANGED
@@ -1,16 +1,127 @@
1
- function g(d, s, k, t, f, O, n) {
2
- const { ISOWeek: o, broadcastCalendar: r } = O, { addDays: W, addMonths: c, addWeeks: l, addYears: u, endOfBroadcastWeek: b, endOfISOWeek: m, endOfWeek: y, max: F, min: I, startOfBroadcastWeek: h, startOfISOWeek: x, startOfWeek: B } = n;
3
- let a = {
4
- day: W,
5
- week: l,
6
- month: c,
7
- year: u,
8
- startOfWeek: (e) => r ? h(e, n) : o ? x(e) : B(e),
9
- endOfWeek: (e) => r ? b(e) : o ? m(e) : y(e)
10
- }[d](k, s === "after" ? 1 : -1);
11
- return s === "before" && t ? a = F([t, a]) : s === "after" && f && (a = I([f, a])), a;
1
+ import { getWindow as d, isOverflowElement as m } from "./index308.js";
2
+ import { addEventListener as T } from "./index300.js";
3
+ import { ownerDocument as a } from "./index284.js";
4
+ import { useIsoLayoutEffect as E } from "./index261.js";
5
+ import { Timeout as k } from "./index285.js";
6
+ import { AnimationFrame as H } from "./index301.js";
7
+ import { NOOP as z } from "./index264.js";
8
+ import { ios as j } from "./index360.js";
9
+ import { webkit as F } from "./index310.js";
10
+ let Y = {}, C = {}, L = "";
11
+ function R(s) {
12
+ if (typeof document > "u")
13
+ return !1;
14
+ const e = a(s);
15
+ return d(e).innerWidth - e.documentElement.clientWidth > 0;
16
+ }
17
+ function V(s) {
18
+ if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u")
19
+ return !1;
20
+ const t = a(s), o = t.documentElement, l = t.body, r = m(o) ? o : l, i = r.style.overflowY, c = o.style.scrollbarGutter;
21
+ o.style.scrollbarGutter = "stable", r.style.overflowY = "scroll";
22
+ const u = r.offsetWidth;
23
+ r.style.overflowY = "hidden";
24
+ const f = r.offsetWidth;
25
+ return r.style.overflowY = i, o.style.scrollbarGutter = c, u === f;
26
+ }
27
+ function q(s) {
28
+ const e = a(s), t = e.documentElement, o = e.body, l = m(t) ? t : o, r = {
29
+ overflowY: l.style.overflowY,
30
+ overflowX: l.style.overflowX
31
+ };
32
+ return Object.assign(l.style, {
33
+ overflowY: "hidden",
34
+ overflowX: "hidden"
35
+ }), () => {
36
+ Object.assign(l.style, r);
37
+ };
38
+ }
39
+ function A(s) {
40
+ const e = a(s), t = e.documentElement, o = e.body, l = d(t);
41
+ let r = 0, i = 0, c = !1;
42
+ const u = H.create();
43
+ if (F && (l.visualViewport?.scale ?? 1) !== 1)
44
+ return () => {
45
+ };
46
+ function f() {
47
+ const h = l.getComputedStyle(t), n = l.getComputedStyle(o), v = (h.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
48
+ r = t.scrollTop, i = t.scrollLeft, Y = {
49
+ scrollbarGutter: t.style.scrollbarGutter,
50
+ overflowY: t.style.overflowY,
51
+ overflowX: t.style.overflowX
52
+ }, L = t.style.scrollBehavior, C = {
53
+ position: o.style.position,
54
+ height: o.style.height,
55
+ width: o.style.width,
56
+ boxSizing: o.style.boxSizing,
57
+ overflowY: o.style.overflowY,
58
+ overflowX: o.style.overflowX,
59
+ scrollBehavior: o.style.scrollBehavior
60
+ };
61
+ const G = t.scrollHeight > t.clientHeight, B = t.scrollWidth > t.clientWidth, W = h.overflowY === "scroll" || n.overflowY === "scroll", x = h.overflowX === "scroll" || n.overflowX === "scroll", b = Math.max(0, l.innerWidth - o.clientWidth), w = Math.max(0, l.innerHeight - o.clientHeight), p = parseFloat(n.marginTop) + parseFloat(n.marginBottom), g = parseFloat(n.marginLeft) + parseFloat(n.marginRight), S = m(t) ? t : o;
62
+ if (c = V(s), c) {
63
+ t.style.scrollbarGutter = v, S.style.overflowY = "hidden", S.style.overflowX = "hidden";
64
+ return;
65
+ }
66
+ Object.assign(t.style, {
67
+ scrollbarGutter: v,
68
+ overflowY: "hidden",
69
+ overflowX: "hidden"
70
+ }), (G || W) && (t.style.overflowY = "scroll"), (B || x) && (t.style.overflowX = "scroll"), Object.assign(o.style, {
71
+ position: "relative",
72
+ height: p || w ? `calc(100dvh - ${p + w}px)` : "100dvh",
73
+ width: g || b ? `calc(100vw - ${g + b}px)` : "100vw",
74
+ boxSizing: "border-box",
75
+ overflow: "hidden",
76
+ scrollBehavior: "unset"
77
+ }), o.scrollTop = r, o.scrollLeft = i, t.setAttribute("data-base-ui-scroll-locked", ""), t.style.scrollBehavior = "unset";
78
+ }
79
+ function y() {
80
+ Object.assign(t.style, Y), Object.assign(o.style, C), c || (t.scrollTop = r, t.scrollLeft = i, t.removeAttribute("data-base-ui-scroll-locked"), t.style.scrollBehavior = L);
81
+ }
82
+ function O() {
83
+ y(), u.request(f);
84
+ }
85
+ f();
86
+ const X = T(l, "resize", O);
87
+ return () => {
88
+ u.cancel(), y(), typeof l.removeEventListener == "function" && X();
89
+ };
90
+ }
91
+ class I {
92
+ lockCount = 0;
93
+ restore = null;
94
+ timeoutLock = k.create();
95
+ timeoutUnlock = k.create();
96
+ acquire(e) {
97
+ return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(e)), this.release;
98
+ }
99
+ release = () => {
100
+ this.lockCount -= 1, this.lockCount === 0 && this.restore && this.timeoutUnlock.start(0, this.unlock);
101
+ };
102
+ unlock = () => {
103
+ this.lockCount === 0 && this.restore && (this.restore?.(), this.restore = null);
104
+ };
105
+ lock(e) {
106
+ if (this.lockCount === 0 || this.restore !== null)
107
+ return;
108
+ const o = a(e).documentElement, l = d(o).getComputedStyle(o).overflowY;
109
+ if (l === "hidden" || l === "clip") {
110
+ this.restore = z;
111
+ return;
112
+ }
113
+ const r = j || !R(e);
114
+ this.restore = r ? q(e) : A(e);
115
+ }
116
+ }
117
+ const M = new I();
118
+ function ot(s = !0, e = null) {
119
+ E(() => {
120
+ if (s)
121
+ return M.acquire(e);
122
+ }, [s, e]);
12
123
  }
13
124
  export {
14
- g as getFocusableDate
125
+ ot as useScrollLock
15
126
  };
16
127
  //# sourceMappingURL=index375.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index375.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js"],"sourcesContent":["/**\n * Calculates the next date that should be focused in the calendar.\n *\n * This function determines the next focusable date based on the movement\n * direction, constraints, and calendar configuration.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDate The reference date from which to calculate the next focusable\n * date.\n * @param navStart The earliest date the user can navigate to.\n * @param navEnd The latest date the user can navigate to.\n * @param props The DayPicker props, including calendar configuration options.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next focusable date.\n */\nexport function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {\n const { ISOWeek, broadcastCalendar } = props;\n const { addDays, addMonths, addWeeks, addYears, endOfBroadcastWeek, endOfISOWeek, endOfWeek, max, min, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const moveFns = {\n day: addDays,\n week: addWeeks,\n month: addMonths,\n year: addYears,\n startOfWeek: (date) => broadcastCalendar\n ? startOfBroadcastWeek(date, dateLib)\n : ISOWeek\n ? startOfISOWeek(date)\n : startOfWeek(date),\n endOfWeek: (date) => broadcastCalendar\n ? endOfBroadcastWeek(date)\n : ISOWeek\n ? endOfISOWeek(date)\n : endOfWeek(date),\n };\n let focusableDate = moveFns[moveBy](refDate, moveDir === \"after\" ? 1 : -1);\n if (moveDir === \"before\" && navStart) {\n focusableDate = max([navStart, focusableDate]);\n }\n else if (moveDir === \"after\" && navEnd) {\n focusableDate = min([navEnd, focusableDate]);\n }\n return focusableDate;\n}\n"],"names":["getFocusableDate","moveBy","moveDir","refDate","navStart","navEnd","props","dateLib","ISOWeek","broadcastCalendar","addDays","addMonths","addWeeks","addYears","endOfBroadcastWeek","endOfISOWeek","endOfWeek","max","min","startOfBroadcastWeek","startOfISOWeek","startOfWeek","focusableDate","date"],"mappings":"AAgBO,SAASA,EAAiBC,GAAQC,GAASC,GAASC,GAAUC,GAAQC,GAAOC,GAAS;AACzF,QAAM,EAAE,SAAAC,GAAS,mBAAAC,EAAiB,IAAKH,GACjC,EAAE,SAAAI,GAAS,WAAAC,GAAW,UAAAC,GAAU,UAAAC,GAAU,oBAAAC,GAAoB,cAAAC,GAAc,WAAAC,GAAW,KAAAC,GAAK,KAAAC,GAAK,sBAAAC,GAAsB,gBAAAC,GAAgB,aAAAC,EAAW,IAAMd;AAiB9J,MAAIe,IAhBY;AAAA,IACZ,KAAKZ;AAAA,IACL,MAAME;AAAA,IACN,OAAOD;AAAA,IACP,MAAME;AAAA,IACN,aAAa,CAACU,MAASd,IACjBU,EAAqBI,GAAMhB,CAAO,IAClCC,IACIY,EAAeG,CAAI,IACnBF,EAAYE,CAAI;AAAA,IAC1B,WAAW,CAACA,MAASd,IACfK,EAAmBS,CAAI,IACvBf,IACIO,EAAaQ,CAAI,IACjBP,EAAUO,CAAI;AAAA,EAChC,EACgCtB,CAAM,EAAEE,GAASD,MAAY,UAAU,IAAI,EAAE;AACzE,SAAIA,MAAY,YAAYE,IACxBkB,IAAgBL,EAAI,CAACb,GAAUkB,CAAa,CAAC,IAExCpB,MAAY,WAAWG,MAC5BiB,IAAgBJ,EAAI,CAACb,GAAQiB,CAAa,CAAC,IAExCA;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index375.js","sources":["../../../node_modules/@base-ui/utils/useScrollLock.mjs"],"sourcesContent":["'use client';\n\nimport { isOverflowElement } from '@floating-ui/utils/dom';\nimport { addEventListener } from \"./addEventListener.mjs\";\nimport { platform } from \"./platform/index.mjs\";\nimport { ownerDocument, ownerWindow } from \"./owner.mjs\";\nimport { useIsoLayoutEffect } from \"./useIsoLayoutEffect.mjs\";\nimport { Timeout } from \"./useTimeout.mjs\";\nimport { AnimationFrame } from \"./useAnimationFrame.mjs\";\nimport { NOOP } from \"./empty.mjs\";\nlet originalHtmlStyles = {};\nlet originalBodyStyles = {};\nlet originalHtmlScrollBehavior = '';\nfunction hasInsetScrollbars(referenceElement) {\n if (typeof document === 'undefined') {\n return false;\n }\n const doc = ownerDocument(referenceElement);\n const win = ownerWindow(doc);\n return win.innerWidth - doc.documentElement.clientWidth > 0;\n}\nfunction supportsStableScrollbarGutter(referenceElement) {\n const supported = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('scrollbar-gutter', 'stable');\n if (!supported || typeof document === 'undefined') {\n return false;\n }\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const scrollContainer = isOverflowElement(html) ? html : body;\n const originalScrollContainerOverflowY = scrollContainer.style.overflowY;\n const originalHtmlStyleGutter = html.style.scrollbarGutter;\n html.style.scrollbarGutter = 'stable';\n scrollContainer.style.overflowY = 'scroll';\n const before = scrollContainer.offsetWidth;\n scrollContainer.style.overflowY = 'hidden';\n const after = scrollContainer.offsetWidth;\n scrollContainer.style.overflowY = originalScrollContainerOverflowY;\n html.style.scrollbarGutter = originalHtmlStyleGutter;\n return before === after;\n}\nfunction preventScrollOverlayScrollbars(referenceElement) {\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n\n // If an `overflow` style is present on <html>, we need to lock it, because a lock on <body>\n // won't have any effect.\n // But if <body> has an `overflow` style (like `overflow-x: hidden`), we need to lock it\n // instead, as sticky elements shift otherwise.\n const elementToLock = isOverflowElement(html) ? html : body;\n const originalElementToLockStyles = {\n overflowY: elementToLock.style.overflowY,\n overflowX: elementToLock.style.overflowX\n };\n Object.assign(elementToLock.style, {\n overflowY: 'hidden',\n overflowX: 'hidden'\n });\n return () => {\n Object.assign(elementToLock.style, originalElementToLockStyles);\n };\n}\nfunction preventScrollInsetScrollbars(referenceElement) {\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const win = ownerWindow(html);\n let scrollTop = 0;\n let scrollLeft = 0;\n let updateGutterOnly = false;\n const resizeFrame = AnimationFrame.create();\n\n // Pinch-zoom in Safari causes a shift. Just don't lock scroll if there's any pinch-zoom.\n if (platform.engine.webkit && (win.visualViewport?.scale ?? 1) !== 1) {\n return () => {};\n }\n function lockScroll() {\n /* DOM reads: */\n\n const htmlStyles = win.getComputedStyle(html);\n const bodyStyles = win.getComputedStyle(body);\n const htmlScrollbarGutterValue = htmlStyles.scrollbarGutter || '';\n const hasBothEdges = htmlScrollbarGutterValue.includes('both-edges');\n const scrollbarGutterValue = hasBothEdges ? 'stable both-edges' : 'stable';\n scrollTop = html.scrollTop;\n scrollLeft = html.scrollLeft;\n originalHtmlStyles = {\n scrollbarGutter: html.style.scrollbarGutter,\n overflowY: html.style.overflowY,\n overflowX: html.style.overflowX\n };\n originalHtmlScrollBehavior = html.style.scrollBehavior;\n originalBodyStyles = {\n position: body.style.position,\n height: body.style.height,\n width: body.style.width,\n boxSizing: body.style.boxSizing,\n overflowY: body.style.overflowY,\n overflowX: body.style.overflowX,\n scrollBehavior: body.style.scrollBehavior\n };\n const isScrollableY = html.scrollHeight > html.clientHeight;\n const isScrollableX = html.scrollWidth > html.clientWidth;\n const hasConstantOverflowY = htmlStyles.overflowY === 'scroll' || bodyStyles.overflowY === 'scroll';\n const hasConstantOverflowX = htmlStyles.overflowX === 'scroll' || bodyStyles.overflowX === 'scroll';\n\n // Values can be negative in Firefox\n const scrollbarWidth = Math.max(0, win.innerWidth - body.clientWidth);\n const scrollbarHeight = Math.max(0, win.innerHeight - body.clientHeight);\n\n // Avoid shift due to the default <body> margin. This does cause elements to be clipped\n // with whitespace. Warn if <body> has margins?\n const marginY = parseFloat(bodyStyles.marginTop) + parseFloat(bodyStyles.marginBottom);\n const marginX = parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight);\n const elementToLock = isOverflowElement(html) ? html : body;\n updateGutterOnly = supportsStableScrollbarGutter(referenceElement);\n\n /*\n * DOM writes:\n * Do not read the DOM past this point!\n */\n\n if (updateGutterOnly) {\n html.style.scrollbarGutter = scrollbarGutterValue;\n elementToLock.style.overflowY = 'hidden';\n elementToLock.style.overflowX = 'hidden';\n return;\n }\n Object.assign(html.style, {\n scrollbarGutter: scrollbarGutterValue,\n overflowY: 'hidden',\n overflowX: 'hidden'\n });\n if (isScrollableY || hasConstantOverflowY) {\n html.style.overflowY = 'scroll';\n }\n if (isScrollableX || hasConstantOverflowX) {\n html.style.overflowX = 'scroll';\n }\n Object.assign(body.style, {\n position: 'relative',\n height: marginY || scrollbarHeight ? `calc(100dvh - ${marginY + scrollbarHeight}px)` : '100dvh',\n width: marginX || scrollbarWidth ? `calc(100vw - ${marginX + scrollbarWidth}px)` : '100vw',\n boxSizing: 'border-box',\n overflow: 'hidden',\n scrollBehavior: 'unset'\n });\n body.scrollTop = scrollTop;\n body.scrollLeft = scrollLeft;\n html.setAttribute('data-base-ui-scroll-locked', '');\n html.style.scrollBehavior = 'unset';\n }\n function cleanup() {\n Object.assign(html.style, originalHtmlStyles);\n Object.assign(body.style, originalBodyStyles);\n if (!updateGutterOnly) {\n html.scrollTop = scrollTop;\n html.scrollLeft = scrollLeft;\n html.removeAttribute('data-base-ui-scroll-locked');\n html.style.scrollBehavior = originalHtmlScrollBehavior;\n }\n }\n function handleResize() {\n cleanup();\n resizeFrame.request(lockScroll);\n }\n lockScroll();\n const unsubscribeResize = addEventListener(win, 'resize', handleResize);\n return () => {\n resizeFrame.cancel();\n cleanup();\n // Sometimes this cleanup can run after test teardown because it is called\n // in a `setTimeout(fn, 0)`. Guard the returned cleanup to avoid calling\n // `removeEventListener` when it is no longer available in tests.\n if (typeof win.removeEventListener === 'function') {\n unsubscribeResize();\n }\n };\n}\nclass ScrollLocker {\n lockCount = 0;\n restore = null;\n timeoutLock = Timeout.create();\n timeoutUnlock = Timeout.create();\n acquire(referenceElement) {\n this.lockCount += 1;\n if (this.lockCount === 1 && this.restore === null) {\n this.timeoutLock.start(0, () => this.lock(referenceElement));\n }\n return this.release;\n }\n release = () => {\n this.lockCount -= 1;\n if (this.lockCount === 0 && this.restore) {\n this.timeoutUnlock.start(0, this.unlock);\n }\n };\n unlock = () => {\n if (this.lockCount === 0 && this.restore) {\n this.restore?.();\n this.restore = null;\n }\n };\n lock(referenceElement) {\n if (this.lockCount === 0 || this.restore !== null) {\n return;\n }\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const htmlOverflowY = ownerWindow(html).getComputedStyle(html).overflowY;\n\n // If the site author already hid overflow on <html>, respect it and bail out.\n if (htmlOverflowY === 'hidden' || htmlOverflowY === 'clip') {\n this.restore = NOOP;\n return;\n }\n const hasOverlayScrollbars = platform.os.ios || !hasInsetScrollbars(referenceElement);\n\n // On iOS, scroll locking does not work if the navbar is collapsed. Due to numerous\n // side effects and bugs that arise on iOS, it must be researched extensively before\n // being enabled to ensure it doesn't cause the following issues:\n // - Textboxes must scroll into view when focused, nor cause a glitchy scroll animation.\n // - The navbar must not force itself into view and cause layout shift.\n // - Scroll containers must not flicker upon closing a popup when it has an exit animation.\n this.restore = hasOverlayScrollbars ? preventScrollOverlayScrollbars(referenceElement) : preventScrollInsetScrollbars(referenceElement);\n }\n}\nconst SCROLL_LOCKER = new ScrollLocker();\n\n/**\n * Locks the scroll of the document when enabled.\n *\n * @param enabled - Whether to enable the scroll lock.\n * @param referenceElement - Element to use as a reference for lock calculations.\n */\nexport function useScrollLock(enabled = true, referenceElement = null) {\n useIsoLayoutEffect(() => {\n if (!enabled) {\n return undefined;\n }\n return SCROLL_LOCKER.acquire(referenceElement);\n }, [enabled, referenceElement]);\n}"],"names":["originalHtmlStyles","originalBodyStyles","originalHtmlScrollBehavior","hasInsetScrollbars","referenceElement","doc","ownerDocument","ownerWindow","supportsStableScrollbarGutter","html","body","scrollContainer","isOverflowElement","originalScrollContainerOverflowY","originalHtmlStyleGutter","before","after","preventScrollOverlayScrollbars","elementToLock","originalElementToLockStyles","preventScrollInsetScrollbars","win","scrollTop","scrollLeft","updateGutterOnly","resizeFrame","AnimationFrame","platform.engine.webkit","lockScroll","htmlStyles","bodyStyles","scrollbarGutterValue","isScrollableY","isScrollableX","hasConstantOverflowY","hasConstantOverflowX","scrollbarWidth","scrollbarHeight","marginY","marginX","cleanup","handleResize","unsubscribeResize","addEventListener","ScrollLocker","Timeout","htmlOverflowY","NOOP","hasOverlayScrollbars","platform.os.ios","SCROLL_LOCKER","useScrollLock","enabled","useIsoLayoutEffect"],"mappings":";;;;;;;;;AAUA,IAAIA,IAAqB,CAAA,GACrBC,IAAqB,CAAA,GACrBC,IAA6B;AACjC,SAASC,EAAmBC,GAAkB;AAC5C,MAAI,OAAO,WAAa;AACtB,WAAO;AAET,QAAMC,IAAMC,EAAcF,CAAgB;AAE1C,SADYG,EAAYF,CAAG,EAChB,aAAaA,EAAI,gB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,KAAK,cAAc,KAAK,KAAK,YAAY,QAC3C,KAAK,YAAY,MAAM,GAAG,MAAM,KAAK,KAAKA,CAAgB,CAAC,GAEtD,KAAK;AAAA,EACd;AAAA,EACA,UAAU,MAAM;AACd,SAAK,aAAa,GACd,KAAK,cAAc,KAAK,KAAK,WAC/B,KAAK,cAAc,MAAM,GAAG,KAAK,MAAM;AAAA,EAE3C;AAAA,EACA,SAAS,MAAM;AACb,IAAI,KAAK,cAAc,KAAK,KAAK,YAC/B,KAAK,UAAO,GACZ,KAAK,UAAU;AAAA,EAEnB;AAAA,EACA,KAAKA,GAAkB;AACrB,QAAI,KAAK,cAAc,KAAK,KAAK,YAAY;AAC3C;AAGF,UAAMK,IADMH,EAAcF,CAAgB,EACzB,iBACX0C,IAAgBvC,EAAYE,CAAI,EAAE,iBAAiBA,CAAI,EAAE;AAG/D,QAAIqC,MAAkB,YAAYA,MAAkB,QAAQ;AAC1D,WAAK,UAAUC;AACf;AAAA,IACF;AACA,UAAMC,IAAuBC,KAAmB,CAAC9C,EAAmBC,CAAgB;AAQpF,SAAK,UAAU4C,IAAuB/B,EAA+Bb,CAAgB,IAAIgB,EAA6BhB,CAAgB;AAAA,EACxI;AACF;AACA,MAAM8C,IAAgB,IAAIN,EAAY;AAQ/B,SAASO,GAAcC,IAAU,IAAMhD,IAAmB,MAAM;AACrE,EAAAiD,EAAmB,MAAM;AACvB,QAAKD;AAGL,aAAOF,EAAc,QAAQ9C,CAAgB;AAAA,EAC/C,GAAG,CAACgD,GAAShD,CAAgB,CAAC;AAChC;","x_google_ignoreList":[0]}
package/dist/index378.js CHANGED
@@ -1,12 +1,8 @@
1
- function r(...n) {
2
- return () => {
3
- for (let e = 0; e < n.length; e += 1) {
4
- const t = n[e];
5
- t && t();
6
- }
7
- };
1
+ import { constructFromSymbol as o } from "./index380.js";
2
+ function c(r, n) {
3
+ return typeof r == "function" ? r(n) : r && typeof r == "object" && o in r ? r[o](n) : r instanceof Date ? new r.constructor(n) : new Date(n);
8
4
  }
9
5
  export {
10
- r as mergeCleanups
6
+ c as constructFrom
11
7
  };
12
8
  //# sourceMappingURL=index378.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index378.js","sources":["../../../node_modules/@base-ui/utils/mergeCleanups.mjs"],"sourcesContent":["/**\n * Combines multiple cleanup functions into a single cleanup function.\n */\nexport function mergeCleanups(...cleanups) {\n return () => {\n for (let i = 0; i < cleanups.length; i += 1) {\n const cleanup = cleanups[i];\n if (cleanup) {\n cleanup();\n }\n }\n };\n}"],"names":["mergeCleanups","cleanups","i","cleanup"],"mappings":"AAGO,SAASA,KAAiBC,GAAU;AACzC,SAAO,MAAM;AACX,aAASC,IAAI,GAAGA,IAAID,EAAS,QAAQC,KAAK,GAAG;AAC3C,YAAMC,IAAUF,EAASC,CAAC;AAC1B,MAAIC,KACFA,EAAO;AAAA,IAEX;AAAA,EACF;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index378.js","sources":["../../../node_modules/date-fns/constructFrom.js"],"sourcesContent":["import { constructFromSymbol } from \"./constants.js\";\n\n/**\n * @name constructFrom\n * @category Generic Helpers\n * @summary Constructs a date using the reference date and the value\n *\n * @description\n * The function constructs a new date using the constructor from the reference\n * date and the given value. It helps to build generic functions that accept\n * date extensions.\n *\n * It defaults to `Date` if the passed reference date is a number or a string.\n *\n * Starting from v3.7.0, it allows to construct a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The reference date to take constructor from\n * @param value - The value to create the date\n *\n * @returns Date initialized using the given date and value\n *\n * @example\n * import { constructFrom } from \"./constructFrom/date-fns\";\n *\n * // A function that clones a date preserving the original type\n * function cloneDate<DateType extends Date>(date: DateType): DateType {\n * return constructFrom(\n * date, // Use constructor from the given date\n * date.getTime() // Use the date value to create a new date\n * );\n * }\n */\nexport function constructFrom(date, value) {\n if (typeof date === \"function\") return date(value);\n\n if (date && typeof date === \"object\" && constructFromSymbol in date)\n return date[constructFromSymbol](value);\n\n if (date instanceof Date) return new date.constructor(value);\n\n return new Date(value);\n}\n\n// Fallback for modularized imports:\nexport default constructFrom;\n"],"names":["constructFrom","date","value","constructFromSymbol"],"mappings":";AAqCO,SAASA,EAAcC,GAAMC,GAAO;AACzC,SAAI,OAAOD,KAAS,aAAmBA,EAAKC,CAAK,IAE7CD,KAAQ,OAAOA,KAAS,YAAYE,KAAuBF,IACtDA,EAAKE,CAAmB,EAAED,CAAK,IAEpCD,aAAgB,OAAa,IAAIA,EAAK,YAAYC,CAAK,IAEpD,IAAI,KAAKA,CAAK;AACvB;","x_google_ignoreList":[0]}
package/dist/index379.js CHANGED
@@ -1,30 +1,8 @@
1
- import * as r from "react";
2
- import { useIsoLayoutEffect as i } from "./index201.js";
3
- import { visuallyHidden as u } from "./index194.js";
4
- import { j as f } from "./index30.js";
5
- import { voiceOver as n } from "./index412.js";
6
- import { webkit as d } from "./index250.js";
7
- const m = /* @__PURE__ */ r.forwardRef(function(t, e) {
8
- const [o, s] = r.useState();
9
- i(() => {
10
- n && d && s("button");
11
- }, []);
12
- const a = {
13
- tabIndex: 0,
14
- // Role is only for VoiceOver
15
- role: o
16
- };
17
- return /* @__PURE__ */ f.jsx("span", {
18
- ...t,
19
- ref: e,
20
- style: u,
21
- "aria-hidden": o ? void 0 : !0,
22
- ...a,
23
- "data-base-ui-focus-guard": ""
24
- });
25
- });
26
- process.env.NODE_ENV !== "production" && (m.displayName = "FocusGuard");
1
+ import { constructFrom as r } from "./index378.js";
2
+ function n(o, t) {
3
+ return r(t || o, o);
4
+ }
27
5
  export {
28
- m as FocusGuard
6
+ n as toDate
29
7
  };
30
8
  //# sourceMappingURL=index379.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index379.js","sources":["../../../node_modules/@base-ui/react/utils/FocusGuard.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { platform } from '@base-ui/utils/platform';\nimport { visuallyHidden } from '@base-ui/utils/visuallyHidden';\n\n/**\n * @internal\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const FocusGuard = /*#__PURE__*/React.forwardRef(function FocusGuard(props, ref) {\n const [role, setRole] = React.useState();\n useIsoLayoutEffect(() => {\n // Unlike NVDA and JAWS, VoiceOver's virtual cursor triggers `onFocus` as\n // it moves — but only on focusable/role-button elements through WebKit's\n // NSAccessibility path. Setting `role=\"button\"` lets the focus trap catch\n // the cursor.\n if (platform.screenReader.voiceOver && platform.engine.webkit) {\n setRole('button');\n }\n }, []);\n const restProps = {\n tabIndex: 0,\n // Role is only for VoiceOver\n role\n };\n return /*#__PURE__*/_jsx(\"span\", {\n ...props,\n ref: ref,\n style: visuallyHidden,\n \"aria-hidden\": role ? undefined : true,\n ...restProps,\n \"data-base-ui-focus-guard\": \"\"\n });\n});\nif (process.env.NODE_ENV !== \"production\") FocusGuard.displayName = \"FocusGuard\";"],"names":["FocusGuard","React","props","ref","role","setRole","useIsoLayoutEffect","platform.screenReader.voiceOver","platform.engine.webkit","restProps","_jsx","visuallyHidden"],"mappings":";;;;;;AAWY,MAACA,IAA0B,gBAAAC,EAAM,WAAW,SAAoBC,GAAOC,GAAK;AACtF,QAAM,CAACC,GAAMC,CAAO,IAAIJ,EAAM,SAAQ;AACtC,EAAAK,EAAmB,MAAM;AAKvB,IAAIC,KAAmCC,KACrCH,EAAQ,QAAQ;AAAA,EAEpB,GAAG,CAAA,CAAE;AACL,QAAMI,IAAY;AAAA,IAChB,UAAU;AAAA;AAAA,IAEV,MAAAL;AAAA,EACJ;AACE,SAAoBM,gBAAAA,EAAAA,IAAK,QAAQ;AAAA,IAC/B,GAAGR;AAAA,IACH,KAAKC;AAAA,IACL,OAAOQ;AAAA,IACP,eAAeP,IAAO,SAAY;AAAA,IAClC,GAAGK;AAAA,IACH,4BAA4B;AAAA,EAChC,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcT,EAAW,cAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index379.js","sources":["../../../node_modules/date-fns/toDate.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * Starting from v3.7.0, it clones a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param argument - The value to convert\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport function toDate(argument, context) {\n // [TODO] Get rid of `toDate` or `constructFrom`?\n return constructFrom(context || argument, argument);\n}\n\n// Fallback for modularized imports:\nexport default toDate;\n"],"names":["toDate","argument","context","constructFrom"],"mappings":";AAwCO,SAASA,EAAOC,GAAUC,GAAS;AAExC,SAAOC,EAAcD,KAAWD,GAAUA,CAAQ;AACpD;","x_google_ignoreList":[0]}
package/dist/index38.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as c from "react";
2
- import { useDialogRootContext as d } from "./index171.js";
3
- import { useRenderElement as u } from "./index172.js";
4
- import { popupStateMapping as l } from "./index173.js";
5
- import { transitionStatusMapping as m } from "./index174.js";
2
+ import { useDialogRootContext as d } from "./index231.js";
3
+ import { useRenderElement as u } from "./index232.js";
4
+ import { popupStateMapping as l } from "./index233.js";
5
+ import { transitionStatusMapping as m } from "./index234.js";
6
6
  const f = {
7
7
  ...l,
8
8
  ...m
package/dist/index380.js CHANGED
@@ -1,141 +1,7 @@
1
- import { isHTMLElement as s, getNodeName as i, isShadowRoot as T, getComputedStyle as A } from "./index248.js";
2
- import { ownerDocument as c } from "./index224.js";
3
- import { contains as f, activeElement as I } from "./index231.js";
4
- import { isElementVisible as C } from "./index382.js";
5
- const N = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';
6
- function R(t) {
7
- const n = t.assignedSlot;
8
- if (n)
9
- return n;
10
- if (t.parentElement)
11
- return t.parentElement;
12
- const e = t.getRootNode();
13
- return T(e) ? e.host : null;
14
- }
15
- function d(t) {
16
- for (const n of Array.from(t.children))
17
- if (i(n) === "summary")
18
- return n;
19
- return null;
20
- }
21
- function S(t, n) {
22
- const e = d(n);
23
- return !!e && (t === e || f(e, t));
24
- }
25
- function b(t) {
26
- const n = t ? i(t) : "";
27
- return t != null && t.matches(N) && (n !== "summary" || t.parentElement != null && i(t.parentElement) === "details" && d(t.parentElement) === t) && (n !== "details" || d(t) == null) && (n !== "input" || t.type !== "hidden");
28
- }
29
- function l(t) {
30
- if (!b(t) || !t.isConnected || t.matches(":disabled"))
31
- return !1;
32
- for (let n = t; n; n = R(n)) {
33
- const e = n !== t, r = i(n) === "slot";
34
- if (n.hasAttribute("inert") || e && i(n) === "details" && !n.open && !S(t, n) || n.hasAttribute("hidden") || !r && !v(n, e))
35
- return !1;
36
- }
37
- return !0;
38
- }
39
- function v(t, n) {
40
- const e = A(t);
41
- return n ? e.display !== "none" : C(t, e);
42
- }
43
- function m(t) {
44
- const n = t.tabIndex;
45
- if (n < 0) {
46
- const e = i(t);
47
- if (e === "details" || e === "audio" || e === "video" || s(t) && t.isContentEditable)
48
- return 0;
49
- }
50
- return n;
51
- }
52
- function u(t) {
53
- if (i(t) !== "input")
54
- return null;
55
- const n = t;
56
- return n.type === "radio" && n.name !== "" ? n : null;
57
- }
58
- function D(t, n) {
59
- const e = u(t);
60
- if (!e)
61
- return !0;
62
- const r = n.find((a) => {
63
- const o = u(a);
64
- return o?.name === e.name && o.form === e.form && o.checked;
65
- });
66
- return r ? r === e : n.find((a) => {
67
- const o = u(a);
68
- return o?.name === e.name && o.form === e.form;
69
- }) === e;
70
- }
71
- function p(t) {
72
- if (s(t) && i(t) === "slot") {
73
- const n = t.assignedElements({
74
- flatten: !0
75
- });
76
- if (n.length > 0)
77
- return n;
78
- }
79
- return s(t) && t.shadowRoot ? Array.from(t.shadowRoot.children) : Array.from(t.children);
80
- }
81
- function h(t, n) {
82
- p(t).forEach((e) => {
83
- b(e) && n.push(e), h(e, n);
84
- });
85
- }
86
- function E(t, n, e) {
87
- p(t).forEach((r) => {
88
- s(r) && r.matches(n) && e.push(r), E(r, n, e);
89
- });
90
- }
91
- function M(t) {
92
- return l(t) && m(t) >= 0;
93
- }
94
- function w(t) {
95
- const n = [];
96
- return h(t, n), n.filter(l);
97
- }
98
- function g(t) {
99
- const n = w(t);
100
- return n.filter((e) => m(e) >= 0 && D(e, n));
101
- }
102
- function x(t, n) {
103
- const e = g(t), r = e.length;
104
- if (r === 0)
105
- return;
106
- const a = I(c(t)), o = e.indexOf(a), y = o === -1 ? n === 1 ? 0 : r - 1 : o + n;
107
- return e[y];
108
- }
109
- function P(t) {
110
- return x(c(t).body, 1) || t;
111
- }
112
- function V(t) {
113
- return x(c(t).body, -1) || t;
114
- }
115
- function j(t, n) {
116
- const e = n || t.currentTarget, r = t.relatedTarget;
117
- return !r || !f(e, r);
118
- }
119
- function H(t) {
120
- g(t).forEach((e) => {
121
- e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
122
- });
123
- }
124
- function W(t) {
125
- const n = [];
126
- E(t, "[data-tabindex]", n), n.forEach((e) => {
127
- const r = e.dataset.tabindex;
128
- delete e.dataset.tabindex, r ? e.setAttribute("tabindex", r) : e.removeAttribute("tabindex");
129
- });
130
- }
1
+ const o = 6048e5, c = 864e5, n = /* @__PURE__ */ Symbol.for("constructDateFrom");
131
2
  export {
132
- H as disableFocusInside,
133
- W as enableFocusInside,
134
- w as focusable,
135
- P as getNextTabbable,
136
- V as getPreviousTabbable,
137
- j as isOutsideEvent,
138
- M as isTabbable,
139
- g as tabbable
3
+ n as constructFromSymbol,
4
+ c as millisecondsInDay,
5
+ o as millisecondsInWeek
140
6
  };
141
7
  //# sourceMappingURL=index380.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index380.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/tabbable.mjs"],"sourcesContent":["import { getComputedStyle, getNodeName, isHTMLElement, isShadowRoot } from '@floating-ui/utils/dom';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { activeElement, contains } from \"./element.mjs\";\nimport { isElementVisible } from \"./composite.mjs\";\nconst CANDIDATE_SELECTOR = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]';\nfunction getParentElement(element) {\n const assignedSlot = element.assignedSlot;\n if (assignedSlot) {\n return assignedSlot;\n }\n if (element.parentElement) {\n return element.parentElement;\n }\n const rootNode = element.getRootNode();\n return isShadowRoot(rootNode) ? rootNode.host : null;\n}\nfunction getDetailsSummary(details) {\n for (const child of Array.from(details.children)) {\n if (getNodeName(child) === 'summary') {\n return child;\n }\n }\n return null;\n}\nfunction isWithinOpenDetailsSummary(element, details) {\n const summary = getDetailsSummary(details);\n return !!summary && (element === summary || contains(summary, element));\n}\nfunction isFocusableCandidate(element) {\n const nodeName = element ? getNodeName(element) : '';\n return element != null && element.matches(CANDIDATE_SELECTOR) && (nodeName !== 'summary' || element.parentElement != null && getNodeName(element.parentElement) === 'details' && getDetailsSummary(element.parentElement) === element) && (nodeName !== 'details' || getDetailsSummary(element) == null) && (nodeName !== 'input' || element.type !== 'hidden');\n}\nfunction isFocusableElement(element) {\n if (!isFocusableCandidate(element) || !element.isConnected || element.matches(':disabled')) {\n return false;\n }\n for (let current = element; current; current = getParentElement(current)) {\n const isAncestor = current !== element;\n const isSlot = getNodeName(current) === 'slot';\n if (current.hasAttribute('inert')) {\n return false;\n }\n if (isAncestor && getNodeName(current) === 'details' && !current.open && !isWithinOpenDetailsSummary(element, current) || current.hasAttribute('hidden') || !isSlot && !isVisibleInTabbableTree(current, isAncestor)) {\n return false;\n }\n }\n return true;\n}\nfunction isVisibleInTabbableTree(element, isAncestor) {\n const styles = getComputedStyle(element);\n if (!isAncestor) {\n return isElementVisible(element, styles);\n }\n return styles.display !== 'none';\n}\nfunction getTabIndex(element) {\n const tabIndex = element.tabIndex;\n if (tabIndex < 0) {\n const nodeName = getNodeName(element);\n if (nodeName === 'details' || nodeName === 'audio' || nodeName === 'video' || isHTMLElement(element) && element.isContentEditable) {\n return 0;\n }\n }\n return tabIndex;\n}\nfunction getNamedRadioInput(element) {\n if (getNodeName(element) !== 'input') {\n return null;\n }\n const input = element;\n return input.type === 'radio' && input.name !== '' ? input : null;\n}\nfunction isTabbableRadio(element, candidates) {\n const input = getNamedRadioInput(element);\n if (!input) {\n return true;\n }\n const checkedRadio = candidates.find(candidate => {\n const radio = getNamedRadioInput(candidate);\n return radio?.name === input.name && radio.form === input.form && radio.checked;\n });\n if (checkedRadio) {\n return checkedRadio === input;\n }\n return candidates.find(candidate => {\n const radio = getNamedRadioInput(candidate);\n return radio?.name === input.name && radio.form === input.form;\n }) === input;\n}\nfunction getComposedChildren(container) {\n if (isHTMLElement(container) && getNodeName(container) === 'slot') {\n const assignedElements = container.assignedElements({\n flatten: true\n });\n if (assignedElements.length > 0) {\n return assignedElements;\n }\n }\n if (isHTMLElement(container) && container.shadowRoot) {\n return Array.from(container.shadowRoot.children);\n }\n return Array.from(container.children);\n}\nfunction appendCandidates(container, list) {\n getComposedChildren(container).forEach(child => {\n if (isFocusableCandidate(child)) {\n list.push(child);\n }\n appendCandidates(child, list);\n });\n}\nfunction appendMatchingElements(container, selector, list) {\n getComposedChildren(container).forEach(child => {\n if (isHTMLElement(child) && child.matches(selector)) {\n list.push(child);\n }\n appendMatchingElements(child, selector, list);\n });\n}\nexport function isTabbable(element) {\n return isFocusableElement(element) && getTabIndex(element) >= 0;\n}\nexport function focusable(container) {\n const candidates = [];\n appendCandidates(container, candidates);\n return candidates.filter(isFocusableElement);\n}\nexport function tabbable(container) {\n const candidates = focusable(container);\n return candidates.filter(element => getTabIndex(element) >= 0 && isTabbableRadio(element, candidates));\n}\nfunction getTabbableIn(container, dir) {\n const list = tabbable(container);\n const len = list.length;\n if (len === 0) {\n return undefined;\n }\n const active = activeElement(ownerDocument(container));\n const index = list.indexOf(active);\n // eslint-disable-next-line no-nested-ternary\n const nextIndex = index === -1 ? dir === 1 ? 0 : len - 1 : index + dir;\n return list[nextIndex];\n}\nexport function getNextTabbable(referenceElement) {\n return getTabbableIn(ownerDocument(referenceElement).body, 1) || referenceElement;\n}\nexport function getPreviousTabbable(referenceElement) {\n return getTabbableIn(ownerDocument(referenceElement).body, -1) || referenceElement;\n}\nfunction getTabbableNearElement(referenceElement, dir) {\n if (!referenceElement) {\n return null;\n }\n const list = tabbable(ownerDocument(referenceElement).body);\n const elementCount = list.length;\n if (elementCount === 0) {\n return null;\n }\n const index = list.indexOf(referenceElement);\n if (index === -1) {\n return null;\n }\n const nextIndex = (index + dir + elementCount) % elementCount;\n return list[nextIndex];\n}\nexport function getTabbableAfterElement(referenceElement) {\n return getTabbableNearElement(referenceElement, 1);\n}\nexport function getTabbableBeforeElement(referenceElement) {\n return getTabbableNearElement(referenceElement, -1);\n}\nexport function isOutsideEvent(event, container) {\n const containerElement = container || event.currentTarget;\n const relatedTarget = event.relatedTarget;\n return !relatedTarget || !contains(containerElement, relatedTarget);\n}\nexport function disableFocusInside(container) {\n const tabbableElements = tabbable(container);\n tabbableElements.forEach(element => {\n element.dataset.tabindex = element.getAttribute('tabindex') || '';\n element.setAttribute('tabindex', '-1');\n });\n}\nexport function enableFocusInside(container) {\n const elements = [];\n appendMatchingElements(container, '[data-tabindex]', elements);\n elements.forEach(element => {\n const tabindex = element.dataset.tabindex;\n delete element.dataset.tabindex;\n if (tabindex) {\n element.setAttribute('tabindex', tabindex);\n } else {\n element.removeAttribute('tabindex');\n }\n });\n}"],"names":["CANDIDATE_SELECTOR","getParentElement","element","assignedSlot","rootNode","isShadowRoot","getDetailsSummary","details","child","getNodeName","isWithinOpenDetailsSummary","summary","contains","isFocusableCandidate","nodeName","isFocusableElement","current","isAncestor","isSlot","isVisibleInTabbableTree","styles","getComputedStyle","isElementVisible","getTabIndex","tabIndex","isHTMLElement","getNamedRadioInput","input","isTabbableRadio","candidates","checkedRadio","candidate","radio","getComposedChildren","container","assignedElements","appendCandidates","list","appendMatchingElements","selector","isTabbable","focusable","tabbable","getTabbableIn","dir","len","active","activeElement","ownerDocument","index","nextIndex","getNextTabbable","referenceElement","getPreviousTabbable","isOutsideEvent","event","containerElement","relatedTarget","disableFocusInside","enableFocusInside","elements","tabindex"],"mappings":";;;;AAIA,MAAMA,IAAqB;AAC3B,SAASC,EAAiBC,GAAS;AACjC,QAAMC,IAAeD,EAAQ;AAC7B,MAAIC;AACF,WAAOA;AAET,MAAID,EAAQ;AACV,WAAOA,EAAQ;AAEjB,QAAME,IAAWF,EAAQ,YAAW;AACpC,SAAOG,EAAaD,CAAQ,IAAIA,EAAS,OAAO;AAClD;AACA,SAASE,EAAkBC,GAAS;AAClC,aAAWC,KAAS,MAAM,KAAKD,EAAQ,QAAQ;AAC7C,QAAIE,EAAYD,CAAK,MAAM;AAC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AiB,CAAC7C,EAAS4C,GAAkBC,CAAa;AACpE;AACO,SAASC,EAAmBxB,GAAW;AAE5C,EADyBQ,EAASR,CAAS,EAC1B,QAAQ,CAAAhC,MAAW;AAClC,IAAAA,EAAQ,QAAQ,WAAWA,EAAQ,aAAa,UAAU,KAAK,IAC/DA,EAAQ,aAAa,YAAY,IAAI;AAAA,EACvC,CAAC;AACH;AACO,SAASyD,EAAkBzB,GAAW;AAC3C,QAAM0B,IAAW,CAAA;AACjB,EAAAtB,EAAuBJ,GAAW,mBAAmB0B,CAAQ,GAC7DA,EAAS,QAAQ,CAAA1D,MAAW;AAC1B,UAAM2D,IAAW3D,EAAQ,QAAQ;AACjC,WAAOA,EAAQ,QAAQ,UACnB2D,IACF3D,EAAQ,aAAa,YAAY2D,CAAQ,IAEzC3D,EAAQ,gBAAgB,UAAU;AAAA,EAEtC,CAAC;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index380.js","sources":["../../../node_modules/date-fns/constants.js"],"sourcesContent":["/**\n * @module constants\n * @summary Useful constants\n * @description\n * Collection of useful date constants.\n *\n * The constants could be imported from `date-fns/constants`:\n *\n * ```ts\n * import { maxTime, minTime } from \"./constants/date-fns/constants\";\n *\n * function isAllowedTime(time) {\n * return time <= maxTime && time >= minTime;\n * }\n * ```\n */\n\n/**\n * @constant\n * @name daysInWeek\n * @summary Days in 1 week.\n */\nexport const daysInWeek = 7;\n\n/**\n * @constant\n * @name daysInYear\n * @summary Days in 1 year.\n *\n * @description\n * How many days in a year.\n *\n * One years equals 365.2425 days according to the formula:\n *\n * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400.\n * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days\n */\nexport const daysInYear = 365.2425;\n\n/**\n * @constant\n * @name maxTime\n * @summary Maximum allowed time.\n *\n * @example\n * import { maxTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = 8640000000000001 <= maxTime;\n * //=> false\n *\n * new Date(8640000000000001);\n * //=> Invalid Date\n */\nexport const maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;\n\n/**\n * @constant\n * @name minTime\n * @summary Minimum allowed time.\n *\n * @example\n * import { minTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = -8640000000000001 >= minTime;\n * //=> false\n *\n * new Date(-8640000000000001)\n * //=> Invalid Date\n */\nexport const minTime = -maxTime;\n\n/**\n * @constant\n * @name millisecondsInWeek\n * @summary Milliseconds in 1 week.\n */\nexport const millisecondsInWeek = 604800000;\n\n/**\n * @constant\n * @name millisecondsInDay\n * @summary Milliseconds in 1 day.\n */\nexport const millisecondsInDay = 86400000;\n\n/**\n * @constant\n * @name millisecondsInMinute\n * @summary Milliseconds in 1 minute\n */\nexport const millisecondsInMinute = 60000;\n\n/**\n * @constant\n * @name millisecondsInHour\n * @summary Milliseconds in 1 hour\n */\nexport const millisecondsInHour = 3600000;\n\n/**\n * @constant\n * @name millisecondsInSecond\n * @summary Milliseconds in 1 second\n */\nexport const millisecondsInSecond = 1000;\n\n/**\n * @constant\n * @name minutesInYear\n * @summary Minutes in 1 year.\n */\nexport const minutesInYear = 525600;\n\n/**\n * @constant\n * @name minutesInMonth\n * @summary Minutes in 1 month.\n */\nexport const minutesInMonth = 43200;\n\n/**\n * @constant\n * @name minutesInDay\n * @summary Minutes in 1 day.\n */\nexport const minutesInDay = 1440;\n\n/**\n * @constant\n * @name minutesInHour\n * @summary Minutes in 1 hour.\n */\nexport const minutesInHour = 60;\n\n/**\n * @constant\n * @name monthsInQuarter\n * @summary Months in 1 quarter.\n */\nexport const monthsInQuarter = 3;\n\n/**\n * @constant\n * @name monthsInYear\n * @summary Months in 1 year.\n */\nexport const monthsInYear = 12;\n\n/**\n * @constant\n * @name quartersInYear\n * @summary Quarters in 1 year\n */\nexport const quartersInYear = 4;\n\n/**\n * @constant\n * @name secondsInHour\n * @summary Seconds in 1 hour.\n */\nexport const secondsInHour = 3600;\n\n/**\n * @constant\n * @name secondsInMinute\n * @summary Seconds in 1 minute.\n */\nexport const secondsInMinute = 60;\n\n/**\n * @constant\n * @name secondsInDay\n * @summary Seconds in 1 day.\n */\nexport const secondsInDay = secondsInHour * 24;\n\n/**\n * @constant\n * @name secondsInWeek\n * @summary Seconds in 1 week.\n */\nexport const secondsInWeek = secondsInDay * 7;\n\n/**\n * @constant\n * @name secondsInYear\n * @summary Seconds in 1 year.\n */\nexport const secondsInYear = secondsInDay * daysInYear;\n\n/**\n * @constant\n * @name secondsInMonth\n * @summary Seconds in 1 month\n */\nexport const secondsInMonth = secondsInYear / 12;\n\n/**\n * @constant\n * @name secondsInQuarter\n * @summary Seconds in 1 quarter.\n */\nexport const secondsInQuarter = secondsInMonth * 3;\n\n/**\n * @constant\n * @name constructFromSymbol\n * @summary Symbol enabling Date extensions to inherit properties from the reference date.\n *\n * The symbol is used to enable the `constructFrom` function to construct a date\n * using a reference date and a value. It allows to transfer extra properties\n * from the reference date to the new date. It's useful for extensions like\n * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as\n * a constructor argument.\n */\nexport const constructFromSymbol = Symbol.for(\"constructDateFrom\");\n"],"names":["millisecondsInWeek","millisecondsInDay","constructFromSymbol"],"mappings":"AA4EY,MAACA,IAAqB,QAOrBC,IAAoB,OAoIpBC,IAAsB,uBAAO,IAAI,mBAAmB;","x_google_ignoreList":[0]}
package/dist/index381.js CHANGED
@@ -1,16 +1,19 @@
1
- function c(r, d, e = !0) {
2
- return r.filter((t) => t.parentId === d).flatMap((t) => [...!e || t.context?.open ? [t] : [], ...c(r, t.id, e)]);
3
- }
4
- function o(r, d) {
5
- let e = [], n = r.find((t) => t.id === d)?.parentId;
6
- for (; n; ) {
7
- const t = r.find((i) => i.id === n);
8
- n = t?.parentId, t && (e = e.concat(t));
9
- }
10
- return e;
1
+ import { toDate as o } from "./index379.js";
2
+ function l(t) {
3
+ const e = o(t), n = new Date(
4
+ Date.UTC(
5
+ e.getFullYear(),
6
+ e.getMonth(),
7
+ e.getDate(),
8
+ e.getHours(),
9
+ e.getMinutes(),
10
+ e.getSeconds(),
11
+ e.getMilliseconds()
12
+ )
13
+ );
14
+ return n.setUTCFullYear(e.getFullYear()), +t - +n;
11
15
  }
12
16
  export {
13
- o as getNodeAncestors,
14
- c as getNodeChildren
17
+ l as getTimezoneOffsetInMilliseconds
15
18
  };
16
19
  //# sourceMappingURL=index381.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index381.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/nodes.mjs"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-loop-func */\n\nexport function getNodeChildren(nodes, id, onlyOpenChildren = true) {\n const directChildren = nodes.filter(node => node.parentId === id);\n return directChildren.flatMap(child => [...(!onlyOpenChildren || child.context?.open ? [child] : []), ...getNodeChildren(nodes, child.id, onlyOpenChildren)]);\n}\nexport function getDeepestNode(nodes, id) {\n let deepestNodeId;\n let maxDepth = -1;\n function findDeepest(nodeId, depth) {\n if (depth > maxDepth) {\n deepestNodeId = nodeId;\n maxDepth = depth;\n }\n const children = getNodeChildren(nodes, nodeId);\n children.forEach(child => {\n findDeepest(child.id, depth + 1);\n });\n }\n findDeepest(id, 0);\n return nodes.find(node => node.id === deepestNodeId);\n}\nexport function getNodeAncestors(nodes, id) {\n let allAncestors = [];\n let currentParentId = nodes.find(node => node.id === id)?.parentId;\n while (currentParentId) {\n const currentNode = nodes.find(node => node.id === currentParentId);\n currentParentId = currentNode?.parentId;\n if (currentNode) {\n allAncestors = allAncestors.concat(currentNode);\n }\n }\n return allAncestors;\n}"],"names":["getNodeChildren","nodes","id","onlyOpenChildren","node","child","getNodeAncestors","allAncestors","currentParentId","currentNode"],"mappings":"AAEO,SAASA,EAAgBC,GAAOC,GAAIC,IAAmB,IAAM;AAElE,SADuBF,EAAM,OAAO,CAAAG,MAAQA,EAAK,aAAaF,CAAE,EAC1C,QAAQ,CAAAG,MAAS,CAAC,GAAI,CAACF,KAAoBE,EAAM,SAAS,OAAO,CAACA,CAAK,IAAI,CAAA,GAAK,GAAGL,EAAgBC,GAAOI,EAAM,IAAIF,CAAgB,CAAC,CAAC;AAC9J;AAiBO,SAASG,EAAiBL,GAAOC,GAAI;AAC1C,MAAIK,IAAe,CAAA,GACfC,IAAkBP,EAAM,KAAK,CAAAG,MAAQA,EAAK,OAAOF,CAAE,GAAG;AAC1D,SAAOM,KAAiB;AACtB,UAAMC,IAAcR,EAAM,KAAK,CAAAG,MAAQA,EAAK,OAAOI,CAAe;AAClE,IAAAA,IAAkBC,GAAa,UAC3BA,MACFF,IAAeA,EAAa,OAAOE,CAAW;AAAA,EAElD;AACA,SAAOF;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index381.js","sources":["../../../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js"],"sourcesContent":["import { toDate } from \"../toDate.js\";\n\n/**\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\n * They usually appear for dates that denote time before the timezones were introduced\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\n * and GMT+01:00:00 after that date)\n *\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\n * which would lead to incorrect calculations.\n *\n * This function returns the timezone offset in milliseconds that takes seconds in account.\n */\nexport function getTimezoneOffsetInMilliseconds(date) {\n const _date = toDate(date);\n const utcDate = new Date(\n Date.UTC(\n _date.getFullYear(),\n _date.getMonth(),\n _date.getDate(),\n _date.getHours(),\n _date.getMinutes(),\n _date.getSeconds(),\n _date.getMilliseconds(),\n ),\n );\n utcDate.setUTCFullYear(_date.getFullYear());\n return +date - +utcDate;\n}\n"],"names":["getTimezoneOffsetInMilliseconds","date","_date","toDate","utcDate"],"mappings":";AAaO,SAASA,EAAgCC,GAAM;AACpD,QAAMC,IAAQC,EAAOF,CAAI,GACnBG,IAAU,IAAI;AAAA,IAClB,KAAK;AAAA,MACHF,EAAM,YAAW;AAAA,MACjBA,EAAM,SAAQ;AAAA,MACdA,EAAM,QAAO;AAAA,MACbA,EAAM,SAAQ;AAAA,MACdA,EAAM,WAAU;AAAA,MAChBA,EAAM,WAAU;AAAA,MAChBA,EAAM,gBAAe;AAAA,IAC3B;AAAA,EACA;AACE,SAAAE,EAAQ,eAAeF,EAAM,aAAa,GACnC,CAACD,IAAO,CAACG;AAClB;","x_google_ignoreList":[0]}
package/dist/index382.js CHANGED
@@ -1,50 +1,12 @@
1
- import { getComputedStyle as c } from "./index248.js";
2
- function a(t, i) {
3
- return i < 0 || i >= t.length;
4
- }
5
- function b(t, i) {
6
- return o(t.current, {
7
- disabledIndices: i
8
- });
9
- }
10
- function p(t, i) {
11
- return o(t.current, {
12
- decrement: !0,
13
- startingIndex: t.current.length,
14
- disabledIndices: i
15
- });
16
- }
17
- function o(t, {
18
- startingIndex: i = -1,
19
- decrement: e = !1,
20
- disabledIndices: u,
21
- amount: n = 1
22
- } = {}) {
23
- let r = i;
24
- do
25
- r += e ? -n : n;
26
- while (r >= 0 && r <= t.length - 1 && f(t, r, u));
27
- return r;
28
- }
29
- function f(t, i, e) {
30
- if (typeof e == "function" ? e(i) : e?.includes(i) ?? !1)
31
- return !0;
32
- const n = t[i];
33
- return n ? l(n) ? !e && (n.hasAttribute("disabled") || n.getAttribute("aria-disabled") === "true") : !0 : !1;
34
- }
35
- function s(t) {
36
- return t.visibility === "hidden" || t.visibility === "collapse";
37
- }
38
- function l(t, i = t ? c(t) : null) {
39
- return !t || !t.isConnected || !i || s(i) ? !1 : typeof t.checkVisibility == "function" ? t.checkVisibility() : i.display !== "none" && i.display !== "contents";
1
+ import { constructFrom as r } from "./index378.js";
2
+ function i(e, ...o) {
3
+ const n = r.bind(
4
+ null,
5
+ o.find((t) => typeof t == "object")
6
+ );
7
+ return o.map(n);
40
8
  }
41
9
  export {
42
- o as findNonDisabledListIndex,
43
- p as getMaxListIndex,
44
- b as getMinListIndex,
45
- l as isElementVisible,
46
- s as isHiddenByStyles,
47
- a as isIndexOutOfListBounds,
48
- f as isListIndexDisabled
10
+ i as normalizeDates
49
11
  };
50
12
  //# sourceMappingURL=index382.js.map