@rpcbase/ui 0.253.0 → 0.255.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (556) hide show
  1. package/dist/components/Notifications/types.d.ts +1 -0
  2. package/dist/components/Notifications/types.d.ts.map +1 -1
  3. package/dist/index105.js +36 -36
  4. package/dist/index117.js +6 -6
  5. package/dist/index120.js +10 -10
  6. package/dist/index122.js +2 -2
  7. package/dist/index123.js +3 -3
  8. package/dist/index124.js +1 -1
  9. package/dist/index126.js +2 -2
  10. package/dist/index128.js +2 -2
  11. package/dist/index167.js +3 -3
  12. package/dist/index171.js +58 -14
  13. package/dist/index171.js.map +1 -1
  14. package/dist/index172.js +8 -68
  15. package/dist/index172.js.map +1 -1
  16. package/dist/index173.js +87 -37
  17. package/dist/index173.js.map +1 -1
  18. package/dist/index174.js +19 -13
  19. package/dist/index174.js.map +1 -1
  20. package/dist/index175.js +16 -23
  21. package/dist/index175.js.map +1 -1
  22. package/dist/index176.js +5 -111
  23. package/dist/index176.js.map +1 -1
  24. package/dist/index177.js +6 -13
  25. package/dist/index177.js.map +1 -1
  26. package/dist/index178.js +6 -4
  27. package/dist/index178.js.map +1 -1
  28. package/dist/index179.js +5 -4
  29. package/dist/index179.js.map +1 -1
  30. package/dist/index180.js +7 -5
  31. package/dist/index180.js.map +1 -1
  32. package/dist/index181.js +16 -11
  33. package/dist/index181.js.map +1 -1
  34. package/dist/index182.js +4 -19
  35. package/dist/index182.js.map +1 -1
  36. package/dist/index183.js +5 -11
  37. package/dist/index183.js.map +1 -1
  38. package/dist/index184.js +12 -176
  39. package/dist/index184.js.map +1 -1
  40. package/dist/index185.js +9 -279
  41. package/dist/index185.js.map +1 -1
  42. package/dist/index186.js +13 -4
  43. package/dist/index186.js.map +1 -1
  44. package/dist/index187.js +14 -28
  45. package/dist/index187.js.map +1 -1
  46. package/dist/index188.js +4 -126
  47. package/dist/index188.js.map +1 -1
  48. package/dist/index189.js +5 -63
  49. package/dist/index189.js.map +1 -1
  50. package/dist/index190.js +6 -8
  51. package/dist/index190.js.map +1 -1
  52. package/dist/index191.js +6 -16
  53. package/dist/index191.js.map +1 -1
  54. package/dist/index192.js +53 -29
  55. package/dist/index192.js.map +1 -1
  56. package/dist/index193.js +8 -69
  57. package/dist/index193.js.map +1 -1
  58. package/dist/index194.js +5 -20
  59. package/dist/index194.js.map +1 -1
  60. package/dist/index195.js +4 -66
  61. package/dist/index195.js.map +1 -1
  62. package/dist/index196.js +8 -6
  63. package/dist/index196.js.map +1 -1
  64. package/dist/index197.js +4 -5
  65. package/dist/index197.js.map +1 -1
  66. package/dist/index198.js +4 -11
  67. package/dist/index198.js.map +1 -1
  68. package/dist/index199.js +3 -3
  69. package/dist/index199.js.map +1 -1
  70. package/dist/index200.js +10 -50
  71. package/dist/index200.js.map +1 -1
  72. package/dist/index201.js +10 -4
  73. package/dist/index201.js.map +1 -1
  74. package/dist/index202.js +9 -29
  75. package/dist/index202.js.map +1 -1
  76. package/dist/index203.js +10 -16
  77. package/dist/index203.js.map +1 -1
  78. package/dist/index204.js +10 -5
  79. package/dist/index204.js.map +1 -1
  80. package/dist/index205.js +9 -21
  81. package/dist/index205.js.map +1 -1
  82. package/dist/index206.js +6 -53
  83. package/dist/index206.js.map +1 -1
  84. package/dist/index207.js +5 -20
  85. package/dist/index207.js.map +1 -1
  86. package/dist/index208.js +4 -41
  87. package/dist/index208.js.map +1 -1
  88. package/dist/index209.js +5 -39
  89. package/dist/index209.js.map +1 -1
  90. package/dist/index210.js +7 -46
  91. package/dist/index210.js.map +1 -1
  92. package/dist/index211.js +5 -20
  93. package/dist/index211.js.map +1 -1
  94. package/dist/index212.js +13 -67
  95. package/dist/index212.js.map +1 -1
  96. package/dist/index213.js +7 -17
  97. package/dist/index213.js.map +1 -1
  98. package/dist/index214.js +10 -3
  99. package/dist/index214.js.map +1 -1
  100. package/dist/index215.js +10 -11
  101. package/dist/index215.js.map +1 -1
  102. package/dist/index216.js +21 -13
  103. package/dist/index216.js.map +1 -1
  104. package/dist/index217.js +8 -18
  105. package/dist/index217.js.map +1 -1
  106. package/dist/index218.js +9 -36
  107. package/dist/index218.js.map +1 -1
  108. package/dist/index219.js +9 -239
  109. package/dist/index219.js.map +1 -1
  110. package/dist/index220.js +4 -252
  111. package/dist/index220.js.map +1 -1
  112. package/dist/index221.js +5 -68
  113. package/dist/index221.js.map +1 -1
  114. package/dist/index222.js +15 -98
  115. package/dist/index222.js.map +1 -1
  116. package/dist/index223.js +9 -83
  117. package/dist/index223.js.map +1 -1
  118. package/dist/index224.js +18 -3
  119. package/dist/index224.js.map +1 -1
  120. package/dist/index225.js +19 -28
  121. package/dist/index225.js.map +1 -1
  122. package/dist/index226.js +12 -16
  123. package/dist/index226.js.map +1 -1
  124. package/dist/index227.js +29 -34
  125. package/dist/index227.js.map +1 -1
  126. package/dist/index228.js +12 -17
  127. package/dist/index228.js.map +1 -1
  128. package/dist/index229.js +25 -3
  129. package/dist/index229.js.map +1 -1
  130. package/dist/index230.js +5 -26
  131. package/dist/index230.js.map +1 -1
  132. package/dist/index231.js +14 -28
  133. package/dist/index231.js.map +1 -1
  134. package/dist/index232.js +69 -4
  135. package/dist/index232.js.map +1 -1
  136. package/dist/index233.js +38 -79
  137. package/dist/index233.js.map +1 -1
  138. package/dist/index234.js +14 -273
  139. package/dist/index234.js.map +1 -1
  140. package/dist/index235.js +23 -11
  141. package/dist/index235.js.map +1 -1
  142. package/dist/index236.js +111 -10
  143. package/dist/index236.js.map +1 -1
  144. package/dist/index237.js +13 -26
  145. package/dist/index237.js.map +1 -1
  146. package/dist/index238.js +4 -16
  147. package/dist/index238.js.map +1 -1
  148. package/dist/index239.js +4 -126
  149. package/dist/index239.js.map +1 -1
  150. package/dist/index240.js +5 -6
  151. package/dist/index240.js.map +1 -1
  152. package/dist/index241.js +11 -65
  153. package/dist/index241.js.map +1 -1
  154. package/dist/index242.js +20 -14
  155. package/dist/index242.js.map +1 -1
  156. package/dist/index243.js +11 -8
  157. package/dist/index243.js.map +1 -1
  158. package/dist/index244.js +176 -5
  159. package/dist/index244.js.map +1 -1
  160. package/dist/index245.js +279 -3
  161. package/dist/index245.js.map +1 -1
  162. package/dist/index246.js +4 -10
  163. package/dist/index246.js.map +1 -1
  164. package/dist/index247.js +28 -8
  165. package/dist/index247.js.map +1 -1
  166. package/dist/index248.js +124 -131
  167. package/dist/index248.js.map +1 -1
  168. package/dist/index249.js +61 -397
  169. package/dist/index249.js.map +1 -1
  170. package/dist/index250.js +9 -5
  171. package/dist/index250.js.map +1 -1
  172. package/dist/index251.js +16 -53
  173. package/dist/index251.js.map +1 -1
  174. package/dist/index252.js +30 -11
  175. package/dist/index252.js.map +1 -1
  176. package/dist/index253.js +69 -27
  177. package/dist/index253.js.map +1 -1
  178. package/dist/index254.js +20 -12
  179. package/dist/index254.js.map +1 -1
  180. package/dist/index255.js +65 -57
  181. package/dist/index255.js.map +1 -1
  182. package/dist/index256.js +6 -8
  183. package/dist/index256.js.map +1 -1
  184. package/dist/index257.js +5 -87
  185. package/dist/index257.js.map +1 -1
  186. package/dist/index258.js +11 -19
  187. package/dist/index258.js.map +1 -1
  188. package/dist/index259.js +3 -16
  189. package/dist/index259.js.map +1 -1
  190. package/dist/index260.js +49 -4
  191. package/dist/index260.js.map +1 -1
  192. package/dist/index261.js +4 -6
  193. package/dist/index261.js.map +1 -1
  194. package/dist/index262.js +29 -6
  195. package/dist/index262.js.map +1 -1
  196. package/dist/index263.js +16 -4
  197. package/dist/index263.js.map +1 -1
  198. package/dist/index264.js +5 -6
  199. package/dist/index264.js.map +1 -1
  200. package/dist/index265.js +21 -16
  201. package/dist/index265.js.map +1 -1
  202. package/dist/index266.js +53 -4
  203. package/dist/index266.js.map +1 -1
  204. package/dist/index267.js +20 -4
  205. package/dist/index267.js.map +1 -1
  206. package/dist/index268.js +41 -12
  207. package/dist/index268.js.map +1 -1
  208. package/dist/index269.js +39 -9
  209. package/dist/index269.js.map +1 -1
  210. package/dist/index270.js +46 -14
  211. package/dist/index270.js.map +1 -1
  212. package/dist/index271.js +20 -13
  213. package/dist/index271.js.map +1 -1
  214. package/dist/index272.js +70 -4
  215. package/dist/index272.js.map +1 -1
  216. package/dist/index273.js +17 -5
  217. package/dist/index273.js.map +1 -1
  218. package/dist/index274.js +3 -6
  219. package/dist/index274.js.map +1 -1
  220. package/dist/index275.js +11 -5
  221. package/dist/index275.js.map +1 -1
  222. package/dist/index276.js +12 -53
  223. package/dist/index276.js.map +1 -1
  224. package/dist/index277.js +18 -8
  225. package/dist/index277.js.map +1 -1
  226. package/dist/index278.js +36 -4
  227. package/dist/index278.js.map +1 -1
  228. package/dist/index279.js +239 -4
  229. package/dist/index279.js.map +1 -1
  230. package/dist/index280.js +252 -8
  231. package/dist/index280.js.map +1 -1
  232. package/dist/index281.js +68 -4
  233. package/dist/index281.js.map +1 -1
  234. package/dist/index282.js +99 -4
  235. package/dist/index282.js.map +1 -1
  236. package/dist/index283.js +83 -3
  237. package/dist/index283.js.map +1 -1
  238. package/dist/index284.js +3 -10
  239. package/dist/index284.js.map +1 -1
  240. package/dist/index285.js +29 -9
  241. package/dist/index285.js.map +1 -1
  242. package/dist/index286.js +16 -9
  243. package/dist/index286.js.map +1 -1
  244. package/dist/index287.js +35 -11
  245. package/dist/index287.js.map +1 -1
  246. package/dist/index288.js +17 -10
  247. package/dist/index288.js.map +1 -1
  248. package/dist/index289.js +3 -9
  249. package/dist/index289.js.map +1 -1
  250. package/dist/index290.js +26 -6
  251. package/dist/index290.js.map +1 -1
  252. package/dist/index291.js +28 -5
  253. package/dist/index291.js.map +1 -1
  254. package/dist/index292.js +4 -5
  255. package/dist/index292.js.map +1 -1
  256. package/dist/index293.js +78 -5
  257. package/dist/index293.js.map +1 -1
  258. package/dist/index294.js +272 -6
  259. package/dist/index294.js.map +1 -1
  260. package/dist/index295.js +11 -5
  261. package/dist/index295.js.map +1 -1
  262. package/dist/index296.js +10 -16
  263. package/dist/index296.js.map +1 -1
  264. package/dist/index297.js +25 -7
  265. package/dist/index297.js.map +1 -1
  266. package/dist/index298.js +16 -10
  267. package/dist/index298.js.map +1 -1
  268. package/dist/index299.js +124 -9
  269. package/dist/index299.js.map +1 -1
  270. package/dist/index300.js +5 -21
  271. package/dist/index300.js.map +1 -1
  272. package/dist/index301.js +65 -8
  273. package/dist/index301.js.map +1 -1
  274. package/dist/index302.js +14 -10
  275. package/dist/index302.js.map +1 -1
  276. package/dist/index303.js +7 -9
  277. package/dist/index303.js.map +1 -1
  278. package/dist/index304.js +5 -4
  279. package/dist/index304.js.map +1 -1
  280. package/dist/index305.js +3 -5
  281. package/dist/index305.js.map +1 -1
  282. package/dist/index306.js +10 -16
  283. package/dist/index306.js.map +1 -1
  284. package/dist/index307.js +7 -9
  285. package/dist/index307.js.map +1 -1
  286. package/dist/index308.js +132 -17
  287. package/dist/index308.js.map +1 -1
  288. package/dist/index309.js +397 -18
  289. package/dist/index309.js.map +1 -1
  290. package/dist/index310.js +5 -13
  291. package/dist/index310.js.map +1 -1
  292. package/dist/index311.js +52 -29
  293. package/dist/index311.js.map +1 -1
  294. package/dist/index312.js +11 -12
  295. package/dist/index312.js.map +1 -1
  296. package/dist/index313.js +27 -25
  297. package/dist/index313.js.map +1 -1
  298. package/dist/index314.js +11 -5
  299. package/dist/index314.js.map +1 -1
  300. package/dist/index317.js +1 -1
  301. package/dist/index318.js +1 -1
  302. package/dist/index321.js +2 -2
  303. package/dist/index322.js +2 -2
  304. package/dist/index325.js +1 -1
  305. package/dist/index330.js +135 -3
  306. package/dist/index330.js.map +1 -1
  307. package/dist/index331.js +17 -9
  308. package/dist/index331.js.map +1 -1
  309. package/dist/index332.js +13 -133
  310. package/dist/index332.js.map +1 -1
  311. package/dist/index333.js +3 -17
  312. package/dist/index333.js.map +1 -1
  313. package/dist/index334.js +33 -12
  314. package/dist/index334.js.map +1 -1
  315. package/dist/index335.js +19 -35
  316. package/dist/index335.js.map +1 -1
  317. package/dist/index336.js +8 -20
  318. package/dist/index336.js.map +1 -1
  319. package/dist/index337.js +24 -8
  320. package/dist/index337.js.map +1 -1
  321. package/dist/index338.js +23 -19
  322. package/dist/index338.js.map +1 -1
  323. package/dist/index339.js +14 -26
  324. package/dist/index339.js.map +1 -1
  325. package/dist/index34.js +2 -2
  326. package/dist/index340.js +9 -16
  327. package/dist/index340.js.map +1 -1
  328. package/dist/index341.js +4 -8
  329. package/dist/index341.js.map +1 -1
  330. package/dist/index342.js +18 -12
  331. package/dist/index342.js.map +1 -1
  332. package/dist/index343.js +12 -8
  333. package/dist/index343.js.map +1 -1
  334. package/dist/index344.js +8 -13
  335. package/dist/index344.js.map +1 -1
  336. package/dist/index345.js +11 -3
  337. package/dist/index345.js.map +1 -1
  338. package/dist/index346.js +8 -3
  339. package/dist/index346.js.map +1 -1
  340. package/dist/index347.js +12 -16
  341. package/dist/index347.js.map +1 -1
  342. package/dist/index348.js +3 -5
  343. package/dist/index348.js.map +1 -1
  344. package/dist/index349.js +3 -51
  345. package/dist/index349.js.map +1 -1
  346. package/dist/index35.js +5 -5
  347. package/dist/index350.js +16 -60
  348. package/dist/index350.js.map +1 -1
  349. package/dist/index351.js +49 -64
  350. package/dist/index351.js.map +1 -1
  351. package/dist/index352.js +5 -8
  352. package/dist/index352.js.map +1 -1
  353. package/dist/index353.js +62 -5
  354. package/dist/index353.js.map +1 -1
  355. package/dist/index354.js +66 -11
  356. package/dist/index354.js.map +1 -1
  357. package/dist/index355.js +8 -21
  358. package/dist/index355.js.map +1 -1
  359. package/dist/index356.js +5 -17
  360. package/dist/index356.js.map +1 -1
  361. package/dist/index357.js +12 -8
  362. package/dist/index357.js.map +1 -1
  363. package/dist/index358.js +21 -144
  364. package/dist/index358.js.map +1 -1
  365. package/dist/index359.js +14 -77
  366. package/dist/index359.js.map +1 -1
  367. package/dist/index36.js +11 -11
  368. package/dist/index360.js +8 -62
  369. package/dist/index360.js.map +1 -1
  370. package/dist/index361.js +145 -15
  371. package/dist/index361.js.map +1 -1
  372. package/dist/index362.js +79 -5
  373. package/dist/index362.js.map +1 -1
  374. package/dist/index363.js +62 -4
  375. package/dist/index363.js.map +1 -1
  376. package/dist/index364.js +15 -3
  377. package/dist/index364.js.map +1 -1
  378. package/dist/index366.js +4 -21
  379. package/dist/index366.js.map +1 -1
  380. package/dist/index367.js +6 -45
  381. package/dist/index367.js.map +1 -1
  382. package/dist/index368.js +3 -18
  383. package/dist/index368.js.map +1 -1
  384. package/dist/index369.js +21 -5
  385. package/dist/index369.js.map +1 -1
  386. package/dist/index37.js +3 -3
  387. package/dist/index370.js +44 -200
  388. package/dist/index370.js.map +1 -1
  389. package/dist/index371.js +17 -73
  390. package/dist/index371.js.map +1 -1
  391. package/dist/index372.js +5 -124
  392. package/dist/index372.js.map +1 -1
  393. package/dist/index373.js +200 -4
  394. package/dist/index373.js.map +1 -1
  395. package/dist/index374.js +74 -18
  396. package/dist/index374.js.map +1 -1
  397. package/dist/index375.js +123 -12
  398. package/dist/index375.js.map +1 -1
  399. package/dist/index378.js +4 -8
  400. package/dist/index378.js.map +1 -1
  401. package/dist/index379.js +5 -27
  402. package/dist/index379.js.map +1 -1
  403. package/dist/index38.js +4 -4
  404. package/dist/index380.js +4 -138
  405. package/dist/index380.js.map +1 -1
  406. package/dist/index381.js +15 -12
  407. package/dist/index381.js.map +1 -1
  408. package/dist/index382.js +8 -46
  409. package/dist/index382.js.map +1 -1
  410. package/dist/index383.js +5 -3
  411. package/dist/index383.js.map +1 -1
  412. package/dist/index384.js +4 -21
  413. package/dist/index384.js.map +1 -1
  414. package/dist/index385.js +542 -72
  415. package/dist/index385.js.map +1 -1
  416. package/dist/index386.js +46 -11
  417. package/dist/index386.js.map +1 -1
  418. package/dist/index387.js +17 -3
  419. package/dist/index387.js.map +1 -1
  420. package/dist/index388.js +5 -71
  421. package/dist/index388.js.map +1 -1
  422. package/dist/index389.js +7 -35
  423. package/dist/index389.js.map +1 -1
  424. package/dist/index39.js +5 -5
  425. package/dist/index390.js +7 -7
  426. package/dist/index390.js.map +1 -1
  427. package/dist/index391.js +7 -15
  428. package/dist/index391.js.map +1 -1
  429. package/dist/index392.js +12 -3
  430. package/dist/index392.js.map +1 -1
  431. package/dist/index393.js +9 -3
  432. package/dist/index393.js.map +1 -1
  433. package/dist/index394.js +12 -4
  434. package/dist/index394.js.map +1 -1
  435. package/dist/index395.js +8 -4
  436. package/dist/index395.js.map +1 -1
  437. package/dist/index396.js +27 -4
  438. package/dist/index396.js.map +1 -1
  439. package/dist/index397.js +136 -14
  440. package/dist/index397.js.map +1 -1
  441. package/dist/index398.js +12 -8
  442. package/dist/index398.js.map +1 -1
  443. package/dist/index399.js +46 -5
  444. package/dist/index399.js.map +1 -1
  445. package/dist/index40.js +3 -3
  446. package/dist/index400.js +3 -4
  447. package/dist/index400.js.map +1 -1
  448. package/dist/index401.js +20 -544
  449. package/dist/index401.js.map +1 -1
  450. package/dist/index402.js +75 -46
  451. package/dist/index402.js.map +1 -1
  452. package/dist/index403.js +12 -18
  453. package/dist/index403.js.map +1 -1
  454. package/dist/index404.js +3 -5
  455. package/dist/index404.js.map +1 -1
  456. package/dist/index405.js +71 -7
  457. package/dist/index405.js.map +1 -1
  458. package/dist/index406.js +35 -6
  459. package/dist/index406.js.map +1 -1
  460. package/dist/index407.js +7 -8
  461. package/dist/index407.js.map +1 -1
  462. package/dist/index408.js +15 -11
  463. package/dist/index408.js.map +1 -1
  464. package/dist/index409.js +3 -9
  465. package/dist/index409.js.map +1 -1
  466. package/dist/index41.js +10 -10
  467. package/dist/index410.js +3 -13
  468. package/dist/index410.js.map +1 -1
  469. package/dist/index411.js +4 -14
  470. package/dist/index411.js.map +1 -1
  471. package/dist/index412.js +56 -3
  472. package/dist/index412.js.map +1 -1
  473. package/dist/index413.js +66 -490
  474. package/dist/index413.js.map +1 -1
  475. package/dist/index414.js +31 -8
  476. package/dist/index414.js.map +1 -1
  477. package/dist/index415.js +9 -2
  478. package/dist/index415.js.map +1 -1
  479. package/dist/index416.js +150 -41
  480. package/dist/index416.js.map +1 -1
  481. package/dist/index417.js +108 -56
  482. package/dist/index417.js.map +1 -1
  483. package/dist/index418.js +3 -8
  484. package/dist/index418.js.map +1 -1
  485. package/dist/index419.js +15 -2
  486. package/dist/index419.js.map +1 -1
  487. package/dist/index420.js +487 -50
  488. package/dist/index420.js.map +1 -1
  489. package/dist/index421.js +7 -55
  490. package/dist/index421.js.map +1 -1
  491. package/dist/index422.js +2 -33
  492. package/dist/index422.js.map +1 -1
  493. package/dist/index423.js +43 -4
  494. package/dist/index423.js.map +1 -1
  495. package/dist/index424.js +55 -55
  496. package/dist/index424.js.map +1 -1
  497. package/dist/index425.js +8 -68
  498. package/dist/index425.js.map +1 -1
  499. package/dist/index426.js +2 -31
  500. package/dist/index426.js.map +1 -1
  501. package/dist/index427.js +55 -9
  502. package/dist/index427.js.map +1 -1
  503. package/dist/index428.js +55 -152
  504. package/dist/index428.js.map +1 -1
  505. package/dist/index429.js +32 -107
  506. package/dist/index429.js.map +1 -1
  507. package/dist/index430.js +16 -2
  508. package/dist/index430.js.map +1 -1
  509. package/dist/index431.js +29 -2
  510. package/dist/index431.js.map +1 -1
  511. package/dist/index432.js +13 -2
  512. package/dist/index432.js.map +1 -1
  513. package/dist/index433.js +7 -2
  514. package/dist/index433.js.map +1 -1
  515. package/dist/index434.js +2 -16
  516. package/dist/index434.js.map +1 -1
  517. package/dist/index435.js +2 -29
  518. package/dist/index435.js.map +1 -1
  519. package/dist/index436.js +2 -13
  520. package/dist/index436.js.map +1 -1
  521. package/dist/index437.js +2 -7
  522. package/dist/index437.js.map +1 -1
  523. package/dist/index44.js +1 -1
  524. package/dist/index45.js +2 -2
  525. package/dist/index49.js +36 -36
  526. package/dist/index50.js +29 -29
  527. package/dist/index51.js +2 -2
  528. package/dist/index52.js +12 -12
  529. package/dist/index53.js +4 -4
  530. package/dist/index54.js +1 -1
  531. package/dist/index55.js +21 -21
  532. package/dist/index56.js +5 -5
  533. package/dist/index57.js +5 -5
  534. package/dist/index58.js +8 -8
  535. package/dist/index59.js +5 -5
  536. package/dist/index60.js +17 -17
  537. package/dist/index61.js +5 -5
  538. package/dist/index62.js +3 -3
  539. package/dist/index66.js +1 -1
  540. package/dist/index67.js +1 -1
  541. package/dist/index70.js +1 -1
  542. package/dist/index71.js +1 -1
  543. package/dist/index72.js +2 -6
  544. package/dist/index72.js.map +1 -1
  545. package/dist/index73.js +2 -8
  546. package/dist/index73.js.map +1 -1
  547. package/dist/index74.js +2 -6
  548. package/dist/index74.js.map +1 -1
  549. package/dist/index75.js +2 -2
  550. package/dist/index76.js +6 -2
  551. package/dist/index76.js.map +1 -1
  552. package/dist/index77.js +8 -2
  553. package/dist/index77.js.map +1 -1
  554. package/dist/index78.js +6 -2
  555. package/dist/index78.js.map +1 -1
  556. package/package.json +1 -1
package/dist/index174.js CHANGED
@@ -1,17 +1,23 @@
1
- let n = /* @__PURE__ */ (function(t) {
2
- return t.startingStyle = "data-starting-style", t.endingStyle = "data-ending-style", t;
3
- })({});
4
- const e = {
5
- [n.startingStyle]: ""
6
- }, i = {
7
- [n.endingStyle]: ""
8
- }, r = {
9
- transitionStatus(t) {
10
- return t === "starting" ? e : t === "ending" ? i : null;
1
+ const e = {}, s = {};
2
+ function u(t, r) {
3
+ try {
4
+ const n = (e[t] ||= new Intl.DateTimeFormat("en-US", {
5
+ timeZone: t,
6
+ timeZoneName: "longOffset"
7
+ }).format)(r).split("GMT")[1];
8
+ return n in s ? s[n] : o(n, n.split(":"));
9
+ } catch {
10
+ if (t in s) return s[t];
11
+ const f = t?.match(a);
12
+ return f ? o(t, f.slice(1)) : NaN;
11
13
  }
12
- };
14
+ }
15
+ const a = /([+-]\d\d):?(\d\d)?/;
16
+ function o(t, r) {
17
+ const f = +(r[0] || 0), n = +(r[1] || 0), c = +(r[2] || 0) / 60;
18
+ return s[t] = f * 60 + n > 0 ? f * 60 + n + c : f * 60 - n - c;
19
+ }
13
20
  export {
14
- n as TransitionStatusDataAttributes,
15
- r as transitionStatusMapping
21
+ u as tzOffset
16
22
  };
17
23
  //# sourceMappingURL=index174.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index174.js","sources":["../../../node_modules/@base-ui/react/internals/stateAttributesMapping.mjs"],"sourcesContent":["export let TransitionStatusDataAttributes = /*#__PURE__*/function (TransitionStatusDataAttributes) {\n /**\n * Present when the component is animating in.\n */\n TransitionStatusDataAttributes[\"startingStyle\"] = \"data-starting-style\";\n /**\n * Present when the component is animating out.\n */\n TransitionStatusDataAttributes[\"endingStyle\"] = \"data-ending-style\";\n return TransitionStatusDataAttributes;\n}({});\nconst STARTING_HOOK = {\n [TransitionStatusDataAttributes.startingStyle]: ''\n};\nconst ENDING_HOOK = {\n [TransitionStatusDataAttributes.endingStyle]: ''\n};\nexport const transitionStatusMapping = {\n transitionStatus(value) {\n if (value === 'starting') {\n return STARTING_HOOK;\n }\n if (value === 'ending') {\n return ENDING_HOOK;\n }\n return null;\n }\n};"],"names":["TransitionStatusDataAttributes","STARTING_HOOK","ENDING_HOOK","transitionStatusMapping","value"],"mappings":"AAAU,IAACA,IAA8C,0BAAUA,GAAgC;AAIjG,SAAAA,EAA+B,gBAAmB,uBAIlDA,EAA+B,cAAiB,qBACzCA;AACT,GAAE,CAAA,CAAE;AACJ,MAAMC,IAAgB;AAAA,EACpB,CAACD,EAA+B,aAAa,GAAG;AAClD,GACME,IAAc;AAAA,EAClB,CAACF,EAA+B,WAAW,GAAG;AAChD,GACaG,IAA0B;AAAA,EACrC,iBAAiBC,GAAO;AACtB,WAAIA,MAAU,aACLH,IAELG,MAAU,WACLF,IAEF;AAAA,EACT;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index174.js","sources":["../../../node_modules/@date-fns/tz/tzOffset/index.js"],"sourcesContent":["const offsetFormatCache = {};\nconst offsetCache = {};\n\n/**\n * The function returns UTC offset in minutes for the given date in specified\n * time zone.\n *\n * Unlike `Date.prototype.getTimezoneOffset`, this function returns the value\n * mirrored to the sign of the offset in the time zone. For Asia/Singapore\n * (UTC+8), `tzOffset` returns `480`, while `getTimezoneOffset` returns `-480`.\n *\n * It uses `Intl.DateTimeFormat` internally to access otherwise unavailable\n * runtime's time zone data, and falls back to basic manual parsing if Intl API\n * is not supported (e.g., older Node.js versions, React Native's Hermes, etc.).\n *\n * @param timeZone - Time zone name (IANA or UTC offset).\n * @param date - Date to check the offset for.\n *\n * @returns UTC offset in minutes (e.g., `480` for date in UTC+8).\n */\nexport function tzOffset(timeZone, date) {\n try {\n // Create `Intl.DateTimeFormat` with `\"longOffset\"` that gives us consistent\n // date strings like `\"5/19/2026, GMT-08:00\"`.\n const format = offsetFormatCache[timeZone] ||= new Intl.DateTimeFormat(\"en-US\", {\n timeZone,\n timeZoneName: \"longOffset\"\n }).format;\n\n // Get `\"-08:00\"`.\n const offsetStr = format(date).split(\"GMT\")[1];\n\n // Avoid parsing the same offset string.\n if (offsetStr in offsetCache) return offsetCache[offsetStr];\n\n // Calculate offset from `[\"-08\", \"00\"]` and cache it.\n return calcOffset(offsetStr, offsetStr.split(\":\"));\n } catch {\n // Fallback to manual parsing if the runtime doesn't support\n // `±HH:MM/±HHMM/±HH`. See: https://github.com/nodejs/node/issues/53419.\n if (timeZone in offsetCache) return offsetCache[timeZone];\n const captures = timeZone?.match(offsetRe);\n if (captures) return calcOffset(timeZone, captures.slice(1));\n return NaN;\n }\n}\nconst offsetRe = /([+-]\\d\\d):?(\\d\\d)?/;\nfunction calcOffset(cacheStr, values) {\n const hours = +(values[0] || 0);\n const minutes = +(values[1] || 0);\n // Convert seconds to minutes by dividing by 60 to keep the function return in minutes.\n const seconds = +(values[2] || 0) / 60;\n return offsetCache[cacheStr] = hours * 60 + minutes > 0 ? hours * 60 + minutes + seconds : hours * 60 - minutes - seconds;\n}"],"names":["offsetFormatCache","offsetCache","tzOffset","timeZone","date","offsetStr","calcOffset","captures","offsetRe","cacheStr","values","hours","minutes","seconds"],"mappings":"AAAA,MAAMA,IAAoB,CAAA,GACpBC,IAAc,CAAA;AAmBb,SAASC,EAASC,GAAUC,GAAM;AACvC,MAAI;AASF,UAAMC,KANSL,EAAkBG,CAAQ,MAAM,IAAI,KAAK,eAAe,SAAS;AAAA,MAC9E,UAAAA;AAAA,MACA,cAAc;AAAA,IACpB,CAAK,EAAE,QAGsBC,CAAI,EAAE,MAAM,KAAK,EAAE,CAAC;AAG7C,WAAIC,KAAaJ,IAAoBA,EAAYI,CAAS,IAGnDC,EAAWD,GAAWA,EAAU,MAAM,GAAG,CAAC;AAAA,EACnD,QAAQ;AAGN,QAAIF,KAAYF,EAAa,QAAOA,EAAYE,CAAQ;AACxD,UAAMI,IAAWJ,GAAU,MAAMK,CAAQ;AACzC,WAAID,IAAiBD,EAAWH,GAAUI,EAAS,MAAM,CAAC,CAAC,IACpD;AAAA,EACT;AACF;AACA,MAAMC,IAAW;AACjB,SAASF,EAAWG,GAAUC,GAAQ;AACpC,QAAMC,IAAQ,EAAED,EAAO,CAAC,KAAK,IACvBE,IAAU,EAAEF,EAAO,CAAC,KAAK,IAEzBG,IAAU,EAAEH,EAAO,CAAC,KAAK,KAAK;AACpC,SAAOT,EAAYQ,CAAQ,IAAIE,IAAQ,KAAKC,IAAU,IAAID,IAAQ,KAAKC,IAAUC,IAAUF,IAAQ,KAAKC,IAAUC;AACpH;","x_google_ignoreList":[0]}
package/dist/index175.js CHANGED
@@ -1,27 +1,20 @@
1
- import { EMPTY_OBJECT as l } from "./index204.js";
2
- function u(a, n, o, s) {
3
- let e = !1, t = !1;
4
- const r = l;
5
- return {
6
- reason: a,
7
- event: n ?? new Event("base-ui"),
8
- cancel() {
9
- e = !0;
10
- },
11
- allowPropagation() {
12
- t = !0;
13
- },
14
- get isCanceled() {
15
- return e;
16
- },
17
- get isPropagationAllowed() {
18
- return t;
19
- },
20
- trigger: o,
21
- ...r
22
- };
1
+ import { defaultDateLib as o } from "./index105.js";
2
+ class y {
3
+ constructor(t, i, s = o) {
4
+ this.date = t, this.displayMonth = i, this.outside = !!(i && !s.isSameMonth(t, i)), this.dateLib = s, this.isoDate = s.format(t, "yyyy-MM-dd"), this.displayMonthId = s.format(i, "yyyy-MM"), this.dateMonthId = s.format(t, "yyyy-MM");
5
+ }
6
+ /**
7
+ * Checks if this day is equal to another `CalendarDay`, considering both the
8
+ * date and the displayed month.
9
+ *
10
+ * @param day The `CalendarDay` to compare with.
11
+ * @returns `true` if the days are equal, otherwise `false`.
12
+ */
13
+ isEqualTo(t) {
14
+ return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
15
+ }
23
16
  }
24
17
  export {
25
- u as createChangeEventDetails
18
+ y as CalendarDay
26
19
  };
27
20
  //# sourceMappingURL=index175.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index175.js","sources":["../../../node_modules/@base-ui/react/internals/createBaseUIEventDetails.mjs"],"sourcesContent":["import { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { REASONS } from \"./reasons.mjs\";\n\n/**\n * Maps a change `reason` string to the corresponding native event type.\n */\n\n/**\n * Details of custom change events emitted by Base UI components.\n */\n\n/**\n * Details of custom generic events emitted by Base UI components.\n */\n\n/**\n * Creates a Base UI event details object with the given reason and utilities\n * for preventing Base UI's internal event handling.\n */\nexport function createChangeEventDetails(reason, event, trigger, customProperties) {\n let canceled = false;\n let allowPropagation = false;\n const custom = customProperties ?? EMPTY_OBJECT;\n const details = {\n reason,\n event: event ?? new Event('base-ui'),\n cancel() {\n canceled = true;\n },\n allowPropagation() {\n allowPropagation = true;\n },\n get isCanceled() {\n return canceled;\n },\n get isPropagationAllowed() {\n return allowPropagation;\n },\n trigger,\n ...custom\n };\n return details;\n}\nexport function createGenericEventDetails(reason, event, customProperties) {\n const custom = customProperties ?? EMPTY_OBJECT;\n const details = {\n reason,\n event: event ?? new Event('base-ui'),\n ...custom\n };\n return details;\n}"],"names":["createChangeEventDetails","reason","event","trigger","customProperties","canceled","allowPropagation","custom","EMPTY_OBJECT"],"mappings":";AAmBO,SAASA,EAAyBC,GAAQC,GAAOC,GAASC,GAAkB;AACjF,MAAIC,IAAW,IACXC,IAAmB;AACvB,QAAMC,IAA6BC;AAmBnC,SAlBgB;AAAA,IACd,QAAAP;AAAA,IACA,OAAOC,KAAS,IAAI,MAAM,SAAS;AAAA,IACnC,SAAS;AACP,MAAAG,IAAW;AAAA,IACb;AAAA,IACA,mBAAmB;AACjB,MAAAC,IAAmB;AAAA,IACrB;AAAA,IACA,IAAI,aAAa;AACf,aAAOD;AAAA,IACT;AAAA,IACA,IAAI,uBAAuB;AACzB,aAAOC;AAAA,IACT;AAAA,IACA,SAAAH;AAAA,IACA,GAAGI;AAAA,EACP;AAEA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index175.js","sources":["../../../node_modules/react-day-picker/dist/esm/classes/CalendarDay.js"],"sourcesContent":["import { defaultDateLib } from \"./DateLib.js\";\n/**\n * Represents a day displayed in the calendar.\n *\n * In DayPicker, a `CalendarDay` is a wrapper around a `Date` object that\n * provides additional information about the day, such as whether it belongs to\n * the displayed month.\n */\nexport class CalendarDay {\n constructor(date, displayMonth, dateLib = defaultDateLib) {\n this.date = date;\n this.displayMonth = displayMonth;\n this.outside = Boolean(displayMonth && !dateLib.isSameMonth(date, displayMonth));\n this.dateLib = dateLib;\n this.isoDate = dateLib.format(date, \"yyyy-MM-dd\");\n this.displayMonthId = dateLib.format(displayMonth, \"yyyy-MM\");\n this.dateMonthId = dateLib.format(date, \"yyyy-MM\");\n }\n /**\n * Checks if this day is equal to another `CalendarDay`, considering both the\n * date and the displayed month.\n *\n * @param day The `CalendarDay` to compare with.\n * @returns `true` if the days are equal, otherwise `false`.\n */\n isEqualTo(day) {\n return (this.dateLib.isSameDay(day.date, this.date) &&\n this.dateLib.isSameMonth(day.displayMonth, this.displayMonth));\n }\n}\n"],"names":["CalendarDay","date","displayMonth","dateLib","defaultDateLib","day"],"mappings":";AAQO,MAAMA,EAAY;AAAA,EACrB,YAAYC,GAAMC,GAAcC,IAAUC,GAAgB;AACtD,SAAK,OAAOH,GACZ,KAAK,eAAeC,GACpB,KAAK,UAAU,GAAQA,KAAgB,CAACC,EAAQ,YAAYF,GAAMC,CAAY,IAC9E,KAAK,UAAUC,GACf,KAAK,UAAUA,EAAQ,OAAOF,GAAM,YAAY,GAChD,KAAK,iBAAiBE,EAAQ,OAAOD,GAAc,SAAS,GAC5D,KAAK,cAAcC,EAAQ,OAAOF,GAAM,SAAS;AAAA,EACrD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,UAAUI,GAAK;AACX,WAAQ,KAAK,QAAQ,UAAUA,EAAI,MAAM,KAAK,IAAI,KAC9C,KAAK,QAAQ,YAAYA,EAAI,cAAc,KAAK,YAAY;AAAA,EACpE;AACJ;","x_google_ignoreList":[0]}
package/dist/index176.js CHANGED
@@ -1,115 +1,9 @@
1
- import * as l from "react";
2
- import { isHTMLElement as M } from "./index248.js";
3
- import { useStableCallback as H } from "./index202.js";
4
- import { error as y } from "./index352.js";
5
- import { SafeReact as B } from "./index353.js";
6
- import { useIsoLayoutEffect as A } from "./index201.js";
7
- import { useCompositeRootContext as L } from "./index354.js";
8
- import { useFocusableWhenDisabled as W } from "./index355.js";
9
- import { mergeProps as $, makeEventPreventable as x } from "./index222.js";
10
- function X(a = {}) {
11
- const {
12
- disabled: o = !1,
13
- focusableWhenDisabled: C,
14
- tabIndex: P = 0,
15
- native: t = !0,
16
- composite: T
17
- } = a, i = l.useRef(null), E = L(!0), s = T ?? E !== void 0, {
18
- props: u
19
- } = W({
20
- focusableWhenDisabled: C,
21
- disabled: o,
22
- composite: s,
23
- tabIndex: P,
24
- isNativeButton: t
25
- });
26
- process.env.NODE_ENV !== "production" && l.useEffect(() => {
27
- if (!i.current)
28
- return;
29
- const n = f(i.current);
30
- if (t) {
31
- if (!n) {
32
- const r = B.captureOwnerStack?.() || "";
33
- y(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${r}`);
34
- }
35
- } else if (n) {
36
- const r = B.captureOwnerStack?.() || "";
37
- y(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${r}`);
38
- }
39
- }, [t]);
40
- const p = l.useCallback(() => {
41
- const n = i.current;
42
- f(n) && s && o && u.disabled === void 0 && n.disabled && (n.disabled = !1);
43
- }, [o, u.disabled, s]);
44
- A(p, [p]);
45
- const U = l.useCallback((n = {}) => {
46
- const {
47
- onClick: r,
48
- onMouseDown: d,
49
- onKeyUp: O,
50
- onKeyDown: I,
51
- onPointerDown: K,
52
- ...N
53
- } = n;
54
- return $({
55
- onClick(e) {
56
- if (o) {
57
- e.preventDefault();
58
- return;
59
- }
60
- r?.(e);
61
- },
62
- onMouseDown(e) {
63
- o || d?.(e);
64
- },
65
- onKeyDown(e) {
66
- if (o || (x(e), I?.(e), e.baseUIHandlerPrevented))
67
- return;
68
- const b = e.target === e.currentTarget, c = e.currentTarget, g = f(c), h = !t && V(c), k = b && (t ? g : !h), D = e.key === "Enter", w = e.key === " ", m = c.getAttribute("role"), S = m?.startsWith("menuitem") || m === "option" || m === "gridcell";
69
- if (b && s && w) {
70
- if (e.defaultPrevented && S)
71
- return;
72
- e.preventDefault(), h || t && g ? (c.click(), e.preventBaseUIHandler()) : k && (r?.(e), e.preventBaseUIHandler());
73
- return;
74
- }
75
- k && (!t && (w || D) && e.preventDefault(), !t && D && r?.(e));
76
- },
77
- onKeyUp(e) {
78
- if (!o) {
79
- if (x(e), O?.(e), e.target === e.currentTarget && t && s && f(e.currentTarget) && e.key === " ") {
80
- e.preventDefault();
81
- return;
82
- }
83
- e.baseUIHandlerPrevented || e.target === e.currentTarget && !t && !s && e.key === " " && r?.(e);
84
- }
85
- },
86
- onPointerDown(e) {
87
- if (o) {
88
- e.preventDefault();
89
- return;
90
- }
91
- K?.(e);
92
- }
93
- }, t ? {
94
- type: "button"
95
- } : {
96
- role: "button"
97
- }, u, N);
98
- }, [o, u, s, t]), R = H((n) => {
99
- i.current = n, p();
100
- });
101
- return {
102
- getButtonProps: U,
103
- buttonRef: R
104
- };
105
- }
106
- function f(a) {
107
- return M(a) && a.tagName === "BUTTON";
108
- }
109
- function V(a) {
110
- return !!(a?.tagName === "A" && a?.href);
1
+ class a {
2
+ constructor(t, s) {
3
+ this.date = t, this.weeks = s;
4
+ }
111
5
  }
112
6
  export {
113
- X as useButton
7
+ a as CalendarMonth
114
8
  };
115
9
  //# sourceMappingURL=index176.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index176.js","sources":["../../../node_modules/@base-ui/react/internals/use-button/useButton.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { isHTMLElement } from '@floating-ui/utils/dom';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { error } from '@base-ui/utils/error';\nimport { SafeReact } from '@base-ui/utils/safeReact';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { makeEventPreventable, mergeProps } from \"../../merge-props/index.mjs\";\nimport { useCompositeRootContext } from \"../composite/root/CompositeRootContext.mjs\";\nimport { useFocusableWhenDisabled } from \"../../utils/useFocusableWhenDisabled.mjs\";\nexport function useButton(parameters = {}) {\n const {\n disabled = false,\n focusableWhenDisabled,\n tabIndex = 0,\n native: isNativeButton = true,\n composite: compositeProp\n } = parameters;\n const elementRef = React.useRef(null);\n const compositeRootContext = useCompositeRootContext(true);\n const isCompositeItem = compositeProp ?? compositeRootContext !== undefined;\n const {\n props: focusableWhenDisabledProps\n } = useFocusableWhenDisabled({\n focusableWhenDisabled,\n disabled,\n composite: isCompositeItem,\n tabIndex,\n isNativeButton\n });\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (!elementRef.current) {\n return;\n }\n const isButtonTag = isButtonElement(elementRef.current);\n if (isNativeButton) {\n if (!isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a native <button> because the ' + '`nativeButton` prop is true. Rendering a non-<button> removes native button ' + 'semantics, which can impact forms and accessibility. Use a real <button> in the ' + '`render` prop, or set `nativeButton` to `false`.';\n error(`${message}${ownerStackMessage}`);\n }\n } else if (isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a non-<button> because the `nativeButton` ' + 'prop is false. Rendering a <button> keeps native behavior while Base UI applies ' + 'non-native attributes and handlers, which can add unintended extra attributes (such ' + 'as `role` or `aria-disabled`). Use a non-<button> in the `render` prop, or set ' + '`nativeButton` to `true`.';\n error(`${message}${ownerStackMessage}`);\n }\n }, [isNativeButton]);\n }\n\n // handles a disabled composite button rendering another button, e.g.\n // <Toolbar.Button disabled render={<Menu.Trigger />} />\n // the `disabled` prop needs to pass through 2 `useButton`s then finally\n // delete the `disabled` attribute from DOM\n const updateDisabled = React.useCallback(() => {\n const element = elementRef.current;\n if (!isButtonElement(element)) {\n return;\n }\n if (isCompositeItem && disabled && focusableWhenDisabledProps.disabled === undefined && element.disabled) {\n element.disabled = false;\n }\n }, [disabled, focusableWhenDisabledProps.disabled, isCompositeItem]);\n useIsoLayoutEffect(updateDisabled, [updateDisabled]);\n const getButtonProps = React.useCallback((externalProps = {}) => {\n const {\n onClick: externalOnClick,\n onMouseDown: externalOnMouseDown,\n onKeyUp: externalOnKeyUp,\n onKeyDown: externalOnKeyDown,\n onPointerDown: externalOnPointerDown,\n ...otherExternalProps\n } = externalProps;\n return mergeProps({\n onClick(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnClick?.(event);\n },\n onMouseDown(event) {\n if (!disabled) {\n externalOnMouseDown?.(event);\n }\n },\n onKeyDown(event) {\n if (disabled) {\n return;\n }\n makeEventPreventable(event);\n externalOnKeyDown?.(event);\n if (event.baseUIHandlerPrevented) {\n return;\n }\n const isCurrentTarget = event.target === event.currentTarget;\n const currentTarget = event.currentTarget;\n const isButton = isButtonElement(currentTarget);\n const isLink = !isNativeButton && isValidLinkElement(currentTarget);\n const shouldClick = isCurrentTarget && (isNativeButton ? isButton : !isLink);\n const isEnterKey = event.key === 'Enter';\n const isSpaceKey = event.key === ' ';\n const role = currentTarget.getAttribute('role');\n const isTextNavigationRole = role?.startsWith('menuitem') || role === 'option' || role === 'gridcell';\n if (isCurrentTarget && isCompositeItem && isSpaceKey) {\n if (event.defaultPrevented && isTextNavigationRole) {\n return;\n }\n event.preventDefault();\n if (isLink || isNativeButton && isButton) {\n currentTarget.click();\n event.preventBaseUIHandler();\n } else if (shouldClick) {\n externalOnClick?.(event);\n event.preventBaseUIHandler();\n }\n return;\n }\n\n // Keyboard accessibility for native and non-native elements.\n if (shouldClick) {\n if (!isNativeButton && (isSpaceKey || isEnterKey)) {\n event.preventDefault();\n }\n if (!isNativeButton && isEnterKey) {\n externalOnClick?.(event);\n }\n }\n },\n onKeyUp(event) {\n if (disabled) {\n return;\n }\n\n // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed\n // https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0\n makeEventPreventable(event);\n externalOnKeyUp?.(event);\n if (event.target === event.currentTarget && isNativeButton && isCompositeItem && isButtonElement(event.currentTarget) && event.key === ' ') {\n event.preventDefault();\n return;\n }\n if (event.baseUIHandlerPrevented) {\n return;\n }\n\n // Keyboard accessibility for non interactive elements\n if (event.target === event.currentTarget && !isNativeButton && !isCompositeItem && event.key === ' ') {\n externalOnClick?.(event);\n }\n },\n onPointerDown(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnPointerDown?.(event);\n }\n }, isNativeButton ? {\n type: 'button'\n } : {\n role: 'button'\n }, focusableWhenDisabledProps, otherExternalProps);\n }, [disabled, focusableWhenDisabledProps, isCompositeItem, isNativeButton]);\n const buttonRef = useStableCallback(element => {\n elementRef.current = element;\n updateDisabled();\n });\n return {\n getButtonProps,\n buttonRef\n };\n}\nfunction isButtonElement(elem) {\n return isHTMLElement(elem) && elem.tagName === 'BUTTON';\n}\nfunction isValidLinkElement(elem) {\n return Boolean(elem?.tagName === 'A' && elem?.href);\n}"],"names":["useButton","parameters","disabled","focusableWhenDisabled","tabIndex","isNativeButton","compositeProp","elementRef","React","compositeRootContext","useCompositeRootContext","isCompositeItem","focusableWhenDisabledProps","useFocusableWhenDisabled","isButtonTag","isButtonElement","ownerStackMessage","SafeReact","error","updateDisabled","element","useIsoLayoutEffect","getButtonProps","externalProps","externalOnClick","externalOnMouseDown","externalOnKeyUp","externalOnKeyDown","externalOnPointerDown","otherExternalProps","mergeProps","event","makeEventPreventable","isCurrentTarget","currentTarget","isButton","isLink","isValidLinkElement","shouldClick","isEnterKey","isSpaceKey","role","isTextNavigationRole","buttonRef","useStableCallback","elem","isHTMLElement"],"mappings":";;;;;;;;;AAWO,SAASA,EAAUC,IAAa,IAAI;AACzC,QAAM;AAAA,IACJ,UAAAC,IAAW;AAAA,IACX,uBAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,QAAQC,IAAiB;AAAA,IACzB,WAAWC;AAAA,EACf,IAAML,GACEM,IAAaC,EAAM,OAAO,IAAI,GAC9BC,IAAuBC,EAAwB,EAAI,GACnDC,IAAkBL,KAAiBG,MAAyB,QAC5D;AAAA,IACJ,OAAOG;AAAA,EACX,IAAMC,EAAyB;AAAA,IAC3B,uBAAAV;AAAA,IACA,UAAAD;AAAA,IACA,WAAWS;AAAA,IACX,UAAAP;AAAA,IACA,gBAAAC;AAAA,EACJ,CAAG;AACD,EAAI,QAAQ,IAAI,aAAa,gBAE3BG,EAAM,UAAU,MAAM;AACpB,QAAI,CAACD,EAAW;AACd;AAEF,UAAMO,IAAcC,EAAgBR,EAAW,OAAO;AACtD,QAAIF;AACF,UAAI,CAACS,GAAa;AAChB,cAAME,IAAoBC,EAAU,oBAAiB,KAAQ;AAE7D,QAAAC,EAAM,gSAAaF,CAAiB,EAAE;AAAA,MACxC;AAAA,eACSF,GAAa;AACtB,YAAME,IAAoBC,EAAU,oBAAiB,KAAQ;AAE7D,MAAAC,EAAM,gXAAaF,CAAiB,EAAE;AAAA,IACxC;AAAA,EACF,GAAG,CAACX,CAAc,CAAC;AAOrB,QAAMc,IAAiBX,EAAM,YAAY,MAAM;AAC7C,UAAMY,IAAUb,EAAW;AAC3B,IAAKQ,EAAgBK,CAAO,KAGxBT,KAAmBT,KAAYU,EAA2B,aAAa,UAAaQ,EAAQ,aAC9FA,EAAQ,WAAW;AAAA,EAEvB,GAAG,CAAClB,GAAUU,EAA2B,UAAUD,CAAe,CAAC;AACnE,EAAAU,EAAmBF,GAAgB,CAACA,CAAc,CAAC;AACnD,QAAMG,IAAiBd,EAAM,YAAY,CAACe,IAAgB,CAAA,MAAO;AAC/D,UAAM;AAAA,MACJ,SAASC;AAAA,MACT,aAAaC;AAAA,MACb,SAASC;AAAA,MACT,WAAWC;AAAA,MACX,eAAeC;AAAA,MACf,GAAGC;AAAA,IACT,IAAQN;AACJ,WAAOO,EAAW;AAAA,MAChB,QAAQC,GAAO;AACb,YAAI7B,GAAU;AACZ,UAAA6B,EAAM,eAAc;AACpB;AAAA,QACF;AACA,QAAAP,IAAkBO,CAAK;AAAA,MACzB;AAAA,MACA,YAAYA,GAAO;AACjB,QAAK7B,KACHuB,IAAsBM,CAAK;AAAA,MAE/B;AAAA,MACA,UAAUA,GAAO;AAMf,YALI7B,MAGJ8B,EAAqBD,CAAK,GAC1BJ,IAAoBI,CAAK,GACrBA,EAAM;AACR;AAEF,cAAME,IAAkBF,EAAM,WAAWA,EAAM,eACzCG,IAAgBH,EAAM,eACtBI,IAAWpB,EAAgBmB,CAAa,GACxCE,IAAS,CAAC/B,KAAkBgC,EAAmBH,CAAa,GAC5DI,IAAcL,MAAoB5B,IAAiB8B,IAAW,CAACC,IAC/DG,IAAaR,EAAM,QAAQ,SAC3BS,IAAaT,EAAM,QAAQ,KAC3BU,IAAOP,EAAc,aAAa,MAAM,GACxCQ,IAAuBD,GAAM,WAAW,UAAU,KAAKA,MAAS,YAAYA,MAAS;AAC3F,YAAIR,KAAmBtB,KAAmB6B,GAAY;AACpD,cAAIT,EAAM,oBAAoBW;AAC5B;AAEF,UAAAX,EAAM,eAAc,GAChBK,KAAU/B,KAAkB8B,KAC9BD,EAAc,MAAK,GACnBH,EAAM,qBAAoB,KACjBO,MACTd,IAAkBO,CAAK,GACvBA,EAAM,qBAAoB;AAE5B;AAAA,QACF;AAGA,QAAIO,MACE,CAACjC,MAAmBmC,KAAcD,MACpCR,EAAM,eAAc,GAElB,CAAC1B,KAAkBkC,KACrBf,IAAkBO,CAAK;AAAA,MAG7B;AAAA,MACA,QAAQA,GAAO;AACb,YAAI,CAAA7B,GAQJ;AAAA,cAFA8B,EAAqBD,CAAK,GAC1BL,IAAkBK,CAAK,GACnBA,EAAM,WAAWA,EAAM,iBAAiB1B,KAAkBM,KAAmBI,EAAgBgB,EAAM,aAAa,KAAKA,EAAM,QAAQ,KAAK;AAC1I,YAAAA,EAAM,eAAc;AACpB;AAAA,UACF;AACA,UAAIA,EAAM,0BAKNA,EAAM,WAAWA,EAAM,iBAAiB,CAAC1B,KAAkB,CAACM,KAAmBoB,EAAM,QAAQ,OAC/FP,IAAkBO,CAAK;AAAA;AAAA,MAE3B;AAAA,MACA,cAAcA,GAAO;AACnB,YAAI7B,GAAU;AACZ,UAAA6B,EAAM,eAAc;AACpB;AAAA,QACF;AACA,QAAAH,IAAwBG,CAAK;AAAA,MAC/B;AAAA,IACN,GAAO1B,IAAiB;AAAA,MAClB,MAAM;AAAA,IACZ,IAAQ;AAAA,MACF,MAAM;AAAA,IACZ,GAAOO,GAA4BiB,CAAkB;AAAA,EACnD,GAAG,CAAC3B,GAAUU,GAA4BD,GAAiBN,CAAc,CAAC,GACpEsC,IAAYC,EAAkB,CAAAxB,MAAW;AAC7C,IAAAb,EAAW,UAAUa,GACrBD,EAAc;AAAA,EAChB,CAAC;AACD,SAAO;AAAA,IACL,gBAAAG;AAAA,IACA,WAAAqB;AAAA,EACJ;AACA;AACA,SAAS5B,EAAgB8B,GAAM;AAC7B,SAAOC,EAAcD,CAAI,KAAKA,EAAK,YAAY;AACjD;AACA,SAASR,EAAmBQ,GAAM;AAChC,SAAO,GAAQA,GAAM,YAAY,OAAOA,GAAM;AAChD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index176.js","sources":["../../../node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js"],"sourcesContent":["/**\n * Represents a month in a calendar year.\n *\n * A `CalendarMonth` contains the weeks within the month and the date of the\n * month.\n */\nexport class CalendarMonth {\n constructor(month, weeks) {\n this.date = month;\n this.weeks = weeks;\n }\n}\n"],"names":["CalendarMonth","month","weeks"],"mappings":"AAMO,MAAMA,EAAc;AAAA,EACvB,YAAYC,GAAOC,GAAO;AACtB,SAAK,OAAOD,GACZ,KAAK,QAAQC;AAAA,EACjB;AACJ;","x_google_ignoreList":[0]}
package/dist/index177.js CHANGED
@@ -1,16 +1,9 @@
1
- const e = "none", s = "trigger-press", o = "trigger-hover", t = "outside-press", n = "item-press", c = "close-press", i = "focus-out", r = "escape-key", a = "list-navigation", p = "cancel-open", g = "imperative-action", l = "window-resize";
1
+ class t {
2
+ constructor(e, s) {
3
+ this.days = s, this.weekNumber = e;
4
+ }
5
+ }
2
6
  export {
3
- p as cancelOpen,
4
- c as closePress,
5
- r as escapeKey,
6
- i as focusOut,
7
- g as imperativeAction,
8
- n as itemPress,
9
- a as listNavigation,
10
- e as none,
11
- t as outsidePress,
12
- o as triggerHover,
13
- s as triggerPress,
14
- l as windowResize
7
+ t as CalendarWeek
15
8
  };
16
9
  //# sourceMappingURL=index177.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index177.js","sources":["../../../node_modules/@base-ui/react/internals/reason-parts.mjs"],"sourcesContent":["export const none = 'none';\nexport const triggerPress = 'trigger-press';\nexport const triggerHover = 'trigger-hover';\nexport const triggerFocus = 'trigger-focus';\nexport const outsidePress = 'outside-press';\nexport const itemPress = 'item-press';\nexport const closePress = 'close-press';\nexport const linkPress = 'link-press';\nexport const clearPress = 'clear-press';\nexport const chipRemovePress = 'chip-remove-press';\nexport const trackPress = 'track-press';\nexport const incrementPress = 'increment-press';\nexport const decrementPress = 'decrement-press';\nexport const inputChange = 'input-change';\nexport const inputClear = 'input-clear';\nexport const inputBlur = 'input-blur';\nexport const inputPaste = 'input-paste';\nexport const inputPress = 'input-press';\nexport const focusOut = 'focus-out';\nexport const escapeKey = 'escape-key';\nexport const closeWatcher = 'close-watcher';\nexport const listNavigation = 'list-navigation';\nexport const keyboard = 'keyboard';\nexport const pointer = 'pointer';\nexport const drag = 'drag';\nexport const wheel = 'wheel';\nexport const scrub = 'scrub';\nexport const cancelOpen = 'cancel-open';\nexport const siblingOpen = 'sibling-open';\nexport const disabled = 'disabled';\nexport const missing = 'missing';\nexport const initial = 'initial';\nexport const imperativeAction = 'imperative-action';\nexport const swipe = 'swipe';\nexport const windowResize = 'window-resize';"],"names":["none","triggerPress","triggerHover","outsidePress","itemPress","closePress","focusOut","escapeKey","listNavigation","cancelOpen","imperativeAction","windowResize"],"mappings":"AAAY,MAACA,IAAO,QACPC,IAAe,iBACfC,IAAe,iBAEfC,IAAe,iBACfC,IAAY,cACZC,IAAa,eAYbC,IAAW,aACXC,IAAY,cAEZC,IAAiB,mBAMjBC,IAAa,eAKbC,IAAmB,qBAEnBC,IAAe;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index177.js","sources":["../../../node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js"],"sourcesContent":["/**\n * Represents a week in a calendar month.\n *\n * A `CalendarWeek` contains the days within the week and the week number.\n */\nexport class CalendarWeek {\n constructor(weekNumber, days) {\n this.days = days;\n this.weekNumber = weekNumber;\n }\n}\n"],"names":["CalendarWeek","weekNumber","days"],"mappings":"AAKO,MAAMA,EAAa;AAAA,EACtB,YAAYC,GAAYC,GAAM;AAC1B,SAAK,OAAOA,GACZ,KAAK,aAAaD;AAAA,EACtB;AACJ;","x_google_ignoreList":[0]}
package/dist/index178.js CHANGED
@@ -1,8 +1,10 @@
1
- import { useId as r } from "./index347.js";
2
- function i(e) {
3
- return r(e, "base-ui");
1
+ import { getBroadcastWeeksInMonth as n } from "./index341.js";
2
+ import { startOfBroadcastWeek as s } from "./index179.js";
3
+ function d(e, t) {
4
+ const o = s(e, t), r = n(e, t);
5
+ return t.addDays(o, r * 7 - 1);
4
6
  }
5
7
  export {
6
- i as useBaseUiId
8
+ d as endOfBroadcastWeek
7
9
  };
8
10
  //# sourceMappingURL=index178.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index178.js","sources":["../../../node_modules/@base-ui/react/internals/useBaseUiId.mjs"],"sourcesContent":["'use client';\n\nimport { useId } from '@base-ui/utils/useId';\n\n/**\n * Wraps `useId` and prefixes generated `id`s with `base-ui-`\n * @param {string | undefined} idOverride overrides the generated id when provided\n * @returns {string | undefined}\n */\nexport function useBaseUiId(idOverride) {\n return useId(idOverride, 'base-ui');\n}"],"names":["useBaseUiId","idOverride","useId"],"mappings":";AASO,SAASA,EAAYC,GAAY;AACtC,SAAOC,EAAMD,GAAY,SAAS;AACpC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index178.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js"],"sourcesContent":["import { getBroadcastWeeksInMonth } from \"./getBroadcastWeeksInMonth.js\";\nimport { startOfBroadcastWeek } from \"./startOfBroadcastWeek.js\";\n/**\n * Returns the end date of the week in the broadcast calendar.\n *\n * The broadcast week ends on the last day of the last broadcast week for the\n * given date.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the end of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The end date of the broadcast week.\n */\nexport function endOfBroadcastWeek(date, dateLib) {\n const startDate = startOfBroadcastWeek(date, dateLib);\n const numberOfWeeks = getBroadcastWeeksInMonth(date, dateLib);\n const endDate = dateLib.addDays(startDate, numberOfWeeks * 7 - 1);\n return endDate;\n}\n"],"names":["endOfBroadcastWeek","date","dateLib","startDate","startOfBroadcastWeek","numberOfWeeks","getBroadcastWeeksInMonth"],"mappings":";;AAaO,SAASA,EAAmBC,GAAMC,GAAS;AAC9C,QAAMC,IAAYC,EAAqBH,GAAMC,CAAO,GAC9CG,IAAgBC,EAAyBL,GAAMC,CAAO;AAE5D,SADgBA,EAAQ,QAAQC,GAAWE,IAAgB,IAAI,CAAC;AAEpE;","x_google_ignoreList":[0]}
package/dist/index179.js CHANGED
@@ -1,7 +1,8 @@
1
- let t = /* @__PURE__ */ (function(e) {
2
- return e.nestedDialogs = "--nested-dialogs", e;
3
- })({});
1
+ function n(s, e) {
2
+ const t = e.startOfMonth(s), r = t.getDay();
3
+ return r === 1 ? t : r === 0 ? e.addDays(t, -6) : e.addDays(t, -1 * (r - 1));
4
+ }
4
5
  export {
5
- t as DialogPopupCssVars
6
+ n as startOfBroadcastWeek
6
7
  };
7
8
  //# sourceMappingURL=index179.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index179.js","sources":["../../../node_modules/@base-ui/react/dialog/popup/DialogPopupCssVars.mjs"],"sourcesContent":["export let DialogPopupCssVars = /*#__PURE__*/function (DialogPopupCssVars) {\n /**\n * Indicates how many dialogs are nested within.\n * @type {number}\n */\n DialogPopupCssVars[\"nestedDialogs\"] = \"--nested-dialogs\";\n return DialogPopupCssVars;\n}({});"],"names":["DialogPopupCssVars"],"mappings":"AAAU,IAACA,IAAkC,0BAAUA,GAAoB;AAKzE,SAAAA,EAAmB,gBAAmB,oBAC/BA;AACT,GAAE,CAAA,CAAE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index179.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js"],"sourcesContent":["/**\n * Returns the start date of the week in the broadcast calendar.\n *\n * The broadcast week starts on Monday. If the first day of the month is not a\n * Monday, this function calculates the previous Monday as the start of the\n * broadcast week.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the start of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The start date of the broadcast week.\n */\nexport function startOfBroadcastWeek(date, dateLib) {\n const firstOfMonth = dateLib.startOfMonth(date);\n const dayOfWeek = firstOfMonth.getDay();\n if (dayOfWeek === 1) {\n return firstOfMonth;\n }\n else if (dayOfWeek === 0) {\n return dateLib.addDays(firstOfMonth, -1 * 6);\n }\n else {\n return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));\n }\n}\n"],"names":["startOfBroadcastWeek","date","dateLib","firstOfMonth","dayOfWeek"],"mappings":"AAYO,SAASA,EAAqBC,GAAMC,GAAS;AAChD,QAAMC,IAAeD,EAAQ,aAAaD,CAAI,GACxCG,IAAYD,EAAa,OAAM;AACrC,SAAIC,MAAc,IACPD,IAEFC,MAAc,IACZF,EAAQ,QAAQC,GAAc,EAAM,IAGpCD,EAAQ,QAAQC,GAAc,MAAMC,IAAY,EAAE;AAEjE;","x_google_ignoreList":[0]}
package/dist/index180.js CHANGED
@@ -1,8 +1,10 @@
1
- import { CommonPopupDataAttributes as e } from "./index173.js";
2
- let y = (function(n) {
3
- return n[n.open = e.open] = "open", n[n.closed = e.closed] = "closed", n[n.startingStyle = e.startingStyle] = "startingStyle", n[n.endingStyle = e.endingStyle] = "endingStyle", n.nested = "data-nested", n.nestedDialogOpen = "data-nested-dialog-open", n;
4
- })({});
1
+ import { constructFrom as i } from "./index378.js";
2
+ import { toDate as n } from "./index379.js";
3
+ function s(e, r, o) {
4
+ const t = n(e, o?.in);
5
+ return isNaN(r) ? i(e, NaN) : (r && t.setDate(t.getDate() + r), t);
6
+ }
5
7
  export {
6
- y as DialogPopupDataAttributes
8
+ s as addDays
7
9
  };
8
10
  //# sourceMappingURL=index180.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index180.js","sources":["../../../node_modules/@base-ui/react/dialog/popup/DialogPopupDataAttributes.mjs"],"sourcesContent":["import { CommonPopupDataAttributes } from \"../../utils/popupStateMapping.mjs\";\nexport let DialogPopupDataAttributes = function (DialogPopupDataAttributes) {\n /**\n * Present when the dialog is open.\n */\n DialogPopupDataAttributes[DialogPopupDataAttributes[\"open\"] = CommonPopupDataAttributes.open] = \"open\";\n /**\n * Present when the dialog is closed.\n */\n DialogPopupDataAttributes[DialogPopupDataAttributes[\"closed\"] = CommonPopupDataAttributes.closed] = \"closed\";\n /**\n * Present when the dialog is animating in.\n */\n DialogPopupDataAttributes[DialogPopupDataAttributes[\"startingStyle\"] = CommonPopupDataAttributes.startingStyle] = \"startingStyle\";\n /**\n * Present when the dialog is animating out.\n */\n DialogPopupDataAttributes[DialogPopupDataAttributes[\"endingStyle\"] = CommonPopupDataAttributes.endingStyle] = \"endingStyle\";\n /**\n * Present when the dialog is nested within another dialog.\n */\n DialogPopupDataAttributes[\"nested\"] = \"data-nested\";\n /**\n * Present when the dialog has other open dialogs nested within it.\n */\n DialogPopupDataAttributes[\"nestedDialogOpen\"] = \"data-nested-dialog-open\";\n return DialogPopupDataAttributes;\n}({});"],"names":["DialogPopupDataAttributes","CommonPopupDataAttributes"],"mappings":";AACU,IAACA,KAA4B,SAAUA,GAA2B;AAI1E,SAAAA,EAA0BA,EAA0B,OAAUC,EAA0B,IAAI,IAAI,QAIhGD,EAA0BA,EAA0B,SAAYC,EAA0B,MAAM,IAAI,UAIpGD,EAA0BA,EAA0B,gBAAmBC,EAA0B,aAAa,IAAI,iBAIlHD,EAA0BA,EAA0B,cAAiBC,EAA0B,WAAW,IAAI,eAI9GD,EAA0B,SAAY,eAItCA,EAA0B,mBAAsB,2BACzCA;AACT,GAAE,CAAA,CAAE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index180.js","sources":["../../../node_modules/date-fns/addDays.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addDays} function options.\n */\n\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given 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 date to be changed\n * @param amount - The amount of days to be added.\n * @param options - An object with options\n *\n * @returns The new date with the days added\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\nexport function addDays(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n if (!amount) return _date;\n\n _date.setDate(_date.getDate() + amount);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default addDays;\n"],"names":["addDays","date","amount","options","_date","toDate","constructFrom"],"mappings":";;AA6BO,SAASA,EAAQC,GAAMC,GAAQC,GAAS;AAC7C,QAAMC,IAAQC,EAAOJ,GAAME,GAAS,EAAE;AACtC,SAAI,MAAMD,CAAM,IAAUI,EAA6BL,GAAM,GAAG,KAG3DC,KAELE,EAAM,QAAQA,EAAM,QAAO,IAAKF,CAAM,GAC/BE;AACT;","x_google_ignoreList":[0]}
package/dist/index181.js CHANGED
@@ -1,15 +1,20 @@
1
- import r from "./index190.js";
2
- import * as t from "react";
3
- const e = /* @__PURE__ */ t.createContext(void 0);
4
- process.env.NODE_ENV !== "production" && (e.displayName = "DialogPortalContext");
5
- function a() {
6
- const o = t.useContext(e);
7
- if (o === void 0)
8
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Portal> is missing." : r(26));
9
- return o;
1
+ import { constructFrom as s } from "./index378.js";
2
+ import { toDate as a } from "./index379.js";
3
+ function M(n, o, i) {
4
+ const t = a(n, i?.in);
5
+ if (isNaN(o)) return s(n, NaN);
6
+ if (!o)
7
+ return t;
8
+ const r = t.getDate(), e = s(n, t.getTime());
9
+ e.setMonth(t.getMonth() + o + 1, 0);
10
+ const f = e.getDate();
11
+ return r >= f ? e : (t.setFullYear(
12
+ e.getFullYear(),
13
+ e.getMonth(),
14
+ r
15
+ ), t);
10
16
  }
11
17
  export {
12
- e as DialogPortalContext,
13
- a as useDialogPortalContext
18
+ M as addMonths
14
19
  };
15
20
  //# sourceMappingURL=index181.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index181.js","sources":["../../../node_modules/@base-ui/react/dialog/portal/DialogPortalContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const DialogPortalContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") DialogPortalContext.displayName = \"DialogPortalContext\";\nexport function useDialogPortalContext() {\n const value = React.useContext(DialogPortalContext);\n if (value === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: <Dialog.Portal> is missing.' : _formatErrorMessage(26));\n }\n return value;\n}"],"names":["DialogPortalContext","React","useDialogPortalContext","value","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAmC,gBAAAC,EAAM,cAAc,MAAS;AACzE,QAAQ,IAAI,aAAa,iBAAcD,EAAoB,cAAc;AACtE,SAASE,IAAyB;AACvC,QAAMC,IAAQF,EAAM,WAAWD,CAAmB;AAClD,MAAIG,MAAU;AACZ,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,yCAAyCC,EAAoB,EAAE,CAAC;AAE1H,SAAOD;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index181.js","sources":["../../../node_modules/date-fns/addMonths.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMonths} function options.\n */\n\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given 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 date to be changed\n * @param amount - The amount of months to be added.\n * @param options - The options object\n *\n * @returns The new date with the months added\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n *\n * // Add one month to 30 January 2023:\n * const result = addMonths(new Date(2023, 0, 30), 1)\n * //=> Tue Feb 28 2023 00:00:00\n */\nexport function addMonths(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n if (!amount) {\n // If 0 months, no-op to avoid changing times in the hour before end of DST\n return _date;\n }\n const dayOfMonth = _date.getDate();\n\n // The JS Date object supports date math by accepting out-of-bounds values for\n // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we\n // want except that dates will wrap around the end of a month, meaning that\n // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n // we'll default to the end of the desired month by adding 1 to the desired\n // month and using a date of 0 to back up one day to the end of the desired\n // month.\n const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());\n endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);\n const daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n // If we're already at the end of the month, then this is the correct date\n // and we're done.\n return endOfDesiredMonth;\n } else {\n // Otherwise, we now know that setting the original day-of-month value won't\n // cause an overflow, so set the desired day-of-month. Note that we can't\n // just set the date of `endOfDesiredMonth` because that object may have had\n // its time changed in the unusual case where where a DST transition was on\n // the last day of the month and its local time was in the hour skipped or\n // repeated next to a DST transition. So we use `date` instead which is\n // guaranteed to still have the original time.\n _date.setFullYear(\n endOfDesiredMonth.getFullYear(),\n endOfDesiredMonth.getMonth(),\n dayOfMonth,\n );\n return _date;\n }\n}\n\n// Fallback for modularized imports:\nexport default addMonths;\n"],"names":["addMonths","date","amount","options","_date","toDate","constructFrom","dayOfMonth","endOfDesiredMonth","daysInMonth"],"mappings":";;AAiCO,SAASA,EAAUC,GAAMC,GAAQC,GAAS;AAC/C,QAAMC,IAAQC,EAAOJ,GAAME,GAAS,EAAE;AACtC,MAAI,MAAMD,CAAM,EAAG,QAAOI,EAA6BL,GAAM,GAAG;AAChE,MAAI,CAACC;AAEH,WAAOE;AAET,QAAMG,IAAaH,EAAM,QAAO,GAU1BI,IAAoBF,EAA6BL,GAAMG,EAAM,QAAO,CAAE;AAC5E,EAAAI,EAAkB,SAASJ,EAAM,SAAQ,IAAKF,IAAS,GAAG,CAAC;AAC3D,QAAMO,IAAcD,EAAkB,QAAO;AAC7C,SAAID,KAAcE,IAGTD,KASPJ,EAAM;AAAA,IACJI,EAAkB,YAAW;AAAA,IAC7BA,EAAkB,SAAQ;AAAA,IAC1BD;AAAA,EACN,GACWH;AAEX;","x_google_ignoreList":[0]}
package/dist/index182.js CHANGED
@@ -1,23 +1,8 @@
1
- import * as l from "react";
2
- import { useStableCallback as m } from "./index202.js";
3
- import { useAnimationsFinished as f } from "./index349.js";
4
- function c(a) {
5
- const {
6
- enabled: e = !0,
7
- open: n,
8
- ref: i,
9
- onComplete: s
10
- } = a, o = m(s), t = f(i, n, !1);
11
- l.useEffect(() => {
12
- if (!e)
13
- return;
14
- const r = new AbortController();
15
- return t(o, r.signal), () => {
16
- r.abort();
17
- };
18
- }, [e, n, o, t]);
1
+ import { addDays as o } from "./index180.js";
2
+ function a(r, d, e) {
3
+ return o(r, d * 7, e);
19
4
  }
20
5
  export {
21
- c as useOpenChangeComplete
6
+ a as addWeeks
22
7
  };
23
8
  //# sourceMappingURL=index182.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index182.js","sources":["../../../node_modules/@base-ui/react/internals/useOpenChangeComplete.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useAnimationsFinished } from \"./useAnimationsFinished.mjs\";\n\n/**\n * Calls the provided function when the CSS open/close animation or transition completes.\n */\nexport function useOpenChangeComplete(parameters) {\n const {\n enabled = true,\n open,\n ref,\n onComplete: onCompleteParam\n } = parameters;\n const onComplete = useStableCallback(onCompleteParam);\n const runOnceAnimationsFinish = useAnimationsFinished(ref, open, false);\n React.useEffect(() => {\n if (!enabled) {\n return undefined;\n }\n const abortController = new AbortController();\n runOnceAnimationsFinish(onComplete, abortController.signal);\n return () => {\n abortController.abort();\n };\n }, [enabled, open, onComplete, runOnceAnimationsFinish]);\n}"],"names":["useOpenChangeComplete","parameters","enabled","open","ref","onCompleteParam","onComplete","useStableCallback","runOnceAnimationsFinish","useAnimationsFinished","React","abortController"],"mappings":";;;AASO,SAASA,EAAsBC,GAAY;AAChD,QAAM;AAAA,IACJ,SAAAC,IAAU;AAAA,IACV,MAAAC;AAAA,IACA,KAAAC;AAAA,IACA,YAAYC;AAAA,EAChB,IAAMJ,GACEK,IAAaC,EAAkBF,CAAe,GAC9CG,IAA0BC,EAAsBL,GAAKD,GAAM,EAAK;AACtE,EAAAO,EAAM,UAAU,MAAM;AACpB,QAAI,CAACR;AACH;AAEF,UAAMS,IAAkB,IAAI,gBAAe;AAC3C,WAAAH,EAAwBF,GAAYK,EAAgB,MAAM,GACnD,MAAM;AACX,MAAAA,EAAgB,MAAK;AAAA,IACvB;AAAA,EACF,GAAG,CAACT,GAASC,GAAMG,GAAYE,CAAuB,CAAC;AACzD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index182.js","sources":["../../../node_modules/date-fns/addWeeks.js"],"sourcesContent":["import { addDays } from \"./addDays.js\";\n\n/**\n * The {@link addWeeks} function options.\n */\n\n/**\n * @name addWeeks\n * @category Week Helpers\n * @summary Add the specified number of weeks to the given date.\n *\n * @description\n * Add the specified number of weeks to the given 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 date to be changed\n * @param amount - The amount of weeks to be added.\n * @param options - An object with options\n *\n * @returns The new date with the weeks added\n *\n * @example\n * // Add 4 weeks to 1 September 2014:\n * const result = addWeeks(new Date(2014, 8, 1), 4)\n * //=> Mon Sep 29 2014 00:00:00\n */\nexport function addWeeks(date, amount, options) {\n return addDays(date, amount * 7, options);\n}\n\n// Fallback for modularized imports:\nexport default addWeeks;\n"],"names":["addWeeks","date","amount","options","addDays"],"mappings":";AA4BO,SAASA,EAASC,GAAMC,GAAQC,GAAS;AAC9C,SAAOC,EAAQH,GAAMC,IAAS,GAAGC,CAAO;AAC1C;","x_google_ignoreList":[0]}
package/dist/index183.js CHANGED
@@ -1,14 +1,8 @@
1
- const o = "ArrowUp", t = "ArrowDown", n = "ArrowLeft", R = "ArrowRight", e = "Home", c = "End", A = /* @__PURE__ */ new Set([n, R]), E = /* @__PURE__ */ new Set([o, t]), O = /* @__PURE__ */ new Set([...A, ...E]), s = /* @__PURE__ */ new Set([...O, e, "End"]);
1
+ import { addMonths as d } from "./index181.js";
2
+ function a(r, o, t) {
3
+ return d(r, o * 12, t);
4
+ }
2
5
  export {
3
- t as ARROW_DOWN,
4
- O as ARROW_KEYS,
5
- n as ARROW_LEFT,
6
- R as ARROW_RIGHT,
7
- o as ARROW_UP,
8
- s as COMPOSITE_KEYS,
9
- c as END,
10
- e as HOME,
11
- A as HORIZONTAL_KEYS,
12
- E as VERTICAL_KEYS
6
+ a as addYears
13
7
  };
14
8
  //# sourceMappingURL=index183.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index183.js","sources":["../../../node_modules/@base-ui/react/internals/composite/composite.mjs"],"sourcesContent":["import { isHTMLElement } from '@floating-ui/utils/dom';\nexport { stopEvent, isIndexOutOfListBounds, isListIndexDisabled, findNonDisabledListIndex, getMaxListIndex, getMinListIndex } from \"../../floating-ui-react/utils.mjs\";\nexport const ARROW_UP = 'ArrowUp';\nexport const ARROW_DOWN = 'ArrowDown';\nexport const ARROW_LEFT = 'ArrowLeft';\nexport const ARROW_RIGHT = 'ArrowRight';\nexport const HOME = 'Home';\nexport const END = 'End';\nexport const PAGE_UP = 'PageUp';\nexport const PAGE_DOWN = 'PageDown';\nexport const HORIZONTAL_KEYS = new Set([ARROW_LEFT, ARROW_RIGHT]);\nexport const HORIZONTAL_KEYS_WITH_EXTRA_KEYS = new Set([ARROW_LEFT, ARROW_RIGHT, HOME, END]);\nexport const VERTICAL_KEYS = new Set([ARROW_UP, ARROW_DOWN]);\nexport const VERTICAL_KEYS_WITH_EXTRA_KEYS = new Set([ARROW_UP, ARROW_DOWN, HOME, END]);\nexport const ARROW_KEYS = new Set([...HORIZONTAL_KEYS, ...VERTICAL_KEYS]);\nexport const COMPOSITE_KEYS = new Set([...ARROW_KEYS, HOME, END]);\nexport const SHIFT = 'Shift';\nexport const CONTROL = 'Control';\nexport const ALT = 'Alt';\nexport const META = 'Meta';\nexport const MODIFIER_KEYS = new Set([SHIFT, CONTROL, ALT, META]);\nfunction isInputElement(element) {\n return isHTMLElement(element) && element.tagName === 'INPUT';\n}\nexport function isNativeInput(element) {\n if (isInputElement(element) && element.selectionStart != null) {\n return true;\n }\n if (isHTMLElement(element) && element.tagName === 'TEXTAREA') {\n return true;\n }\n return false;\n}\nexport function scrollIntoViewIfNeeded(scrollContainer, element, direction, orientation) {\n if (!scrollContainer || !element || !element.scrollTo) {\n return;\n }\n let targetX = scrollContainer.scrollLeft;\n let targetY = scrollContainer.scrollTop;\n const isOverflowingX = scrollContainer.clientWidth < scrollContainer.scrollWidth;\n const isOverflowingY = scrollContainer.clientHeight < scrollContainer.scrollHeight;\n if (isOverflowingX && orientation !== 'vertical') {\n const elementOffsetLeft = getOffset(scrollContainer, element, 'left');\n const containerStyles = getStyles(scrollContainer);\n const elementStyles = getStyles(element);\n if (direction === 'ltr') {\n if (elementOffsetLeft + element.offsetWidth + elementStyles.scrollMarginRight > scrollContainer.scrollLeft + scrollContainer.clientWidth - containerStyles.scrollPaddingRight) {\n // overflow to the right, scroll to align right edges\n targetX = elementOffsetLeft + element.offsetWidth + elementStyles.scrollMarginRight - scrollContainer.clientWidth + containerStyles.scrollPaddingRight;\n } else if (elementOffsetLeft - elementStyles.scrollMarginLeft < scrollContainer.scrollLeft + containerStyles.scrollPaddingLeft) {\n // overflow to the left, scroll to align left edges\n targetX = elementOffsetLeft - elementStyles.scrollMarginLeft - containerStyles.scrollPaddingLeft;\n }\n }\n if (direction === 'rtl') {\n if (elementOffsetLeft - elementStyles.scrollMarginRight < scrollContainer.scrollLeft + containerStyles.scrollPaddingLeft) {\n // overflow to the left, scroll to align left edges\n targetX = elementOffsetLeft - elementStyles.scrollMarginLeft - containerStyles.scrollPaddingLeft;\n } else if (elementOffsetLeft + element.offsetWidth + elementStyles.scrollMarginRight > scrollContainer.scrollLeft + scrollContainer.clientWidth - containerStyles.scrollPaddingRight) {\n // overflow to the right, scroll to align right edges\n targetX = elementOffsetLeft + element.offsetWidth + elementStyles.scrollMarginRight - scrollContainer.clientWidth + containerStyles.scrollPaddingRight;\n }\n }\n }\n if (isOverflowingY && orientation !== 'horizontal') {\n const elementOffsetTop = getOffset(scrollContainer, element, 'top');\n const containerStyles = getStyles(scrollContainer);\n const elementStyles = getStyles(element);\n if (elementOffsetTop - elementStyles.scrollMarginTop < scrollContainer.scrollTop + containerStyles.scrollPaddingTop) {\n // overflow upwards, align top edges\n targetY = elementOffsetTop - elementStyles.scrollMarginTop - containerStyles.scrollPaddingTop;\n } else if (elementOffsetTop + element.offsetHeight + elementStyles.scrollMarginBottom > scrollContainer.scrollTop + scrollContainer.clientHeight - containerStyles.scrollPaddingBottom) {\n // overflow downwards, align bottom edges\n targetY = elementOffsetTop + element.offsetHeight + elementStyles.scrollMarginBottom - scrollContainer.clientHeight + containerStyles.scrollPaddingBottom;\n }\n }\n scrollContainer.scrollTo({\n left: targetX,\n top: targetY,\n behavior: 'auto'\n });\n}\nfunction getOffset(ancestor, element, side) {\n const propName = side === 'left' ? 'offsetLeft' : 'offsetTop';\n let result = 0;\n while (element.offsetParent) {\n result += element[propName];\n if (element.offsetParent === ancestor) {\n break;\n }\n element = element.offsetParent;\n }\n return result;\n}\nfunction getStyles(element) {\n const styles = getComputedStyle(element);\n return {\n scrollMarginTop: parseFloat(styles.scrollMarginTop) || 0,\n scrollMarginRight: parseFloat(styles.scrollMarginRight) || 0,\n scrollMarginBottom: parseFloat(styles.scrollMarginBottom) || 0,\n scrollMarginLeft: parseFloat(styles.scrollMarginLeft) || 0,\n scrollPaddingTop: parseFloat(styles.scrollPaddingTop) || 0,\n scrollPaddingRight: parseFloat(styles.scrollPaddingRight) || 0,\n scrollPaddingBottom: parseFloat(styles.scrollPaddingBottom) || 0,\n scrollPaddingLeft: parseFloat(styles.scrollPaddingLeft) || 0\n };\n}"],"names":["ARROW_UP","ARROW_DOWN","ARROW_LEFT","ARROW_RIGHT","HOME","END","HORIZONTAL_KEYS","VERTICAL_KEYS","ARROW_KEYS","COMPOSITE_KEYS"],"mappings":"AAEY,MAACA,IAAW,WACXC,IAAa,aACbC,IAAa,aACbC,IAAc,cACdC,IAAO,QACPC,IAAM,OAGNC,IAAkB,oBAAI,IAAI,CAACJ,GAAYC,CAAW,CAAC,GAEnDI,IAAgB,oBAAI,IAAI,CAACP,GAAUC,CAAU,CAAC,GAE9CO,IAAa,oBAAI,IAAI,CAAC,GAAGF,GAAiB,GAAGC,CAAa,CAAC,GAC3DE,IAAiB,oBAAI,IAAI,CAAC,GAAGD,GAAYJ,GAAM,KAAG,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index183.js","sources":["../../../node_modules/date-fns/addYears.js"],"sourcesContent":["import { addMonths } from \"./addMonths.js\";\n\n/**\n * The {@link addYears} function options.\n */\n\n/**\n * @name addYears\n * @category Year Helpers\n * @summary Add the specified number of years to the given date.\n *\n * @description\n * Add the specified number of years to the given 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.\n *\n * @param date - The date to be changed\n * @param amount - The amount of years to be added.\n * @param options - The options\n *\n * @returns The new date with the years added\n *\n * @example\n * // Add 5 years to 1 September 2014:\n * const result = addYears(new Date(2014, 8, 1), 5)\n * //=> Sun Sep 01 2019 00:00:00\n */\nexport function addYears(date, amount, options) {\n return addMonths(date, amount * 12, options);\n}\n\n// Fallback for modularized imports:\nexport default addYears;\n"],"names":["addYears","date","amount","options","addMonths"],"mappings":";AA4BO,SAASA,EAASC,GAAMC,GAAQC,GAAS;AAC9C,SAAOC,EAAUH,GAAMC,IAAS,IAAIC,CAAO;AAC7C;","x_google_ignoreList":[0]}