@rpcbase/ui 0.224.0 → 0.225.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (829) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/components/Dialog/index.d.ts +13 -9
  3. package/dist/components/Dialog/index.d.ts.map +1 -1
  4. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  5. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  6. package/dist/components/Select/index.d.ts +16 -10
  7. package/dist/components/Select/index.d.ts.map +1 -1
  8. package/dist/index10.js +102 -103
  9. package/dist/index10.js.map +1 -1
  10. package/dist/index100.js +4 -4
  11. package/dist/index100.js.map +1 -1
  12. package/dist/index101.js +9 -52
  13. package/dist/index101.js.map +1 -1
  14. package/dist/index102.js +5 -4
  15. package/dist/index102.js.map +1 -1
  16. package/dist/index103.js +3 -3
  17. package/dist/index103.js.map +1 -1
  18. package/dist/index104.js +4 -15
  19. package/dist/index104.js.map +1 -1
  20. package/dist/index105.js +5 -4
  21. package/dist/index105.js.map +1 -1
  22. package/dist/index106.js +145 -7
  23. package/dist/index106.js.map +1 -1
  24. package/dist/index107.js +39 -16
  25. package/dist/index107.js.map +1 -1
  26. package/dist/index108.js +4 -4
  27. package/dist/index108.js.map +1 -1
  28. package/dist/index109.js +7 -4
  29. package/dist/index109.js.map +1 -1
  30. package/dist/index110.js +13 -5
  31. package/dist/index110.js.map +1 -1
  32. package/dist/index111.js +13 -5
  33. package/dist/index111.js.map +1 -1
  34. package/dist/index112.js +7 -4
  35. package/dist/index112.js.map +1 -1
  36. package/dist/index113.js +31 -4
  37. package/dist/index113.js.map +1 -1
  38. package/dist/index114.js +10 -6
  39. package/dist/index114.js.map +1 -1
  40. package/dist/index115.js +10 -24
  41. package/dist/index115.js.map +1 -1
  42. package/dist/index116.js +8 -6
  43. package/dist/index116.js.map +1 -1
  44. package/dist/index117.js +13 -4
  45. package/dist/index117.js.map +1 -1
  46. package/dist/index118.js +101 -6
  47. package/dist/index118.js.map +1 -1
  48. package/dist/index119.js +20 -6
  49. package/dist/index119.js.map +1 -1
  50. package/dist/index12.js +1 -1
  51. package/dist/index120.js +53 -4
  52. package/dist/index120.js.map +1 -1
  53. package/dist/index121.js +72 -5
  54. package/dist/index121.js.map +1 -1
  55. package/dist/index122.js +9 -4
  56. package/dist/index122.js.map +1 -1
  57. package/dist/index123.js +20 -8
  58. package/dist/index123.js.map +1 -1
  59. package/dist/index124.js +16 -5
  60. package/dist/index124.js.map +1 -1
  61. package/dist/index125.js +23 -4
  62. package/dist/index125.js.map +1 -1
  63. package/dist/index126.js +6 -4
  64. package/dist/index126.js.map +1 -1
  65. package/dist/index127.js +5 -6
  66. package/dist/index127.js.map +1 -1
  67. package/dist/index128.js +23 -145
  68. package/dist/index128.js.map +1 -1
  69. package/dist/index129.js +34 -39
  70. package/dist/index129.js.map +1 -1
  71. package/dist/index130.js +16 -5
  72. package/dist/index130.js.map +1 -1
  73. package/dist/index131.js +6 -7
  74. package/dist/index131.js.map +1 -1
  75. package/dist/index132.js +4 -13
  76. package/dist/index132.js.map +1 -1
  77. package/dist/index133.js +4 -13
  78. package/dist/index133.js.map +1 -1
  79. package/dist/index134.js +4 -7
  80. package/dist/index134.js.map +1 -1
  81. package/dist/index135.js +4 -31
  82. package/dist/index135.js.map +1 -1
  83. package/dist/index136.js +3 -10
  84. package/dist/index136.js.map +1 -1
  85. package/dist/index137.js +6 -10
  86. package/dist/index137.js.map +1 -1
  87. package/dist/index138.js +24 -9
  88. package/dist/index138.js.map +1 -1
  89. package/dist/index139.js +7 -13
  90. package/dist/index139.js.map +1 -1
  91. package/dist/index140.js +6 -101
  92. package/dist/index140.js.map +1 -1
  93. package/dist/index141.js +6 -20
  94. package/dist/index141.js.map +1 -1
  95. package/dist/index142.js +3 -53
  96. package/dist/index142.js.map +1 -1
  97. package/dist/index143.js +3 -72
  98. package/dist/index143.js.map +1 -1
  99. package/dist/index144.js +4 -9
  100. package/dist/index144.js.map +1 -1
  101. package/dist/index145.js +3 -20
  102. package/dist/index145.js.map +1 -1
  103. package/dist/index146.js +4 -16
  104. package/dist/index146.js.map +1 -1
  105. package/dist/index147.js +3 -23
  106. package/dist/index147.js.map +1 -1
  107. package/dist/index148.js +3 -6
  108. package/dist/index148.js.map +1 -1
  109. package/dist/index149.js +3 -5
  110. package/dist/index149.js.map +1 -1
  111. package/dist/index150.js +5 -23
  112. package/dist/index150.js.map +1 -1
  113. package/dist/index151.js +68 -34
  114. package/dist/index151.js.map +1 -1
  115. package/dist/index152.js +2 -16
  116. package/dist/index152.js.map +1 -1
  117. package/dist/index153.js +363 -6
  118. package/dist/index153.js.map +1 -1
  119. package/dist/index154.js +261 -4
  120. package/dist/index154.js.map +1 -1
  121. package/dist/index155.js +60 -4
  122. package/dist/index155.js.map +1 -1
  123. package/dist/index156.js +46 -4
  124. package/dist/index156.js.map +1 -1
  125. package/dist/index157.js +169 -4
  126. package/dist/index157.js.map +1 -1
  127. package/dist/index158.js +109 -3
  128. package/dist/index158.js.map +1 -1
  129. package/dist/index159.js +24 -6
  130. package/dist/index159.js.map +1 -1
  131. package/dist/index16.js +77 -72
  132. package/dist/index16.js.map +1 -1
  133. package/dist/index160.js +8 -24
  134. package/dist/index160.js.map +1 -1
  135. package/dist/index161.js +4 -7
  136. package/dist/index161.js.map +1 -1
  137. package/dist/index162.js +5 -6
  138. package/dist/index162.js.map +1 -1
  139. package/dist/index163.js +4 -5
  140. package/dist/index163.js.map +1 -1
  141. package/dist/index164.js +466 -3
  142. package/dist/index164.js.map +1 -1
  143. package/dist/index165.js +185 -3
  144. package/dist/index165.js.map +1 -1
  145. package/dist/index166.js +107 -4
  146. package/dist/index166.js.map +1 -1
  147. package/dist/index167.js +262 -3
  148. package/dist/index167.js.map +1 -1
  149. package/dist/index168.js +9 -4
  150. package/dist/index168.js.map +1 -1
  151. package/dist/index169.js +42 -3
  152. package/dist/index169.js.map +1 -1
  153. package/dist/index170.js +4 -3
  154. package/dist/index170.js.map +1 -1
  155. package/dist/index171.js +11 -3
  156. package/dist/index171.js.map +1 -1
  157. package/dist/index172.js +63 -41
  158. package/dist/index172.js.map +1 -1
  159. package/dist/index173.js +35 -227
  160. package/dist/index173.js.map +1 -1
  161. package/dist/index174.js +14 -22
  162. package/dist/index174.js.map +1 -1
  163. package/dist/index175.js +23 -24
  164. package/dist/index175.js.map +1 -1
  165. package/dist/index176.js +104 -394
  166. package/dist/index176.js.map +1 -1
  167. package/dist/index177.js +13 -14
  168. package/dist/index177.js.map +1 -1
  169. package/dist/index178.js +4 -154
  170. package/dist/index178.js.map +1 -1
  171. package/dist/index179.js +4 -31
  172. package/dist/index179.js.map +1 -1
  173. package/dist/index18.js +6 -6
  174. package/dist/index180.js +5 -10
  175. package/dist/index180.js.map +1 -1
  176. package/dist/index181.js +11 -48
  177. package/dist/index181.js.map +1 -1
  178. package/dist/index182.js +19 -11
  179. package/dist/index182.js.map +1 -1
  180. package/dist/index183.js +13 -45
  181. package/dist/index183.js.map +1 -1
  182. package/dist/index184.js +255 -89
  183. package/dist/index184.js.map +1 -1
  184. package/dist/index185.js +4 -86
  185. package/dist/index185.js.map +1 -1
  186. package/dist/index186.js +26 -104
  187. package/dist/index186.js.map +1 -1
  188. package/dist/index187.js +126 -52
  189. package/dist/index187.js.map +1 -1
  190. package/dist/index188.js +5 -11
  191. package/dist/index188.js.map +1 -1
  192. package/dist/index189.js +78 -37
  193. package/dist/index189.js.map +1 -1
  194. package/dist/index19.js +280 -208
  195. package/dist/index19.js.map +1 -1
  196. package/dist/index190.js +66 -8
  197. package/dist/index190.js.map +1 -1
  198. package/dist/index191.js +7 -115
  199. package/dist/index191.js.map +1 -1
  200. package/dist/index192.js +16 -18
  201. package/dist/index192.js.map +1 -1
  202. package/dist/index193.js +92 -15
  203. package/dist/index193.js.map +1 -1
  204. package/dist/index194.js +65 -3
  205. package/dist/index194.js.map +1 -1
  206. package/dist/index195.js +42 -33
  207. package/dist/index195.js.map +1 -1
  208. package/dist/index196.js +58 -20
  209. package/dist/index196.js.map +1 -1
  210. package/dist/index197.js +8 -9
  211. package/dist/index197.js.map +1 -1
  212. package/dist/index198.js +66 -8
  213. package/dist/index198.js.map +1 -1
  214. package/dist/index199.js +18 -18
  215. package/dist/index199.js.map +1 -1
  216. package/dist/index200.js +15 -27
  217. package/dist/index200.js.map +1 -1
  218. package/dist/index201.js +4 -15
  219. package/dist/index201.js.map +1 -1
  220. package/dist/index202.js +4 -57
  221. package/dist/index202.js.map +1 -1
  222. package/dist/index203.js +6 -8
  223. package/dist/index203.js.map +1 -1
  224. package/dist/index204.js +4 -66
  225. package/dist/index204.js.map +1 -1
  226. package/dist/index205.js +6 -19
  227. package/dist/index205.js.map +1 -1
  228. package/dist/index206.js +16 -16
  229. package/dist/index206.js.map +1 -1
  230. package/dist/index207.js +4 -5
  231. package/dist/index207.js.map +1 -1
  232. package/dist/index208.js +4 -5
  233. package/dist/index208.js.map +1 -1
  234. package/dist/index209.js +12 -6
  235. package/dist/index209.js.map +1 -1
  236. package/dist/index210.js +9 -4
  237. package/dist/index210.js.map +1 -1
  238. package/dist/index211.js +13 -6
  239. package/dist/index211.js.map +1 -1
  240. package/dist/index212.js +13 -16
  241. package/dist/index212.js.map +1 -1
  242. package/dist/index213.js +4 -4
  243. package/dist/index213.js.map +1 -1
  244. package/dist/index214.js +5 -4
  245. package/dist/index214.js.map +1 -1
  246. package/dist/index215.js +6 -12
  247. package/dist/index215.js.map +1 -1
  248. package/dist/index216.js +5 -9
  249. package/dist/index216.js.map +1 -1
  250. package/dist/index217.js +54 -13
  251. package/dist/index217.js.map +1 -1
  252. package/dist/index218.js +8 -13
  253. package/dist/index218.js.map +1 -1
  254. package/dist/index219.js +4 -4
  255. package/dist/index219.js.map +1 -1
  256. package/dist/index220.js +4 -5
  257. package/dist/index220.js.map +1 -1
  258. package/dist/index221.js +8 -6
  259. package/dist/index221.js.map +1 -1
  260. package/dist/index222.js +4 -5
  261. package/dist/index222.js.map +1 -1
  262. package/dist/index223.js +4 -54
  263. package/dist/index223.js.map +1 -1
  264. package/dist/index224.js +3 -8
  265. package/dist/index224.js.map +1 -1
  266. package/dist/index225.js +10 -4
  267. package/dist/index225.js.map +1 -1
  268. package/dist/index226.js +9 -4
  269. package/dist/index226.js.map +1 -1
  270. package/dist/index227.js +9 -8
  271. package/dist/index227.js.map +1 -1
  272. package/dist/index228.js +10 -4
  273. package/dist/index228.js.map +1 -1
  274. package/dist/index229.js +10 -4
  275. package/dist/index229.js.map +1 -1
  276. package/dist/index230.js +9 -3
  277. package/dist/index230.js.map +1 -1
  278. package/dist/index231.js +6 -10
  279. package/dist/index231.js.map +1 -1
  280. package/dist/index232.js +5 -9
  281. package/dist/index232.js.map +1 -1
  282. package/dist/index233.js +4 -9
  283. package/dist/index233.js.map +1 -1
  284. package/dist/index234.js +5 -10
  285. package/dist/index234.js.map +1 -1
  286. package/dist/index235.js +6 -10
  287. package/dist/index235.js.map +1 -1
  288. package/dist/index236.js +5 -9
  289. package/dist/index236.js.map +1 -1
  290. package/dist/index237.js +29 -6
  291. package/dist/index237.js.map +1 -1
  292. package/dist/index238.js +12 -5
  293. package/dist/index238.js.map +1 -1
  294. package/dist/index239.js +25 -4
  295. package/dist/index239.js.map +1 -1
  296. package/dist/index240.js +5 -5
  297. package/dist/index240.js.map +1 -1
  298. package/dist/index241.js +16 -6
  299. package/dist/index241.js.map +1 -1
  300. package/dist/index242.js +7 -5
  301. package/dist/index242.js.map +1 -1
  302. package/dist/index243.js +9 -15
  303. package/dist/index243.js.map +1 -1
  304. package/dist/index244.js +10 -7
  305. package/dist/index244.js.map +1 -1
  306. package/dist/index245.js +21 -10
  307. package/dist/index245.js.map +1 -1
  308. package/dist/index246.js +10 -10
  309. package/dist/index246.js.map +1 -1
  310. package/dist/index247.js +9 -21
  311. package/dist/index247.js.map +1 -1
  312. package/dist/index248.js +9 -10
  313. package/dist/index248.js.map +1 -1
  314. package/dist/index249.js +4 -9
  315. package/dist/index249.js.map +1 -1
  316. package/dist/index250.js +5 -9
  317. package/dist/index250.js.map +1 -1
  318. package/dist/index251.js +16 -4
  319. package/dist/index251.js.map +1 -1
  320. package/dist/index252.js +9 -5
  321. package/dist/index252.js.map +1 -1
  322. package/dist/index253.js +18 -16
  323. package/dist/index253.js.map +1 -1
  324. package/dist/index254.js +15 -9
  325. package/dist/index254.js.map +1 -1
  326. package/dist/index255.js +8 -14
  327. package/dist/index255.js.map +1 -1
  328. package/dist/index256.js +13 -15
  329. package/dist/index256.js.map +1 -1
  330. package/dist/index257.js +154 -12
  331. package/dist/index257.js.map +1 -1
  332. package/dist/index258.js +29 -28
  333. package/dist/index258.js.map +1 -1
  334. package/dist/index259.js +9 -12
  335. package/dist/index259.js.map +1 -1
  336. package/dist/index260.js +46 -23
  337. package/dist/index260.js.map +1 -1
  338. package/dist/index261.js +11 -5
  339. package/dist/index261.js.map +1 -1
  340. package/dist/index262.js +43 -23
  341. package/dist/index262.js.map +1 -1
  342. package/dist/index263.js +95 -28
  343. package/dist/index263.js.map +1 -1
  344. package/dist/index264.js +87 -5
  345. package/dist/index264.js.map +1 -1
  346. package/dist/index265.js +105 -20
  347. package/dist/index265.js.map +1 -1
  348. package/dist/index266.js +52 -4
  349. package/dist/index266.js.map +1 -1
  350. package/dist/index267.js +11 -17
  351. package/dist/index267.js.map +1 -1
  352. package/dist/index268.js +37 -12
  353. package/dist/index268.js.map +1 -1
  354. package/dist/index269.js +9 -5
  355. package/dist/index269.js.map +1 -1
  356. package/dist/index270.js +117 -3
  357. package/dist/index270.js.map +1 -1
  358. package/dist/index271.js +17 -23
  359. package/dist/index271.js.map +1 -1
  360. package/dist/index272.js +14 -111
  361. package/dist/index272.js.map +1 -1
  362. package/dist/index273.js +3 -15
  363. package/dist/index273.js.map +1 -1
  364. package/dist/index274.js +29 -522
  365. package/dist/index274.js.map +1 -1
  366. package/dist/index275.js +19 -124
  367. package/dist/index275.js.map +1 -1
  368. package/dist/index276.js +9 -133
  369. package/dist/index276.js.map +1 -1
  370. package/dist/index277.js +8 -4
  371. package/dist/index277.js.map +1 -1
  372. package/dist/index278.js +19 -4
  373. package/dist/index278.js.map +1 -1
  374. package/dist/index279.js +29 -4
  375. package/dist/index279.js.map +1 -1
  376. package/dist/index28.js +1 -1
  377. package/dist/index280.js +16 -15
  378. package/dist/index280.js.map +1 -1
  379. package/dist/index281.js +66 -8
  380. package/dist/index281.js.map +1 -1
  381. package/dist/index282.js +8 -5
  382. package/dist/index282.js.map +1 -1
  383. package/dist/index283.js +11 -4
  384. package/dist/index283.js.map +1 -1
  385. package/dist/index284.js +7 -544
  386. package/dist/index284.js.map +1 -1
  387. package/dist/index285.js +6 -47
  388. package/dist/index285.js.map +1 -1
  389. package/dist/index286.js +13 -17
  390. package/dist/index286.js.map +1 -1
  391. package/dist/index287.js +3 -5
  392. package/dist/index287.js.map +1 -1
  393. package/dist/index288.js +3 -7
  394. package/dist/index288.js.map +1 -1
  395. package/dist/index289.js +99 -6
  396. package/dist/index289.js.map +1 -1
  397. package/dist/index290.js +17 -7
  398. package/dist/index290.js.map +1 -1
  399. package/dist/index291.js +5 -11
  400. package/dist/index291.js.map +1 -1
  401. package/dist/index292.js +29 -8
  402. package/dist/index292.js.map +1 -1
  403. package/dist/index293.js +51 -12
  404. package/dist/index293.js.map +1 -1
  405. package/dist/index294.js +131 -66
  406. package/dist/index294.js.map +1 -1
  407. package/dist/index295.js +9 -9
  408. package/dist/index295.js.map +1 -1
  409. package/dist/index296.js +5 -14
  410. package/dist/index296.js.map +1 -1
  411. package/dist/index297.js +4 -66
  412. package/dist/index297.js.map +1 -1
  413. package/dist/index298.js +11 -64
  414. package/dist/index298.js.map +1 -1
  415. package/dist/index299.js +21 -4
  416. package/dist/index299.js.map +1 -1
  417. package/dist/index30.js +1 -1
  418. package/dist/index300.js +121 -54
  419. package/dist/index300.js.map +1 -1
  420. package/dist/index301.js +28 -68
  421. package/dist/index301.js.map +1 -1
  422. package/dist/index302.js +33 -31
  423. package/dist/index302.js.map +1 -1
  424. package/dist/index303.js +74 -9
  425. package/dist/index303.js.map +1 -1
  426. package/dist/index304.js +262 -152
  427. package/dist/index304.js.map +1 -1
  428. package/dist/index305.js +28 -107
  429. package/dist/index305.js.map +1 -1
  430. package/dist/index306.js +6 -3
  431. package/dist/index306.js.map +1 -1
  432. package/dist/index307.js +141 -21
  433. package/dist/index307.js.map +1 -1
  434. package/dist/index308.js +61 -15
  435. package/dist/index308.js.map +1 -1
  436. package/dist/index309.js +48 -27
  437. package/dist/index309.js.map +1 -1
  438. package/dist/index31.js +227 -120
  439. package/dist/index31.js.map +1 -1
  440. package/dist/index310.js +15 -13
  441. package/dist/index310.js.map +1 -1
  442. package/dist/index311.js +20 -7
  443. package/dist/index311.js.map +1 -1
  444. package/dist/index312.js +12 -23
  445. package/dist/index312.js.map +1 -1
  446. package/dist/index313.js +51 -13
  447. package/dist/index313.js.map +1 -1
  448. package/dist/index314.js +14 -25
  449. package/dist/index314.js.map +1 -1
  450. package/dist/index315.js +22 -5
  451. package/dist/index315.js.map +1 -1
  452. package/dist/index316.js +55 -0
  453. package/dist/index316.js.map +1 -0
  454. package/dist/index317.js +29 -0
  455. package/dist/index317.js.map +1 -0
  456. package/dist/index318.js +45 -0
  457. package/dist/index318.js.map +1 -0
  458. package/dist/index319.js +43 -0
  459. package/dist/index319.js.map +1 -0
  460. package/dist/index32.js +21 -229
  461. package/dist/index32.js.map +1 -1
  462. package/dist/index320.js +48 -0
  463. package/dist/index320.js.map +1 -0
  464. package/dist/index321.js +24 -0
  465. package/dist/index321.js.map +1 -0
  466. package/dist/index322.js +74 -0
  467. package/dist/index322.js.map +1 -0
  468. package/dist/index323.js +21 -0
  469. package/dist/index323.js.map +1 -0
  470. package/dist/index324.js +15 -0
  471. package/dist/index324.js.map +1 -0
  472. package/dist/index325.js +17 -0
  473. package/dist/index325.js.map +1 -0
  474. package/dist/index326.js +22 -0
  475. package/dist/index326.js.map +1 -0
  476. package/dist/index327.js +40 -0
  477. package/dist/index327.js.map +1 -0
  478. package/dist/index328.js +282 -0
  479. package/dist/index328.js.map +1 -0
  480. package/dist/index329.js +72 -0
  481. package/dist/index329.js.map +1 -0
  482. package/dist/index33.js +4 -23
  483. package/dist/index33.js.map +1 -1
  484. package/dist/index330.js +87 -0
  485. package/dist/index330.js.map +1 -0
  486. package/dist/index331.js +7 -0
  487. package/dist/index331.js.map +1 -0
  488. package/dist/index332.js +33 -0
  489. package/dist/index332.js.map +1 -0
  490. package/dist/index333.js +20 -0
  491. package/dist/index333.js.map +1 -0
  492. package/dist/index334.js +38 -0
  493. package/dist/index334.js.map +1 -0
  494. package/dist/index335.js +20 -0
  495. package/dist/index335.js.map +1 -0
  496. package/dist/index336.js +7 -0
  497. package/dist/index336.js.map +1 -0
  498. package/dist/index337.js +30 -0
  499. package/dist/index337.js.map +1 -0
  500. package/dist/index338.js +7 -0
  501. package/dist/index338.js.map +1 -0
  502. package/dist/index339.js +82 -0
  503. package/dist/index339.js.map +1 -0
  504. package/dist/index34.js +62 -51
  505. package/dist/index34.js.map +1 -1
  506. package/dist/index340.js +273 -0
  507. package/dist/index340.js.map +1 -0
  508. package/dist/index341.js +15 -0
  509. package/dist/index341.js.map +1 -0
  510. package/dist/index342.js +14 -0
  511. package/dist/index342.js.map +1 -0
  512. package/dist/index343.js +29 -0
  513. package/dist/index343.js.map +1 -0
  514. package/dist/index344.js +20 -0
  515. package/dist/index344.js.map +1 -0
  516. package/dist/index345.js +129 -0
  517. package/dist/index345.js.map +1 -0
  518. package/dist/index346.js +9 -0
  519. package/dist/index346.js.map +1 -0
  520. package/dist/index347.js +44 -0
  521. package/dist/index347.js.map +1 -0
  522. package/dist/index348.js +69 -0
  523. package/dist/index348.js.map +1 -0
  524. package/dist/index349.js +17 -0
  525. package/dist/index349.js.map +1 -0
  526. package/dist/index35.js +38 -21
  527. package/dist/index35.js.map +1 -1
  528. package/dist/index350.js +11 -0
  529. package/dist/index350.js.map +1 -0
  530. package/dist/index351.js +9 -0
  531. package/dist/index351.js.map +1 -0
  532. package/dist/index352.js +7 -0
  533. package/dist/index352.js.map +1 -0
  534. package/dist/index353.js +14 -0
  535. package/dist/index353.js.map +1 -0
  536. package/dist/index354.js +11 -0
  537. package/dist/index354.js.map +1 -0
  538. package/dist/index355.js +403 -0
  539. package/dist/index355.js.map +1 -0
  540. package/dist/index356.js +56 -0
  541. package/dist/index356.js.map +1 -0
  542. package/dist/index357.js +15 -0
  543. package/dist/index357.js.map +1 -0
  544. package/dist/index358.js +15 -0
  545. package/dist/index358.js.map +1 -0
  546. package/dist/index359.js +8 -0
  547. package/dist/index359.js.map +1 -0
  548. package/dist/index36.js +75 -127
  549. package/dist/index36.js.map +1 -1
  550. package/dist/index360.js +21 -0
  551. package/dist/index360.js.map +1 -0
  552. package/dist/index361.js +16 -0
  553. package/dist/index361.js.map +1 -0
  554. package/dist/index362.js +24 -0
  555. package/dist/index362.js.map +1 -0
  556. package/dist/index363.js +12 -0
  557. package/dist/index363.js.map +1 -0
  558. package/dist/index364.js +29 -0
  559. package/dist/index364.js.map +1 -0
  560. package/dist/index365.js +30 -0
  561. package/dist/index365.js.map +1 -0
  562. package/dist/index366.js +141 -0
  563. package/dist/index366.js.map +1 -0
  564. package/dist/index367.js +16 -0
  565. package/dist/index367.js.map +1 -0
  566. package/dist/index368.js +230 -0
  567. package/dist/index368.js.map +1 -0
  568. package/dist/index369.js +7 -0
  569. package/dist/index369.js.map +1 -0
  570. package/dist/index37.js +22 -221
  571. package/dist/index37.js.map +1 -1
  572. package/dist/index370.js +23 -0
  573. package/dist/index370.js.map +1 -0
  574. package/dist/index371.js +81 -0
  575. package/dist/index371.js.map +1 -0
  576. package/dist/index372.js +15 -0
  577. package/dist/index372.js.map +1 -0
  578. package/dist/index373.js +7 -0
  579. package/dist/index373.js.map +1 -0
  580. package/dist/index374.js +81 -0
  581. package/dist/index374.js.map +1 -0
  582. package/dist/index375.js +204 -0
  583. package/dist/index375.js.map +1 -0
  584. package/dist/index376.js +75 -0
  585. package/dist/index376.js.map +1 -0
  586. package/dist/index377.js +12 -0
  587. package/dist/index377.js.map +1 -0
  588. package/dist/index378.js +19 -0
  589. package/dist/index378.js.map +1 -0
  590. package/dist/index379.js +20 -0
  591. package/dist/index379.js.map +1 -0
  592. package/dist/index38.js +37 -90
  593. package/dist/index38.js.map +1 -1
  594. package/dist/index380.js +7 -0
  595. package/dist/index380.js.map +1 -0
  596. package/dist/index381.js +15 -0
  597. package/dist/index381.js.map +1 -0
  598. package/dist/index382.js +9 -0
  599. package/dist/index382.js.map +1 -0
  600. package/dist/index383.js +24 -0
  601. package/dist/index383.js.map +1 -0
  602. package/dist/index384.js +48 -0
  603. package/dist/index384.js.map +1 -0
  604. package/dist/index385.js +21 -0
  605. package/dist/index385.js.map +1 -0
  606. package/dist/index386.js +8 -0
  607. package/dist/index386.js.map +1 -0
  608. package/dist/index387.js +8 -0
  609. package/dist/index387.js.map +1 -0
  610. package/dist/index388.js +8 -0
  611. package/dist/index388.js.map +1 -0
  612. package/dist/index389.js +7 -0
  613. package/dist/index389.js.map +1 -0
  614. package/dist/index39.js +28 -119
  615. package/dist/index39.js.map +1 -1
  616. package/dist/index390.js +19 -0
  617. package/dist/index390.js.map +1 -0
  618. package/dist/index391.js +12 -0
  619. package/dist/index391.js.map +1 -0
  620. package/dist/index392.js +9 -0
  621. package/dist/index392.js.map +1 -0
  622. package/dist/index393.js +8 -0
  623. package/dist/index393.js.map +1 -0
  624. package/dist/index394.js +549 -0
  625. package/dist/index394.js.map +1 -0
  626. package/dist/index395.js +50 -0
  627. package/dist/index395.js.map +1 -0
  628. package/dist/index396.js +21 -0
  629. package/dist/index396.js.map +1 -0
  630. package/dist/index397.js +9 -0
  631. package/dist/index397.js.map +1 -0
  632. package/dist/index398.js +11 -0
  633. package/dist/index398.js.map +1 -0
  634. package/dist/index399.js +10 -0
  635. package/dist/index399.js.map +1 -0
  636. package/dist/index40.js +23 -6
  637. package/dist/index40.js.map +1 -1
  638. package/dist/index400.js +11 -0
  639. package/dist/index400.js.map +1 -0
  640. package/dist/index401.js +15 -0
  641. package/dist/index401.js.map +1 -0
  642. package/dist/index402.js +12 -0
  643. package/dist/index402.js.map +1 -0
  644. package/dist/index403.js +16 -0
  645. package/dist/index403.js.map +1 -0
  646. package/dist/index404.js +18 -0
  647. package/dist/index404.js.map +1 -0
  648. package/dist/index405.js +495 -0
  649. package/dist/index405.js.map +1 -0
  650. package/dist/index406.js +6 -0
  651. package/dist/index406.js.map +1 -0
  652. package/dist/index407.js +6 -0
  653. package/dist/index407.js.map +1 -0
  654. package/dist/index408.js +8 -0
  655. package/dist/index408.js.map +1 -0
  656. package/dist/index409.js +59 -0
  657. package/dist/index409.js.map +1 -0
  658. package/dist/index41.js +51 -817
  659. package/dist/index41.js.map +1 -1
  660. package/dist/index410.js +71 -0
  661. package/dist/index410.js.map +1 -0
  662. package/dist/index411.js +34 -0
  663. package/dist/index411.js.map +1 -0
  664. package/dist/index412.js +12 -0
  665. package/dist/index412.js.map +1 -0
  666. package/dist/index413.js +156 -0
  667. package/dist/index413.js.map +1 -0
  668. package/dist/index414.js +111 -0
  669. package/dist/index414.js.map +1 -0
  670. package/dist/index415.js +11 -0
  671. package/dist/index415.js.map +1 -0
  672. package/dist/index416.js +5 -0
  673. package/dist/index416.js.map +1 -0
  674. package/dist/index417.js +47 -0
  675. package/dist/index417.js.map +1 -0
  676. package/dist/index418.js +59 -0
  677. package/dist/index418.js.map +1 -0
  678. package/dist/index419.js +11 -0
  679. package/dist/index419.js.map +1 -0
  680. package/dist/index42.js +51 -57
  681. package/dist/index42.js.map +1 -1
  682. package/dist/index420.js +5 -0
  683. package/dist/index420.js.map +1 -0
  684. package/dist/index421.js +58 -0
  685. package/dist/index421.js.map +1 -0
  686. package/dist/index422.js +59 -0
  687. package/dist/index422.js.map +1 -0
  688. package/dist/index423.js +19 -0
  689. package/dist/index423.js.map +1 -0
  690. package/dist/index424.js +32 -0
  691. package/dist/index424.js.map +1 -0
  692. package/dist/index425.js +16 -0
  693. package/dist/index425.js.map +1 -0
  694. package/dist/index426.js +10 -0
  695. package/dist/index426.js.map +1 -0
  696. package/dist/index427.js +5 -0
  697. package/dist/index427.js.map +1 -0
  698. package/dist/index428.js +5 -0
  699. package/dist/index428.js.map +1 -0
  700. package/dist/index429.js +5 -0
  701. package/dist/index429.js.map +1 -0
  702. package/dist/index43.js +21 -7
  703. package/dist/index43.js.map +1 -1
  704. package/dist/index430.js +5 -0
  705. package/dist/index430.js.map +1 -0
  706. package/dist/index44.js +130 -2
  707. package/dist/index44.js.map +1 -1
  708. package/dist/index45.js +221 -11
  709. package/dist/index45.js.map +1 -1
  710. package/dist/index46.js +90 -18
  711. package/dist/index46.js.map +1 -1
  712. package/dist/index47.js +118 -7
  713. package/dist/index47.js.map +1 -1
  714. package/dist/index48.js +6 -2
  715. package/dist/index48.js.map +1 -1
  716. package/dist/index49.js +326 -23
  717. package/dist/index49.js.map +1 -1
  718. package/dist/index50.js +247 -221
  719. package/dist/index50.js.map +1 -1
  720. package/dist/index51.js +27 -2
  721. package/dist/index51.js.map +1 -1
  722. package/dist/index52.js +129 -2
  723. package/dist/index52.js.map +1 -1
  724. package/dist/index53.js +26 -2
  725. package/dist/index53.js.map +1 -1
  726. package/dist/index54.js +23 -2
  727. package/dist/index54.js.map +1 -1
  728. package/dist/index55.js +145 -6
  729. package/dist/index55.js.map +1 -1
  730. package/dist/index56.js +34 -33
  731. package/dist/index56.js.map +1 -1
  732. package/dist/index57.js +28 -48
  733. package/dist/index57.js.map +1 -1
  734. package/dist/index58.js +41 -8
  735. package/dist/index58.js.map +1 -1
  736. package/dist/index59.js +21 -12
  737. package/dist/index59.js.map +1 -1
  738. package/dist/index6.js +84 -85
  739. package/dist/index6.js.map +1 -1
  740. package/dist/index60.js +132 -6
  741. package/dist/index60.js.map +1 -1
  742. package/dist/index61.js +51 -8
  743. package/dist/index61.js.map +1 -1
  744. package/dist/index62.js +30 -6
  745. package/dist/index62.js.map +1 -1
  746. package/dist/index63.js +57 -4
  747. package/dist/index63.js.map +1 -1
  748. package/dist/index64.js +7 -47
  749. package/dist/index64.js.map +1 -1
  750. package/dist/index65.js +2 -51
  751. package/dist/index65.js.map +1 -1
  752. package/dist/index66.js +11 -7
  753. package/dist/index66.js.map +1 -1
  754. package/dist/index67.js +17 -13
  755. package/dist/index67.js.map +1 -1
  756. package/dist/index68.js +7 -133
  757. package/dist/index68.js.map +1 -1
  758. package/dist/index69.js +2 -11
  759. package/dist/index69.js.map +1 -1
  760. package/dist/index7.js +123 -98
  761. package/dist/index7.js.map +1 -1
  762. package/dist/index70.js +22 -215
  763. package/dist/index70.js.map +1 -1
  764. package/dist/index71.js +234 -13
  765. package/dist/index71.js.map +1 -1
  766. package/dist/index72.js +2 -47
  767. package/dist/index72.js.map +1 -1
  768. package/dist/index73.js +2 -50
  769. package/dist/index73.js.map +1 -1
  770. package/dist/index74.js +2 -4
  771. package/dist/index74.js.map +1 -1
  772. package/dist/index75.js +2 -6
  773. package/dist/index75.js.map +1 -1
  774. package/dist/index76.js +6 -28
  775. package/dist/index76.js.map +1 -1
  776. package/dist/index77.js +8 -50
  777. package/dist/index77.js.map +1 -1
  778. package/dist/index78.js +6 -9
  779. package/dist/index78.js.map +1 -1
  780. package/dist/index79.js +52 -47
  781. package/dist/index79.js.map +1 -1
  782. package/dist/index8.js +53 -54
  783. package/dist/index8.js.map +1 -1
  784. package/dist/index80.js +4 -5
  785. package/dist/index80.js.map +1 -1
  786. package/dist/index81.js +4 -68
  787. package/dist/index81.js.map +1 -1
  788. package/dist/index82.js +16 -2
  789. package/dist/index82.js.map +1 -1
  790. package/dist/index83.js +5 -363
  791. package/dist/index83.js.map +1 -1
  792. package/dist/index84.js +7 -261
  793. package/dist/index84.js.map +1 -1
  794. package/dist/index85.js +16 -60
  795. package/dist/index85.js.map +1 -1
  796. package/dist/index86.js +4 -46
  797. package/dist/index86.js.map +1 -1
  798. package/dist/index87.js +4 -169
  799. package/dist/index87.js.map +1 -1
  800. package/dist/index88.js +5 -109
  801. package/dist/index88.js.map +1 -1
  802. package/dist/index89.js +5 -24
  803. package/dist/index89.js.map +1 -1
  804. package/dist/index9.js +1 -1
  805. package/dist/index90.js +5 -8
  806. package/dist/index90.js.map +1 -1
  807. package/dist/index91.js +4 -4
  808. package/dist/index91.js.map +1 -1
  809. package/dist/index92.js +6 -5
  810. package/dist/index92.js.map +1 -1
  811. package/dist/index93.js +24 -4
  812. package/dist/index93.js.map +1 -1
  813. package/dist/index94.js +6 -466
  814. package/dist/index94.js.map +1 -1
  815. package/dist/index95.js +4 -185
  816. package/dist/index95.js.map +1 -1
  817. package/dist/index96.js +6 -107
  818. package/dist/index96.js.map +1 -1
  819. package/dist/index97.js +5 -262
  820. package/dist/index97.js.map +1 -1
  821. package/dist/index98.js +4 -9
  822. package/dist/index98.js.map +1 -1
  823. package/dist/index99.js +5 -42
  824. package/dist/index99.js.map +1 -1
  825. package/dist/lib/render-as-child.d.ts +5 -0
  826. package/dist/lib/render-as-child.d.ts.map +1 -0
  827. package/package.json +3 -6
  828. package/dist/lib/react-compose-refs.d.ts +0 -5
  829. package/dist/lib/react-compose-refs.d.ts.map +0 -1
package/dist/index285.js CHANGED
@@ -1,50 +1,9 @@
1
- const s = (t, e) => {
2
- switch (t) {
3
- case "P":
4
- return e.date({ width: "short" });
5
- case "PP":
6
- return e.date({ width: "medium" });
7
- case "PPP":
8
- return e.date({ width: "long" });
9
- default:
10
- return e.date({ width: "full" });
11
- }
12
- }, c = (t, e) => {
13
- switch (t) {
14
- case "p":
15
- return e.time({ width: "short" });
16
- case "pp":
17
- return e.time({ width: "medium" });
18
- case "ppp":
19
- return e.time({ width: "long" });
20
- default:
21
- return e.time({ width: "full" });
22
- }
23
- }, P = (t, e) => {
24
- const d = t.match(/(P+)(p+)?/) || [], a = d[1], r = d[2];
25
- if (!r)
26
- return s(t, e);
27
- let i;
28
- switch (a) {
29
- case "P":
30
- i = e.dateTime({ width: "short" });
31
- break;
32
- case "PP":
33
- i = e.dateTime({ width: "medium" });
34
- break;
35
- case "PPP":
36
- i = e.dateTime({ width: "long" });
37
- break;
38
- default:
39
- i = e.dateTime({ width: "full" });
40
- break;
41
- }
42
- return i.replace("{{date}}", s(a, e)).replace("{{time}}", c(r, e));
43
- }, h = {
44
- p: c,
45
- P
46
- };
1
+ function e() {
2
+ }
3
+ const t = Object.freeze([]), c = Object.freeze({});
47
4
  export {
48
- h as longFormatters
5
+ t as EMPTY_ARRAY,
6
+ c as EMPTY_OBJECT,
7
+ e as NOOP
49
8
  };
50
9
  //# sourceMappingURL=index285.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index285.js","sources":["../../../node_modules/date-fns/_lib/format/longFormatters.js"],"sourcesContent":["const dateLongFormatter = (pattern, formatLong) => {\n switch (pattern) {\n case \"P\":\n return formatLong.date({ width: \"short\" });\n case \"PP\":\n return formatLong.date({ width: \"medium\" });\n case \"PPP\":\n return formatLong.date({ width: \"long\" });\n case \"PPPP\":\n default:\n return formatLong.date({ width: \"full\" });\n }\n};\n\nconst timeLongFormatter = (pattern, formatLong) => {\n switch (pattern) {\n case \"p\":\n return formatLong.time({ width: \"short\" });\n case \"pp\":\n return formatLong.time({ width: \"medium\" });\n case \"ppp\":\n return formatLong.time({ width: \"long\" });\n case \"pppp\":\n default:\n return formatLong.time({ width: \"full\" });\n }\n};\n\nconst dateTimeLongFormatter = (pattern, formatLong) => {\n const matchResult = pattern.match(/(P+)(p+)?/) || [];\n const datePattern = matchResult[1];\n const timePattern = matchResult[2];\n\n if (!timePattern) {\n return dateLongFormatter(pattern, formatLong);\n }\n\n let dateTimeFormat;\n\n switch (datePattern) {\n case \"P\":\n dateTimeFormat = formatLong.dateTime({ width: \"short\" });\n break;\n case \"PP\":\n dateTimeFormat = formatLong.dateTime({ width: \"medium\" });\n break;\n case \"PPP\":\n dateTimeFormat = formatLong.dateTime({ width: \"long\" });\n break;\n case \"PPPP\":\n default:\n dateTimeFormat = formatLong.dateTime({ width: \"full\" });\n break;\n }\n\n return dateTimeFormat\n .replace(\"{{date}}\", dateLongFormatter(datePattern, formatLong))\n .replace(\"{{time}}\", timeLongFormatter(timePattern, formatLong));\n};\n\nexport const longFormatters = {\n p: timeLongFormatter,\n P: dateTimeLongFormatter,\n};\n"],"names":["dateLongFormatter","pattern","formatLong","timeLongFormatter","dateTimeLongFormatter","matchResult","datePattern","timePattern","dateTimeFormat","longFormatters"],"mappings":"AAAA,MAAMA,IAAoB,CAACC,GAASC,MAAe;AACjD,UAAQD,GAAO;AAAA,IACb,KAAK;AACH,aAAOC,EAAW,KAAK,EAAE,OAAO,QAAO,CAAE;AAAA,IAC3C,KAAK;AACH,aAAOA,EAAW,KAAK,EAAE,OAAO,SAAQ,CAAE;AAAA,IAC5C,KAAK;AACH,aAAOA,EAAW,KAAK,EAAE,OAAO,OAAM,CAAE;AAAA,IAE1C;AACE,aAAOA,EAAW,KAAK,EAAE,OAAO,OAAM,CAAE;AAAA,EAC9C;AACA,GAEMC,IAAoB,CAACF,GAASC,MAAe;AACjD,UAAQD,GAAO;AAAA,IACb,KAAK;AACH,aAAOC,EAAW,KAAK,EAAE,OAAO,QAAO,CAAE;AAAA,IAC3C,KAAK;AACH,aAAOA,EAAW,KAAK,EAAE,OAAO,SAAQ,CAAE;AAAA,IAC5C,KAAK;AACH,aAAOA,EAAW,KAAK,EAAE,OAAO,OAAM,CAAE;AAAA,IAE1C;AACE,aAAOA,EAAW,KAAK,EAAE,OAAO,OAAM,CAAE;AAAA,EAC9C;AACA,GAEME,IAAwB,CAACH,GAASC,MAAe;AACrD,QAAMG,IAAcJ,EAAQ,MAAM,WAAW,KAAK,CAAA,GAC5CK,IAAcD,EAAY,CAAC,GAC3BE,IAAcF,EAAY,CAAC;AAEjC,MAAI,CAACE;AACH,WAAOP,EAAkBC,GAASC,CAAU;AAG9C,MAAIM;AAEJ,UAAQF,GAAW;AAAA,IACjB,KAAK;AACH,MAAAE,IAAiBN,EAAW,SAAS,EAAE,OAAO,QAAO,CAAE;AACvD;AAAA,IACF,KAAK;AACH,MAAAM,IAAiBN,EAAW,SAAS,EAAE,OAAO,SAAQ,CAAE;AACxD;AAAA,IACF,KAAK;AACH,MAAAM,IAAiBN,EAAW,SAAS,EAAE,OAAO,OAAM,CAAE;AACtD;AAAA,IAEF;AACE,MAAAM,IAAiBN,EAAW,SAAS,EAAE,OAAO,OAAM,CAAE;AACtD;AAAA,EACN;AAEE,SAAOM,EACJ,QAAQ,YAAYR,EAAkBM,GAAaJ,CAAU,CAAC,EAC9D,QAAQ,YAAYC,EAAkBI,GAAaL,CAAU,CAAC;AACnE,GAEaO,IAAiB;AAAA,EAC5B,GAAGN;AAAA,EACHC;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index285.js","sources":["../../../node_modules/@base-ui/utils/esm/empty.js"],"sourcesContent":["export function NOOP() {}\nexport const EMPTY_ARRAY = Object.freeze([]);\nexport const EMPTY_OBJECT = Object.freeze({});"],"names":["NOOP","EMPTY_ARRAY","EMPTY_OBJECT"],"mappings":"AAAO,SAASA,IAAO;AAAC;AACZ,MAACC,IAAc,OAAO,OAAO,CAAA,CAAE,GAC9BC,IAAe,OAAO,OAAO,CAAA,CAAE;","x_google_ignoreList":[0]}
package/dist/index286.js CHANGED
@@ -1,21 +1,17 @@
1
- const r = /^D+$/, s = /^Y+$/, a = ["D", "DD", "YY", "YYYY"];
2
- function i(e) {
3
- return r.test(e);
4
- }
5
- function f(e) {
6
- return s.test(e);
7
- }
8
- function d(e, o, n) {
9
- const t = c(e, o, n);
10
- if (console.warn(t), a.includes(e)) throw new RangeError(t);
11
- }
12
- function c(e, o, n) {
13
- const t = e[0] === "Y" ? "years" : "days of the month";
14
- return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${o}\`) for formatting ${t} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1
+ function i(r, n) {
2
+ const o = {};
3
+ for (const t in r) {
4
+ const e = r[t];
5
+ if (n?.hasOwnProperty(t)) {
6
+ const s = n[t](e);
7
+ s != null && Object.assign(o, s);
8
+ continue;
9
+ }
10
+ e === !0 ? o[`data-${t.toLowerCase()}`] = "" : e && (o[`data-${t.toLowerCase()}`] = e.toString());
11
+ }
12
+ return o;
15
13
  }
16
14
  export {
17
- i as isProtectedDayOfYearToken,
18
- f as isProtectedWeekYearToken,
19
- d as warnOrThrowProtectedError
15
+ i as getStateAttributesProps
20
16
  };
21
17
  //# sourceMappingURL=index286.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index286.js","sources":["../../../node_modules/date-fns/_lib/protectedTokens.js"],"sourcesContent":["const dayOfYearTokenRE = /^D+$/;\nconst weekYearTokenRE = /^Y+$/;\n\nconst throwTokens = [\"D\", \"DD\", \"YY\", \"YYYY\"];\n\nexport function isProtectedDayOfYearToken(token) {\n return dayOfYearTokenRE.test(token);\n}\n\nexport function isProtectedWeekYearToken(token) {\n return weekYearTokenRE.test(token);\n}\n\nexport function warnOrThrowProtectedError(token, format, input) {\n const _message = message(token, format, input);\n console.warn(_message);\n if (throwTokens.includes(token)) throw new RangeError(_message);\n}\n\nfunction message(token, format, input) {\n const subject = token[0] === \"Y\" ? \"years\" : \"days of the month\";\n return `Use \\`${token.toLowerCase()}\\` instead of \\`${token}\\` (in \\`${format}\\`) for formatting ${subject} to the input \\`${input}\\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;\n}\n"],"names":["dayOfYearTokenRE","weekYearTokenRE","throwTokens","isProtectedDayOfYearToken","token","isProtectedWeekYearToken","warnOrThrowProtectedError","format","input","_message","message","subject"],"mappings":"AAAA,MAAMA,IAAmB,QACnBC,IAAkB,QAElBC,IAAc,CAAC,KAAK,MAAM,MAAM,MAAM;AAErC,SAASC,EAA0BC,GAAO;AAC/C,SAAOJ,EAAiB,KAAKI,CAAK;AACpC;AAEO,SAASC,EAAyBD,GAAO;AAC9C,SAAOH,EAAgB,KAAKG,CAAK;AACnC;AAEO,SAASE,EAA0BF,GAAOG,GAAQC,GAAO;AAC9D,QAAMC,IAAWC,EAAQN,GAAOG,GAAQC,CAAK;AAE7C,MADA,QAAQ,KAAKC,CAAQ,GACjBP,EAAY,SAASE,CAAK,EAAG,OAAM,IAAI,WAAWK,CAAQ;AAChE;AAEA,SAASC,EAAQN,GAAOG,GAAQC,GAAO;AACrC,QAAMG,IAAUP,EAAM,CAAC,MAAM,MAAM,UAAU;AAC7C,SAAO,SAASA,EAAM,YAAW,CAAE,mBAAmBA,CAAK,YAAYG,CAAM,sBAAsBI,CAAO,mBAAmBH,CAAK;AACpI;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index286.js","sources":["../../../node_modules/@base-ui/react/esm/internals/getStateAttributesProps.js"],"sourcesContent":["export function getStateAttributesProps(state, customMapping) {\n const props = {};\n\n /* eslint-disable-next-line guard-for-in */\n for (const key in state) {\n const value = state[key];\n if (customMapping?.hasOwnProperty(key)) {\n const customProps = customMapping[key](value);\n if (customProps != null) {\n Object.assign(props, customProps);\n }\n continue;\n }\n if (value === true) {\n props[`data-${key.toLowerCase()}`] = '';\n } else if (value) {\n props[`data-${key.toLowerCase()}`] = value.toString();\n }\n }\n return props;\n}"],"names":["getStateAttributesProps","state","customMapping","props","key","value","customProps"],"mappings":"AAAO,SAASA,EAAwBC,GAAOC,GAAe;AAC5D,QAAMC,IAAQ,CAAA;AAGd,aAAWC,KAAOH,GAAO;AACvB,UAAMI,IAAQJ,EAAMG,CAAG;AACvB,QAAIF,GAAe,eAAeE,CAAG,GAAG;AACtC,YAAME,IAAcJ,EAAcE,CAAG,EAAEC,CAAK;AAC5C,MAAIC,KAAe,QACjB,OAAO,OAAOH,GAAOG,CAAW;AAElC;AAAA,IACF;AACA,IAAID,MAAU,KACZF,EAAM,QAAQC,EAAI,YAAW,CAAE,EAAE,IAAI,KAC5BC,MACTF,EAAM,QAAQC,EAAI,YAAW,CAAE,EAAE,IAAIC,EAAM,SAAQ;AAAA,EAEvD;AACA,SAAOF;AACT;","x_google_ignoreList":[0]}
package/dist/index287.js CHANGED
@@ -1,9 +1,7 @@
1
- import { isDate as r } from "./index230.js";
2
- import { toDate as i } from "./index278.js";
3
- function e(o) {
4
- return !(!r(o) && typeof o != "number" || isNaN(+i(o)));
1
+ function t(n, o) {
2
+ return typeof n == "function" ? n(o) : n;
5
3
  }
6
4
  export {
7
- e as isValid
5
+ t as resolveClassName
8
6
  };
9
7
  //# sourceMappingURL=index287.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index287.js","sources":["../../../node_modules/date-fns/isValid.js"],"sourcesContent":["import { isDate } from \"./isDate.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @param date - The date to check\n *\n * @returns The date is valid\n *\n * @example\n * // For the valid date:\n * const result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertible into a date:\n * const result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * const result = isValid(new Date(''))\n * //=> false\n */\nexport function isValid(date) {\n return !((!isDate(date) && typeof date !== \"number\") || isNaN(+toDate(date)));\n}\n\n// Fallback for modularized imports:\nexport default isValid;\n"],"names":["isValid","date","isDate","toDate"],"mappings":";;AAkCO,SAASA,EAAQC,GAAM;AAC5B,SAAO,EAAG,CAACC,EAAOD,CAAI,KAAK,OAAOA,KAAS,YAAa,MAAM,CAACE,EAAOF,CAAI,CAAC;AAC7E;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index287.js","sources":["../../../node_modules/@base-ui/react/esm/utils/resolveClassName.js"],"sourcesContent":["/**\n * If the provided className is a string, it will be returned as is.\n * Otherwise, the function will call the className function with the state as the first argument.\n *\n * @param className\n * @param state\n */\nexport function resolveClassName(className, state) {\n return typeof className === 'function' ? className(state) : className;\n}"],"names":["resolveClassName","className","state"],"mappings":"AAOO,SAASA,EAAiBC,GAAWC,GAAO;AACjD,SAAO,OAAOD,KAAc,aAAaA,EAAUC,CAAK,IAAID;AAC9D;","x_google_ignoreList":[0]}
package/dist/index288.js CHANGED
@@ -1,11 +1,7 @@
1
- import { differenceInCalendarDays as a } from "./index215.js";
2
- import { startOfYear as e } from "./index242.js";
3
- import { toDate as o } from "./index278.js";
4
- function s(t, f) {
5
- const r = o(t, f?.in);
6
- return a(r, e(r)) + 1;
1
+ function e(n, o) {
2
+ return typeof n == "function" ? n(o) : n;
7
3
  }
8
4
  export {
9
- s as getDayOfYear
5
+ e as resolveStyle
10
6
  };
11
7
  //# sourceMappingURL=index288.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index288.js","sources":["../../../node_modules/date-fns/getDayOfYear.js"],"sourcesContent":["import { differenceInCalendarDays } from \"./differenceInCalendarDays.js\";\nimport { startOfYear } from \"./startOfYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDayOfYear} function options.\n */\n\n/**\n * @name getDayOfYear\n * @category Day Helpers\n * @summary Get the day of the year of the given date.\n *\n * @description\n * Get the day of the year of the given date.\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The day of year\n *\n * @example\n * // Which day of the year is 2 July 2014?\n * const result = getDayOfYear(new Date(2014, 6, 2))\n * //=> 183\n */\nexport function getDayOfYear(date, options) {\n const _date = toDate(date, options?.in);\n const diff = differenceInCalendarDays(_date, startOfYear(_date));\n const dayOfYear = diff + 1;\n return dayOfYear;\n}\n\n// Fallback for modularized imports:\nexport default getDayOfYear;\n"],"names":["getDayOfYear","date","options","_date","toDate","differenceInCalendarDays","startOfYear"],"mappings":";;;AA0BO,SAASA,EAAaC,GAAMC,GAAS;AAC1C,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE;AAGtC,SAFaG,EAAyBF,GAAOG,EAAYH,CAAK,CAAC,IACtC;AAE3B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index288.js","sources":["../../../node_modules/@base-ui/react/esm/utils/resolveStyle.js"],"sourcesContent":["/**\n * If the provided style is an object, it will be returned as is.\n * Otherwise, the function will call the style function with the state as the first argument.\n *\n * @param style\n * @param state\n */\nexport function resolveStyle(style, state) {\n return typeof style === 'function' ? style(state) : style;\n}"],"names":["resolveStyle","style","state"],"mappings":"AAOO,SAASA,EAAaC,GAAOC,GAAO;AACzC,SAAO,OAAOD,KAAU,aAAaA,EAAMC,CAAK,IAAID;AACtD;","x_google_ignoreList":[0]}
package/dist/index289.js CHANGED
@@ -1,10 +1,103 @@
1
- import { constructFrom as a } from "./index277.js";
2
- import { toDate as c } from "./index278.js";
3
- function l(e, n) {
4
- const t = c(e, n?.in), r = t.getFullYear(), s = t.getMonth(), o = a(t, 0);
5
- return o.setFullYear(r, s + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
1
+ import { mergeObjects as y } from "./index283.js";
2
+ const o = {};
3
+ function j(t, n, e, r, c) {
4
+ if (!e && !r && !c && !t)
5
+ return u(n);
6
+ let f = u(t);
7
+ return n && (f = i(f, n)), e && (f = i(f, e)), r && (f = i(f, r)), c && (f = i(f, c)), f;
8
+ }
9
+ function w(t) {
10
+ if (t.length === 0)
11
+ return o;
12
+ if (t.length === 1)
13
+ return u(t[0]);
14
+ let n = u(t[0]);
15
+ for (let e = 1; e < t.length; e += 1)
16
+ n = i(n, t[e]);
17
+ return n;
18
+ }
19
+ function u(t) {
20
+ return l(t) ? {
21
+ ...s(t, o)
22
+ } : m(t);
23
+ }
24
+ function i(t, n) {
25
+ return l(n) ? s(n, t) : U(t, n);
26
+ }
27
+ function m(t) {
28
+ const n = {
29
+ ...t
30
+ };
31
+ for (const e in n) {
32
+ const r = n[e];
33
+ a(e, r) && (n[e] = v(r));
34
+ }
35
+ return n;
36
+ }
37
+ function U(t, n) {
38
+ if (!n)
39
+ return t;
40
+ for (const e in n) {
41
+ const r = n[e];
42
+ switch (e) {
43
+ case "style": {
44
+ t[e] = y(t.style, r);
45
+ break;
46
+ }
47
+ case "className": {
48
+ t[e] = M(t.className, r);
49
+ break;
50
+ }
51
+ default:
52
+ a(e, r) ? t[e] = A(t[e], r) : t[e] = r;
53
+ }
54
+ }
55
+ return t;
56
+ }
57
+ function a(t, n) {
58
+ const e = t.charCodeAt(0), r = t.charCodeAt(1), c = t.charCodeAt(2);
59
+ return e === 111 && r === 110 && c >= 65 && c <= 90 && (typeof n == "function" || typeof n > "u");
60
+ }
61
+ function l(t) {
62
+ return typeof t == "function";
63
+ }
64
+ function s(t, n) {
65
+ return l(t) ? t(n) : t ?? o;
66
+ }
67
+ function A(t, n) {
68
+ return n ? t ? (...e) => {
69
+ const r = e[0];
70
+ if (I(r)) {
71
+ const f = r;
72
+ E(f);
73
+ const b = n(...e);
74
+ return f.baseUIHandlerPrevented || t?.(...e), b;
75
+ }
76
+ const c = n(...e);
77
+ return t?.(...e), c;
78
+ } : v(n) : t;
79
+ }
80
+ function v(t) {
81
+ return t && ((...n) => {
82
+ const e = n[0];
83
+ return I(e) && E(e), t(...n);
84
+ });
85
+ }
86
+ function E(t) {
87
+ return t.preventBaseUIHandler = () => {
88
+ t.baseUIHandlerPrevented = !0;
89
+ }, t;
90
+ }
91
+ function M(t, n) {
92
+ return n ? t ? n + " " + t : n : t;
93
+ }
94
+ function I(t) {
95
+ return t != null && typeof t == "object" && "nativeEvent" in t;
6
96
  }
7
97
  export {
8
- l as getDaysInMonth
98
+ E as makeEventPreventable,
99
+ M as mergeClassNames,
100
+ j as mergeProps,
101
+ w as mergePropsN
9
102
  };
10
103
  //# sourceMappingURL=index289.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index289.js","sources":["../../../node_modules/date-fns/getDaysInMonth.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDaysInMonth} function options.\n */\n\n/**\n * @name getDaysInMonth\n * @category Month Helpers\n * @summary Get the number of days in a month of the given date.\n *\n * @description\n * Get the number of days in a month of the given date, considering the context if provided.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The number of days in a month\n *\n * @example\n * // How many days are in February 2000?\n * const result = getDaysInMonth(new Date(2000, 1))\n * //=> 29\n */\nexport function getDaysInMonth(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n const monthIndex = _date.getMonth();\n const lastDayOfMonth = constructFrom(_date, 0);\n lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);\n lastDayOfMonth.setHours(0, 0, 0, 0);\n return lastDayOfMonth.getDate();\n}\n\n// Fallback for modularized imports:\nexport default getDaysInMonth;\n"],"names":["getDaysInMonth","date","options","_date","toDate","year","monthIndex","lastDayOfMonth","constructFrom"],"mappings":";;AAyBO,SAASA,EAAeC,GAAMC,GAAS;AAC5C,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAOF,EAAM,YAAW,GACxBG,IAAaH,EAAM,SAAQ,GAC3BI,IAAiBC,EAAcL,GAAO,CAAC;AAC7C,SAAAI,EAAe,YAAYF,GAAMC,IAAa,GAAG,CAAC,GAClDC,EAAe,SAAS,GAAG,GAAG,GAAG,CAAC,GAC3BA,EAAe,QAAO;AAC/B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index289.js","sources":["../../../node_modules/@base-ui/react/esm/merge-props/mergeProps.js"],"sourcesContent":["import { mergeObjects } from '@base-ui/utils/mergeObjects';\nconst EMPTY_PROPS = {};\n\n/* eslint-disable id-denylist */\n/**\n * Merges multiple sets of React props. It follows the Object.assign pattern where the rightmost object's fields overwrite\n * the conflicting ones from others. This doesn't apply to event handlers, `className` and `style` props.\n *\n * Event handlers are merged and called in right-to-left order (rightmost handler executes first, leftmost last).\n * For React synthetic events, the rightmost handler can prevent prior (left-positioned) handlers from executing\n * by calling `event.preventBaseUIHandler()`. For non-synthetic events (custom events with primitive/object values),\n * all handlers always execute without prevention capability.\n *\n * The `className` prop is merged by concatenating classes in right-to-left order (rightmost class appears first in the string).\n * The `style` prop is merged with rightmost styles overwriting the prior ones.\n *\n * Props can either be provided as objects or as functions that take the previous props as an argument.\n * The function will receive the merged props up to that point (going from left to right):\n * so in the case of `(obj1, obj2, fn, obj3)`, `fn` will receive the merged props of `obj1` and `obj2`.\n * The function is responsible for chaining event handlers if needed (that is, we don't run the merge logic).\n *\n * Event handlers returned by the functions are not automatically prevented when `preventBaseUIHandler` is called.\n * They must check `event.baseUIHandlerPrevented` themselves and bail out if it's true.\n *\n * @important **`ref` is not merged.**\n * @param a Props object to merge.\n * @param b Props object to merge. The function will overwrite conflicting props from `a`.\n * @param c Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @param d Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @param e Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @returns The merged props.\n * @public\n */\n\nexport function mergeProps(a, b, c, d, e) {\n if (!c && !d && !e && !a) {\n return createInitialMergedProps(b);\n }\n\n // We need to mutably own `merged`.\n let merged = createInitialMergedProps(a);\n if (b) {\n merged = mergeInto(merged, b);\n }\n if (c) {\n merged = mergeInto(merged, c);\n }\n if (d) {\n merged = mergeInto(merged, d);\n }\n if (e) {\n merged = mergeInto(merged, e);\n }\n return merged;\n}\n/* eslint-enable id-denylist */\n\n/**\n * Merges an arbitrary number of React props using the same logic as {@link mergeProps}.\n * This function accepts an array of props instead of individual arguments.\n *\n * This has slightly lower performance than {@link mergeProps} due to accepting an array\n * instead of a fixed number of arguments. Prefer {@link mergeProps} when merging 5 or\n * fewer prop sets for better performance.\n *\n * @param props Array of props to merge.\n * @returns The merged props.\n * @see mergeProps\n * @public\n */\nexport function mergePropsN(props) {\n if (props.length === 0) {\n return EMPTY_PROPS;\n }\n if (props.length === 1) {\n return createInitialMergedProps(props[0]);\n }\n\n // We need to mutably own `merged`.\n let merged = createInitialMergedProps(props[0]);\n for (let i = 1; i < props.length; i += 1) {\n merged = mergeInto(merged, props[i]);\n }\n return merged;\n}\nfunction createInitialMergedProps(inputProps) {\n if (isPropsGetter(inputProps)) {\n // Getter-returned handlers intentionally keep their existing semantics.\n return {\n ...resolvePropsGetter(inputProps, EMPTY_PROPS)\n };\n }\n return copyInitialProps(inputProps);\n}\nfunction mergeInto(merged, inputProps) {\n if (isPropsGetter(inputProps)) {\n return resolvePropsGetter(inputProps, merged);\n }\n return mutablyMergeInto(merged, inputProps);\n}\nfunction copyInitialProps(inputProps) {\n const copiedProps = {\n ...inputProps\n };\n\n // `copiedProps` is our fresh own-object copy, so iterating with `for...in` is safe here.\n // eslint-disable-next-line guard-for-in\n for (const propName in copiedProps) {\n const propValue = copiedProps[propName];\n if (isEventHandler(propName, propValue)) {\n copiedProps[propName] = wrapEventHandler(propValue);\n }\n }\n return copiedProps;\n}\n\n/**\n * Merges two sets of props. In case of conflicts, the external props take precedence.\n */\nfunction mutablyMergeInto(mergedProps, externalProps) {\n if (!externalProps) {\n return mergedProps;\n }\n\n // eslint-disable-next-line guard-for-in\n for (const propName in externalProps) {\n const externalPropValue = externalProps[propName];\n switch (propName) {\n case 'style':\n {\n mergedProps[propName] = mergeObjects(mergedProps.style, externalPropValue);\n break;\n }\n case 'className':\n {\n mergedProps[propName] = mergeClassNames(mergedProps.className, externalPropValue);\n break;\n }\n default:\n {\n if (isEventHandler(propName, externalPropValue)) {\n mergedProps[propName] = mergeEventHandlers(mergedProps[propName], externalPropValue);\n } else {\n mergedProps[propName] = externalPropValue;\n }\n }\n }\n }\n return mergedProps;\n}\nfunction isEventHandler(key, value) {\n // This approach is more efficient than using a regex.\n const code0 = key.charCodeAt(0);\n const code1 = key.charCodeAt(1);\n const code2 = key.charCodeAt(2);\n return code0 === 111 /* o */ && code1 === 110 /* n */ && code2 >= 65 /* A */ && code2 <= 90 /* Z */ && (typeof value === 'function' || typeof value === 'undefined');\n}\nfunction isPropsGetter(inputProps) {\n return typeof inputProps === 'function';\n}\nfunction resolvePropsGetter(inputProps, previousProps) {\n if (isPropsGetter(inputProps)) {\n return inputProps(previousProps);\n }\n return inputProps ?? EMPTY_PROPS;\n}\nfunction mergeEventHandlers(ourHandler, theirHandler) {\n if (!theirHandler) {\n return ourHandler;\n }\n if (!ourHandler) {\n return wrapEventHandler(theirHandler);\n }\n return (...args) => {\n const event = args[0];\n if (isSyntheticEvent(event)) {\n const baseUIEvent = event;\n makeEventPreventable(baseUIEvent);\n const result = theirHandler(...args);\n if (!baseUIEvent.baseUIHandlerPrevented) {\n ourHandler?.(...args);\n }\n return result;\n }\n const result = theirHandler(...args);\n ourHandler?.(...args);\n return result;\n };\n}\nfunction wrapEventHandler(handler) {\n if (!handler) {\n return handler;\n }\n return (...args) => {\n const event = args[0];\n if (isSyntheticEvent(event)) {\n makeEventPreventable(event);\n }\n return handler(...args);\n };\n}\nexport function makeEventPreventable(event) {\n event.preventBaseUIHandler = () => {\n event.baseUIHandlerPrevented = true;\n };\n return event;\n}\nexport function mergeClassNames(ourClassName, theirClassName) {\n if (theirClassName) {\n if (ourClassName) {\n // eslint-disable-next-line prefer-template\n return theirClassName + ' ' + ourClassName;\n }\n return theirClassName;\n }\n return ourClassName;\n}\nfunction isSyntheticEvent(event) {\n return event != null && typeof event === 'object' && 'nativeEvent' in event;\n}"],"names":["EMPTY_PROPS","mergeProps","a","b","c","d","e","createInitialMergedProps","merged","mergeInto","mergePropsN","props","i","inputProps","isPropsGetter","resolvePropsGetter","copyInitialProps","mutablyMergeInto","copiedProps","propName","propValue","isEventHandler","wrapEventHandler","mergedProps","externalProps","externalPropValue","mergeObjects","mergeClassNames","mergeEventHandlers","key","value","code0","code1","code2","previousProps","ourHandler","theirHandler","args","event","isSyntheticEvent","baseUIEvent","makeEventPreventable","result","handler","ourClassName","theirClassName"],"mappings":";AACA,MAAMA,IAAc,CAAA;AAiCb,SAASC,EAAWC,GAAGC,GAAGC,GAAGC,GAAGC,GAAG;AACxC,MAAI,CAACF,KAAK,CAACC,KAAK,CAACC,KAAK,CAACJ;AACrB,WAAOK,EAAyBJ,CAAC;AAInC,MAAIK,IAASD,EAAyBL,CAAC;AACvC,SAAIC,MACFK,IAASC,EAAUD,GAAQL,CAAC,IAE1BC,MACFI,IAASC,EAAUD,GAAQJ,CAAC,IAE1BC,MACFG,IAASC,EAAUD,GAAQH,CAAC,IAE1BC,MACFE,IAASC,EAAUD,GAAQF,CAAC,IAEvBE;AACT;AAgBO,SAASE,EAAYC,GAAO;AACjC,MAAIA,EAAM,WAAW;AACnB,WAAOX;AAET,MAAIW,EAAM,WAAW;AACnB,WAAOJ,EAAyBI,EAAM,CAAC,CAAC;AAI1C,MAAIH,IAASD,EAAyBI,EAAM,CAAC,CAAC;AAC9C,WAASC,IAAI,GAAGA,IAAID,EAAM,QAAQC,KAAK;AACrC,IAAAJ,IAASC,EAAUD,GAAQG,EAAMC,CAAC,CAAC;AAErC,SAAOJ;AACT;AACA,SAASD,EAAyBM,GAAY;AAC5C,SAAIC,EAAcD,CAAU,IAEnB;AAAA,IACL,GAAGE,EAAmBF,GAAYb,CAAW;AAAA,EACnD,IAESgB,EAAiBH,CAAU;AACpC;AACA,SAASJ,EAAUD,GAAQK,GAAY;AACrC,SAAIC,EAAcD,CAAU,IACnBE,EAAmBF,GAAYL,CAAM,IAEvCS,EAAiBT,GAAQK,CAAU;AAC5C;AACA,SAASG,EAAiBH,GAAY;AACpC,QAAMK,IAAc;AAAA,IAClB,GAAGL;AAAA,EACP;AAIE,aAAWM,KAAYD,GAAa;AAClC,UAAME,IAAYF,EAAYC,CAAQ;AACtC,IAAIE,EAAeF,GAAUC,CAAS,MACpCF,EAAYC,CAAQ,IAAIG,EAAiBF,CAAS;AAAA,EAEtD;AACA,SAAOF;AACT;AAKA,SAASD,EAAiBM,GAAaC,GAAe;AACpD,MAAI,CAACA;AACH,WAAOD;AAIT,aAAWJ,KAAYK,GAAe;AACpC,UAAMC,IAAoBD,EAAcL,CAAQ;AAChD,YAAQA,GAAQ;AAAA,MACd,KAAK,SACH;AACE,QAAAI,EAAYJ,CAAQ,IAAIO,EAAaH,EAAY,OAAOE,CAAiB;AACzE;AAAA,MACF;AAAA,MACF,KAAK,aACH;AACE,QAAAF,EAAYJ,CAAQ,IAAIQ,EAAgBJ,EAAY,WAAWE,CAAiB;AAChF;AAAA,MACF;AAAA,MACF;AAEI,QAAIJ,EAAeF,GAAUM,CAAiB,IAC5CF,EAAYJ,CAAQ,IAAIS,EAAmBL,EAAYJ,CAAQ,GAAGM,CAAiB,IAEnFF,EAAYJ,CAAQ,IAAIM;AAAA,IAGpC;AAAA,EACE;AACA,SAAOF;AACT;AACA,SAASF,EAAeQ,GAAKC,GAAO;AAElC,QAAMC,IAAQF,EAAI,WAAW,CAAC,GACxBG,IAAQH,EAAI,WAAW,CAAC,GACxBI,IAAQJ,EAAI,WAAW,CAAC;AAC9B,SAAOE,MAAU,OAAeC,MAAU,OAAeC,KAAS,MAAcA,KAAS,OAAe,OAAOH,KAAU,cAAc,OAAOA,IAAU;AAC1J;AACA,SAAShB,EAAcD,GAAY;AACjC,SAAO,OAAOA,KAAe;AAC/B;AACA,SAASE,EAAmBF,GAAYqB,GAAe;AACrD,SAAIpB,EAAcD,CAAU,IACnBA,EAAWqB,CAAa,IAE1BrB,KAAcb;AACvB;AACA,SAAS4B,EAAmBO,GAAYC,GAAc;AACpD,SAAKA,IAGAD,IAGE,IAAIE,MAAS;AAClB,UAAMC,IAAQD,EAAK,CAAC;AACpB,QAAIE,EAAiBD,CAAK,GAAG;AAC3B,YAAME,IAAcF;AACpB,MAAAG,EAAqBD,CAAW;AAChC,YAAME,IAASN,EAAa,GAAGC,CAAI;AACnC,aAAKG,EAAY,0BACfL,IAAa,GAAGE,CAAI,GAEfK;AAAA,IACT;AACA,UAAMA,IAASN,EAAa,GAAGC,CAAI;AACnC,WAAAF,IAAa,GAAGE,CAAI,GACbK;AAAA,EACT,IAhBSpB,EAAiBc,CAAY,IAH7BD;AAoBX;AACA,SAASb,EAAiBqB,GAAS;AACjC,SAAKA,MAGE,IAAIN,MAAS;AAClB,UAAMC,IAAQD,EAAK,CAAC;AACpB,WAAIE,EAAiBD,CAAK,KACxBG,EAAqBH,CAAK,GAErBK,EAAQ,GAAGN,CAAI;AAAA,EACxB;AACF;AACO,SAASI,EAAqBH,GAAO;AAC1C,SAAAA,EAAM,uBAAuB,MAAM;AACjC,IAAAA,EAAM,yBAAyB;AAAA,EACjC,GACOA;AACT;AACO,SAASX,EAAgBiB,GAAcC,GAAgB;AAC5D,SAAIA,IACED,IAEKC,IAAiB,MAAMD,IAEzBC,IAEFD;AACT;AACA,SAASL,EAAiBD,GAAO;AAC/B,SAAOA,KAAS,QAAQ,OAAOA,KAAU,YAAY,iBAAiBA;AACxE;","x_google_ignoreList":[0]}
package/dist/index290.js CHANGED
@@ -1,11 +1,21 @@
1
- import { constructFrom as f } from "./index277.js";
2
- import { getISOWeekYear as s } from "./index291.js";
3
- import { startOfISOWeek as a } from "./index239.js";
4
- function O(t, e) {
5
- const o = s(t, e), r = f(t, 0);
6
- return r.setFullYear(o, 0, 4), r.setHours(0, 0, 0, 0), a(r);
1
+ import * as n from "react";
2
+ import { SafeReact as f } from "./index296.js";
3
+ let o = 0;
4
+ function l(u, t = "mui") {
5
+ const [e, s] = n.useState(u), c = u || e;
6
+ return n.useEffect(() => {
7
+ e == null && (o += 1, s(`${t}-${o}`));
8
+ }, [e, t]), c;
9
+ }
10
+ const a = f.useId;
11
+ function I(u, t) {
12
+ if (a !== void 0) {
13
+ const e = a();
14
+ return u ?? (t ? `${t}-${e}` : e);
15
+ }
16
+ return l(u, t);
7
17
  }
8
18
  export {
9
- O as startOfISOWeekYear
19
+ I as useId
10
20
  };
11
21
  //# sourceMappingURL=index290.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index290.js","sources":["../../../node_modules/date-fns/startOfISOWeekYear.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { getISOWeekYear } from \"./getISOWeekYear.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\n\n/**\n * The {@link startOfISOWeekYear} function options.\n */\n\n/**\n * @name startOfISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Return the start of an ISO week-numbering year for the given date.\n *\n * @description\n * Return the start of an ISO week-numbering year,\n * which always starts 3 days before the year's first Thursday.\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-numbering year\n *\n * @example\n * // The start of an ISO week-numbering year for 2 July 2005:\n * const result = startOfISOWeekYear(new Date(2005, 6, 2))\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfISOWeekYear(date, options) {\n const year = getISOWeekYear(date, options);\n const fourthOfJanuary = constructFrom(options?.in || date, 0);\n fourthOfJanuary.setFullYear(year, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n return startOfISOWeek(fourthOfJanuary);\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeekYear;\n"],"names":["startOfISOWeekYear","date","options","year","getISOWeekYear","fourthOfJanuary","constructFrom","startOfISOWeek"],"mappings":";;;AAiCO,SAASA,EAAmBC,GAAMC,GAAS;AAChD,QAAMC,IAAOC,EAAeH,GAAMC,CAAO,GACnCG,IAAkBC,EAA6BL,GAAM,CAAC;AAC5D,SAAAI,EAAgB,YAAYF,GAAM,GAAG,CAAC,GACtCE,EAAgB,SAAS,GAAG,GAAG,GAAG,CAAC,GAC5BE,EAAeF,CAAe;AACvC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index290.js","sources":["../../../node_modules/@base-ui/utils/esm/useId.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { SafeReact } from \"./safeReact.js\";\nlet globalId = 0;\n\n// TODO React 17: Remove `useGlobalId` once React 17 support is removed\nfunction useGlobalId(idOverride, prefix = 'mui') {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`${prefix}-${globalId}`);\n }\n }, [defaultId, prefix]);\n return id;\n}\nconst maybeReactUseId = SafeReact.useId;\n\n/**\n *\n * @example <div id={useId()} />\n * @param idOverride\n * @returns {string}\n */\nexport function useId(idOverride, prefix) {\n // React.useId() is only available from React 17.0.0.\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride ?? (prefix ? `${prefix}-${reactId}` : reactId);\n }\n\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride, prefix);\n}"],"names":["globalId","useGlobalId","idOverride","prefix","defaultId","setDefaultId","React","id","maybeReactUseId","SafeReact","useId","reactId"],"mappings":";;AAIA,IAAIA,IAAW;AAGf,SAASC,EAAYC,GAAYC,IAAS,OAAO;AAC/C,QAAM,CAACC,GAAWC,CAAY,IAAIC,EAAM,SAASJ,CAAU,GACrDK,IAAKL,KAAcE;AACzB,SAAAE,EAAM,UAAU,MAAM;AACpB,IAAIF,KAAa,SAKfJ,KAAY,GACZK,EAAa,GAAGF,CAAM,IAAIH,CAAQ,EAAE;AAAA,EAExC,GAAG,CAACI,GAAWD,CAAM,CAAC,GACfI;AACT;AACA,MAAMC,IAAkBC,EAAU;AAQ3B,SAASC,EAAMR,GAAYC,GAAQ;AAExC,MAAIK,MAAoB,QAAW;AACjC,UAAMG,IAAUH,EAAe;AAC/B,WAAON,MAAeC,IAAS,GAAGA,CAAM,IAAIQ,CAAO,KAAKA;AAAA,EAC1D;AAIA,SAAOV,EAAYC,GAAYC,CAAM;AACvC;","x_google_ignoreList":[0]}
package/dist/index291.js CHANGED
@@ -1,15 +1,9 @@
1
- import { constructFrom as s } from "./index277.js";
2
- import { startOfISOWeek as a } from "./index239.js";
3
- import { toDate as m } from "./index278.js";
4
- function Y(f, n) {
5
- const e = m(f, n?.in), t = e.getFullYear(), r = s(e, 0);
6
- r.setFullYear(t + 1, 0, 4), r.setHours(0, 0, 0, 0);
7
- const u = a(r), o = s(e, 0);
8
- o.setFullYear(t, 0, 4), o.setHours(0, 0, 0, 0);
9
- const i = a(o);
10
- return e.getTime() >= u.getTime() ? t + 1 : e.getTime() >= i.getTime() ? t : t - 1;
1
+ import * as t from "react";
2
+ const e = parseInt(t.version, 10);
3
+ function o(r) {
4
+ return e >= r;
11
5
  }
12
6
  export {
13
- Y as getISOWeekYear
7
+ o as isReactVersionAtLeast
14
8
  };
15
9
  //# sourceMappingURL=index291.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index291.js","sources":["../../../node_modules/date-fns/getISOWeekYear.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeekYear} function options.\n */\n\n/**\n * @name getISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the ISO week-numbering year of the given date.\n *\n * @description\n * Get the ISO week-numbering year of the given date,\n * which always starts 3 days before the year's first Thursday.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n *\n * @returns The ISO week-numbering year\n *\n * @example\n * // Which ISO-week numbering year is 2 January 2005?\n * const result = getISOWeekYear(new Date(2005, 0, 2))\n * //=> 2004\n */\nexport function getISOWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);\n\n const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);\n\n if (_date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (_date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getISOWeekYear;\n"],"names":["getISOWeekYear","date","options","_date","toDate","year","fourthOfJanuaryOfNextYear","constructFrom","startOfNextYear","startOfISOWeek","fourthOfJanuaryOfThisYear","startOfThisYear"],"mappings":";;;AA4BO,SAASA,EAAeC,GAAMC,GAAS;AAC5C,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAOF,EAAM,YAAW,GAExBG,IAA4BC,EAAcJ,GAAO,CAAC;AACxD,EAAAG,EAA0B,YAAYD,IAAO,GAAG,GAAG,CAAC,GACpDC,EAA0B,SAAS,GAAG,GAAG,GAAG,CAAC;AAC7C,QAAME,IAAkBC,EAAeH,CAAyB,GAE1DI,IAA4BH,EAAcJ,GAAO,CAAC;AACxD,EAAAO,EAA0B,YAAYL,GAAM,GAAG,CAAC,GAChDK,EAA0B,SAAS,GAAG,GAAG,GAAG,CAAC;AAC7C,QAAMC,IAAkBF,EAAeC,CAAyB;AAEhE,SAAIP,EAAM,QAAO,KAAMK,EAAgB,QAAO,IACrCH,IAAO,IACLF,EAAM,QAAO,KAAMQ,EAAgB,QAAO,IAC5CN,IAEAA,IAAO;AAElB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index291.js","sources":["../../../node_modules/@base-ui/utils/esm/reactVersion.js"],"sourcesContent":["import * as React from 'react';\nconst majorVersion = parseInt(React.version, 10);\nexport function isReactVersionAtLeast(reactVersionToCheck) {\n return majorVersion >= reactVersionToCheck;\n}"],"names":["majorVersion","React","isReactVersionAtLeast","reactVersionToCheck"],"mappings":";AACA,MAAMA,IAAe,SAASC,EAAM,SAAS,EAAE;AACxC,SAASC,EAAsBC,GAAqB;AACzD,SAAOH,KAAgBG;AACzB;","x_google_ignoreList":[0]}
package/dist/index292.js CHANGED
@@ -1,12 +1,33 @@
1
- import { getDefaultOptions as n } from "./index283.js";
2
- import { constructFrom as i } from "./index277.js";
3
- import { getWeekYear as f } from "./index293.js";
4
- import { startOfWeek as c } from "./index241.js";
5
- function D(r, t) {
6
- const o = n(), s = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, a = f(r, t), e = i(t?.in || r, 0);
7
- return e.setFullYear(a, 0, s), e.setHours(0, 0, 0, 0), c(e, t);
1
+ import * as a from "react";
2
+ import { useRefWithInit as c } from "./index306.js";
3
+ const n = a[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], r = (
4
+ // React 17 doesn't have useInsertionEffect.
5
+ n && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late.
6
+ n !== a.useLayoutEffect ? n : (e) => e()
7
+ );
8
+ function f(e) {
9
+ const t = c(o).current;
10
+ return t.next = e, r(t.effect), t.trampoline;
11
+ }
12
+ function o() {
13
+ const e = {
14
+ next: void 0,
15
+ callback: l,
16
+ trampoline: (...t) => e.callback?.(...t),
17
+ effect: () => {
18
+ e.callback = e.next;
19
+ }
20
+ };
21
+ return e;
22
+ }
23
+ function l() {
24
+ if (process.env.NODE_ENV !== "production")
25
+ throw (
26
+ /* minify-error-disabled */
27
+ new Error("Base UI: Cannot call an event handler while rendering.")
28
+ );
8
29
  }
9
30
  export {
10
- D as startOfWeekYear
31
+ f as useStableCallback
11
32
  };
12
33
  //# sourceMappingURL=index292.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index292.js","sources":["../../../node_modules/date-fns/startOfWeekYear.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { getWeekYear } from \"./getWeekYear.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link startOfWeekYear} function options.\n */\n\n/**\n * @name startOfWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Return the start of a local week-numbering year for the given date.\n *\n * @description\n * Return the start of a local week-numbering year.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @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.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week-numbering year\n *\n * @example\n * // The start of an a week-numbering year for 2 July 2005 with default settings:\n * const result = startOfWeekYear(new Date(2005, 6, 2))\n * //=> Sun Dec 26 2004 00:00:00\n *\n * @example\n * // The start of a week-numbering year for 2 July 2005\n * // if Monday is the first day of week\n * // and 4 January is always in the first week of the year:\n * const result = startOfWeekYear(new Date(2005, 6, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfWeekYear(date, options) {\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const year = getWeekYear(date, options);\n const firstWeek = constructFrom(options?.in || date, 0);\n firstWeek.setFullYear(year, 0, firstWeekContainsDate);\n firstWeek.setHours(0, 0, 0, 0);\n const _date = startOfWeek(firstWeek, options);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeekYear;\n"],"names":["startOfWeekYear","date","options","defaultOptions","getDefaultOptions","firstWeekContainsDate","year","getWeekYear","firstWeek","constructFrom","startOfWeek"],"mappings":";;;;AA8CO,SAASA,EAAgBC,GAAMC,GAAS;AAC7C,QAAMC,IAAiBC,EAAiB,GAClCC,IACJH,GAAS,yBACTA,GAAS,QAAQ,SAAS,yBAC1BC,EAAe,yBACfA,EAAe,QAAQ,SAAS,yBAChC,GAEIG,IAAOC,EAAYN,GAAMC,CAAO,GAChCM,IAAYC,EAAcP,GAAS,MAAMD,GAAM,CAAC;AACtD,SAAAO,EAAU,YAAYF,GAAM,GAAGD,CAAqB,GACpDG,EAAU,SAAS,GAAG,GAAG,GAAG,CAAC,GACfE,EAAYF,GAAWN,CAAO;AAE9C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index292.js","sources":["../../../node_modules/@base-ui/utils/esm/useStableCallback.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useRefWithInit } from \"./useRefWithInit.js\";\n\n// https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379\nconst useInsertionEffect = React[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)];\nconst useSafeInsertionEffect =\n// React 17 doesn't have useInsertionEffect.\nuseInsertionEffect &&\n// Preact replaces useInsertionEffect with useLayoutEffect and fires too late.\nuseInsertionEffect !== React.useLayoutEffect ? useInsertionEffect : fn => fn();\n/**\n * Stabilizes the function passed so it's always the same between renders.\n *\n * The function becomes non-reactive to any values it captures.\n * It can safely be passed as a dependency of `React.useMemo` and `React.useEffect` without re-triggering them if its captured values change.\n *\n * The function must only be called inside effects and event handlers, never during render (which throws an error).\n *\n * This hook is a more permissive version of React 19.2's `React.useEffectEvent` in that it can be passed through contexts and called in event handler props, not just effects.\n */\nexport function useStableCallback(callback) {\n const stable = useRefWithInit(createStableCallback).current;\n stable.next = callback;\n useSafeInsertionEffect(stable.effect);\n return stable.trampoline;\n}\nfunction createStableCallback() {\n const stable = {\n next: undefined,\n callback: assertNotCalled,\n trampoline: (...args) => stable.callback?.(...args),\n effect: () => {\n stable.callback = stable.next;\n }\n };\n return stable;\n}\nfunction assertNotCalled() {\n if (process.env.NODE_ENV !== 'production') {\n throw /* minify-error-disabled */new Error('Base UI: Cannot call an event handler while rendering.');\n }\n}"],"names":["useInsertionEffect","React","useSafeInsertionEffect","fn","useStableCallback","callback","stable","useRefWithInit","createStableCallback","assertNotCalled","args"],"mappings":";;AAMA,MAAMA,IAAqBC,EAAM,qBAAqB,KAAK,OAAM,EAAG,QAAQ,CAAC,CAAC,GAAG,MAAM,GAAG,EAAE,CAAC,GACvFC;AAAA;AAAA,EAENF;AAAA,EAEAA,MAAuBC,EAAM,kBAAkBD,IAAqB,CAAAG,MAAMA,EAAE;AAAA;AAWrE,SAASC,EAAkBC,GAAU;AAC1C,QAAMC,IAASC,EAAeC,CAAoB,EAAE;AACpD,SAAAF,EAAO,OAAOD,GACdH,EAAuBI,EAAO,MAAM,GAC7BA,EAAO;AAChB;AACA,SAASE,IAAuB;AAC9B,QAAMF,IAAS;AAAA,IACb,MAAM;AAAA,IACN,UAAUG;AAAA,IACV,YAAY,IAAIC,MAASJ,EAAO,WAAW,GAAGI,CAAI;AAAA,IAClD,QAAQ,MAAM;AACZ,MAAAJ,EAAO,WAAWA,EAAO;AAAA,IAC3B;AAAA,EACJ;AACE,SAAOA;AACT;AACA,SAASG,IAAkB;AACzB,MAAI,QAAQ,IAAI,aAAa;AAC3B;AAAA;AAAA,MAAiC,IAAI,MAAM,wDAAwD;AAAA;AAEvG;","x_google_ignoreList":[0]}
package/dist/index293.js CHANGED
@@ -1,16 +1,55 @@
1
- import { getDefaultOptions as k } from "./index283.js";
2
- import { constructFrom as f } from "./index277.js";
3
- import { startOfWeek as l } from "./index241.js";
4
- import { toDate as m } from "./index278.js";
5
- function C(r, e) {
6
- const s = m(r, e?.in), t = s.getFullYear(), o = k(), i = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, a = f(e?.in || r, 0);
7
- a.setFullYear(t + 1, 0, i), a.setHours(0, 0, 0, 0);
8
- const c = l(a, e), n = f(e?.in || r, 0);
9
- n.setFullYear(t, 0, i), n.setHours(0, 0, 0, 0);
10
- const u = l(n, e);
11
- return +s >= +c ? t + 1 : +s >= +u ? t : t - 1;
1
+ import * as l from "react-dom";
2
+ import { useAnimationFrame as b } from "./index348.js";
3
+ import { useStableCallback as A } from "./index292.js";
4
+ import { resolveRef as d } from "./index373.js";
5
+ import { TransitionStatusDataAttributes as h } from "./index174.js";
6
+ function y(c, f = !1, m = !0) {
7
+ const o = b();
8
+ return A((s, n = null) => {
9
+ o.cancel();
10
+ const a = d(c);
11
+ if (a == null)
12
+ return;
13
+ const e = a, u = () => {
14
+ l.flushSync(s);
15
+ };
16
+ if (typeof e.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED) {
17
+ s();
18
+ return;
19
+ }
20
+ function i() {
21
+ Promise.all(e.getAnimations().map((t) => t.finished)).then(() => {
22
+ n?.aborted || u();
23
+ }).catch(() => {
24
+ if (m) {
25
+ n?.aborted || u();
26
+ return;
27
+ }
28
+ const t = e.getAnimations();
29
+ !n?.aborted && t.length > 0 && t.some((r) => r.pending || r.playState !== "finished") && i();
30
+ });
31
+ }
32
+ if (f) {
33
+ const t = h.startingStyle;
34
+ if (!e.hasAttribute(t)) {
35
+ o.request(i);
36
+ return;
37
+ }
38
+ const r = new MutationObserver(() => {
39
+ e.hasAttribute(t) || (r.disconnect(), i());
40
+ });
41
+ r.observe(e, {
42
+ attributes: !0,
43
+ attributeFilter: [t]
44
+ }), n?.addEventListener("abort", () => r.disconnect(), {
45
+ once: !0
46
+ });
47
+ return;
48
+ }
49
+ o.request(i);
50
+ });
12
51
  }
13
52
  export {
14
- C as getWeekYear
53
+ y as useAnimationsFinished
15
54
  };
16
55
  //# sourceMappingURL=index293.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index293.js","sources":["../../../node_modules/date-fns/getWeekYear.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeekYear} function options.\n */\n\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The local week-numbering year\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nexport function getWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const firstWeekOfNextYear = constructFrom(options?.in || date, 0);\n firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);\n\n const firstWeekOfThisYear = constructFrom(options?.in || date, 0);\n firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);\n\n if (+_date >= +startOfNextYear) {\n return year + 1;\n } else if (+_date >= +startOfThisYear) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getWeekYear;\n"],"names":["getWeekYear","date","options","_date","toDate","year","defaultOptions","getDefaultOptions","firstWeekContainsDate","firstWeekOfNextYear","constructFrom","startOfNextYear","startOfWeek","firstWeekOfThisYear","startOfThisYear"],"mappings":";;;;AA2CO,SAASA,EAAYC,GAAMC,GAAS;AACzC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAOF,EAAM,YAAW,GAExBG,IAAiBC,EAAiB,GAClCC,IACJN,GAAS,yBACTA,GAAS,QAAQ,SAAS,yBAC1BI,EAAe,yBACfA,EAAe,QAAQ,SAAS,yBAChC,GAEIG,IAAsBC,EAAcR,GAAS,MAAMD,GAAM,CAAC;AAChE,EAAAQ,EAAoB,YAAYJ,IAAO,GAAG,GAAGG,CAAqB,GAClEC,EAAoB,SAAS,GAAG,GAAG,GAAG,CAAC;AACvC,QAAME,IAAkBC,EAAYH,GAAqBP,CAAO,GAE1DW,IAAsBH,EAAcR,GAAS,MAAMD,GAAM,CAAC;AAChE,EAAAY,EAAoB,YAAYR,GAAM,GAAGG,CAAqB,GAC9DK,EAAoB,SAAS,GAAG,GAAG,GAAG,CAAC;AACvC,QAAMC,IAAkBF,EAAYC,GAAqBX,CAAO;AAEhE,SAAI,CAACC,KAAS,CAACQ,IACNN,IAAO,IACL,CAACF,KAAS,CAACW,IACbT,IAEAA,IAAO;AAElB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index293.js","sources":["../../../node_modules/@base-ui/react/esm/internals/useAnimationsFinished.js"],"sourcesContent":["'use client';\n\nimport * as ReactDOM from 'react-dom';\nimport { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { resolveRef } from \"../utils/resolveRef.js\";\nimport { TransitionStatusDataAttributes } from \"./stateAttributesMapping.js\";\n\n/**\n * Executes a function once all animations have finished on the provided element.\n * @param elementOrRef - The element to watch for animations.\n * @param waitForStartingStyleRemoved - Whether to wait for [data-starting-style] to be removed before checking for animations.\n * @param treatAbortedAsFinished - Whether to treat aborted animations as finished. If `false`, and there are aborted animations,\n * the function will check again if any new animations have started and wait for them to finish.\n * @returns A function that takes a callback to execute once all animations have finished, and an optional AbortSignal to abort the callback\n */\nexport function useAnimationsFinished(elementOrRef, waitForStartingStyleRemoved = false, treatAbortedAsFinished = true) {\n const frame = useAnimationFrame();\n return useStableCallback((fnToExecute,\n /**\n * An optional [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) that\n * can be used to abort `fnToExecute` before all the animations have finished.\n * @default null\n */\n signal = null) => {\n frame.cancel();\n const element = resolveRef(elementOrRef);\n if (element == null) {\n return;\n }\n const resolvedElement = element;\n const done = () => {\n // Synchronously flush the unmounting of the component so that the browser doesn't\n // paint: https://github.com/mui/base-ui/issues/979\n ReactDOM.flushSync(fnToExecute);\n };\n if (typeof resolvedElement.getAnimations !== 'function' || globalThis.BASE_UI_ANIMATIONS_DISABLED) {\n fnToExecute();\n return;\n }\n function exec() {\n Promise.all(resolvedElement.getAnimations().map(animation => animation.finished)).then(() => {\n if (!signal?.aborted) {\n done();\n }\n }).catch(() => {\n if (treatAbortedAsFinished) {\n if (!signal?.aborted) {\n done();\n }\n return;\n }\n const currentAnimations = resolvedElement.getAnimations();\n if (!signal?.aborted && currentAnimations.length > 0 && currentAnimations.some(animation => animation.pending || animation.playState !== 'finished')) {\n // Sometimes animations can be aborted because a property they depend on changes while the animation plays.\n // In such cases, we need to re-check if any new animations have started.\n exec();\n }\n });\n }\n if (waitForStartingStyleRemoved) {\n const startingStyleAttribute = TransitionStatusDataAttributes.startingStyle;\n\n // If `[data-starting-style]` isn't present, fall back to waiting one more frame\n // to give \"open\" animations a chance to be registered.\n if (!resolvedElement.hasAttribute(startingStyleAttribute)) {\n frame.request(exec);\n return;\n }\n\n // Wait for `[data-starting-style]` to have been removed.\n const attributeObserver = new MutationObserver(() => {\n if (!resolvedElement.hasAttribute(startingStyleAttribute)) {\n attributeObserver.disconnect();\n exec();\n }\n });\n attributeObserver.observe(resolvedElement, {\n attributes: true,\n attributeFilter: [startingStyleAttribute]\n });\n signal?.addEventListener('abort', () => attributeObserver.disconnect(), {\n once: true\n });\n return;\n }\n frame.request(exec);\n });\n}"],"names":["useAnimationsFinished","elementOrRef","waitForStartingStyleRemoved","treatAbortedAsFinished","frame","useAnimationFrame","useStableCallback","fnToExecute","signal","element","resolveRef","resolvedElement","done","ReactDOM","exec","animation","currentAnimations","startingStyleAttribute","TransitionStatusDataAttributes","attributeObserver"],"mappings":";;;;;AAgBO,SAASA,EAAsBC,GAAcC,IAA8B,IAAOC,IAAyB,IAAM;AACtH,QAAMC,IAAQC,EAAiB;AAC/B,SAAOC,EAAkB,CAACC,GAM1BC,IAAS,SAAS;AAChB,IAAAJ,EAAM,OAAM;AACZ,UAAMK,IAAUC,EAAWT,CAAY;AACvC,QAAIQ,KAAW;AACb;AAEF,UAAME,IAAkBF,GAClBG,IAAO,MAAM;AAGjB,MAAAC,EAAS,UAAUN,CAAW;AAAA,IAChC;AACA,QAAI,OAAOI,EAAgB,iBAAkB,cAAc,WAAW,6BAA6B;AACjG,MAAAJ,EAAW;AACX;AAAA,IACF;AACA,aAASO,IAAO;AACd,cAAQ,IAAIH,EAAgB,gBAAgB,IAAI,CAAAI,MAAaA,EAAU,QAAQ,CAAC,EAAE,KAAK,MAAM;AAC3F,QAAKP,GAAQ,WACXI,EAAI;AAAA,MAER,CAAC,EAAE,MAAM,MAAM;AACb,YAAIT,GAAwB;AAC1B,UAAKK,GAAQ,WACXI,EAAI;AAEN;AAAA,QACF;AACA,cAAMI,IAAoBL,EAAgB,cAAa;AACvD,QAAI,CAACH,GAAQ,WAAWQ,EAAkB,SAAS,KAAKA,EAAkB,KAAK,CAAAD,MAAaA,EAAU,WAAWA,EAAU,cAAc,UAAU,KAGjJD,EAAI;AAAA,MAER,CAAC;AAAA,IACH;AACA,QAAIZ,GAA6B;AAC/B,YAAMe,IAAyBC,EAA+B;AAI9D,UAAI,CAACP,EAAgB,aAAaM,CAAsB,GAAG;AACzD,QAAAb,EAAM,QAAQU,CAAI;AAClB;AAAA,MACF;AAGA,YAAMK,IAAoB,IAAI,iBAAiB,MAAM;AACnD,QAAKR,EAAgB,aAAaM,CAAsB,MACtDE,EAAkB,WAAU,GAC5BL,EAAI;AAAA,MAER,CAAC;AACD,MAAAK,EAAkB,QAAQR,GAAiB;AAAA,QACzC,YAAY;AAAA,QACZ,iBAAiB,CAACM,CAAsB;AAAA,MAChD,CAAO,GACDT,GAAQ,iBAAiB,SAAS,MAAMW,EAAkB,WAAU,GAAI;AAAA,QACtE,MAAM;AAAA,MACd,CAAO;AACD;AAAA,IACF;AACA,IAAAf,EAAM,QAAQU,CAAI;AAAA,EACpB,CAAC;AACH;","x_google_ignoreList":[0]}