@rpcbase/ui 0.227.0 → 0.228.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 (594) hide show
  1. package/dist/index106.js +36 -36
  2. package/dist/index118.js +6 -6
  3. package/dist/index121.js +10 -10
  4. package/dist/index123.js +2 -2
  5. package/dist/index124.js +3 -3
  6. package/dist/index125.js +1 -1
  7. package/dist/index127.js +2 -2
  8. package/dist/index129.js +2 -2
  9. package/dist/index150.js +5 -11
  10. package/dist/index150.js.map +1 -1
  11. package/dist/index151.js +63 -63
  12. package/dist/index151.js.map +1 -1
  13. package/dist/index152.js +2 -38
  14. package/dist/index152.js.map +1 -1
  15. package/dist/index153.js +363 -13
  16. package/dist/index153.js.map +1 -1
  17. package/dist/index154.js +261 -23
  18. package/dist/index154.js.map +1 -1
  19. package/dist/index155.js +58 -108
  20. package/dist/index155.js.map +1 -1
  21. package/dist/index156.js +47 -13
  22. package/dist/index156.js.map +1 -1
  23. package/dist/index157.js +169 -4
  24. package/dist/index157.js.map +1 -1
  25. package/dist/index158.js +110 -4
  26. package/dist/index158.js.map +1 -1
  27. package/dist/index159.js +25 -5
  28. package/dist/index159.js.map +1 -1
  29. package/dist/index160.js +8 -12
  30. package/dist/index160.js.map +1 -1
  31. package/dist/index161.js +4 -19
  32. package/dist/index161.js.map +1 -1
  33. package/dist/index162.js +6 -13
  34. package/dist/index162.js.map +1 -1
  35. package/dist/index163.js +4 -261
  36. package/dist/index163.js.map +1 -1
  37. package/dist/index164.js +466 -4
  38. package/dist/index164.js.map +1 -1
  39. package/dist/index165.js +185 -27
  40. package/dist/index165.js.map +1 -1
  41. package/dist/index166.js +105 -124
  42. package/dist/index166.js.map +1 -1
  43. package/dist/index167.js +262 -5
  44. package/dist/index167.js.map +1 -1
  45. package/dist/index168.js +9 -78
  46. package/dist/index168.js.map +1 -1
  47. package/dist/index169.js +39 -63
  48. package/dist/index169.js.map +1 -1
  49. package/dist/index170.js +4 -8
  50. package/dist/index170.js.map +1 -1
  51. package/dist/index171.js +12 -16
  52. package/dist/index171.js.map +1 -1
  53. package/dist/index172.js +65 -89
  54. package/dist/index172.js.map +1 -1
  55. package/dist/index173.js +38 -66
  56. package/dist/index173.js.map +1 -1
  57. package/dist/index174.js +13 -45
  58. package/dist/index174.js.map +1 -1
  59. package/dist/index175.js +23 -5
  60. package/dist/index175.js.map +1 -1
  61. package/dist/index176.js +108 -66
  62. package/dist/index176.js.map +1 -1
  63. package/dist/index177.js +13 -2
  64. package/dist/index177.js.map +1 -1
  65. package/dist/index178.js +4 -363
  66. package/dist/index178.js.map +1 -1
  67. package/dist/index179.js +4 -262
  68. package/dist/index179.js.map +1 -1
  69. package/dist/index180.js +5 -61
  70. package/dist/index180.js.map +1 -1
  71. package/dist/index181.js +11 -46
  72. package/dist/index181.js.map +1 -1
  73. package/dist/index182.js +18 -168
  74. package/dist/index182.js.map +1 -1
  75. package/dist/index183.js +13 -110
  76. package/dist/index183.js.map +1 -1
  77. package/dist/index184.js +261 -24
  78. package/dist/index184.js.map +1 -1
  79. package/dist/index185.js +5 -8
  80. package/dist/index185.js.map +1 -1
  81. package/dist/index186.js +28 -5
  82. package/dist/index186.js.map +1 -1
  83. package/dist/index187.js +126 -5
  84. package/dist/index187.js.map +1 -1
  85. package/dist/index188.js +5 -4
  86. package/dist/index188.js.map +1 -1
  87. package/dist/index189.js +77 -465
  88. package/dist/index189.js.map +1 -1
  89. package/dist/index190.js +62 -181
  90. package/dist/index190.js.map +1 -1
  91. package/dist/index191.js +8 -107
  92. package/dist/index191.js.map +1 -1
  93. package/dist/index192.js +15 -262
  94. package/dist/index192.js.map +1 -1
  95. package/dist/index193.js +91 -8
  96. package/dist/index193.js.map +1 -1
  97. package/dist/index194.js +65 -42
  98. package/dist/index194.js.map +1 -1
  99. package/dist/index195.js +45 -4
  100. package/dist/index195.js.map +1 -1
  101. package/dist/index196.js +17 -20
  102. package/dist/index196.js.map +1 -1
  103. package/dist/index197.js +4 -65
  104. package/dist/index197.js.map +1 -1
  105. package/dist/index198.js +5 -6
  106. package/dist/index198.js.map +1 -1
  107. package/dist/index199.js +58 -11
  108. package/dist/index199.js.map +1 -1
  109. package/dist/index200.js +63 -47
  110. package/dist/index200.js.map +1 -1
  111. package/dist/index201.js +7 -4
  112. package/dist/index201.js.map +1 -1
  113. package/dist/index202.js +4 -29
  114. package/dist/index202.js.map +1 -1
  115. package/dist/index203.js +6 -16
  116. package/dist/index203.js.map +1 -1
  117. package/dist/index204.js +16 -5
  118. package/dist/index204.js.map +1 -1
  119. package/dist/index205.js +4 -21
  120. package/dist/index205.js.map +1 -1
  121. package/dist/index206.js +4 -51
  122. package/dist/index206.js.map +1 -1
  123. package/dist/index207.js +12 -25
  124. package/dist/index207.js.map +1 -1
  125. package/dist/index208.js +9 -41
  126. package/dist/index208.js.map +1 -1
  127. package/dist/index209.js +13 -39
  128. package/dist/index209.js.map +1 -1
  129. package/dist/index210.js +14 -45
  130. package/dist/index210.js.map +1 -1
  131. package/dist/index211.js +4 -20
  132. package/dist/index211.js.map +1 -1
  133. package/dist/index212.js +5 -70
  134. package/dist/index212.js.map +1 -1
  135. package/dist/index213.js +6 -17
  136. package/dist/index213.js.map +1 -1
  137. package/dist/index214.js +5 -11
  138. package/dist/index214.js.map +1 -1
  139. package/dist/index215.js +53 -26
  140. package/dist/index215.js.map +1 -1
  141. package/dist/index216.js +8 -13
  142. package/dist/index216.js.map +1 -1
  143. package/dist/index217.js +4 -18
  144. package/dist/index217.js.map +1 -1
  145. package/dist/index218.js +4 -36
  146. package/dist/index218.js.map +1 -1
  147. package/dist/index219.js +8 -262
  148. package/dist/index219.js.map +1 -1
  149. package/dist/index220.js +4 -278
  150. package/dist/index220.js.map +1 -1
  151. package/dist/index221.js +4 -68
  152. package/dist/index221.js.map +1 -1
  153. package/dist/index222.js +3 -99
  154. package/dist/index222.js.map +1 -1
  155. package/dist/index223.js +10 -83
  156. package/dist/index223.js.map +1 -1
  157. package/dist/index224.js +9 -3
  158. package/dist/index224.js.map +1 -1
  159. package/dist/index225.js +9 -29
  160. package/dist/index225.js.map +1 -1
  161. package/dist/index226.js +10 -16
  162. package/dist/index226.js.map +1 -1
  163. package/dist/index227.js +11 -35
  164. package/dist/index227.js.map +1 -1
  165. package/dist/index228.js +9 -16
  166. package/dist/index228.js.map +1 -1
  167. package/dist/index229.js +6 -3
  168. package/dist/index229.js.map +1 -1
  169. package/dist/index230.js +5 -26
  170. package/dist/index230.js.map +1 -1
  171. package/dist/index231.js +4 -28
  172. package/dist/index231.js.map +1 -1
  173. package/dist/index232.js +6 -4
  174. package/dist/index232.js.map +1 -1
  175. package/dist/index233.js +6 -78
  176. package/dist/index233.js.map +1 -1
  177. package/dist/index234.js +5 -269
  178. package/dist/index234.js.map +1 -1
  179. package/dist/index235.js +8 -11
  180. package/dist/index235.js.map +1 -1
  181. package/dist/index236.js +19 -10
  182. package/dist/index236.js.map +1 -1
  183. package/dist/index237.js +16 -25
  184. package/dist/index237.js.map +1 -1
  185. package/dist/index238.js +7 -16
  186. package/dist/index238.js.map +1 -1
  187. package/dist/index239.js +9 -124
  188. package/dist/index239.js.map +1 -1
  189. package/dist/index240.js +10 -5
  190. package/dist/index240.js.map +1 -1
  191. package/dist/index241.js +21 -40
  192. package/dist/index241.js.map +1 -1
  193. package/dist/index242.js +10 -65
  194. package/dist/index242.js.map +1 -1
  195. package/dist/index243.js +10 -14
  196. package/dist/index243.js.map +1 -1
  197. package/dist/index244.js +9 -7
  198. package/dist/index244.js.map +1 -1
  199. package/dist/index245.js +4 -5
  200. package/dist/index245.js.map +1 -1
  201. package/dist/index246.js +5 -3
  202. package/dist/index246.js.map +1 -1
  203. package/dist/index247.js +16 -10
  204. package/dist/index247.js.map +1 -1
  205. package/dist/index248.js +9 -7
  206. package/dist/index248.js.map +1 -1
  207. package/dist/index249.js +17 -132
  208. package/dist/index249.js.map +1 -1
  209. package/dist/index250.js +13 -397
  210. package/dist/index250.js.map +1 -1
  211. package/dist/index251.js +12 -52
  212. package/dist/index251.js.map +1 -1
  213. package/dist/index252.js +28 -10
  214. package/dist/index252.js.map +1 -1
  215. package/dist/index253.js +12 -11
  216. package/dist/index253.js.map +1 -1
  217. package/dist/index254.js +25 -58
  218. package/dist/index254.js.map +1 -1
  219. package/dist/index255.js +5 -8
  220. package/dist/index255.js.map +1 -1
  221. package/dist/index256.js +20 -67
  222. package/dist/index256.js.map +1 -1
  223. package/dist/index257.js +65 -18
  224. package/dist/index257.js.map +1 -1
  225. package/dist/index258.js +6 -16
  226. package/dist/index258.js.map +1 -1
  227. package/dist/index259.js +11 -5
  228. package/dist/index259.js.map +1 -1
  229. package/dist/index260.js +49 -4
  230. package/dist/index260.js.map +1 -1
  231. package/dist/index261.js +4 -7
  232. package/dist/index261.js.map +1 -1
  233. package/dist/index262.js +29 -4
  234. package/dist/index262.js.map +1 -1
  235. package/dist/index263.js +16 -6
  236. package/dist/index263.js.map +1 -1
  237. package/dist/index264.js +5 -16
  238. package/dist/index264.js.map +1 -1
  239. package/dist/index265.js +21 -4
  240. package/dist/index265.js.map +1 -1
  241. package/dist/index266.js +51 -4
  242. package/dist/index266.js.map +1 -1
  243. package/dist/index267.js +25 -12
  244. package/dist/index267.js.map +1 -1
  245. package/dist/index268.js +41 -9
  246. package/dist/index268.js.map +1 -1
  247. package/dist/index269.js +39 -13
  248. package/dist/index269.js.map +1 -1
  249. package/dist/index270.js +45 -14
  250. package/dist/index270.js.map +1 -1
  251. package/dist/index271.js +20 -4
  252. package/dist/index271.js.map +1 -1
  253. package/dist/index272.js +70 -5
  254. package/dist/index272.js.map +1 -1
  255. package/dist/index273.js +17 -6
  256. package/dist/index273.js.map +1 -1
  257. package/dist/index274.js +11 -5
  258. package/dist/index274.js.map +1 -1
  259. package/dist/index275.js +26 -53
  260. package/dist/index275.js.map +1 -1
  261. package/dist/index276.js +13 -8
  262. package/dist/index276.js.map +1 -1
  263. package/dist/index277.js +18 -4
  264. package/dist/index277.js.map +1 -1
  265. package/dist/index278.js +36 -4
  266. package/dist/index278.js.map +1 -1
  267. package/dist/index279.js +262 -8
  268. package/dist/index279.js.map +1 -1
  269. package/dist/index280.js +278 -4
  270. package/dist/index280.js.map +1 -1
  271. package/dist/index281.js +68 -4
  272. package/dist/index281.js.map +1 -1
  273. package/dist/index282.js +99 -3
  274. package/dist/index282.js.map +1 -1
  275. package/dist/index283.js +83 -10
  276. package/dist/index283.js.map +1 -1
  277. package/dist/index284.js +3 -9
  278. package/dist/index284.js.map +1 -1
  279. package/dist/index285.js +29 -9
  280. package/dist/index285.js.map +1 -1
  281. package/dist/index286.js +16 -10
  282. package/dist/index286.js.map +1 -1
  283. package/dist/index287.js +35 -11
  284. package/dist/index287.js.map +1 -1
  285. package/dist/index288.js +16 -9
  286. package/dist/index288.js.map +1 -1
  287. package/dist/index289.js +3 -6
  288. package/dist/index289.js.map +1 -1
  289. package/dist/index290.js +26 -5
  290. package/dist/index290.js.map +1 -1
  291. package/dist/index291.js +28 -4
  292. package/dist/index291.js.map +1 -1
  293. package/dist/index292.js +4 -6
  294. package/dist/index292.js.map +1 -1
  295. package/dist/index293.js +78 -6
  296. package/dist/index293.js.map +1 -1
  297. package/dist/index294.js +269 -5
  298. package/dist/index294.js.map +1 -1
  299. package/dist/index295.js +10 -15
  300. package/dist/index295.js.map +1 -1
  301. package/dist/index296.js +10 -7
  302. package/dist/index296.js.map +1 -1
  303. package/dist/index297.js +25 -10
  304. package/dist/index297.js.map +1 -1
  305. package/dist/index298.js +16 -10
  306. package/dist/index298.js.map +1 -1
  307. package/dist/index299.js +125 -21
  308. package/dist/index299.js.map +1 -1
  309. package/dist/index300.js +5 -10
  310. package/dist/index300.js.map +1 -1
  311. package/dist/index301.js +40 -9
  312. package/dist/index301.js.map +1 -1
  313. package/dist/index302.js +65 -9
  314. package/dist/index302.js.map +1 -1
  315. package/dist/index303.js +14 -5
  316. package/dist/index303.js.map +1 -1
  317. package/dist/index304.js +7 -5
  318. package/dist/index304.js.map +1 -1
  319. package/dist/index305.js +5 -16
  320. package/dist/index305.js.map +1 -1
  321. package/dist/index306.js +3 -9
  322. package/dist/index306.js.map +1 -1
  323. package/dist/index307.js +10 -18
  324. package/dist/index307.js.map +1 -1
  325. package/dist/index308.js +7 -15
  326. package/dist/index308.js.map +1 -1
  327. package/dist/index309.js +132 -11
  328. package/dist/index309.js.map +1 -1
  329. package/dist/index310.js +399 -29
  330. package/dist/index310.js.map +1 -1
  331. package/dist/index311.js +52 -12
  332. package/dist/index311.js.map +1 -1
  333. package/dist/index312.js +11 -25
  334. package/dist/index312.js.map +1 -1
  335. package/dist/index313.js +11 -5
  336. package/dist/index313.js.map +1 -1
  337. package/dist/index314.js +13 -8
  338. package/dist/index314.js.map +1 -1
  339. package/dist/index315.js +154 -11
  340. package/dist/index315.js.map +1 -1
  341. package/dist/index316.js +29 -7
  342. package/dist/index316.js.map +1 -1
  343. package/dist/index317.js +9 -13
  344. package/dist/index317.js.map +1 -1
  345. package/dist/index318.js +48 -3
  346. package/dist/index318.js.map +1 -1
  347. package/dist/index319.js +11 -3
  348. package/dist/index319.js.map +1 -1
  349. package/dist/index320.js +43 -16
  350. package/dist/index320.js.map +1 -1
  351. package/dist/index321.js +95 -5
  352. package/dist/index321.js.map +1 -1
  353. package/dist/index322.js +84 -49
  354. package/dist/index322.js.map +1 -1
  355. package/dist/index323.js +96 -113
  356. package/dist/index323.js.map +1 -1
  357. package/dist/index324.js +52 -32
  358. package/dist/index324.js.map +1 -1
  359. package/dist/index325.js +11 -73
  360. package/dist/index325.js.map +1 -1
  361. package/dist/index326.js +35 -140
  362. package/dist/index326.js.map +1 -1
  363. package/dist/index327.js +8 -61
  364. package/dist/index327.js.map +1 -1
  365. package/dist/index328.js +115 -48
  366. package/dist/index328.js.map +1 -1
  367. package/dist/index329.js +18 -15
  368. package/dist/index329.js.map +1 -1
  369. package/dist/index330.js +14 -7
  370. package/dist/index330.js.map +1 -1
  371. package/dist/index331.js +4 -5
  372. package/dist/index331.js.map +1 -1
  373. package/dist/index332.js +36 -11
  374. package/dist/index332.js.map +1 -1
  375. package/dist/index333.js +20 -21
  376. package/dist/index333.js.map +1 -1
  377. package/dist/index334.js +9 -13
  378. package/dist/index334.js.map +1 -1
  379. package/dist/index335.js +8 -154
  380. package/dist/index335.js.map +1 -1
  381. package/dist/index336.js +8 -30
  382. package/dist/index336.js.map +1 -1
  383. package/dist/index337.js +11 -9
  384. package/dist/index337.js.map +1 -1
  385. package/dist/index338.js +7 -47
  386. package/dist/index338.js.map +1 -1
  387. package/dist/index339.js +13 -11
  388. package/dist/index339.js.map +1 -1
  389. package/dist/index34.js +4 -4
  390. package/dist/index340.js +3 -44
  391. package/dist/index340.js.map +1 -1
  392. package/dist/index341.js +3 -95
  393. package/dist/index341.js.map +1 -1
  394. package/dist/index342.js +18 -85
  395. package/dist/index342.js.map +1 -1
  396. package/dist/index343.js +23 -100
  397. package/dist/index343.js.map +1 -1
  398. package/dist/index344.js +15 -51
  399. package/dist/index344.js.map +1 -1
  400. package/dist/index345.js +16 -10
  401. package/dist/index345.js.map +1 -1
  402. package/dist/index346.js +50 -36
  403. package/dist/index346.js.map +1 -1
  404. package/dist/index347.js +5 -8
  405. package/dist/index347.js.map +1 -1
  406. package/dist/index348.js +114 -108
  407. package/dist/index348.js.map +1 -1
  408. package/dist/index349.js +32 -17
  409. package/dist/index349.js.map +1 -1
  410. package/dist/index35.js +5 -5
  411. package/dist/index350.js +72 -14
  412. package/dist/index350.js.map +1 -1
  413. package/dist/index351.js +142 -3
  414. package/dist/index351.js.map +1 -1
  415. package/dist/index352.js +60 -35
  416. package/dist/index352.js.map +1 -1
  417. package/dist/index353.js +49 -20
  418. package/dist/index353.js.map +1 -1
  419. package/dist/index354.js +15 -10
  420. package/dist/index354.js.map +1 -1
  421. package/dist/index355.js +8 -8
  422. package/dist/index355.js.map +1 -1
  423. package/dist/index356.js +5 -20
  424. package/dist/index356.js.map +1 -1
  425. package/dist/index357.js +11 -28
  426. package/dist/index357.js.map +1 -1
  427. package/dist/index358.js +21 -16
  428. package/dist/index358.js.map +1 -1
  429. package/dist/index359.js +5 -4
  430. package/dist/index359.js.map +1 -1
  431. package/dist/index36.js +10 -10
  432. package/dist/index360.js +17 -11
  433. package/dist/index360.js.map +1 -1
  434. package/dist/index361.js +12 -16
  435. package/dist/index361.js.map +1 -1
  436. package/dist/index362.js +4 -6
  437. package/dist/index362.js.map +1 -1
  438. package/dist/index363.js +10 -19
  439. package/dist/index363.js.map +1 -1
  440. package/dist/index364.js +17 -45
  441. package/dist/index364.js.map +1 -1
  442. package/dist/index365.js +6 -18
  443. package/dist/index365.js.map +1 -1
  444. package/dist/index366.js +21 -5
  445. package/dist/index366.js.map +1 -1
  446. package/dist/index367.js +44 -200
  447. package/dist/index367.js.map +1 -1
  448. package/dist/index368.js +17 -77
  449. package/dist/index368.js.map +1 -1
  450. package/dist/index369.js +5 -5
  451. package/dist/index369.js.map +1 -1
  452. package/dist/index37.js +3 -3
  453. package/dist/index370.js +199 -16
  454. package/dist/index370.js.map +1 -1
  455. package/dist/index371.js +77 -12
  456. package/dist/index371.js.map +1 -1
  457. package/dist/index372.js +20 -8
  458. package/dist/index372.js.map +1 -1
  459. package/dist/index373.js +8 -25
  460. package/dist/index373.js.map +1 -1
  461. package/dist/index374.js +26 -27
  462. package/dist/index374.js.map +1 -1
  463. package/dist/index375.js +21 -132
  464. package/dist/index375.js.map +1 -1
  465. package/dist/index376.js +136 -11
  466. package/dist/index376.js.map +1 -1
  467. package/dist/index377.js +11 -225
  468. package/dist/index377.js.map +1 -1
  469. package/dist/index378.js +226 -3
  470. package/dist/index378.js.map +1 -1
  471. package/dist/index379.js +3 -19
  472. package/dist/index379.js.map +1 -1
  473. package/dist/index38.js +4 -4
  474. package/dist/index380.js +17 -75
  475. package/dist/index380.js.map +1 -1
  476. package/dist/index381.js +77 -11
  477. package/dist/index381.js.map +1 -1
  478. package/dist/index382.js +12 -4
  479. package/dist/index382.js.map +1 -1
  480. package/dist/index383.js +3 -71
  481. package/dist/index383.js.map +1 -1
  482. package/dist/index384.js +72 -9
  483. package/dist/index384.js.map +1 -1
  484. package/dist/index385.js +9 -16
  485. package/dist/index385.js.map +1 -1
  486. package/dist/index386.js +15 -20
  487. package/dist/index386.js.map +1 -1
  488. package/dist/index387.js +5 -3
  489. package/dist/index387.js.map +1 -1
  490. package/dist/index388.js +5 -3
  491. package/dist/index388.js.map +1 -1
  492. package/dist/index389.js +4 -5
  493. package/dist/index389.js.map +1 -1
  494. package/dist/index39.js +5 -5
  495. package/dist/index390.js +15 -4
  496. package/dist/index390.js.map +1 -1
  497. package/dist/index391.js +9 -4
  498. package/dist/index391.js.map +1 -1
  499. package/dist/index392.js +5 -15
  500. package/dist/index392.js.map +1 -1
  501. package/dist/index393.js +4 -8
  502. package/dist/index393.js.map +1 -1
  503. package/dist/index394.js +545 -5
  504. package/dist/index394.js.map +1 -1
  505. package/dist/index395.js +47 -5
  506. package/dist/index395.js.map +1 -1
  507. package/dist/index396.js +15 -543
  508. package/dist/index396.js.map +1 -1
  509. package/dist/index397.js +6 -47
  510. package/dist/index397.js.map +1 -1
  511. package/dist/index398.js +7 -17
  512. package/dist/index398.js.map +1 -1
  513. package/dist/index399.js +6 -5
  514. package/dist/index399.js.map +1 -1
  515. package/dist/index40.js +3 -3
  516. package/dist/index400.js +7 -7
  517. package/dist/index400.js.map +1 -1
  518. package/dist/index401.js +11 -6
  519. package/dist/index401.js.map +1 -1
  520. package/dist/index402.js +8 -7
  521. package/dist/index402.js.map +1 -1
  522. package/dist/index403.js +12 -11
  523. package/dist/index403.js.map +1 -1
  524. package/dist/index404.js +3 -9
  525. package/dist/index404.js.map +1 -1
  526. package/dist/index405.js +3 -13
  527. package/dist/index405.js.map +1 -1
  528. package/dist/index407.js +1 -1
  529. package/dist/index408.js +4 -7
  530. package/dist/index408.js.map +1 -1
  531. package/dist/index409.js +56 -2
  532. package/dist/index409.js.map +1 -1
  533. package/dist/index41.js +10 -10
  534. package/dist/index410.js +67 -43
  535. package/dist/index410.js.map +1 -1
  536. package/dist/index411.js +31 -56
  537. package/dist/index411.js.map +1 -1
  538. package/dist/index412.js +9 -8
  539. package/dist/index412.js.map +1 -1
  540. package/dist/index413.js +153 -2
  541. package/dist/index413.js.map +1 -1
  542. package/dist/index414.js +107 -54
  543. package/dist/index414.js.map +1 -1
  544. package/dist/index415.js +7 -55
  545. package/dist/index415.js.map +1 -1
  546. package/dist/index416.js +2 -5
  547. package/dist/index416.js.map +1 -1
  548. package/dist/index417.js +42 -54
  549. package/dist/index417.js.map +1 -1
  550. package/dist/index418.js +56 -68
  551. package/dist/index418.js.map +1 -1
  552. package/dist/index419.js +8 -31
  553. package/dist/index419.js.map +1 -1
  554. package/dist/index420.js +2 -9
  555. package/dist/index420.js.map +1 -1
  556. package/dist/index421.js +54 -152
  557. package/dist/index421.js.map +1 -1
  558. package/dist/index422.js +56 -108
  559. package/dist/index422.js.map +1 -1
  560. package/dist/index423.js +16 -2
  561. package/dist/index423.js.map +1 -1
  562. package/dist/index424.js +29 -2
  563. package/dist/index424.js.map +1 -1
  564. package/dist/index425.js +13 -2
  565. package/dist/index425.js.map +1 -1
  566. package/dist/index426.js +7 -2
  567. package/dist/index426.js.map +1 -1
  568. package/dist/index427.js +2 -16
  569. package/dist/index427.js.map +1 -1
  570. package/dist/index428.js +2 -29
  571. package/dist/index428.js.map +1 -1
  572. package/dist/index429.js +2 -13
  573. package/dist/index429.js.map +1 -1
  574. package/dist/index430.js +2 -7
  575. package/dist/index430.js.map +1 -1
  576. package/dist/index48.js +2 -2
  577. package/dist/index49.js +34 -34
  578. package/dist/index50.js +29 -29
  579. package/dist/index51.js +2 -2
  580. package/dist/index52.js +12 -12
  581. package/dist/index53.js +4 -4
  582. package/dist/index54.js +1 -1
  583. package/dist/index55.js +22 -22
  584. package/dist/index56.js +5 -5
  585. package/dist/index57.js +5 -5
  586. package/dist/index58.js +8 -8
  587. package/dist/index59.js +5 -5
  588. package/dist/index60.js +17 -17
  589. package/dist/index61.js +5 -5
  590. package/dist/index62.js +3 -3
  591. package/dist/index76.js +1 -1
  592. package/dist/index77.js +2 -2
  593. package/dist/index78.js +2 -2
  594. package/package.json +1 -1
package/dist/index291.js CHANGED
@@ -1,8 +1,32 @@
1
- import { startOfWeek as r } from "./index293.js";
2
- function n(t, e) {
3
- return r(t, { ...e, weekStartsOn: 1 });
1
+ import { isShadowRoot as r } from "./index309.js";
2
+ function a(t) {
3
+ let e = t.activeElement;
4
+ for (; e?.shadowRoot?.activeElement != null; )
5
+ e = e.shadowRoot.activeElement;
6
+ return e;
7
+ }
8
+ function u(t, e) {
9
+ if (!t || !e)
10
+ return !1;
11
+ const n = e.getRootNode?.();
12
+ if (t.contains(e))
13
+ return !0;
14
+ if (n && r(n)) {
15
+ let o = e;
16
+ for (; o; ) {
17
+ if (t === o)
18
+ return !0;
19
+ o = o.parentNode || o.host;
20
+ }
21
+ }
22
+ return !1;
23
+ }
24
+ function f(t) {
25
+ return "composedPath" in t ? t.composedPath()[0] : t.target;
4
26
  }
5
27
  export {
6
- n as startOfISOWeek
28
+ a as activeElement,
29
+ u as contains,
30
+ f as getTarget
7
31
  };
8
32
  //# sourceMappingURL=index291.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index291.js","sources":["../../../node_modules/date-fns/startOfISOWeek.js"],"sourcesContent":["import { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link startOfISOWeek} function options.\n */\n\n/**\n * @name startOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the start of an ISO week for the given date.\n *\n * @description\n * Return the start of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an ISO week\n *\n * @example\n * // The start of an ISO week for 2 September 2014 11:55:00:\n * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfISOWeek(date, options) {\n return startOfWeek(date, { ...options, weekStartsOn: 1 });\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeek;\n"],"names":["startOfISOWeek","date","options","startOfWeek"],"mappings":";AA8BO,SAASA,EAAeC,GAAMC,GAAS;AAC5C,SAAOC,EAAYF,GAAM,EAAE,GAAGC,GAAS,cAAc,GAAG;AAC1D;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index291.js","sources":["../../../node_modules/@base-ui/react/esm/internals/shadowDom.js"],"sourcesContent":["import { isShadowRoot } from '@floating-ui/utils/dom';\nexport function activeElement(doc) {\n let element = doc.activeElement;\n while (element?.shadowRoot?.activeElement != null) {\n element = element.shadowRoot.activeElement;\n }\n return element;\n}\nexport function contains(parent, child) {\n if (!parent || !child) {\n return false;\n }\n const rootNode = child.getRootNode?.();\n\n // First, attempt with the faster native method.\n if (parent.contains(child)) {\n return true;\n }\n\n // Then fall back to traversing out of shadow roots when needed.\n if (rootNode && isShadowRoot(rootNode)) {\n let next = child;\n while (next) {\n if (parent === next) {\n return true;\n }\n next = next.parentNode || next.host;\n }\n }\n return false;\n}\nexport function getTarget(event) {\n if ('composedPath' in event) {\n return event.composedPath()[0];\n }\n\n // TS assumes `composedPath()` always exists, but older browsers without\n // shadow DOM support still fall back to `target`.\n return event.target;\n}"],"names":["activeElement","doc","element","contains","parent","child","rootNode","isShadowRoot","next","getTarget","event"],"mappings":";AACO,SAASA,EAAcC,GAAK;AACjC,MAAIC,IAAUD,EAAI;AAClB,SAAOC,GAAS,YAAY,iBAAiB;AAC3C,IAAAA,IAAUA,EAAQ,WAAW;AAE/B,SAAOA;AACT;AACO,SAASC,EAASC,GAAQC,GAAO;AACtC,MAAI,CAACD,KAAU,CAACC;AACd,WAAO;AAET,QAAMC,IAAWD,EAAM,cAAW;AAGlC,MAAID,EAAO,SAASC,CAAK;AACvB,WAAO;AAIT,MAAIC,KAAYC,EAAaD,CAAQ,GAAG;AACtC,QAAIE,IAAOH;AACX,WAAOG,KAAM;AACX,UAAIJ,MAAWI;AACb,eAAO;AAET,MAAAA,IAAOA,EAAK,cAAcA,EAAK;AAAA,IACjC;AAAA,EACF;AACA,SAAO;AACT;AACO,SAASC,EAAUC,GAAO;AAC/B,SAAI,kBAAkBA,IACbA,EAAM,aAAY,EAAG,CAAC,IAKxBA,EAAM;AACf;","x_google_ignoreList":[0]}
package/dist/index292.js CHANGED
@@ -1,9 +1,7 @@
1
- import { toDate as r } from "./index390.js";
2
- function s(o, e) {
3
- const t = r(o, e?.in);
4
- return t.setDate(1), t.setHours(0, 0, 0, 0), t;
5
- }
1
+ import * as e from "react";
2
+ const t = /* @__PURE__ */ e.createContext(void 0);
3
+ process.env.NODE_ENV !== "production" && (t.displayName = "SelectPortalContext");
6
4
  export {
7
- s as startOfMonth
5
+ t as SelectPortalContext
8
6
  };
9
7
  //# sourceMappingURL=index292.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index292.js","sources":["../../../node_modules/date-fns/startOfMonth.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfMonth} function options.\n */\n\n/**\n * @name startOfMonth\n * @category Month Helpers\n * @summary Return the start of a month for the given date.\n *\n * @description\n * Return the start of a month for the given date. The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments.\n * 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,\n * or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a month\n *\n * @example\n * // The start of a month for 2 September 2014 11:55:00:\n * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n _date.setDate(1);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfMonth;\n"],"names":["startOfMonth","date","options","_date","toDate"],"mappings":";AA6BO,SAASA,EAAaC,GAAMC,GAAS;AAC1C,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE;AACtC,SAAAC,EAAM,QAAQ,CAAC,GACfA,EAAM,SAAS,GAAG,GAAG,GAAG,CAAC,GAClBA;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index292.js","sources":["../../../node_modules/@base-ui/react/esm/select/portal/SelectPortalContext.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectPortalContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") SelectPortalContext.displayName = \"SelectPortalContext\";\nexport function useSelectPortalContext() {\n const value = React.useContext(SelectPortalContext);\n if (value === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: <Select.Portal> is missing.' : _formatErrorMessage(58));\n }\n return value;\n}"],"names":["SelectPortalContext","React"],"mappings":";AAIY,MAACA,IAAmC,gBAAAC,EAAM,cAAc,MAAS;AACzE,QAAQ,IAAI,aAAa,iBAAcD,EAAoB,cAAc;","x_google_ignoreList":[0]}
package/dist/index293.js CHANGED
@@ -1,10 +1,82 @@
1
- import { getDefaultOptions as c } from "./index395.js";
2
- import { toDate as f } from "./index390.js";
3
- function k(s, e) {
4
- const o = c(), a = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), n = t.getDay(), r = (n < a ? 7 : 0) + n - a;
5
- return t.setDate(t.getDate() - r), t.setHours(0, 0, 0, 0), t;
1
+ import * as a from "react";
2
+ import { useRefWithInit as T } from "./index258.js";
3
+ import { useStableCallback as l } from "./index262.js";
4
+ import { useIsoLayoutEffect as f } from "./index261.js";
5
+ import { CompositeListContext as b } from "./index366.js";
6
+ import { j as D } from "./index30.js";
7
+ function k(h) {
8
+ const {
9
+ children: N,
10
+ elementsRef: t,
11
+ labelsRef: o,
12
+ onMapChange: R
13
+ } = h, E = l(R), O = a.useRef(0), d = T(P).current, i = T(L).current, [p, M] = a.useState(0), c = a.useRef(p), C = l((e, u) => {
14
+ i.set(e, u ?? null), c.current += 1, M(c.current);
15
+ }), I = l((e) => {
16
+ i.delete(e), c.current += 1, M(c.current);
17
+ }), r = a.useMemo(() => {
18
+ const e = /* @__PURE__ */ new Map();
19
+ return Array.from(i.keys()).filter((n) => n.isConnected).sort(S).forEach((n, m) => {
20
+ const s = i.get(n) ?? {};
21
+ e.set(n, {
22
+ ...s,
23
+ index: m
24
+ });
25
+ }), e;
26
+ }, [i, p]);
27
+ f(() => {
28
+ if (typeof MutationObserver != "function" || r.size === 0)
29
+ return;
30
+ const e = new MutationObserver((u) => {
31
+ const n = /* @__PURE__ */ new Set(), m = (s) => n.has(s) ? n.delete(s) : n.add(s);
32
+ u.forEach((s) => {
33
+ s.removedNodes.forEach(m), s.addedNodes.forEach(m);
34
+ }), n.size === 0 && (c.current += 1, M(c.current));
35
+ });
36
+ return r.forEach((u, n) => {
37
+ n.parentElement && e.observe(n.parentElement, {
38
+ childList: !0
39
+ });
40
+ }), () => {
41
+ e.disconnect();
42
+ };
43
+ }, [r]), f(() => {
44
+ c.current === p && (t.current.length !== r.size && (t.current.length = r.size), o && o.current.length !== r.size && (o.current.length = r.size), O.current = r.size), E(r);
45
+ }, [E, r, t, o, p]), f(() => () => {
46
+ t.current = [];
47
+ }, [t]), f(() => () => {
48
+ o && (o.current = []);
49
+ }, [o]);
50
+ const g = l((e) => (d.add(e), () => {
51
+ d.delete(e);
52
+ }));
53
+ f(() => {
54
+ d.forEach((e) => e(r));
55
+ }, [d, r]);
56
+ const _ = a.useMemo(() => ({
57
+ register: C,
58
+ unregister: I,
59
+ subscribeMapChange: g,
60
+ elementsRef: t,
61
+ labelsRef: o,
62
+ nextIndexRef: O
63
+ }), [C, I, g, t, o, O]);
64
+ return /* @__PURE__ */ D.jsx(b.Provider, {
65
+ value: _,
66
+ children: N
67
+ });
68
+ }
69
+ function L() {
70
+ return /* @__PURE__ */ new Map();
71
+ }
72
+ function P() {
73
+ return /* @__PURE__ */ new Set();
74
+ }
75
+ function S(h, N) {
76
+ const t = h.compareDocumentPosition(N);
77
+ return t & Node.DOCUMENT_POSITION_FOLLOWING || t & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : t & Node.DOCUMENT_POSITION_PRECEDING || t & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0;
6
78
  }
7
79
  export {
8
- k as startOfWeek
80
+ k as CompositeList
9
81
  };
10
82
  //# sourceMappingURL=index293.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index293.js","sources":["../../../node_modules/date-fns/startOfWeek.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfWeek} function options.\n */\n\n/**\n * @name startOfWeek\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n\n _date.setDate(_date.getDate() - diff);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeek;\n"],"names":["startOfWeek","date","options","defaultOptions","getDefaultOptions","weekStartsOn","_date","toDate","day","diff"],"mappings":";;AAkCO,SAASA,EAAYC,GAAMC,GAAS;AACzC,QAAMC,IAAiBC,EAAiB,GAClCC,IACJH,GAAS,gBACTA,GAAS,QAAQ,SAAS,gBAC1BC,EAAe,gBACfA,EAAe,QAAQ,SAAS,gBAChC,GAEIG,IAAQC,EAAON,GAAMC,GAAS,EAAE,GAChCM,IAAMF,EAAM,OAAM,GAClBG,KAAQD,IAAMH,IAAe,IAAI,KAAKG,IAAMH;AAElD,SAAAC,EAAM,QAAQA,EAAM,QAAO,IAAKG,CAAI,GACpCH,EAAM,SAAS,GAAG,GAAG,GAAG,CAAC,GAClBA;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index293.js","sources":["../../../node_modules/@base-ui/react/esm/internals/composite/list/CompositeList.js"],"sourcesContent":["/* eslint-disable no-bitwise */\n'use client';\n\nimport * as React from 'react';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { CompositeListContext } from \"./CompositeListContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Provides context for a list of items in a composite component.\n * @internal\n */\nexport function CompositeList(props) {\n const {\n children,\n elementsRef,\n labelsRef,\n onMapChange: onMapChangeProp\n } = props;\n const onMapChange = useStableCallback(onMapChangeProp);\n const nextIndexRef = React.useRef(0);\n const listeners = useRefWithInit(createListeners).current;\n\n // We use a stable `map` to avoid O(n^2) re-allocation costs for large lists.\n // `mapTick` is our re-render trigger mechanism. We also need to update the\n // elements and label refs, but there's a lot of async work going on and sometimes\n // the effect that handles `onMapChange` gets called after those refs have been\n // filled, and we don't want to lose those values by setting their lengths to `0`.\n // We also need to have them at the proper length because floating-ui uses that\n // information for list navigation.\n\n const map = useRefWithInit(createMap).current;\n // `mapTick` uses a counter rather than objects for low precision-loss risk and better memory efficiency\n const [mapTick, setMapTick] = React.useState(0);\n const lastTickRef = React.useRef(mapTick);\n const register = useStableCallback((node, metadata) => {\n map.set(node, metadata ?? null);\n lastTickRef.current += 1;\n setMapTick(lastTickRef.current);\n });\n const unregister = useStableCallback(node => {\n map.delete(node);\n lastTickRef.current += 1;\n setMapTick(lastTickRef.current);\n });\n const sortedMap = React.useMemo(() => {\n // `mapTick` is the `useMemo` trigger as `map` is stable.\n disableEslintWarning(mapTick);\n const newMap = new Map();\n // Filter out disconnected elements before sorting to avoid inconsistent\n // compareDocumentPosition results when elements are detached from the DOM.\n const sortedNodes = Array.from(map.keys()).filter(node => node.isConnected).sort(sortByDocumentPosition);\n sortedNodes.forEach((node, index) => {\n const metadata = map.get(node) ?? {};\n newMap.set(node, {\n ...metadata,\n index\n });\n });\n return newMap;\n }, [map, mapTick]);\n useIsoLayoutEffect(() => {\n if (typeof MutationObserver !== 'function' || sortedMap.size === 0) {\n return undefined;\n }\n const mutationObserver = new MutationObserver(entries => {\n const diff = new Set();\n const updateDiff = node => diff.has(node) ? diff.delete(node) : diff.add(node);\n entries.forEach(entry => {\n entry.removedNodes.forEach(updateDiff);\n entry.addedNodes.forEach(updateDiff);\n });\n if (diff.size === 0) {\n lastTickRef.current += 1;\n setMapTick(lastTickRef.current);\n }\n });\n sortedMap.forEach((_, node) => {\n if (node.parentElement) {\n mutationObserver.observe(node.parentElement, {\n childList: true\n });\n }\n });\n return () => {\n mutationObserver.disconnect();\n };\n }, [sortedMap]);\n useIsoLayoutEffect(() => {\n const shouldUpdateLengths = lastTickRef.current === mapTick;\n if (shouldUpdateLengths) {\n if (elementsRef.current.length !== sortedMap.size) {\n elementsRef.current.length = sortedMap.size;\n }\n if (labelsRef && labelsRef.current.length !== sortedMap.size) {\n labelsRef.current.length = sortedMap.size;\n }\n nextIndexRef.current = sortedMap.size;\n }\n onMapChange(sortedMap);\n }, [onMapChange, sortedMap, elementsRef, labelsRef, mapTick]);\n useIsoLayoutEffect(() => {\n return () => {\n elementsRef.current = [];\n };\n }, [elementsRef]);\n useIsoLayoutEffect(() => {\n return () => {\n if (labelsRef) {\n labelsRef.current = [];\n }\n };\n }, [labelsRef]);\n const subscribeMapChange = useStableCallback(fn => {\n listeners.add(fn);\n return () => {\n listeners.delete(fn);\n };\n });\n useIsoLayoutEffect(() => {\n listeners.forEach(l => l(sortedMap));\n }, [listeners, sortedMap]);\n const contextValue = React.useMemo(() => ({\n register,\n unregister,\n subscribeMapChange,\n elementsRef,\n labelsRef,\n nextIndexRef\n }), [register, unregister, subscribeMapChange, elementsRef, labelsRef, nextIndexRef]);\n return /*#__PURE__*/_jsx(CompositeListContext.Provider, {\n value: contextValue,\n children: children\n });\n}\nfunction createMap() {\n return new Map();\n}\nfunction createListeners() {\n return new Set();\n}\nfunction sortByDocumentPosition(a, b) {\n const position = a.compareDocumentPosition(b);\n if (position & Node.DOCUMENT_POSITION_FOLLOWING || position & Node.DOCUMENT_POSITION_CONTAINED_BY) {\n return -1;\n }\n if (position & Node.DOCUMENT_POSITION_PRECEDING || position & Node.DOCUMENT_POSITION_CONTAINS) {\n return 1;\n }\n return 0;\n}\nfunction disableEslintWarning(_) {}"],"names":["CompositeList","props","children","elementsRef","labelsRef","onMapChangeProp","onMapChange","useStableCallback","nextIndexRef","React","listeners","useRefWithInit","createListeners","map","createMap","mapTick","setMapTick","lastTickRef","register","node","metadata","unregister","sortedMap","newMap","sortByDocumentPosition","index","useIsoLayoutEffect","mutationObserver","entries","diff","updateDiff","entry","_","subscribeMapChange","fn","l","contextValue","_jsx","CompositeListContext","a","b","position"],"mappings":";;;;;;AAaO,SAASA,EAAcC,GAAO;AACnC,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAaC;AAAA,EACjB,IAAMJ,GACEK,IAAcC,EAAkBF,CAAe,GAC/CG,IAAeC,EAAM,OAAO,CAAC,GAC7BC,IAAYC,EAAeC,CAAe,EAAE,SAU5CC,IAAMF,EAAeG,CAAS,EAAE,SAEhC,CAACC,GAASC,CAAU,IAAIP,EAAM,SAAS,CAAC,GACxCQ,IAAcR,EAAM,OAAOM,CAAO,GAClCG,IAAWX,EAAkB,CAACY,GAAMC,MAAa;AACrD,IAAAP,EAAI,IAAIM,GAAMC,KAAY,IAAI,GAC9BH,EAAY,WAAW,GACvBD,EAAWC,EAAY,OAAO;AAAA,EAChC,CAAC,GACKI,IAAad,EAAkB,CAAAY,MAAQ;AAC3C,IAAAN,EAAI,OAAOM,CAAI,GACfF,EAAY,WAAW,GACvBD,EAAWC,EAAY,OAAO;AAAA,EAChC,CAAC,GACKK,IAAYb,EAAM,QAAQ,MAAM;AAGpC,UAAMc,IAAS,oBAAI,IAAG;AAItB,WADoB,MAAM,KAAKV,EAAI,KAAI,CAAE,EAAE,OAAO,CAAAM,MAAQA,EAAK,WAAW,EAAE,KAAKK,CAAsB,EAC3F,QAAQ,CAACL,GAAMM,MAAU;AACnC,YAAML,IAAWP,EAAI,IAAIM,CAAI,KAAK,CAAA;AAClC,MAAAI,EAAO,IAAIJ,GAAM;AAAA,QACf,GAAGC;AAAA,QACH,OAAAK;AAAA,MACR,CAAO;AAAA,IACH,CAAC,GACMF;AAAA,EACT,GAAG,CAACV,GAAKE,CAAO,CAAC;AACjB,EAAAW,EAAmB,MAAM;AACvB,QAAI,OAAO,oBAAqB,cAAcJ,EAAU,SAAS;AAC/D;AAEF,UAAMK,IAAmB,IAAI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A,EACrB,EACD;AACD,EAAAR,EAAmB,MAAM;AACvB,IAAAhB,EAAU,QAAQ,CAAAyB,MAAKA,EAAEb,CAAS,CAAC;AAAA,EACrC,GAAG,CAACZ,GAAWY,CAAS,CAAC;AACzB,QAAMc,IAAe3B,EAAM,QAAQ,OAAO;AAAA,IACxC,UAAAS;AAAA,IACA,YAAAG;AAAA,IACA,oBAAAY;AAAA,IACA,aAAA9B;AAAA,IACA,WAAAC;AAAA,IACA,cAAAI;AAAA,EACJ,IAAM,CAACU,GAAUG,GAAYY,GAAoB9B,GAAaC,GAAWI,CAAY,CAAC;AACpF,SAAoB6B,gBAAAA,EAAAA,IAAKC,EAAqB,UAAU;AAAA,IACtD,OAAOF;AAAA,IACP,UAAUlC;AAAA,EACd,CAAG;AACH;AACA,SAASY,IAAY;AACnB,SAAO,oBAAI,IAAG;AAChB;AACA,SAASF,IAAkB;AACzB,SAAO,oBAAI,IAAG;AAChB;AACA,SAASY,EAAuBe,GAAGC,GAAG;AACpC,QAAMC,IAAWF,EAAE,wBAAwBC,CAAC;AAC5C,SAAIC,IAAW,KAAK,+BAA+BA,IAAW,KAAK,iCAC1D,KAELA,IAAW,KAAK,+BAA+BA,IAAW,KAAK,6BAC1D,IAEF;AACT;","x_google_ignoreList":[0]}
package/dist/index294.js CHANGED
@@ -1,9 +1,273 @@
1
- import { toDate as o } from "./index390.js";
2
- function n(e, r) {
3
- const t = o(e, r?.in);
4
- return t.setFullYear(t.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
1
+ import * as d from "react";
2
+ import { getSide as B, getSideAxis as Me, getAlignment as He } from "./index299.js";
3
+ import { ownerDocument as De } from "./index284.js";
4
+ import { useIsoLayoutEffect as Q } from "./index261.js";
5
+ import { useValueAsRef as z } from "./index263.js";
6
+ import { useStableCallback as Je } from "./index262.js";
7
+ import { useDirection as Ke } from "./index308.js";
8
+ import { arrow as Ne } from "./index367.js";
9
+ import { hide as Qe } from "./index368.js";
10
+ import { DEFAULT_SIDES as Ze } from "./index369.js";
11
+ import { flip as et, size as tt, offset as nt, shift as ot, limitShift as it } from "./index370.js";
12
+ import { useFloating as rt } from "./index371.js";
13
+ import { autoUpdate as ke } from "./index310.js";
14
+ import { getWindow as st } from "./index309.js";
15
+ function Le(a, u, h) {
16
+ const n = a === "inline-start" || a === "inline-end";
17
+ return {
18
+ top: "top",
19
+ right: n ? h ? "inline-start" : "inline-end" : "right",
20
+ bottom: "bottom",
21
+ left: n ? h ? "inline-end" : "inline-start" : "left"
22
+ }[u];
23
+ }
24
+ function Ce(a, u, h) {
25
+ const {
26
+ rects: n,
27
+ placement: c
28
+ } = a;
29
+ return {
30
+ side: Le(u, B(c), h),
31
+ align: He(c) || "center",
32
+ anchor: {
33
+ width: n.reference.width,
34
+ height: n.reference.height
35
+ },
36
+ positioner: {
37
+ width: n.floating.width,
38
+ height: n.floating.height
39
+ }
40
+ };
41
+ }
42
+ function St(a) {
43
+ const {
44
+ // Public parameters
45
+ anchor: u,
46
+ positionMethod: h = "absolute",
47
+ side: n = "bottom",
48
+ sideOffset: c = 0,
49
+ align: R = "center",
50
+ alignOffset: V = 0,
51
+ collisionBoundary: Z,
52
+ collisionPadding: Te = 5,
53
+ sticky: W = !1,
54
+ arrowPadding: ee = 5,
55
+ disableAnchorTracking: I = !1,
56
+ // Private parameters
57
+ keepMounted: M = !1,
58
+ floatingRootContext: D,
59
+ mounted: o,
60
+ collisionAvoidance: U,
61
+ shiftCrossAxis: S = !1,
62
+ nodeId: ze,
63
+ adaptiveOrigin: Y,
64
+ lazyFlip: te = !1,
65
+ externalTree: Be
66
+ } = a, [ne, oe] = d.useState(null);
67
+ !o && ne !== null && oe(null);
68
+ const P = U.side || "flip", O = U.align || "flip", Ve = U.fallbackAxisSide || "end", ie = typeof u == "function" ? u : void 0, We = Je(ie), re = ie ? We : u, k = z(u), Ie = z(o), x = Ke() === "rtl", se = ne || {
69
+ top: "top",
70
+ right: "right",
71
+ bottom: "bottom",
72
+ left: "left",
73
+ "inline-end": x ? "left" : "right",
74
+ "inline-start": x ? "right" : "left"
75
+ }[n], Ue = R === "center" ? se : `${se}-${R}`;
76
+ let t = Te;
77
+ const p = 1, ce = n === "bottom" ? p : 0, le = n === "top" ? p : 0, ae = n === "right" ? p : 0, fe = n === "left" ? p : 0;
78
+ typeof t == "number" ? t = {
79
+ top: t + ce,
80
+ right: t + fe,
81
+ bottom: t + le,
82
+ left: t + ae
83
+ } : t && (t = {
84
+ top: (t.top || 0) + ce,
85
+ right: (t.right || 0) + fe,
86
+ bottom: (t.bottom || 0) + le,
87
+ left: (t.left || 0) + ae
88
+ });
89
+ const C = {
90
+ boundary: Z === "clipping-ancestors" ? "clippingAncestors" : Z,
91
+ padding: t
92
+ }, m = d.useRef(null), X = z(c), j = z(V), F = [nt((e) => {
93
+ const i = Ce(e, n, x), l = typeof X.current == "function" ? X.current(i) : X.current, r = typeof j.current == "function" ? j.current(i) : j.current;
94
+ return {
95
+ mainAxis: l,
96
+ crossAxis: r,
97
+ alignmentAxis: r
98
+ };
99
+ }, [typeof c != "function" ? c : 0, typeof V != "function" ? V : 0, x, n])], de = O === "none" && P !== "shift", ue = !de && (W || S || P === "shift"), pe = P === "none" ? null : et({
100
+ ...C,
101
+ // Ensure the popup flips if it's been limited by its --available-height and it resizes.
102
+ // Since the size() padding is smaller than the flip() padding, flip() will take precedence.
103
+ padding: {
104
+ top: t.top + p,
105
+ right: t.right + p,
106
+ bottom: t.bottom + p,
107
+ left: t.left + p
108
+ },
109
+ mainAxis: !S && P === "flip",
110
+ crossAxis: O === "flip" ? "alignment" : !1,
111
+ fallbackAxisSideDirection: Ve
112
+ }), he = de ? null : ot((e) => {
113
+ const i = De(e.elements.floating).documentElement;
114
+ return {
115
+ ...C,
116
+ // Use the Layout Viewport to avoid shifting around when pinch-zooming
117
+ // for context menus.
118
+ rootBoundary: S ? {
119
+ x: 0,
120
+ y: 0,
121
+ width: i.clientWidth,
122
+ height: i.clientHeight
123
+ } : void 0,
124
+ mainAxis: O !== "none",
125
+ crossAxis: ue,
126
+ limiter: W || S ? void 0 : it((l) => {
127
+ if (!m.current)
128
+ return {};
129
+ const {
130
+ width: r,
131
+ height: f
132
+ } = m.current.getBoundingClientRect(), s = Me(B(l.placement)), y = s === "y" ? r : f, A = s === "y" ? t.left + t.right : t.top + t.bottom;
133
+ return {
134
+ offset: y / 2 + A / 2
135
+ };
136
+ })
137
+ };
138
+ }, [C, W, S, t, O]);
139
+ P === "shift" || O === "shift" || R === "center" ? F.push(he, pe) : F.push(pe, he), F.push(tt({
140
+ ...C,
141
+ apply({
142
+ elements: {
143
+ floating: e
144
+ },
145
+ availableWidth: i,
146
+ availableHeight: l,
147
+ rects: r
148
+ }) {
149
+ if (!Ie.current)
150
+ return;
151
+ const f = e.style;
152
+ f.setProperty("--available-width", `${i}px`), f.setProperty("--available-height", `${l}px`);
153
+ const s = st(e).devicePixelRatio || 1, {
154
+ x: y,
155
+ y: A,
156
+ width: T,
157
+ height: G
158
+ } = r.reference, J = (Math.round((y + T) * s) - Math.round(y * s)) / s, K = (Math.round((A + G) * s) - Math.round(A * s)) / s;
159
+ f.setProperty("--anchor-width", `${J}px`), f.setProperty("--anchor-height", `${K}px`);
160
+ }
161
+ }), Ne(() => ({
162
+ // `transform-origin` calculations rely on an element existing. If the arrow hasn't been set,
163
+ // we'll create a fake element.
164
+ element: m.current || De(m.current).createElement("div"),
165
+ padding: ee,
166
+ offsetParent: "floating"
167
+ }), [ee]), {
168
+ name: "transformOrigin",
169
+ fn(e) {
170
+ const {
171
+ elements: i,
172
+ middlewareData: l,
173
+ placement: r,
174
+ rects: f,
175
+ y: s
176
+ } = e, y = B(r), A = Me(y), T = m.current, G = l.arrow?.x || 0, J = l.arrow?.y || 0, K = T?.clientWidth || 0, Ye = T?.clientHeight || 0, N = G + K / 2, Ee = J + Ye / 2, Xe = Math.abs(l.shift?.y || 0), je = f.reference.height / 2, E = typeof c == "function" ? c(Ce(e, n, x)) : c, _e = Xe > E, qe = {
177
+ top: `${N}px calc(100% + ${E}px)`,
178
+ bottom: `${N}px ${-E}px`,
179
+ left: `calc(100% + ${E}px) ${Ee}px`,
180
+ right: `${-E}px ${Ee}px`
181
+ }[y], Ge = `${N}px ${f.reference.y + je - s}px`;
182
+ return i.floating.style.setProperty("--transform-origin", ue && A === "y" && _e ? Ge : qe), {};
183
+ }
184
+ }, Qe, Y), Q(() => {
185
+ !o && D && D.update({
186
+ referenceElement: null,
187
+ floatingElement: null,
188
+ domReferenceElement: null,
189
+ positionReference: null
190
+ });
191
+ }, [o, D]);
192
+ const _ = d.useMemo(() => ({
193
+ elementResize: !I && typeof ResizeObserver < "u",
194
+ layoutShift: !I && typeof IntersectionObserver < "u"
195
+ }), [I]), {
196
+ refs: b,
197
+ elements: v,
198
+ x: me,
199
+ y: ge,
200
+ middlewareData: w,
201
+ update: H,
202
+ placement: ye,
203
+ context: xe,
204
+ isPositioned: g,
205
+ floatingStyles: be
206
+ } = rt({
207
+ rootContext: D,
208
+ open: M ? o : void 0,
209
+ placement: Ue,
210
+ middleware: F,
211
+ strategy: h,
212
+ whileElementsMounted: M ? void 0 : (...e) => ke(...e, _),
213
+ nodeId: ze,
214
+ externalTree: Be
215
+ }), {
216
+ sideX: we,
217
+ sideY: Ae
218
+ } = w.adaptiveOrigin || Ze, q = g ? h : "fixed", Re = d.useMemo(() => {
219
+ const e = Y ? {
220
+ position: q,
221
+ [we]: me,
222
+ [Ae]: ge
223
+ } : {
224
+ position: q,
225
+ ...be
226
+ };
227
+ return g || (e.opacity = 0), e;
228
+ }, [Y, q, we, me, Ae, ge, be, g]), L = d.useRef(null);
229
+ Q(() => {
230
+ if (!o)
231
+ return;
232
+ const e = k.current, i = typeof e == "function" ? e() : e, r = (Fe(i) ? i.current : i) || null || null;
233
+ r !== L.current && (b.setPositionReference(r), L.current = r);
234
+ }, [o, b, re, k]), d.useEffect(() => {
235
+ if (!o)
236
+ return;
237
+ const e = k.current;
238
+ typeof e != "function" && Fe(e) && e.current !== L.current && (b.setPositionReference(e.current), L.current = e.current);
239
+ }, [o, b, re, k]), d.useEffect(() => {
240
+ if (M && o && v.domReference && v.floating)
241
+ return ke(v.domReference, v.floating, H, _);
242
+ }, [M, o, v, H, _]);
243
+ const $ = B(ye), Se = Le(n, $, x), Pe = He(ye) || "center", Oe = !!w.hide?.referenceHidden;
244
+ Q(() => {
245
+ te && o && g && oe($);
246
+ }, [te, o, g, $]);
247
+ const ve = d.useMemo(() => ({
248
+ position: "absolute",
249
+ top: w.arrow?.y,
250
+ left: w.arrow?.x
251
+ }), [w.arrow]), $e = w.arrow?.centerOffset !== 0;
252
+ return d.useMemo(() => ({
253
+ positionerStyles: Re,
254
+ arrowStyles: ve,
255
+ arrowRef: m,
256
+ arrowUncentered: $e,
257
+ side: Se,
258
+ align: Pe,
259
+ physicalSide: $,
260
+ anchorHidden: Oe,
261
+ refs: b,
262
+ context: xe,
263
+ isPositioned: g,
264
+ update: H
265
+ }), [Re, ve, m, $e, Se, Pe, $, Oe, b, xe, g, H]);
266
+ }
267
+ function Fe(a) {
268
+ return a != null && "current" in a;
5
269
  }
6
270
  export {
7
- n as startOfYear
271
+ St as useAnchorPositioning
8
272
  };
9
273
  //# sourceMappingURL=index294.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index294.js","sources":["../../../node_modules/date-fns/startOfYear.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfYear} function options.\n */\n\n/**\n * @name startOfYear\n * @category Year Helpers\n * @summary Return the start of a year for the given date.\n *\n * @description\n * Return the start of a year for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a year\n *\n * @example\n * // The start of a year for 2 September 2014 11:55:00:\n * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Jan 01 2014 00:00:00\n */\nexport function startOfYear(date, options) {\n const date_ = toDate(date, options?.in);\n date_.setFullYear(date_.getFullYear(), 0, 1);\n date_.setHours(0, 0, 0, 0);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default startOfYear;\n"],"names":["startOfYear","date","options","date_","toDate"],"mappings":";AA4BO,SAASA,EAAYC,GAAMC,GAAS;AACzC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE;AACtC,SAAAC,EAAM,YAAYA,EAAM,YAAW,GAAI,GAAG,CAAC,GAC3CA,EAAM,SAAS,GAAG,GAAG,GAAG,CAAC,GAClBA;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index294.js","sources":["../../../node_modules/@base-ui/react/esm/utils/useAnchorPositioning.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { getSide, getAlignment, getSideAxis } from '@floating-ui/utils';\nimport { ownerDocument, ownerWindow } from '@base-ui/utils/owner';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { autoUpdate, flip, limitShift, offset, shift, useFloating, size } from \"../floating-ui-react/index.js\";\nimport { useDirection } from \"../internals/direction-context/DirectionContext.js\";\nimport { arrow } from \"../floating-ui-react/middleware/arrow.js\";\nimport { hide } from \"./hideMiddleware.js\";\nimport { DEFAULT_SIDES } from \"./adaptiveOriginMiddleware.js\";\nfunction getLogicalSide(sideParam, renderedSide, isRtl) {\n const isLogicalSideParam = sideParam === 'inline-start' || sideParam === 'inline-end';\n const logicalRight = isRtl ? 'inline-start' : 'inline-end';\n const logicalLeft = isRtl ? 'inline-end' : 'inline-start';\n return {\n top: 'top',\n right: isLogicalSideParam ? logicalRight : 'right',\n bottom: 'bottom',\n left: isLogicalSideParam ? logicalLeft : 'left'\n }[renderedSide];\n}\nfunction getOffsetData(state, sideParam, isRtl) {\n const {\n rects,\n placement\n } = state;\n const data = {\n side: getLogicalSide(sideParam, getSide(placement), isRtl),\n align: getAlignment(placement) || 'center',\n anchor: {\n width: rects.reference.width,\n height: rects.reference.height\n },\n positioner: {\n width: rects.floating.width,\n height: rects.floating.height\n }\n };\n return data;\n}\n/**\n * Provides standardized anchor positioning behavior for floating elements. Wraps Floating UI's\n * `useFloating` hook.\n */\nexport function useAnchorPositioning(params) {\n const {\n // Public parameters\n anchor,\n positionMethod = 'absolute',\n side: sideParam = 'bottom',\n sideOffset = 0,\n align = 'center',\n alignOffset = 0,\n collisionBoundary,\n collisionPadding: collisionPaddingParam = 5,\n sticky = false,\n arrowPadding = 5,\n disableAnchorTracking = false,\n // Private parameters\n keepMounted = false,\n floatingRootContext,\n mounted,\n collisionAvoidance,\n shiftCrossAxis = false,\n nodeId,\n adaptiveOrigin,\n lazyFlip = false,\n externalTree\n } = params;\n const [mountSide, setMountSide] = React.useState(null);\n if (!mounted && mountSide !== null) {\n setMountSide(null);\n }\n const collisionAvoidanceSide = collisionAvoidance.side || 'flip';\n const collisionAvoidanceAlign = collisionAvoidance.align || 'flip';\n const collisionAvoidanceFallbackAxisSide = collisionAvoidance.fallbackAxisSide || 'end';\n const anchorFn = typeof anchor === 'function' ? anchor : undefined;\n const anchorFnCallback = useStableCallback(anchorFn);\n const anchorDep = anchorFn ? anchorFnCallback : anchor;\n const anchorValueRef = useValueAsRef(anchor);\n const mountedRef = useValueAsRef(mounted);\n const direction = useDirection();\n const isRtl = direction === 'rtl';\n const side = mountSide || {\n top: 'top',\n right: 'right',\n bottom: 'bottom',\n left: 'left',\n 'inline-end': isRtl ? 'left' : 'right',\n 'inline-start': isRtl ? 'right' : 'left'\n }[sideParam];\n const placement = align === 'center' ? side : `${side}-${align}`;\n let collisionPadding = collisionPaddingParam;\n\n // Create a bias to the preferred side.\n // On iOS, when the mobile software keyboard opens, the input is exactly centered\n // in the viewport, but this can cause it to flip to the top undesirably.\n const bias = 1;\n const biasTop = sideParam === 'bottom' ? bias : 0;\n const biasBottom = sideParam === 'top' ? bias : 0;\n const biasLeft = sideParam === 'right' ? bias : 0;\n const biasRight = sideParam === 'left' ? bias : 0;\n if (typeof collisionPadding === 'number') {\n collisionPadding = {\n top: collisionPadding + biasTop,\n right: collisionPadding + biasRight,\n bottom: collisionPadding + biasBottom,\n left: collisionPadding + biasLeft\n };\n } else if (collisionPadding) {\n collisionPadding = {\n top: (collisionPadding.top || 0) + biasTop,\n right: (collisionPadding.right || 0) + biasRight,\n bottom: (collisionPadding.bottom || 0) + biasBottom,\n left: (collisionPadding.left || 0) + biasLeft\n };\n }\n const commonCollisionProps = {\n boundary: collisionBoundary === 'clipping-ancestors' ? 'clippingAncestors' : collisionBoundary,\n padding: collisionPadding\n };\n\n // Using a ref assumes that the arrow element is always present in the DOM for the lifetime of the\n // popup. If this assumption ends up being false, we can switch to state to manage the arrow's\n // presence.\n const arrowRef = React.useRef(null);\n\n // Keep these reactive if they're not functions\n const sideOffsetRef = useValueAsRef(sideOffset);\n const alignOffsetRef = useValueAsRef(alignOffset);\n const sideOffsetDep = typeof sideOffset !== 'function' ? sideOffset : 0;\n const alignOffsetDep = typeof alignOffset !== 'function' ? alignOffset : 0;\n const middleware = [offset(state => {\n const data = getOffsetData(state, sideParam, isRtl);\n const sideAxis = typeof sideOffsetRef.current === 'function' ? sideOffsetRef.current(data) : sideOffsetRef.current;\n const alignAxis = typeof alignOffsetRef.current === 'function' ? alignOffsetRef.current(data) : alignOffsetRef.current;\n return {\n mainAxis: sideAxis,\n crossAxis: alignAxis,\n alignmentAxis: alignAxis\n };\n }, [sideOffsetDep, alignOffsetDep, isRtl, sideParam])];\n const shiftDisabled = collisionAvoidanceAlign === 'none' && collisionAvoidanceSide !== 'shift';\n const crossAxisShiftEnabled = !shiftDisabled && (sticky || shiftCrossAxis || collisionAvoidanceSide === 'shift');\n const flipMiddleware = collisionAvoidanceSide === 'none' ? null : flip({\n ...commonCollisionProps,\n // Ensure the popup flips if it's been limited by its --available-height and it resizes.\n // Since the size() padding is smaller than the flip() padding, flip() will take precedence.\n padding: {\n top: collisionPadding.top + bias,\n right: collisionPadding.right + bias,\n bottom: collisionPadding.bottom + bias,\n left: collisionPadding.left + bias\n },\n mainAxis: !shiftCrossAxis && collisionAvoidanceSide === 'flip',\n crossAxis: collisionAvoidanceAlign === 'flip' ? 'alignment' : false,\n fallbackAxisSideDirection: collisionAvoidanceFallbackAxisSide\n });\n const shiftMiddleware = shiftDisabled ? null : shift(data => {\n const html = ownerDocument(data.elements.floating).documentElement;\n return {\n ...commonCollisionProps,\n // Use the Layout Viewport to avoid shifting around when pinch-zooming\n // for context menus.\n rootBoundary: shiftCrossAxis ? {\n x: 0,\n y: 0,\n width: html.clientWidth,\n height: html.clientHeight\n } : undefined,\n mainAxis: collisionAvoidanceAlign !== 'none',\n crossAxis: crossAxisShiftEnabled,\n limiter: sticky || shiftCrossAxis ? undefined : limitShift(limitData => {\n if (!arrowRef.current) {\n return {};\n }\n const {\n width,\n height\n } = arrowRef.current.getBoundingClientRect();\n const sideAxis = getSideAxis(getSide(limitData.placement));\n const arrowSize = sideAxis === 'y' ? width : height;\n const offsetAmount = sideAxis === 'y' ? collisionPadding.left + collisionPadding.right : collisionPadding.top + collisionPadding.bottom;\n return {\n offset: arrowSize / 2 + offsetAmount / 2\n };\n })\n };\n }, [commonCollisionProps, sticky, shiftCrossAxis, collisionPadding, collisionAvoidanceAlign]);\n\n // https://floating-ui.com/docs/flip#combining-with-shift\n if (collisionAvoidanceSide === 'shift' || collisionAvoidanceAlign === 'shift' || align === 'center') {\n middleware.push(shiftMiddleware, flipMiddleware);\n } else {\n middleware.push(flipMiddleware, shiftMiddleware);\n }\n middleware.push(size({\n ...commonCollisionProps,\n apply({\n elements: {\n floating\n },\n availableWidth,\n availableHeight,\n rects\n }) {\n if (!mountedRef.current) {\n return;\n }\n const floatingStyle = floating.style;\n floatingStyle.setProperty('--available-width', `${availableWidth}px`);\n floatingStyle.setProperty('--available-height', `${availableHeight}px`);\n\n // Snap anchor dimensions to device pixels to ensure the popup's visual width matches the anchor's one.\n const dpr = ownerWindow(floating).devicePixelRatio || 1;\n const {\n x,\n y,\n width,\n height\n } = rects.reference;\n const anchorWidth = (Math.round((x + width) * dpr) - Math.round(x * dpr)) / dpr;\n const anchorHeight = (Math.round((y + height) * dpr) - Math.round(y * dpr)) / dpr;\n floatingStyle.setProperty('--anchor-width', `${anchorWidth}px`);\n floatingStyle.setProperty('--anchor-height', `${anchorHeight}px`);\n }\n }), arrow(() => ({\n // `transform-origin` calculations rely on an element existing. If the arrow hasn't been set,\n // we'll create a fake element.\n element: arrowRef.current || ownerDocument(arrowRef.current).createElement('div'),\n padding: arrowPadding,\n offsetParent: 'floating'\n }), [arrowPadding]), {\n name: 'transformOrigin',\n fn(state) {\n const {\n elements,\n middlewareData,\n placement: renderedPlacement,\n rects,\n y\n } = state;\n const currentRenderedSide = getSide(renderedPlacement);\n const currentRenderedAxis = getSideAxis(currentRenderedSide);\n const arrowEl = arrowRef.current;\n const arrowX = middlewareData.arrow?.x || 0;\n const arrowY = middlewareData.arrow?.y || 0;\n const arrowWidth = arrowEl?.clientWidth || 0;\n const arrowHeight = arrowEl?.clientHeight || 0;\n const transformX = arrowX + arrowWidth / 2;\n const transformY = arrowY + arrowHeight / 2;\n const shiftY = Math.abs(middlewareData.shift?.y || 0);\n const halfAnchorHeight = rects.reference.height / 2;\n const sideOffsetValue = typeof sideOffset === 'function' ? sideOffset(getOffsetData(state, sideParam, isRtl)) : sideOffset;\n const isOverlappingAnchor = shiftY > sideOffsetValue;\n const adjacentTransformOrigin = {\n top: `${transformX}px calc(100% + ${sideOffsetValue}px)`,\n bottom: `${transformX}px ${-sideOffsetValue}px`,\n left: `calc(100% + ${sideOffsetValue}px) ${transformY}px`,\n right: `${-sideOffsetValue}px ${transformY}px`\n }[currentRenderedSide];\n const overlapTransformOrigin = `${transformX}px ${rects.reference.y + halfAnchorHeight - y}px`;\n elements.floating.style.setProperty('--transform-origin', crossAxisShiftEnabled && currentRenderedAxis === 'y' && isOverlappingAnchor ? overlapTransformOrigin : adjacentTransformOrigin);\n return {};\n }\n }, hide, adaptiveOrigin);\n useIsoLayoutEffect(() => {\n // Ensure positioning doesn't run initially for `keepMounted` elements that\n // aren't initially open.\n if (!mounted && floatingRootContext) {\n floatingRootContext.update({\n referenceElement: null,\n floatingElement: null,\n domReferenceElement: null,\n positionReference: null\n });\n }\n }, [mounted, floatingRootContext]);\n const autoUpdateOptions = React.useMemo(() => ({\n elementResize: !disableAnchorTracking && typeof ResizeObserver !== 'undefined',\n layoutShift: !disableAnchorTracking && typeof IntersectionObserver !== 'undefined'\n }), [disableAnchorTracking]);\n const {\n refs,\n elements,\n x,\n y,\n middlewareData,\n update,\n placement: renderedPlacement,\n context,\n isPositioned,\n floatingStyles: originalFloatingStyles\n } = useFloating({\n rootContext: floatingRootContext,\n open: keepMounted ? mounted : undefined,\n placement,\n middleware,\n strategy: positionMethod,\n whileElementsMounted: keepMounted ? undefined : (...args) => autoUpdate(...args, autoUpdateOptions),\n nodeId,\n externalTree\n });\n const {\n sideX,\n sideY\n } = middlewareData.adaptiveOrigin || DEFAULT_SIDES;\n\n // Default to `fixed` when not positioned to prevent `autoFocus` scroll jumps.\n // This ensures the popup is inside the viewport initially before it gets positioned.\n const resolvedPosition = isPositioned ? positionMethod : 'fixed';\n const floatingStyles = React.useMemo(() => {\n const base = adaptiveOrigin ? {\n position: resolvedPosition,\n [sideX]: x,\n [sideY]: y\n } : {\n position: resolvedPosition,\n ...originalFloatingStyles\n };\n if (!isPositioned) {\n base.opacity = 0;\n }\n return base;\n }, [adaptiveOrigin, resolvedPosition, sideX, x, sideY, y, originalFloatingStyles, isPositioned]);\n const registeredPositionReferenceRef = React.useRef(null);\n useIsoLayoutEffect(() => {\n if (!mounted) {\n return;\n }\n const anchorValue = anchorValueRef.current;\n const resolvedAnchor = typeof anchorValue === 'function' ? anchorValue() : anchorValue;\n const unwrappedElement = (isRef(resolvedAnchor) ? resolvedAnchor.current : resolvedAnchor) || null;\n const finalAnchor = unwrappedElement || null;\n if (finalAnchor !== registeredPositionReferenceRef.current) {\n refs.setPositionReference(finalAnchor);\n registeredPositionReferenceRef.current = finalAnchor;\n }\n }, [mounted, refs, anchorDep, anchorValueRef]);\n React.useEffect(() => {\n if (!mounted) {\n return;\n }\n const anchorValue = anchorValueRef.current;\n\n // Refs from parent components are set after useLayoutEffect runs and are available in useEffect.\n // Therefore, if the anchor is a ref, we need to update the position reference in useEffect.\n if (typeof anchorValue === 'function') {\n return;\n }\n if (isRef(anchorValue) && anchorValue.current !== registeredPositionReferenceRef.current) {\n refs.setPositionReference(anchorValue.current);\n registeredPositionReferenceRef.current = anchorValue.current;\n }\n }, [mounted, refs, anchorDep, anchorValueRef]);\n React.useEffect(() => {\n if (keepMounted && mounted && elements.domReference && elements.floating) {\n return autoUpdate(elements.domReference, elements.floating, update, autoUpdateOptions);\n }\n return undefined;\n }, [keepMounted, mounted, elements, update, autoUpdateOptions]);\n const renderedSide = getSide(renderedPlacement);\n const logicalRenderedSide = getLogicalSide(sideParam, renderedSide, isRtl);\n const renderedAlign = getAlignment(renderedPlacement) || 'center';\n const anchorHidden = Boolean(middlewareData.hide?.referenceHidden);\n\n /**\n * Locks the flip (makes it \"sticky\") so it doesn't prefer a given placement\n * and flips back lazily, not eagerly. Ideal for filtered lists that change\n * the size of the popup dynamically to avoid unwanted flipping when typing.\n */\n useIsoLayoutEffect(() => {\n if (lazyFlip && mounted && isPositioned) {\n setMountSide(renderedSide);\n }\n }, [lazyFlip, mounted, isPositioned, renderedSide]);\n const arrowStyles = React.useMemo(() => ({\n position: 'absolute',\n top: middlewareData.arrow?.y,\n left: middlewareData.arrow?.x\n }), [middlewareData.arrow]);\n const arrowUncentered = middlewareData.arrow?.centerOffset !== 0;\n return React.useMemo(() => ({\n positionerStyles: floatingStyles,\n arrowStyles,\n arrowRef,\n arrowUncentered,\n side: logicalRenderedSide,\n align: renderedAlign,\n physicalSide: renderedSide,\n anchorHidden,\n refs,\n context,\n isPositioned,\n update\n }), [floatingStyles, arrowStyles, arrowRef, arrowUncentered, logicalRenderedSide, renderedAlign, renderedSide, anchorHidden, refs, context, isPositioned, update]);\n}\nfunction isRef(param) {\n return param != null && 'current' in param;\n}"],"names":["getLogicalSide","sideParam","renderedSide","isRtl","isLogicalSideParam","getOffsetData","state","rects","placement","getSide","getAlignment","useAnchorPositioning","params","anchor","positionMethod","sideOffset","align","alignOffset","collisionBoundary","collisionPaddingParam","sticky","arrowPadding","disableAnchorTracking","keepMounted","floatingRootContext","mounted","collisionAvoidance","shiftCrossAxis","nodeId","adaptiveOrigin","lazyFlip","externalTree","mountSide","setMountSide","React","collisionAvoidanceSide","collisionAvoidanceAlign","collisionAvoidanceFallbackAxisSide","anchorFn","anchorFnCallback","useStableCallback","anchorDep","anchorValueRef","useValueAsRef","mountedRef","useDirection","side","collisionPadding","bias","biasTop","biasBottom","biasLeft","biasRight","commonCollisionProps","arrowRef","sideOffsetRef","alignOffsetRef","middleware","offset","data","sideAxis","alignAxis","shiftDisabled","crossAxisShiftEnabled","flipMiddleware","flip","shiftMiddleware","shift","html","ownerDocument","limitShift","limitData","width","height","getSideAxis","arrowSize","offsetAmount","size","floating","availableWidth","availableHeight","floatingStyle","dpr","ownerWindow","x","y","anchorWidth","anchorHeight","arrow","elements","middlewareData","renderedPlacement","currentRenderedSide","currentRenderedAxis","arrowEl","arrowX","arrowY","arrowWidth","arrowHeight","transformX","transformY","shiftY","halfAnchorHeight","sideOffsetValue","isOverlappingAnchor","adjacentTransformOrigin","overlapTransformOrigin","hide","useIsoLayoutEffect","autoUpdateOptions","refs","update","context","isPositioned","originalFloatingStyles","useFloating","args","autoUpdate","sideX","sideY","DEFAULT_SIDES","resolvedPosition","floatingStyles","base","registeredPositionReferenceRef","anchorValue","resolvedAnchor","finalAnchor","isRef","logicalRenderedSide","renderedAlign","anchorHidden","arrowStyles","arrowUncentered","param"],"mappings":";;;;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4B,GAAW5B,EAAS,cAAcA,EAAS,UAAUsB,GAAQF,CAAiB;AAAA,EAGzF,GAAG,CAACtF,GAAaE,GAASgE,GAAUsB,GAAQF,CAAiB,CAAC;AAC9D,QAAM3G,IAAeO,EAAQkF,EAAiB,GACxCsC,KAAsBjI,GAAeC,GAAWC,GAAcC,CAAK,GACnE+H,KAAgBxH,GAAaiF,EAAiB,KAAK,UACnDwC,KAAe,EAAQzC,EAAe,MAAM;AAOlD,EAAAkB,EAAmB,MAAM;AACvB,IAAI9E,MAAYL,KAAWwF,KACzBhF,GAAa/B,CAAY;AAAA,EAE7B,GAAG,CAAC4B,IAAUL,GAASwF,GAAc/G,CAAY,CAAC;AAClD,QAAMkI,KAAclG,EAAM,QAAQ,OAAO;AAAA,IACvC,UAAU;AAAA,IACV,KAAKwD,EAAe,OAAO;AAAA,IAC3B,MAAMA,EAAe,OAAO;AAAA,EAChC,IAAM,CAACA,EAAe,KAAK,CAAC,GACpB2C,KAAkB3C,EAAe,OAAO,iBAAiB;AAC/D,SAAOxD,EAAM,QAAQ,OAAO;AAAA,IAC1B,kBAAkBwF;AAAA,IAClB,aAAAU;AAAA,IACA,UAAA9E;AAAA,IACA,iBAAA+E;AAAA,IACA,MAAMJ;AAAA,IACN,OAAOC;AAAA,IACP,cAAchI;AAAA,IACd,cAAAiI;AAAA,IACA,MAAArB;AAAA,IACA,SAAAE;AAAA,IACA,cAAAC;AAAA,IACA,QAAAF;AAAA,EACJ,IAAM,CAACW,IAAgBU,IAAa9E,GAAU+E,IAAiBJ,IAAqBC,IAAehI,GAAciI,IAAcrB,GAAME,IAASC,GAAcF,CAAM,CAAC;AACnK;AACA,SAASiB,GAAMM,GAAO;AACpB,SAAOA,KAAS,QAAQ,aAAaA;AACvC;","x_google_ignoreList":[0]}
package/dist/index295.js CHANGED
@@ -1,20 +1,15 @@
1
- function j(r, n, I, W) {
2
- const s = r[0], o = r[r.length - 1], { ISOWeek: c, fixedWeeks: u, broadcastCalendar: a } = I ?? {}, { addDays: i, differenceInCalendarDays: M, differenceInCalendarMonths: C, endOfBroadcastWeek: O, endOfISOWeek: k, endOfMonth: h, endOfWeek: l, isAfter: E, startOfBroadcastWeek: F, startOfISOWeek: S, startOfWeek: p } = W, g = a ? F(s, W) : c ? S(s) : p(s), D = a ? O(o) : c ? k(h(o)) : l(h(o)), f = n && (a ? O(n) : c ? k(n) : l(n)), x = f && E(D, f) ? f : D, A = M(x, g), B = C(o, s) + 1, e = [];
3
- for (let t = 0; t <= A; t++) {
4
- const d = i(g, t);
5
- e.push(d);
6
- }
7
- const y = (a ? 35 : 42) * B;
8
- if (u && e.length < y) {
9
- const t = y - e.length;
10
- for (let d = 0; d < t; d++) {
11
- const T = i(e[e.length - 1], 1);
12
- e.push(T);
13
- }
14
- }
1
+ import n from "./index191.js";
2
+ import * as t from "react";
3
+ const o = /* @__PURE__ */ t.createContext(void 0);
4
+ process.env.NODE_ENV !== "production" && (o.displayName = "SelectPositionerContext");
5
+ function i() {
6
+ const e = t.useContext(o);
7
+ if (!e)
8
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>." : n(59));
15
9
  return e;
16
10
  }
17
11
  export {
18
- j as getDates
12
+ o as SelectPositionerContext,
13
+ i as useSelectPositionerContext
19
14
  };
20
15
  //# sourceMappingURL=index295.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index295.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDates.js"],"sourcesContent":["/**\n * Returns all the dates to display in the calendar.\n *\n * This function calculates the range of dates to display based on the provided\n * display months, constraints, and calendar configuration.\n *\n * @param displayMonths The months to display in the calendar.\n * @param maxDate The maximum date to include in the range.\n * @param props The DayPicker props, including calendar configuration options.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates to display in the calendar.\n */\nexport function getDates(displayMonths, maxDate, props, dateLib) {\n const firstMonth = displayMonths[0];\n const lastMonth = displayMonths[displayMonths.length - 1];\n const { ISOWeek, fixedWeeks, broadcastCalendar } = props ?? {};\n const { addDays, differenceInCalendarDays, differenceInCalendarMonths, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, isAfter, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const startWeekFirstDate = broadcastCalendar\n ? startOfBroadcastWeek(firstMonth, dateLib)\n : ISOWeek\n ? startOfISOWeek(firstMonth)\n : startOfWeek(firstMonth);\n const displayMonthsWeekEnd = broadcastCalendar\n ? endOfBroadcastWeek(lastMonth)\n : ISOWeek\n ? endOfISOWeek(endOfMonth(lastMonth))\n : endOfWeek(endOfMonth(lastMonth));\n // If maxDate is set, clamp the grid to the end of that week.\n const constraintWeekEnd = maxDate &&\n (broadcastCalendar\n ? endOfBroadcastWeek(maxDate)\n : ISOWeek\n ? endOfISOWeek(maxDate)\n : endOfWeek(maxDate));\n // Pick the earliest week end between the displayed months and the constraint.\n const gridEndDate = constraintWeekEnd && isAfter(displayMonthsWeekEnd, constraintWeekEnd)\n ? constraintWeekEnd\n : displayMonthsWeekEnd;\n const nOfDays = differenceInCalendarDays(gridEndDate, startWeekFirstDate);\n const nOfMonths = differenceInCalendarMonths(lastMonth, firstMonth) + 1;\n const dates = [];\n for (let i = 0; i <= nOfDays; i++) {\n const date = addDays(startWeekFirstDate, i);\n dates.push(date);\n }\n // If fixed weeks is enabled, add the extra dates to the array\n const nrOfDaysWithFixedWeeks = broadcastCalendar ? 35 : 42;\n const extraDates = nrOfDaysWithFixedWeeks * nOfMonths;\n if (fixedWeeks && dates.length < extraDates) {\n const daysToAdd = extraDates - dates.length;\n for (let i = 0; i < daysToAdd; i++) {\n const date = addDays(dates[dates.length - 1], 1);\n dates.push(date);\n }\n }\n return dates;\n}\n"],"names":["getDates","displayMonths","maxDate","props","dateLib","firstMonth","lastMonth","ISOWeek","fixedWeeks","broadcastCalendar","addDays","differenceInCalendarDays","differenceInCalendarMonths","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","isAfter","startOfBroadcastWeek","startOfISOWeek","startOfWeek","startWeekFirstDate","displayMonthsWeekEnd","constraintWeekEnd","gridEndDate","nOfDays","nOfMonths","dates","i","date","extraDates","daysToAdd"],"mappings":"AAYO,SAASA,EAASC,GAAeC,GAASC,GAAOC,GAAS;AAC7D,QAAMC,IAAaJ,EAAc,CAAC,GAC5BK,IAAYL,EAAcA,EAAc,SAAS,CAAC,GAClD,EAAE,SAAAM,GAAS,YAAAC,GAAY,mBAAAC,EAAiB,IAAKN,KAAS,CAAA,GACtD,EAAE,SAAAO,GAAS,0BAAAC,GAA0B,4BAAAC,GAA4B,oBAAAC,GAAoB,cAAAC,GAAc,YAAAC,GAAY,WAAAC,GAAW,SAAAC,GAAS,sBAAAC,GAAsB,gBAAAC,GAAgB,aAAAC,EAAW,IAAMhB,GAC1LiB,IAAqBZ,IACrBS,EAAqBb,GAAYD,CAAO,IACxCG,IACIY,EAAed,CAAU,IACzBe,EAAYf,CAAU,GAC1BiB,IAAuBb,IACvBI,EAAmBP,CAAS,IAC5BC,IACIO,EAAaC,EAAWT,CAAS,CAAC,IAClCU,EAAUD,EAAWT,CAAS,CAAC,GAEnCiB,IAAoBrB,MACrBO,IACKI,EAAmBX,CAAO,IAC1BK,IACIO,EAAaZ,CAAO,IACpBc,EAAUd,CAAO,IAEzBsB,IAAcD,KAAqBN,EAAQK,GAAsBC,CAAiB,IAClFA,IACAD,GACAG,IAAUd,EAAyBa,GAAaH,CAAkB,GAClEK,IAAYd,EAA2BN,GAAWD,CAAU,IAAI,GAChEsB,IAAQ,CAAA;AACd,WAASC,IAAI,GAAGA,KAAKH,GAASG,KAAK;AAC/B,UAAMC,IAAOnB,EAAQW,GAAoBO,CAAC;AAC1C,IAAAD,EAAM,KAAKE,CAAI;AAAA,EACnB;AAGA,QAAMC,KADyBrB,IAAoB,KAAK,MACZiB;AAC5C,MAAIlB,KAAcmB,EAAM,SAASG,GAAY;AACzC,UAAMC,IAAYD,IAAaH,EAAM;AACrC,aAASC,IAAI,GAAGA,IAAIG,GAAWH,KAAK;AAChC,YAAMC,IAAOnB,EAAQiB,EAAMA,EAAM,SAAS,CAAC,GAAG,CAAC;AAC/C,MAAAA,EAAM,KAAKE,CAAI;AAAA,IACnB;AAAA,EACJ;AACA,SAAOF;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index295.js","sources":["../../../node_modules/@base-ui/react/esm/select/positioner/SelectPositionerContext.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectPositionerContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") SelectPositionerContext.displayName = \"SelectPositionerContext\";\nexport function useSelectPositionerContext() {\n const context = React.useContext(SelectPositionerContext);\n if (!context) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.' : _formatErrorMessage(59));\n }\n return context;\n}"],"names":["SelectPositionerContext","React","useSelectPositionerContext","context","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAuC,gBAAAC,EAAM,cAAc,MAAS;AAC7E,QAAQ,IAAI,aAAa,iBAAcD,EAAwB,cAAc;AAC1E,SAASE,IAA6B;AAC3C,QAAMC,IAAUF,EAAM,WAAWD,CAAuB;AACxD,MAAI,CAACG;AACH,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,mHAAmHC,EAAoB,EAAE,CAAC;AAEpM,SAAOD;AACT;","x_google_ignoreList":[0]}
package/dist/index296.js CHANGED
@@ -1,11 +1,14 @@
1
- function a(c) {
2
- const e = [];
3
- return c.reduce((s, t) => {
4
- const n = t.weeks.reduce((r, i) => r.concat(i.days.slice()), e.slice());
5
- return s.concat(n.slice());
6
- }, e.slice());
1
+ function e(o, t) {
2
+ o && Object.assign(o.style, t);
7
3
  }
4
+ const i = {
5
+ position: "relative",
6
+ maxHeight: "100%",
7
+ overflowX: "hidden",
8
+ overflowY: "auto"
9
+ };
8
10
  export {
9
- a as getDays
11
+ i as LIST_FUNCTIONAL_STYLES,
12
+ e as clearStyles
10
13
  };
11
14
  //# sourceMappingURL=index296.js.map