@rpcbase/ui 0.254.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 (630) hide show
  1. package/dist/index10.js +2 -2
  2. package/dist/index105.js +36 -36
  3. package/dist/index106.js +1 -1
  4. package/dist/index11.js +2 -2
  5. package/dist/index117.js +6 -6
  6. package/dist/index12.js +3 -3
  7. package/dist/index120.js +10 -10
  8. package/dist/index122.js +2 -2
  9. package/dist/index123.js +3 -3
  10. package/dist/index124.js +1 -1
  11. package/dist/index126.js +2 -2
  12. package/dist/index128.js +2 -2
  13. package/dist/index13.js +2 -2
  14. package/dist/index14.js +2 -2
  15. package/dist/index15.js +2 -2
  16. package/dist/index150.js +3 -3
  17. package/dist/index156.js +1 -1
  18. package/dist/index16.js +8 -8
  19. package/dist/index163.js +2 -2
  20. package/dist/index164.js +7 -7
  21. package/dist/index167.js +4 -4
  22. package/dist/index169.js +1 -1
  23. package/dist/index17.js +1 -1
  24. package/dist/index171.js +58 -14
  25. package/dist/index171.js.map +1 -1
  26. package/dist/index172.js +8 -68
  27. package/dist/index172.js.map +1 -1
  28. package/dist/index173.js +87 -37
  29. package/dist/index173.js.map +1 -1
  30. package/dist/index174.js +19 -13
  31. package/dist/index174.js.map +1 -1
  32. package/dist/index175.js +16 -23
  33. package/dist/index175.js.map +1 -1
  34. package/dist/index176.js +5 -111
  35. package/dist/index176.js.map +1 -1
  36. package/dist/index177.js +6 -13
  37. package/dist/index177.js.map +1 -1
  38. package/dist/index178.js +6 -4
  39. package/dist/index178.js.map +1 -1
  40. package/dist/index179.js +5 -4
  41. package/dist/index179.js.map +1 -1
  42. package/dist/index18.js +7 -7
  43. package/dist/index180.js +7 -5
  44. package/dist/index180.js.map +1 -1
  45. package/dist/index181.js +16 -11
  46. package/dist/index181.js.map +1 -1
  47. package/dist/index182.js +4 -19
  48. package/dist/index182.js.map +1 -1
  49. package/dist/index183.js +5 -11
  50. package/dist/index183.js.map +1 -1
  51. package/dist/index184.js +12 -176
  52. package/dist/index184.js.map +1 -1
  53. package/dist/index185.js +9 -279
  54. package/dist/index185.js.map +1 -1
  55. package/dist/index186.js +13 -4
  56. package/dist/index186.js.map +1 -1
  57. package/dist/index187.js +14 -28
  58. package/dist/index187.js.map +1 -1
  59. package/dist/index188.js +4 -126
  60. package/dist/index188.js.map +1 -1
  61. package/dist/index189.js +5 -63
  62. package/dist/index189.js.map +1 -1
  63. package/dist/index19.js +16 -16
  64. package/dist/index190.js +6 -8
  65. package/dist/index190.js.map +1 -1
  66. package/dist/index191.js +6 -16
  67. package/dist/index191.js.map +1 -1
  68. package/dist/index192.js +53 -29
  69. package/dist/index192.js.map +1 -1
  70. package/dist/index193.js +8 -69
  71. package/dist/index193.js.map +1 -1
  72. package/dist/index194.js +4 -58
  73. package/dist/index194.js.map +1 -1
  74. package/dist/index195.js +4 -8
  75. package/dist/index195.js.map +1 -1
  76. package/dist/index196.js +8 -87
  77. package/dist/index196.js.map +1 -1
  78. package/dist/index197.js +4 -19
  79. package/dist/index197.js.map +1 -1
  80. package/dist/index198.js +4 -16
  81. package/dist/index198.js.map +1 -1
  82. package/dist/index199.js +3 -5
  83. package/dist/index199.js.map +1 -1
  84. package/dist/index200.js +10 -5
  85. package/dist/index200.js.map +1 -1
  86. package/dist/index201.js +9 -6
  87. package/dist/index201.js.map +1 -1
  88. package/dist/index202.js +9 -4
  89. package/dist/index202.js.map +1 -1
  90. package/dist/index203.js +10 -6
  91. package/dist/index203.js.map +1 -1
  92. package/dist/index204.js +10 -16
  93. package/dist/index204.js.map +1 -1
  94. package/dist/index205.js +9 -4
  95. package/dist/index205.js.map +1 -1
  96. package/dist/index206.js +6 -4
  97. package/dist/index206.js.map +1 -1
  98. package/dist/index207.js +5 -12
  99. package/dist/index207.js.map +1 -1
  100. package/dist/index208.js +4 -9
  101. package/dist/index208.js.map +1 -1
  102. package/dist/index209.js +5 -13
  103. package/dist/index209.js.map +1 -1
  104. package/dist/index21.js +1 -1
  105. package/dist/index210.js +6 -13
  106. package/dist/index210.js.map +1 -1
  107. package/dist/index211.js +5 -4
  108. package/dist/index211.js.map +1 -1
  109. package/dist/index212.js +16 -5
  110. package/dist/index212.js.map +1 -1
  111. package/dist/index213.js +7 -6
  112. package/dist/index213.js.map +1 -1
  113. package/dist/index214.js +10 -5
  114. package/dist/index214.js.map +1 -1
  115. package/dist/index215.js +10 -54
  116. package/dist/index215.js.map +1 -1
  117. package/dist/index216.js +21 -8
  118. package/dist/index216.js.map +1 -1
  119. package/dist/index217.js +8 -4
  120. package/dist/index217.js.map +1 -1
  121. package/dist/index218.js +9 -4
  122. package/dist/index218.js.map +1 -1
  123. package/dist/index219.js +9 -8
  124. package/dist/index219.js.map +1 -1
  125. package/dist/index22.js +2 -2
  126. package/dist/index220.js +4 -4
  127. package/dist/index220.js.map +1 -1
  128. package/dist/index221.js +5 -4
  129. package/dist/index221.js.map +1 -1
  130. package/dist/index222.js +16 -3
  131. package/dist/index222.js.map +1 -1
  132. package/dist/index223.js +9 -10
  133. package/dist/index223.js.map +1 -1
  134. package/dist/index224.js +18 -9
  135. package/dist/index224.js.map +1 -1
  136. package/dist/index225.js +20 -9
  137. package/dist/index225.js.map +1 -1
  138. package/dist/index226.js +12 -10
  139. package/dist/index226.js.map +1 -1
  140. package/dist/index227.js +29 -10
  141. package/dist/index227.js.map +1 -1
  142. package/dist/index228.js +12 -9
  143. package/dist/index228.js.map +1 -1
  144. package/dist/index229.js +25 -6
  145. package/dist/index229.js.map +1 -1
  146. package/dist/index23.js +1 -1
  147. package/dist/index230.js +5 -5
  148. package/dist/index230.js.map +1 -1
  149. package/dist/index231.js +14 -4
  150. package/dist/index231.js.map +1 -1
  151. package/dist/index232.js +68 -5
  152. package/dist/index232.js.map +1 -1
  153. package/dist/index233.js +38 -7
  154. package/dist/index233.js.map +1 -1
  155. package/dist/index234.js +14 -6
  156. package/dist/index234.js.map +1 -1
  157. package/dist/index235.js +23 -29
  158. package/dist/index235.js.map +1 -1
  159. package/dist/index236.js +111 -12
  160. package/dist/index236.js.map +1 -1
  161. package/dist/index237.js +13 -26
  162. package/dist/index237.js.map +1 -1
  163. package/dist/index238.js +4 -5
  164. package/dist/index238.js.map +1 -1
  165. package/dist/index239.js +4 -17
  166. package/dist/index239.js.map +1 -1
  167. package/dist/index24.js +1 -1
  168. package/dist/index240.js +5 -8
  169. package/dist/index240.js.map +1 -1
  170. package/dist/index241.js +11 -10
  171. package/dist/index241.js.map +1 -1
  172. package/dist/index242.js +19 -10
  173. package/dist/index242.js.map +1 -1
  174. package/dist/index243.js +11 -22
  175. package/dist/index243.js.map +1 -1
  176. package/dist/index244.js +176 -8
  177. package/dist/index244.js.map +1 -1
  178. package/dist/index245.js +278 -8
  179. package/dist/index245.js.map +1 -1
  180. package/dist/index246.js +4 -9
  181. package/dist/index246.js.map +1 -1
  182. package/dist/index247.js +28 -5
  183. package/dist/index247.js.map +1 -1
  184. package/dist/index248.js +126 -5
  185. package/dist/index248.js.map +1 -1
  186. package/dist/index249.js +63 -16
  187. package/dist/index249.js.map +1 -1
  188. package/dist/index25.js +1 -1
  189. package/dist/index250.js +8 -9
  190. package/dist/index250.js.map +1 -1
  191. package/dist/index251.js +16 -19
  192. package/dist/index251.js.map +1 -1
  193. package/dist/index252.js +30 -20
  194. package/dist/index252.js.map +1 -1
  195. package/dist/index253.js +69 -12
  196. package/dist/index253.js.map +1 -1
  197. package/dist/index254.js +20 -155
  198. package/dist/index254.js.map +1 -1
  199. package/dist/index255.js +65 -31
  200. package/dist/index255.js.map +1 -1
  201. package/dist/index256.js +6 -11
  202. package/dist/index256.js.map +1 -1
  203. package/dist/index257.js +5 -49
  204. package/dist/index257.js.map +1 -1
  205. package/dist/index258.js +11 -9
  206. package/dist/index258.js.map +1 -1
  207. package/dist/index259.js +3 -11
  208. package/dist/index259.js.map +1 -1
  209. package/dist/index260.js +48 -41
  210. package/dist/index260.js.map +1 -1
  211. package/dist/index261.js +4 -98
  212. package/dist/index261.js.map +1 -1
  213. package/dist/index262.js +27 -84
  214. package/dist/index262.js.map +1 -1
  215. package/dist/index263.js +14 -103
  216. package/dist/index263.js.map +1 -1
  217. package/dist/index264.js +5 -52
  218. package/dist/index264.js.map +1 -1
  219. package/dist/index265.js +21 -11
  220. package/dist/index265.js.map +1 -1
  221. package/dist/index266.js +53 -4
  222. package/dist/index266.js.map +1 -1
  223. package/dist/index267.js +20 -37
  224. package/dist/index267.js.map +1 -1
  225. package/dist/index268.js +41 -8
  226. package/dist/index268.js.map +1 -1
  227. package/dist/index269.js +36 -132
  228. package/dist/index269.js.map +1 -1
  229. package/dist/index270.js +46 -18
  230. package/dist/index270.js.map +1 -1
  231. package/dist/index271.js +19 -14
  232. package/dist/index271.js.map +1 -1
  233. package/dist/index272.js +70 -3
  234. package/dist/index272.js.map +1 -1
  235. package/dist/index273.js +15 -34
  236. package/dist/index273.js.map +1 -1
  237. package/dist/index274.js +3 -20
  238. package/dist/index274.js.map +1 -1
  239. package/dist/index275.js +11 -9
  240. package/dist/index275.js.map +1 -1
  241. package/dist/index276.js +13 -8
  242. package/dist/index276.js.map +1 -1
  243. package/dist/index277.js +18 -24
  244. package/dist/index277.js.map +1 -1
  245. package/dist/index278.js +35 -27
  246. package/dist/index278.js.map +1 -1
  247. package/dist/index279.js +239 -16
  248. package/dist/index279.js.map +1 -1
  249. package/dist/index28.js +1 -1
  250. package/dist/index280.js +253 -20
  251. package/dist/index280.js.map +1 -1
  252. package/dist/index281.js +66 -64
  253. package/dist/index281.js.map +1 -1
  254. package/dist/index282.js +99 -6
  255. package/dist/index282.js.map +1 -1
  256. package/dist/index283.js +83 -5
  257. package/dist/index283.js.map +1 -1
  258. package/dist/index284.js +3 -11
  259. package/dist/index284.js.map +1 -1
  260. package/dist/index285.js +29 -3
  261. package/dist/index285.js.map +1 -1
  262. package/dist/index286.js +16 -50
  263. package/dist/index286.js.map +1 -1
  264. package/dist/index287.js +35 -4
  265. package/dist/index287.js.map +1 -1
  266. package/dist/index288.js +16 -28
  267. package/dist/index288.js.map +1 -1
  268. package/dist/index289.js +3 -16
  269. package/dist/index289.js.map +1 -1
  270. package/dist/index29.js +56 -3
  271. package/dist/index29.js.map +1 -1
  272. package/dist/index290.js +26 -5
  273. package/dist/index290.js.map +1 -1
  274. package/dist/index291.js +27 -20
  275. package/dist/index291.js.map +1 -1
  276. package/dist/index292.js +4 -54
  277. package/dist/index292.js.map +1 -1
  278. package/dist/index293.js +76 -18
  279. package/dist/index293.js.map +1 -1
  280. package/dist/index294.js +268 -37
  281. package/dist/index294.js.map +1 -1
  282. package/dist/index295.js +11 -39
  283. package/dist/index295.js.map +1 -1
  284. package/dist/index296.js +10 -45
  285. package/dist/index296.js.map +1 -1
  286. package/dist/index297.js +25 -20
  287. package/dist/index297.js.map +1 -1
  288. package/dist/index298.js +15 -69
  289. package/dist/index298.js.map +1 -1
  290. package/dist/index299.js +122 -14
  291. package/dist/index299.js.map +1 -1
  292. package/dist/index3.js +2 -2
  293. package/dist/index30.js +3 -242
  294. package/dist/index30.js.map +1 -1
  295. package/dist/index300.js +5 -3
  296. package/dist/index300.js.map +1 -1
  297. package/dist/index301.js +65 -11
  298. package/dist/index301.js.map +1 -1
  299. package/dist/index302.js +14 -14
  300. package/dist/index302.js.map +1 -1
  301. package/dist/index303.js +7 -18
  302. package/dist/index303.js.map +1 -1
  303. package/dist/index304.js +5 -36
  304. package/dist/index304.js.map +1 -1
  305. package/dist/index305.js +3 -239
  306. package/dist/index305.js.map +1 -1
  307. package/dist/index306.js +10 -252
  308. package/dist/index306.js.map +1 -1
  309. package/dist/index307.js +7 -68
  310. package/dist/index307.js.map +1 -1
  311. package/dist/index308.js +128 -94
  312. package/dist/index308.js.map +1 -1
  313. package/dist/index309.js +391 -75
  314. package/dist/index309.js.map +1 -1
  315. package/dist/index31.js +239 -21
  316. package/dist/index31.js.map +1 -1
  317. package/dist/index310.js +5 -4
  318. package/dist/index310.js.map +1 -1
  319. package/dist/index311.js +51 -28
  320. package/dist/index311.js.map +1 -1
  321. package/dist/index312.js +10 -15
  322. package/dist/index312.js.map +1 -1
  323. package/dist/index313.js +28 -35
  324. package/dist/index313.js.map +1 -1
  325. package/dist/index314.js +11 -17
  326. package/dist/index314.js.map +1 -1
  327. package/dist/index315.js +154 -3
  328. package/dist/index315.js.map +1 -1
  329. package/dist/index316.js +31 -25
  330. package/dist/index316.js.map +1 -1
  331. package/dist/index317.js +11 -28
  332. package/dist/index317.js.map +1 -1
  333. package/dist/index318.js +50 -4
  334. package/dist/index318.js.map +1 -1
  335. package/dist/index319.js +9 -78
  336. package/dist/index319.js.map +1 -1
  337. package/dist/index32.js +23 -4
  338. package/dist/index32.js.map +1 -1
  339. package/dist/index320.js +10 -271
  340. package/dist/index320.js.map +1 -1
  341. package/dist/index321.js +43 -11
  342. package/dist/index321.js.map +1 -1
  343. package/dist/index322.js +97 -10
  344. package/dist/index322.js.map +1 -1
  345. package/dist/index323.js +86 -25
  346. package/dist/index323.js.map +1 -1
  347. package/dist/index324.js +104 -15
  348. package/dist/index324.js.map +1 -1
  349. package/dist/index325.js +50 -123
  350. package/dist/index325.js.map +1 -1
  351. package/dist/index326.js +11 -5
  352. package/dist/index326.js.map +1 -1
  353. package/dist/index327.js +4 -65
  354. package/dist/index327.js.map +1 -1
  355. package/dist/index328.js +37 -13
  356. package/dist/index328.js.map +1 -1
  357. package/dist/index329.js +8 -7
  358. package/dist/index329.js.map +1 -1
  359. package/dist/index33.js +3 -6
  360. package/dist/index33.js.map +1 -1
  361. package/dist/index330.js +135 -5
  362. package/dist/index330.js.map +1 -1
  363. package/dist/index331.js +17 -3
  364. package/dist/index331.js.map +1 -1
  365. package/dist/index332.js +15 -10
  366. package/dist/index332.js.map +1 -1
  367. package/dist/index333.js +3 -7
  368. package/dist/index333.js.map +1 -1
  369. package/dist/index334.js +32 -129
  370. package/dist/index334.js.map +1 -1
  371. package/dist/index335.js +18 -397
  372. package/dist/index335.js.map +1 -1
  373. package/dist/index336.js +9 -5
  374. package/dist/index336.js.map +1 -1
  375. package/dist/index337.js +22 -50
  376. package/dist/index337.js.map +1 -1
  377. package/dist/index338.js +28 -11
  378. package/dist/index338.js.map +1 -1
  379. package/dist/index339.js +16 -27
  380. package/dist/index339.js.map +1 -1
  381. package/dist/index34.js +8 -38
  382. package/dist/index34.js.map +1 -1
  383. package/dist/index340.js +9 -11
  384. package/dist/index340.js.map +1 -1
  385. package/dist/index341.js +4 -8
  386. package/dist/index341.js.map +1 -1
  387. package/dist/index342.js +18 -12
  388. package/dist/index342.js.map +1 -1
  389. package/dist/index343.js +12 -8
  390. package/dist/index343.js.map +1 -1
  391. package/dist/index344.js +8 -13
  392. package/dist/index344.js.map +1 -1
  393. package/dist/index345.js +11 -3
  394. package/dist/index345.js.map +1 -1
  395. package/dist/index346.js +8 -3
  396. package/dist/index346.js.map +1 -1
  397. package/dist/index347.js +12 -16
  398. package/dist/index347.js.map +1 -1
  399. package/dist/index348.js +3 -5
  400. package/dist/index348.js.map +1 -1
  401. package/dist/index349.js +3 -51
  402. package/dist/index349.js.map +1 -1
  403. package/dist/index35.js +35 -74
  404. package/dist/index35.js.map +1 -1
  405. package/dist/index350.js +16 -60
  406. package/dist/index350.js.map +1 -1
  407. package/dist/index351.js +49 -64
  408. package/dist/index351.js.map +1 -1
  409. package/dist/index352.js +5 -8
  410. package/dist/index352.js.map +1 -1
  411. package/dist/index353.js +62 -5
  412. package/dist/index353.js.map +1 -1
  413. package/dist/index354.js +66 -11
  414. package/dist/index354.js.map +1 -1
  415. package/dist/index355.js +8 -21
  416. package/dist/index355.js.map +1 -1
  417. package/dist/index356.js +5 -17
  418. package/dist/index356.js.map +1 -1
  419. package/dist/index357.js +12 -8
  420. package/dist/index357.js.map +1 -1
  421. package/dist/index358.js +21 -144
  422. package/dist/index358.js.map +1 -1
  423. package/dist/index359.js +14 -77
  424. package/dist/index359.js.map +1 -1
  425. package/dist/index36.js +74 -20
  426. package/dist/index36.js.map +1 -1
  427. package/dist/index360.js +8 -62
  428. package/dist/index360.js.map +1 -1
  429. package/dist/index361.js +145 -15
  430. package/dist/index361.js.map +1 -1
  431. package/dist/index362.js +79 -4
  432. package/dist/index362.js.map +1 -1
  433. package/dist/index363.js +61 -17
  434. package/dist/index363.js.map +1 -1
  435. package/dist/index364.js +15 -13
  436. package/dist/index364.js.map +1 -1
  437. package/dist/index365.js +11 -4
  438. package/dist/index365.js.map +1 -1
  439. package/dist/index366.js +4 -21
  440. package/dist/index366.js.map +1 -1
  441. package/dist/index367.js +6 -4
  442. package/dist/index367.js.map +1 -1
  443. package/dist/index368.js +3 -12
  444. package/dist/index368.js.map +1 -1
  445. package/dist/index369.js +20 -5
  446. package/dist/index369.js.map +1 -1
  447. package/dist/index37.js +18 -33
  448. package/dist/index37.js.map +1 -1
  449. package/dist/index370.js +45 -3
  450. package/dist/index370.js.map +1 -1
  451. package/dist/index371.js +17 -20
  452. package/dist/index371.js.map +1 -1
  453. package/dist/index372.js +5 -45
  454. package/dist/index372.js.map +1 -1
  455. package/dist/index373.js +198 -15
  456. package/dist/index373.js.map +1 -1
  457. package/dist/index374.js +74 -5
  458. package/dist/index374.js.map +1 -1
  459. package/dist/index375.js +115 -192
  460. package/dist/index375.js.map +1 -1
  461. package/dist/index376.js +4 -73
  462. package/dist/index376.js.map +1 -1
  463. package/dist/index377.js +19 -122
  464. package/dist/index377.js.map +1 -1
  465. package/dist/index378.js +4 -8
  466. package/dist/index378.js.map +1 -1
  467. package/dist/index379.js +5 -27
  468. package/dist/index379.js.map +1 -1
  469. package/dist/index38.js +36 -26
  470. package/dist/index38.js.map +1 -1
  471. package/dist/index380.js +4 -138
  472. package/dist/index380.js.map +1 -1
  473. package/dist/index381.js +15 -12
  474. package/dist/index381.js.map +1 -1
  475. package/dist/index382.js +8 -46
  476. package/dist/index382.js.map +1 -1
  477. package/dist/index383.js +5 -3
  478. package/dist/index383.js.map +1 -1
  479. package/dist/index384.js +4 -21
  480. package/dist/index384.js.map +1 -1
  481. package/dist/index385.js +542 -72
  482. package/dist/index385.js.map +1 -1
  483. package/dist/index386.js +46 -11
  484. package/dist/index386.js.map +1 -1
  485. package/dist/index387.js +17 -3
  486. package/dist/index387.js.map +1 -1
  487. package/dist/index388.js +5 -71
  488. package/dist/index388.js.map +1 -1
  489. package/dist/index389.js +7 -35
  490. package/dist/index389.js.map +1 -1
  491. package/dist/index39.js +26 -21
  492. package/dist/index39.js.map +1 -1
  493. package/dist/index390.js +7 -7
  494. package/dist/index390.js.map +1 -1
  495. package/dist/index391.js +7 -15
  496. package/dist/index391.js.map +1 -1
  497. package/dist/index392.js +11 -4
  498. package/dist/index392.js.map +1 -1
  499. package/dist/index393.js +8 -4
  500. package/dist/index393.js.map +1 -1
  501. package/dist/index394.js +13 -4
  502. package/dist/index394.js.map +1 -1
  503. package/dist/index395.js +8 -15
  504. package/dist/index395.js.map +1 -1
  505. package/dist/index396.js +27 -9
  506. package/dist/index396.js.map +1 -1
  507. package/dist/index397.js +137 -5
  508. package/dist/index397.js.map +1 -1
  509. package/dist/index398.js +12 -4
  510. package/dist/index398.js.map +1 -1
  511. package/dist/index399.js +44 -543
  512. package/dist/index399.js.map +1 -1
  513. package/dist/index4.js +2 -2
  514. package/dist/index40.js +20 -56
  515. package/dist/index40.js.map +1 -1
  516. package/dist/index400.js +4 -47
  517. package/dist/index400.js.map +1 -1
  518. package/dist/index401.js +21 -17
  519. package/dist/index401.js.map +1 -1
  520. package/dist/index402.js +75 -5
  521. package/dist/index402.js.map +1 -1
  522. package/dist/index403.js +12 -8
  523. package/dist/index403.js.map +1 -1
  524. package/dist/index404.js +3 -6
  525. package/dist/index404.js.map +1 -1
  526. package/dist/index405.js +71 -7
  527. package/dist/index405.js.map +1 -1
  528. package/dist/index406.js +35 -11
  529. package/dist/index406.js.map +1 -1
  530. package/dist/index407.js +7 -9
  531. package/dist/index407.js.map +1 -1
  532. package/dist/index408.js +15 -12
  533. package/dist/index408.js.map +1 -1
  534. package/dist/index41.js +59 -51
  535. package/dist/index41.js.map +1 -1
  536. package/dist/index411.js +5 -3
  537. package/dist/index411.js.map +1 -1
  538. package/dist/index412.js +55 -14
  539. package/dist/index412.js.map +1 -1
  540. package/dist/index413.js +66 -490
  541. package/dist/index413.js.map +1 -1
  542. package/dist/index414.js +30 -67
  543. package/dist/index414.js.map +1 -1
  544. package/dist/index415.js +9 -31
  545. package/dist/index415.js.map +1 -1
  546. package/dist/index416.js +153 -9
  547. package/dist/index416.js.map +1 -1
  548. package/dist/index417.js +97 -142
  549. package/dist/index417.js.map +1 -1
  550. package/dist/index418.js +3 -108
  551. package/dist/index418.js.map +1 -1
  552. package/dist/index419.js +14 -4
  553. package/dist/index419.js.map +1 -1
  554. package/dist/index42.js +50 -21
  555. package/dist/index42.js.map +1 -1
  556. package/dist/index420.js +490 -54
  557. package/dist/index420.js.map +1 -1
  558. package/dist/index43.js +18 -127
  559. package/dist/index43.js.map +1 -1
  560. package/dist/index44.js +122 -39
  561. package/dist/index44.js.map +1 -1
  562. package/dist/index45.js +42 -85
  563. package/dist/index45.js.map +1 -1
  564. package/dist/index46.js +87 -123
  565. package/dist/index46.js.map +1 -1
  566. package/dist/index47.js +126 -5
  567. package/dist/index47.js.map +1 -1
  568. package/dist/index48.js +5 -332
  569. package/dist/index48.js.map +1 -1
  570. package/dist/index49.js +321 -246
  571. package/dist/index49.js.map +1 -1
  572. package/dist/index5.js +2 -2
  573. package/dist/index50.js +254 -23
  574. package/dist/index50.js.map +1 -1
  575. package/dist/index51.js +25 -129
  576. package/dist/index51.js.map +1 -1
  577. package/dist/index52.js +129 -24
  578. package/dist/index52.js.map +1 -1
  579. package/dist/index53.js +22 -19
  580. package/dist/index53.js.map +1 -1
  581. package/dist/index54.js +19 -134
  582. package/dist/index54.js.map +1 -1
  583. package/dist/index55.js +133 -30
  584. package/dist/index55.js.map +1 -1
  585. package/dist/index56.js +30 -24
  586. package/dist/index56.js.map +1 -1
  587. package/dist/index57.js +26 -38
  588. package/dist/index57.js.map +1 -1
  589. package/dist/index58.js +39 -19
  590. package/dist/index58.js.map +1 -1
  591. package/dist/index59.js +18 -133
  592. package/dist/index59.js.map +1 -1
  593. package/dist/index6.js +4 -4
  594. package/dist/index60.js +134 -49
  595. package/dist/index60.js.map +1 -1
  596. package/dist/index61.js +48 -25
  597. package/dist/index61.js.map +1 -1
  598. package/dist/index62.js +28 -57
  599. package/dist/index62.js.map +1 -1
  600. package/dist/index63.js +57 -56
  601. package/dist/index63.js.map +1 -1
  602. package/dist/index64.js +5 -5
  603. package/dist/index64.js.map +1 -1
  604. package/dist/index66.js +11 -23
  605. package/dist/index66.js.map +1 -1
  606. package/dist/index67.js +17 -232
  607. package/dist/index67.js.map +1 -1
  608. package/dist/index68.js +5 -5
  609. package/dist/index68.js.map +1 -1
  610. package/dist/index7.js +11 -11
  611. package/dist/index70.js +23 -11
  612. package/dist/index70.js.map +1 -1
  613. package/dist/index71.js +232 -17
  614. package/dist/index71.js.map +1 -1
  615. package/dist/index72.js +2 -6
  616. package/dist/index72.js.map +1 -1
  617. package/dist/index73.js +2 -8
  618. package/dist/index73.js.map +1 -1
  619. package/dist/index74.js +2 -6
  620. package/dist/index74.js.map +1 -1
  621. package/dist/index75.js +2 -2
  622. package/dist/index76.js +6 -2
  623. package/dist/index76.js.map +1 -1
  624. package/dist/index77.js +8 -2
  625. package/dist/index77.js.map +1 -1
  626. package/dist/index78.js +6 -2
  627. package/dist/index78.js.map +1 -1
  628. package/dist/index8.js +2 -2
  629. package/dist/index9.js +1 -1
  630. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index385.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/markOthers.mjs"],"sourcesContent":["// Modified to add conditional `aria-hidden` support:\n// https://github.com/theKashey/aria-hidden/blob/9220c8f4a4fd35f63bee5510a9f41a37264382d4/src/index.ts\nimport { getNodeName, isShadowRoot } from '@floating-ui/utils/dom';\nimport { ownerDocument } from '@base-ui/utils/owner';\nconst counters = {\n inert: new WeakMap(),\n 'aria-hidden': new WeakMap()\n};\nconst markerName = 'data-base-ui-inert';\nconst uncontrolledElementsSets = {\n inert: new WeakSet(),\n 'aria-hidden': new WeakSet()\n};\nlet markerCounterMap = new WeakMap();\nlet lockCount = 0;\nfunction getUncontrolledElementsSet(controlAttribute) {\n return uncontrolledElementsSets[controlAttribute];\n}\nfunction unwrapHost(node) {\n if (!node) {\n return null;\n }\n return isShadowRoot(node) ? node.host : unwrapHost(node.parentNode);\n}\nconst correctElements = (parent, targets) => targets.map(target => {\n if (parent.contains(target)) {\n return target;\n }\n const correctedTarget = unwrapHost(target);\n if (parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n return null;\n}).filter(x => x != null);\nconst buildKeepSet = targets => {\n const keep = new Set();\n targets.forEach(target => {\n let node = target;\n while (node && !keep.has(node)) {\n keep.add(node);\n node = node.parentNode;\n }\n });\n return keep;\n};\nconst collectOutsideElements = (root, keepElements, stopElements) => {\n const outside = [];\n const walk = parent => {\n if (!parent || stopElements.has(parent)) {\n return;\n }\n Array.from(parent.children).forEach(node => {\n if (getNodeName(node) === 'script') {\n return;\n }\n if (keepElements.has(node)) {\n walk(node);\n } else {\n outside.push(node);\n }\n });\n };\n walk(root);\n return outside;\n};\nfunction applyAttributeToOthers(uncorrectedAvoidElements, body, ariaHidden, inert, {\n mark = true\n}) {\n let controlAttribute = null;\n if (inert) {\n controlAttribute = 'inert';\n } else if (ariaHidden) {\n controlAttribute = 'aria-hidden';\n }\n let counterMap = null;\n let uncontrolledElementsSet = null;\n const avoidElements = correctElements(body, uncorrectedAvoidElements);\n const markerTargets = mark ? collectOutsideElements(body, buildKeepSet(avoidElements), new Set(avoidElements)) : [];\n const hiddenElements = [];\n const markedElements = [];\n if (controlAttribute) {\n const map = counters[controlAttribute];\n const currentUncontrolledElementsSet = getUncontrolledElementsSet(controlAttribute);\n uncontrolledElementsSet = currentUncontrolledElementsSet;\n counterMap = map;\n const ariaLiveElements = correctElements(body, Array.from(body.querySelectorAll('[aria-live]')));\n const controlElements = avoidElements.concat(ariaLiveElements);\n const controlTargets = collectOutsideElements(body, buildKeepSet(controlElements), new Set(controlElements));\n controlTargets.forEach(node => {\n const attr = node.getAttribute(controlAttribute);\n const alreadyHidden = attr !== null && attr !== 'false';\n const counterValue = (map.get(node) || 0) + 1;\n map.set(node, counterValue);\n hiddenElements.push(node);\n if (counterValue === 1 && alreadyHidden) {\n currentUncontrolledElementsSet.add(node);\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, controlAttribute === 'inert' ? '' : 'true');\n }\n });\n }\n if (mark) {\n markerTargets.forEach(node => {\n const markerValue = (markerCounterMap.get(node) || 0) + 1;\n markerCounterMap.set(node, markerValue);\n markedElements.push(node);\n if (markerValue === 1) {\n node.setAttribute(markerName, '');\n }\n });\n }\n lockCount += 1;\n return () => {\n if (counterMap) {\n hiddenElements.forEach(element => {\n const currentCounterValue = counterMap.get(element) || 0;\n const counterValue = currentCounterValue - 1;\n counterMap.set(element, counterValue);\n if (!counterValue) {\n if (!uncontrolledElementsSet?.has(element) && controlAttribute) {\n element.removeAttribute(controlAttribute);\n }\n uncontrolledElementsSet?.delete(element);\n }\n });\n }\n if (mark) {\n markedElements.forEach(element => {\n const markerValue = (markerCounterMap.get(element) || 0) - 1;\n markerCounterMap.set(element, markerValue);\n if (!markerValue) {\n element.removeAttribute(markerName);\n }\n });\n }\n lockCount -= 1;\n if (!lockCount) {\n counters.inert = new WeakMap();\n counters['aria-hidden'] = new WeakMap();\n uncontrolledElementsSets.inert = new WeakSet();\n uncontrolledElementsSets['aria-hidden'] = new WeakSet();\n markerCounterMap = new WeakMap();\n }\n };\n}\nexport function markOthers(avoidElements, options = {}) {\n const {\n ariaHidden = false,\n inert = false,\n mark = true\n } = options;\n const body = ownerDocument(avoidElements[0]).body;\n return applyAttributeToOthers(avoidElements, body, ariaHidden, inert, {\n mark\n });\n}"],"names":["counters","markerName","uncontrolledElementsSets","markerCounterMap","lockCount","getUncontrolledElementsSet","controlAttribute","unwrapHost","node","isShadowRoot","correctElements","parent","targets","target","correctedTarget","x","buildKeepSet","keep","collectOutsideElements","root","keepElements","stopElements","outside","walk","getNodeName","applyAttributeToOthers","uncorrectedAvoidElements","body","ariaHidden","inert","mark","counterMap","uncontrolledElementsSet","avoidElements","markerTargets","hiddenElements","markedElements","map","currentUncontrolledElementsSet","ariaLiveElements","controlElements","attr","alreadyHidden","counterValue","markerValue","element","markOthers","options","ownerDocument"],"mappings":";;AAIA,MAAMA,IAAW;AAAA,EACf,OAAO,oBAAI,QAAO;AAAA,EAClB,eAAe,oBAAI,QAAO;AAC5B,GACMC,IAAa,sBACbC,IAA2B;AAAA,EAC/B,OAAO,oBAAI,QAAO;AAAA,EAClB,eAAe,oBAAI,QAAO;AAC5B;AACA,IAAIC,IAAmB,oBAAI,QAAO,GAC9BC,IAAY;AAChB,SAASC,EAA2BC,GAAkB;AACpD,SAAOJ,EAAyBI,CAAgB;AAClD;AACA,SAASC,EAAWC,GAAM;AACxB,SAAKA,IAGEC,EAAaD,CAAI,IAAIA,EAAK,OAAOD,EAAWC,EAAK,UAAU,IAFzD;AAGX;AACA,MAAME,IAAkB,CAACC,GAAQC,MAAYA,EAAQ,IAAI,CAAAC,MAAU;AACjE,MAAIF,EAAO,SAASE,CAAM;AACxB,WAAOA;AAET,QAAMC,IAAkBP,EAAWM,CAAM;AACzC,SAAIF,EAAO,SAASG,CAAe,IAC1BA,IAEF;AACT,CAAC,EAAE,OAAO,CAAAC,MAAKA,KAAK,IAAI,GAClBC,IAAe,CAAAJ,MAAW;AAC9B,QAAMK,IAAO,oBAAI,IAAG;AACpB,SAAAL,EAAQ,QAAQ,CAAAC,MAAU;AACxB,QAAIL,IAAOK;AACX,WAAOL,KAAQ,CAACS,EAAK,IAAIT,CAAI;AAC3B,MAAAS,EAAK,IAAIT,CAAI,GACbA,IAAOA,EAAK;AAAA,EAEhB,CAAC,GACMS;AACT,GACMC,IAAyB,CAACC,GAAMC,GAAcC,MAAiB;AACnE,QAAMC,IAAU,CAAA,GACVC,IAAO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IAAMiB,GACEpB,IAAOqB,EAAcf,EAAc,CAAC,CAAC,EAAE;AAC7C,SAAOR,EAAuBQ,GAAeN,GAAMC,GAAYC,GAAO;AAAA,IACpE,MAAAC;AAAA,EACJ,CAAG;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index385.js","sources":["../../../node_modules/date-fns/_lib/format/formatters.js"],"sourcesContent":["import { getDayOfYear } from \"../../getDayOfYear.js\";\nimport { getISOWeek } from \"../../getISOWeek.js\";\nimport { getISOWeekYear } from \"../../getISOWeekYear.js\";\nimport { getWeek } from \"../../getWeek.js\";\nimport { getWeekYear } from \"../../getWeekYear.js\";\n\nimport { addLeadingZeros } from \"../addLeadingZeros.js\";\nimport { lightFormatters } from \"./lightFormatters.js\";\n\nconst dayPeriodEnum = {\n am: \"am\",\n pm: \"pm\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n};\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | Milliseconds in day |\n * | b | AM, PM, noon, midnight | B | Flexible day period |\n * | c | Stand-alone local day of week | C* | Localized hour w/ day period |\n * | d | Day of month | D | Day of year |\n * | e | Local day of week | E | Day of week |\n * | f | | F* | Day of week in month |\n * | g* | Modified Julian day | G | Era |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | i! | ISO day of week | I! | ISO week of year |\n * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |\n * | k | Hour [1-24] | K | Hour [0-11] |\n * | l* | (deprecated) | L | Stand-alone month |\n * | m | Minute | M | Month |\n * | n | | N | |\n * | o! | Ordinal number modifier | O | Timezone (GMT) |\n * | p! | Long localized time | P! | Long localized date |\n * | q | Stand-alone quarter | Q | Quarter |\n * | r* | Related Gregorian year | R! | ISO week-numbering year |\n * | s | Second | S | Fraction of second |\n * | t! | Seconds timestamp | T! | Milliseconds timestamp |\n * | u | Extended year | U* | Cyclic year |\n * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |\n * | w | Local week of year | W* | Week of month |\n * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |\n * | y | Year (abs) | Y | Local week-numbering year |\n * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n * i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n * `R` is supposed to be used in conjunction with `I` and `i`\n * for universal ISO week-numbering date, whereas\n * `Y` is supposed to be used in conjunction with `w` and `e`\n * for week-numbering date specific to the locale.\n * - `P` is long localized date format\n * - `p` is long localized time format\n */\n\nexport const formatters = {\n // Era\n G: function (date, token, localize) {\n const era = date.getFullYear() > 0 ? 1 : 0;\n switch (token) {\n // AD, BC\n case \"G\":\n case \"GG\":\n case \"GGG\":\n return localize.era(era, { width: \"abbreviated\" });\n // A, B\n case \"GGGGG\":\n return localize.era(era, { width: \"narrow\" });\n // Anno Domini, Before Christ\n case \"GGGG\":\n default:\n return localize.era(era, { width: \"wide\" });\n }\n },\n\n // Year\n y: function (date, token, localize) {\n // Ordinal number\n if (token === \"yo\") {\n const signedYear = date.getFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const year = signedYear > 0 ? signedYear : 1 - signedYear;\n return localize.ordinalNumber(year, { unit: \"year\" });\n }\n\n return lightFormatters.y(date, token);\n },\n\n // Local week-numbering year\n Y: function (date, token, localize, options) {\n const signedWeekYear = getWeekYear(date, options);\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;\n\n // Two digit year\n if (token === \"YY\") {\n const twoDigitYear = weekYear % 100;\n return addLeadingZeros(twoDigitYear, 2);\n }\n\n // Ordinal number\n if (token === \"Yo\") {\n return localize.ordinalNumber(weekYear, { unit: \"year\" });\n }\n\n // Padding\n return addLeadingZeros(weekYear, token.length);\n },\n\n // ISO week-numbering year\n R: function (date, token) {\n const isoWeekYear = getISOWeekYear(date);\n\n // Padding\n return addLeadingZeros(isoWeekYear, token.length);\n },\n\n // Extended year. This is a single number designating the year of this calendar system.\n // The main difference between `y` and `u` localizers are B.C. years:\n // | Year | `y` | `u` |\n // |------|-----|-----|\n // | AC 1 | 1 | 1 |\n // | BC 1 | 1 | 0 |\n // | BC 2 | 2 | -1 |\n // Also `yy` always returns the last two digits of a year,\n // while `uu` pads single digit years to 2 characters and returns other years unchanged.\n u: function (date, token) {\n const year = date.getFullYear();\n return addLeadingZeros(year, token.length);\n },\n\n // Quarter\n Q: function (date, token, localize) {\n const quarter = Math.ceil((date.getMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case \"Q\":\n return String(quarter);\n // 01, 02, 03, 04\n case \"QQ\":\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case \"Qo\":\n return localize.ordinalNumber(quarter, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"QQQ\":\n return localize.quarter(quarter, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"QQQQQ\":\n return localize.quarter(quarter, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"QQQQ\":\n default:\n return localize.quarter(quarter, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Stand-alone quarter\n q: function (date, token, localize) {\n const quarter = Math.ceil((date.getMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case \"q\":\n return String(quarter);\n // 01, 02, 03, 04\n case \"qq\":\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case \"qo\":\n return localize.ordinalNumber(quarter, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"qqq\":\n return localize.quarter(quarter, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"qqqqq\":\n return localize.quarter(quarter, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"qqqq\":\n default:\n return localize.quarter(quarter, {\n width: \"wide\",\n context: \"standalone\",\n });\n }\n },\n\n // Month\n M: function (date, token, localize) {\n const month = date.getMonth();\n switch (token) {\n case \"M\":\n case \"MM\":\n return lightFormatters.M(date, token);\n // 1st, 2nd, ..., 12th\n case \"Mo\":\n return localize.ordinalNumber(month + 1, { unit: \"month\" });\n // Jan, Feb, ..., Dec\n case \"MMM\":\n return localize.month(month, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // J, F, ..., D\n case \"MMMMM\":\n return localize.month(month, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // January, February, ..., December\n case \"MMMM\":\n default:\n return localize.month(month, { width: \"wide\", context: \"formatting\" });\n }\n },\n\n // Stand-alone month\n L: function (date, token, localize) {\n const month = date.getMonth();\n switch (token) {\n // 1, 2, ..., 12\n case \"L\":\n return String(month + 1);\n // 01, 02, ..., 12\n case \"LL\":\n return addLeadingZeros(month + 1, 2);\n // 1st, 2nd, ..., 12th\n case \"Lo\":\n return localize.ordinalNumber(month + 1, { unit: \"month\" });\n // Jan, Feb, ..., Dec\n case \"LLL\":\n return localize.month(month, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // J, F, ..., D\n case \"LLLLL\":\n return localize.month(month, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // January, February, ..., December\n case \"LLLL\":\n default:\n return localize.month(month, { width: \"wide\", context: \"standalone\" });\n }\n },\n\n // Local week of year\n w: function (date, token, localize, options) {\n const week = getWeek(date, options);\n\n if (token === \"wo\") {\n return localize.ordinalNumber(week, { unit: \"week\" });\n }\n\n return addLeadingZeros(week, token.length);\n },\n\n // ISO week of year\n I: function (date, token, localize) {\n const isoWeek = getISOWeek(date);\n\n if (token === \"Io\") {\n return localize.ordinalNumber(isoWeek, { unit: \"week\" });\n }\n\n return addLeadingZeros(isoWeek, token.length);\n },\n\n // Day of the month\n d: function (date, token, localize) {\n if (token === \"do\") {\n return localize.ordinalNumber(date.getDate(), { unit: \"date\" });\n }\n\n return lightFormatters.d(date, token);\n },\n\n // Day of year\n D: function (date, token, localize) {\n const dayOfYear = getDayOfYear(date);\n\n if (token === \"Do\") {\n return localize.ordinalNumber(dayOfYear, { unit: \"dayOfYear\" });\n }\n\n return addLeadingZeros(dayOfYear, token.length);\n },\n\n // Day of week\n E: function (date, token, localize) {\n const dayOfWeek = date.getDay();\n switch (token) {\n // Tue\n case \"E\":\n case \"EE\":\n case \"EEE\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"EEEEE\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"EEEEEE\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"EEEE\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Local day of week\n e: function (date, token, localize, options) {\n const dayOfWeek = date.getDay();\n const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (Nth day of week with current locale or weekStartsOn)\n case \"e\":\n return String(localDayOfWeek);\n // Padded numerical value\n case \"ee\":\n return addLeadingZeros(localDayOfWeek, 2);\n // 1st, 2nd, ..., 7th\n case \"eo\":\n return localize.ordinalNumber(localDayOfWeek, { unit: \"day\" });\n case \"eee\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"eeeee\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"eeeeee\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"eeee\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Stand-alone local day of week\n c: function (date, token, localize, options) {\n const dayOfWeek = date.getDay();\n const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (same as in `e`)\n case \"c\":\n return String(localDayOfWeek);\n // Padded numerical value\n case \"cc\":\n return addLeadingZeros(localDayOfWeek, token.length);\n // 1st, 2nd, ..., 7th\n case \"co\":\n return localize.ordinalNumber(localDayOfWeek, { unit: \"day\" });\n case \"ccc\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // T\n case \"ccccc\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // Tu\n case \"cccccc\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"standalone\",\n });\n // Tuesday\n case \"cccc\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"standalone\",\n });\n }\n },\n\n // ISO day of week\n i: function (date, token, localize) {\n const dayOfWeek = date.getDay();\n const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;\n switch (token) {\n // 2\n case \"i\":\n return String(isoDayOfWeek);\n // 02\n case \"ii\":\n return addLeadingZeros(isoDayOfWeek, token.length);\n // 2nd\n case \"io\":\n return localize.ordinalNumber(isoDayOfWeek, { unit: \"day\" });\n // Tue\n case \"iii\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"iiiii\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"iiiiii\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"iiii\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // AM or PM\n a: function (date, token, localize) {\n const hours = date.getHours();\n const dayPeriodEnumValue = hours / 12 >= 1 ? \"pm\" : \"am\";\n\n switch (token) {\n case \"a\":\n case \"aa\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"aaa\":\n return localize\n .dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n })\n .toLowerCase();\n case \"aaaaa\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"aaaa\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // AM, PM, midnight, noon\n b: function (date, token, localize) {\n const hours = date.getHours();\n let dayPeriodEnumValue;\n if (hours === 12) {\n dayPeriodEnumValue = dayPeriodEnum.noon;\n } else if (hours === 0) {\n dayPeriodEnumValue = dayPeriodEnum.midnight;\n } else {\n dayPeriodEnumValue = hours / 12 >= 1 ? \"pm\" : \"am\";\n }\n\n switch (token) {\n case \"b\":\n case \"bb\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"bbb\":\n return localize\n .dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n })\n .toLowerCase();\n case \"bbbbb\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"bbbb\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // in the morning, in the afternoon, in the evening, at night\n B: function (date, token, localize) {\n const hours = date.getHours();\n let dayPeriodEnumValue;\n if (hours >= 17) {\n dayPeriodEnumValue = dayPeriodEnum.evening;\n } else if (hours >= 12) {\n dayPeriodEnumValue = dayPeriodEnum.afternoon;\n } else if (hours >= 4) {\n dayPeriodEnumValue = dayPeriodEnum.morning;\n } else {\n dayPeriodEnumValue = dayPeriodEnum.night;\n }\n\n switch (token) {\n case \"B\":\n case \"BB\":\n case \"BBB\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"BBBBB\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"BBBB\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Hour [1-12]\n h: function (date, token, localize) {\n if (token === \"ho\") {\n let hours = date.getHours() % 12;\n if (hours === 0) hours = 12;\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return lightFormatters.h(date, token);\n },\n\n // Hour [0-23]\n H: function (date, token, localize) {\n if (token === \"Ho\") {\n return localize.ordinalNumber(date.getHours(), { unit: \"hour\" });\n }\n\n return lightFormatters.H(date, token);\n },\n\n // Hour [0-11]\n K: function (date, token, localize) {\n const hours = date.getHours() % 12;\n\n if (token === \"Ko\") {\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return addLeadingZeros(hours, token.length);\n },\n\n // Hour [1-24]\n k: function (date, token, localize) {\n let hours = date.getHours();\n if (hours === 0) hours = 24;\n\n if (token === \"ko\") {\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return addLeadingZeros(hours, token.length);\n },\n\n // Minute\n m: function (date, token, localize) {\n if (token === \"mo\") {\n return localize.ordinalNumber(date.getMinutes(), { unit: \"minute\" });\n }\n\n return lightFormatters.m(date, token);\n },\n\n // Second\n s: function (date, token, localize) {\n if (token === \"so\") {\n return localize.ordinalNumber(date.getSeconds(), { unit: \"second\" });\n }\n\n return lightFormatters.s(date, token);\n },\n\n // Fraction of second\n S: function (date, token) {\n return lightFormatters.S(date, token);\n },\n\n // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)\n X: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n if (timezoneOffset === 0) {\n return \"Z\";\n }\n\n switch (token) {\n // Hours and optional minutes\n case \"X\":\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XX`\n case \"XXXX\":\n case \"XX\": // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XXX`\n case \"XXXXX\":\n case \"XXX\": // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)\n x: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Hours and optional minutes\n case \"x\":\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xx`\n case \"xxxx\":\n case \"xx\": // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xxx`\n case \"xxxxx\":\n case \"xxx\": // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (GMT)\n O: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Short\n case \"O\":\n case \"OO\":\n case \"OOO\":\n return \"GMT\" + formatTimezoneShort(timezoneOffset, \":\");\n // Long\n case \"OOOO\":\n default:\n return \"GMT\" + formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (specific non-location)\n z: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Short\n case \"z\":\n case \"zz\":\n case \"zzz\":\n return \"GMT\" + formatTimezoneShort(timezoneOffset, \":\");\n // Long\n case \"zzzz\":\n default:\n return \"GMT\" + formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Seconds timestamp\n t: function (date, token, _localize) {\n const timestamp = Math.trunc(+date / 1000);\n return addLeadingZeros(timestamp, token.length);\n },\n\n // Milliseconds timestamp\n T: function (date, token, _localize) {\n return addLeadingZeros(+date, token.length);\n },\n};\n\nfunction formatTimezoneShort(offset, delimiter = \"\") {\n const sign = offset > 0 ? \"-\" : \"+\";\n const absOffset = Math.abs(offset);\n const hours = Math.trunc(absOffset / 60);\n const minutes = absOffset % 60;\n if (minutes === 0) {\n return sign + String(hours);\n }\n return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);\n}\n\nfunction formatTimezoneWithOptionalMinutes(offset, delimiter) {\n if (offset % 60 === 0) {\n const sign = offset > 0 ? \"-\" : \"+\";\n return sign + addLeadingZeros(Math.abs(offset) / 60, 2);\n }\n return formatTimezone(offset, delimiter);\n}\n\nfunction formatTimezone(offset, delimiter = \"\") {\n const sign = offset > 0 ? \"-\" : \"+\";\n const absOffset = Math.abs(offset);\n const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2);\n const minutes = addLeadingZeros(absOffset % 60, 2);\n return sign + hours + delimiter + minutes;\n}\n"],"names":["dayPeriodEnum","formatters","date","token","localize","era","signedYear","year","lightFormatters","options","signedWeekYear","getWeekYear","weekYear","twoDigitYear","addLeadingZeros","isoWeekYear","getISOWeekYear","quarter","month","week","getWeek","isoWeek","getISOWeek","dayOfYear","getDayOfYear","dayOfWeek","localDayOfWeek","isoDayOfWeek","dayPeriodEnumValue","hours","_localize","timezoneOffset","formatTimezoneWithOptionalMinutes","formatTimezone","formatTimezoneShort","timestamp","offset","delimiter","sign","absOffset","minutes"],"mappings":";;;;;;;AASA,MAAMA,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AAA,MAGxD;AACE,eAAO,QAAQE,EAAeF,GAAgB,GAAG;AAAA,IACzD;AAAA,EACE;AAAA;AAAA,EAGA,GAAG,SAAU7B,GAAMC,GAAO2B,GAAW;AACnC,UAAMK,IAAY,KAAK,MAAM,CAACjC,IAAO,GAAI;AACzC,WAAOY,EAAgBqB,GAAWhC,EAAM,MAAM;AAAA,EAChD;AAAA;AAAA,EAGA,GAAG,SAAUD,GAAMC,GAAO2B,GAAW;AACnC,WAAOhB,EAAgB,CAACZ,GAAMC,EAAM,MAAM;AAAA,EAC5C;AACF;AAEA,SAAS+B,EAAoBE,GAAQC,IAAY,IAAI;AACnD,QAAMC,IAAOF,IAAS,IAAI,MAAM,KAC1BG,IAAY,KAAK,IAAIH,CAAM,GAC3BP,IAAQ,KAAK,MAAMU,IAAY,EAAE,GACjCC,IAAUD,IAAY;AAC5B,SAAIC,MAAY,IACPF,IAAO,OAAOT,CAAK,IAErBS,IAAO,OAAOT,CAAK,IAAIQ,IAAYvB,EAAgB0B,GAAS,CAAC;AACtE;AAEA,SAASR,EAAkCI,GAAQC,GAAW;AAC5D,SAAID,IAAS,OAAO,KACLA,IAAS,IAAI,MAAM,OAClBtB,EAAgB,KAAK,IAAIsB,CAAM,IAAI,IAAI,CAAC,IAEjDH,EAAeG,GAAQC,CAAS;AACzC;AAEA,SAASJ,EAAeG,GAAQC,IAAY,IAAI;AAC9C,QAAMC,IAAOF,IAAS,IAAI,MAAM,KAC1BG,IAAY,KAAK,IAAIH,CAAM,GAC3BP,IAAQf,EAAgB,KAAK,MAAMyB,IAAY,EAAE,GAAG,CAAC,GACrDC,IAAU1B,EAAgByB,IAAY,IAAI,CAAC;AACjD,SAAOD,IAAOT,IAAQQ,IAAYG;AACpC;","x_google_ignoreList":[0]}
package/dist/index386.js CHANGED
@@ -1,15 +1,50 @@
1
- import * as t from "react";
2
- import "./index28.js";
3
- const e = /* @__PURE__ */ t.createContext(null);
4
- process.env.NODE_ENV !== "production" && (e.displayName = "FloatingNodeContext");
5
- const o = /* @__PURE__ */ t.createContext(null);
6
- process.env.NODE_ENV !== "production" && (o.displayName = "FloatingTreeContext");
7
- const a = () => t.useContext(e)?.id || null, i = (n) => {
8
- const r = t.useContext(o);
9
- return n ?? r;
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
10
46
  };
11
47
  export {
12
- a as useFloatingParentNodeId,
13
- i as useFloatingTree
48
+ h as longFormatters
14
49
  };
15
50
  //# sourceMappingURL=index386.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index386.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/components/FloatingTree.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useId } from '@base-ui/utils/useId';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { FloatingTreeStore } from \"./FloatingTreeStore.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FloatingNodeContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") FloatingNodeContext.displayName = \"FloatingNodeContext\";\nconst FloatingTreeContext = /*#__PURE__*/React.createContext(null);\n\n/**\n * Returns the parent node id for nested floating elements, if available.\n * Returns `null` for top-level floating elements.\n */\nif (process.env.NODE_ENV !== \"production\") FloatingTreeContext.displayName = \"FloatingTreeContext\";\nexport const useFloatingParentNodeId = () => React.useContext(FloatingNodeContext)?.id || null;\n\n/**\n * Returns the nearest floating tree context, if available.\n */\nexport const useFloatingTree = externalTree => {\n const contextTree = React.useContext(FloatingTreeContext);\n return externalTree ?? contextTree;\n};\n\n/**\n * Registers a node into the `FloatingTree`, returning its id.\n * @see https://floating-ui.com/docs/FloatingTree\n */\nexport function useFloatingNodeId(externalTree) {\n const id = useId();\n const tree = useFloatingTree(externalTree);\n const parentId = useFloatingParentNodeId();\n useIsoLayoutEffect(() => {\n if (!id) {\n return undefined;\n }\n const node = {\n id,\n parentId\n };\n tree?.addNode(node);\n return () => {\n tree?.removeNode(node);\n };\n }, [tree, id, parentId]);\n return id;\n}\n/**\n * Provides parent node context for nested floating elements.\n * @see https://floating-ui.com/docs/FloatingTree\n * @internal\n */\nexport function FloatingNode(props) {\n const {\n children,\n id\n } = props;\n const parentId = useFloatingParentNodeId();\n return /*#__PURE__*/_jsx(FloatingNodeContext.Provider, {\n value: React.useMemo(() => ({\n id,\n parentId\n }), [id, parentId]),\n children: children\n });\n}\n/**\n * Provides context for nested floating elements when they are not children of\n * each other on the DOM.\n * This is not necessary in all cases, except when there must be explicit communication between parent and child floating elements. It is necessary for:\n * - The `bubbles` option in the `useDismiss()` Hook\n * - Nested virtual list navigation\n * - Nested floating elements that each open on hover\n * - Custom communication between parent and child floating elements\n * @see https://floating-ui.com/docs/FloatingTree\n * @internal\n */\nexport function FloatingTree(props) {\n const {\n children,\n externalTree\n } = props;\n const tree = useRefWithInit(() => externalTree ?? new FloatingTreeStore()).current;\n return /*#__PURE__*/_jsx(FloatingTreeContext.Provider, {\n value: tree,\n children: children\n });\n}"],"names":["FloatingNodeContext","React","FloatingTreeContext","useFloatingParentNodeId","useFloatingTree","externalTree","contextTree"],"mappings":";;AAQA,MAAMA,IAAmC,gBAAAC,EAAM,cAAc,IAAI;AAC7D,QAAQ,IAAI,aAAa,iBAAcD,EAAoB,cAAc;AAC7E,MAAME,IAAmC,gBAAAD,EAAM,cAAc,IAAI;AAM7D,QAAQ,IAAI,aAAa,iBAAcC,EAAoB,cAAc;AACjE,MAACC,IAA0B,MAAMF,EAAM,WAAWD,CAAmB,GAAG,MAAM,MAK7EI,IAAkB,CAAAC,MAAgB;AAC7C,QAAMC,IAAcL,EAAM,WAAWC,CAAmB;AACxD,SAAOG,KAAgBC;AACzB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index386.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]}
package/dist/index387.js CHANGED
@@ -1,7 +1,21 @@
1
- function n(r) {
2
- return r == null ? r : "current" in r ? r.current : r;
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`;
3
15
  }
4
16
  export {
5
- n as resolveRef
17
+ i as isProtectedDayOfYearToken,
18
+ f as isProtectedWeekYearToken,
19
+ d as warnOrThrowProtectedError
6
20
  };
7
21
  //# sourceMappingURL=index387.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index387.js","sources":["../../../node_modules/@base-ui/react/utils/resolveRef.mjs"],"sourcesContent":["/**\n * If the provided argument is a ref object, returns its `current` value.\n * Otherwise, returns the argument itself.\n */\nexport function resolveRef(maybeRef) {\n if (maybeRef == null) {\n return maybeRef;\n }\n return 'current' in maybeRef ? maybeRef.current : maybeRef;\n}"],"names":["resolveRef","maybeRef"],"mappings":"AAIO,SAASA,EAAWC,GAAU;AACnC,SAAIA,KAAY,OACPA,IAEF,aAAaA,IAAWA,EAAS,UAAUA;AACpD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index387.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]}
package/dist/index388.js CHANGED
@@ -1,75 +1,9 @@
1
- import { createEventEmitter as a } from "./index412.js";
2
- import { ReactStore as m } from "./index358.js";
3
- import { isClickLikeEvent as f } from "./index339.js";
4
- import { createSelector as o } from "./index361.js";
5
- const l = {
6
- open: o((t) => t.open),
7
- transitionStatus: o((t) => t.transitionStatus),
8
- domReferenceElement: o((t) => t.domReferenceElement),
9
- referenceElement: o((t) => t.positionReference ?? t.referenceElement),
10
- floatingElement: o((t) => t.floatingElement),
11
- floatingId: o((t) => t.floatingId)
12
- };
13
- class d extends m {
14
- constructor(n) {
15
- const {
16
- syncOnly: e,
17
- nested: r,
18
- onOpenChange: s,
19
- triggerElements: c,
20
- ...i
21
- } = n;
22
- super({
23
- ...i,
24
- positionReference: i.referenceElement,
25
- domReferenceElement: i.referenceElement
26
- }, {
27
- onOpenChange: s,
28
- dataRef: {
29
- current: {}
30
- },
31
- events: a(),
32
- nested: r,
33
- triggerElements: c
34
- }, l), this.syncOnly = e;
35
- }
36
- /**
37
- * Syncs the event used by hover logic to distinguish hover-open from click-like interaction.
38
- */
39
- syncOpenEvent = (n, e) => {
40
- (!n || !this.state.open || // Prevent a pending hover-open from overwriting a click-open event, while allowing
41
- // click events to upgrade a hover-open.
42
- e != null && f(e)) && (this.context.dataRef.current.openEvent = n ? e : void 0);
43
- };
44
- /**
45
- * Runs the root-owned side effects for an open state change.
46
- */
47
- dispatchOpenChange = (n, e) => {
48
- this.syncOpenEvent(n, e.event);
49
- const r = {
50
- open: n,
51
- reason: e.reason,
52
- nativeEvent: e.event,
53
- nested: this.context.nested,
54
- triggerElement: e.trigger
55
- };
56
- this.context.events.emit("openchange", r);
57
- };
58
- /**
59
- * Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.
60
- *
61
- * @param newOpen The new open state.
62
- * @param eventDetails Details about the event that triggered the open state change.
63
- */
64
- setOpen = (n, e) => {
65
- if (this.syncOnly) {
66
- this.context.onOpenChange?.(n, e);
67
- return;
68
- }
69
- this.dispatchOpenChange(n, e), this.context.onOpenChange?.(n, e);
70
- };
1
+ import { isDate as r } from "./index199.js";
2
+ import { toDate as i } from "./index379.js";
3
+ function e(o) {
4
+ return !(!r(o) && typeof o != "number" || isNaN(+i(o)));
71
5
  }
72
6
  export {
73
- d as FloatingRootStore
7
+ e as isValid
74
8
  };
75
9
  //# sourceMappingURL=index388.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index388.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/components/FloatingRootStore.mjs"],"sourcesContent":["import { createSelector, ReactStore } from '@base-ui/utils/store';\nimport { createEventEmitter } from \"../utils/createEventEmitter.mjs\";\nimport { isClickLikeEvent } from \"../utils.mjs\";\nconst selectors = {\n open: createSelector(state => state.open),\n transitionStatus: createSelector(state => state.transitionStatus),\n domReferenceElement: createSelector(state => state.domReferenceElement),\n referenceElement: createSelector(state => state.positionReference ?? state.referenceElement),\n floatingElement: createSelector(state => state.floatingElement),\n floatingId: createSelector(state => state.floatingId)\n};\nexport class FloatingRootStore extends ReactStore {\n constructor(options) {\n const {\n syncOnly,\n nested,\n onOpenChange,\n triggerElements,\n ...initialState\n } = options;\n super({\n ...initialState,\n positionReference: initialState.referenceElement,\n domReferenceElement: initialState.referenceElement\n }, {\n onOpenChange,\n dataRef: {\n current: {}\n },\n events: createEventEmitter(),\n nested,\n triggerElements\n }, selectors);\n this.syncOnly = syncOnly;\n }\n\n /**\n * Syncs the event used by hover logic to distinguish hover-open from click-like interaction.\n */\n syncOpenEvent = (newOpen, event) => {\n if (!newOpen || !this.state.open ||\n // Prevent a pending hover-open from overwriting a click-open event, while allowing\n // click events to upgrade a hover-open.\n event != null && isClickLikeEvent(event)) {\n this.context.dataRef.current.openEvent = newOpen ? event : undefined;\n }\n };\n\n /**\n * Runs the root-owned side effects for an open state change.\n */\n dispatchOpenChange = (newOpen, eventDetails) => {\n this.syncOpenEvent(newOpen, eventDetails.event);\n const details = {\n open: newOpen,\n reason: eventDetails.reason,\n nativeEvent: eventDetails.event,\n nested: this.context.nested,\n triggerElement: eventDetails.trigger\n };\n this.context.events.emit('openchange', details);\n };\n\n /**\n * Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.\n *\n * @param newOpen The new open state.\n * @param eventDetails Details about the event that triggered the open state change.\n */\n setOpen = (newOpen, eventDetails) => {\n if (this.syncOnly) {\n this.context.onOpenChange?.(newOpen, eventDetails);\n return;\n }\n this.dispatchOpenChange(newOpen, eventDetails);\n this.context.onOpenChange?.(newOpen, eventDetails);\n };\n}"],"names":["selectors","createSelector","state","FloatingRootStore","ReactStore","options","syncOnly","nested","onOpenChange","triggerElements","initialState","createEventEmitter","newOpen","event","isClickLikeEvent","eventDetails","details"],"mappings":";;;;AAGA,MAAMA,IAAY;AAAA,EAChB,MAAMC,EAAe,CAAAC,MAASA,EAAM,IAAI;AAAA,EACxC,kBAAkBD,EAAe,CAAAC,MAASA,EAAM,gBAAgB;AAAA,EAChE,qBAAqBD,EAAe,CAAAC,MAASA,EAAM,mBAAmB;AAAA,EACtE,kBAAkBD,EAAe,CAAAC,MAASA,EAAM,qBAAqBA,EAAM,gBAAgB;AAAA,EAC3F,iBAAiBD,EAAe,CAAAC,MAASA,EAAM,eAAe;AAAA,EAC9D,YAAYD,EAAe,CAAAC,MAASA,EAAM,UAA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;AAAA,EACnD;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index388.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]}
package/dist/index389.js CHANGED
@@ -1,39 +1,11 @@
1
- import * as d from "react";
2
- import { useIsoLayoutEffect as E } from "./index287.js";
3
- import { isElement as R } from "./index334.js";
4
- import { FloatingRootStore as S } from "./index388.js";
5
- function h(u) {
6
- const {
7
- popupStore: n,
8
- treatPopupAsFloatingElement: p = !1,
9
- floatingRootContext: l,
10
- floatingId: o,
11
- nested: c,
12
- onOpenChange: m
13
- } = u, r = n.useState("open"), t = n.useState("activeTriggerElement"), s = n.useState(p ? "popupElement" : "positionerElement"), g = n.context.triggerElements, f = m, i = d.useRef(null);
14
- l === void 0 && i.current === null && (i.current = new S({
15
- open: r,
16
- transitionStatus: void 0,
17
- referenceElement: t,
18
- floatingElement: s,
19
- triggerElements: g,
20
- onOpenChange: f,
21
- floatingId: o,
22
- syncOnly: !0,
23
- nested: c
24
- }));
25
- const e = l ?? i.current;
26
- return n.useSyncedValue("floatingId", o), E(() => {
27
- const a = {
28
- open: r,
29
- floatingId: o,
30
- referenceElement: t,
31
- floatingElement: s
32
- };
33
- R(t) && (a.domReferenceElement = t), e.state.positionReference === e.state.referenceElement && (a.positionReference = t), e.update(a);
34
- }, [r, o, t, s, e]), e.context.onOpenChange = f, e.context.nested = c, e;
1
+ import { differenceInCalendarDays as a } from "./index184.js";
2
+ import { startOfYear as e } from "./index211.js";
3
+ import { toDate as o } from "./index379.js";
4
+ function s(t, f) {
5
+ const r = o(t, f?.in);
6
+ return a(r, e(r)) + 1;
35
7
  }
36
8
  export {
37
- h as useSyncedFloatingRootContext
9
+ s as getDayOfYear
38
10
  };
39
11
  //# sourceMappingURL=index389.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index389.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/hooks/useSyncedFloatingRootContext.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { isElement } from '@floating-ui/utils/dom';\nimport { FloatingRootStore } from \"../components/FloatingRootStore.mjs\";\n/**\n * Keeps a FloatingRootStore in sync with the provided PopupStore.\n * Uses the provided FloatingRootStore when one exists, otherwise creates one once and updates it on every render.\n */\nexport function useSyncedFloatingRootContext(options) {\n const {\n popupStore,\n treatPopupAsFloatingElement = false,\n floatingRootContext: floatingRootContextProp,\n floatingId,\n nested,\n onOpenChange\n } = options;\n const open = popupStore.useState('open');\n const referenceElement = popupStore.useState('activeTriggerElement');\n const floatingElement = popupStore.useState(treatPopupAsFloatingElement ? 'popupElement' : 'positionerElement');\n const triggerElements = popupStore.context.triggerElements;\n const handleOpenChange = onOpenChange;\n const internalStoreRef = React.useRef(null);\n if (floatingRootContextProp === undefined && internalStoreRef.current === null) {\n internalStoreRef.current = new FloatingRootStore({\n open,\n transitionStatus: undefined,\n referenceElement,\n floatingElement,\n triggerElements,\n onOpenChange: handleOpenChange,\n floatingId,\n syncOnly: true,\n nested\n });\n }\n const store = floatingRootContextProp ?? internalStoreRef.current;\n popupStore.useSyncedValue('floatingId', floatingId);\n useIsoLayoutEffect(() => {\n const valuesToSync = {\n open,\n floatingId,\n referenceElement,\n floatingElement\n };\n if (isElement(referenceElement)) {\n valuesToSync.domReferenceElement = referenceElement;\n }\n if (store.state.positionReference === store.state.referenceElement) {\n valuesToSync.positionReference = referenceElement;\n }\n store.update(valuesToSync);\n }, [open, floatingId, referenceElement, floatingElement, store]);\n\n // Keep non-reactive context values fresh for interactions that call `store.setOpen`.\n store.context.onOpenChange = handleOpenChange;\n store.context.nested = nested;\n return store;\n}"],"names":["useSyncedFloatingRootContext","options","popupStore","treatPopupAsFloatingElement","floatingRootContextProp","floatingId","nested","onOpenChange","open","referenceElement","floatingElement","triggerElements","handleOpenChange","internalStoreRef","React","FloatingRootStore","store","useIsoLayoutEffect","valuesToSync","isElement"],"mappings":";;;;AAUO,SAASA,EAA6BC,GAAS;AACpD,QAAM;AAAA,IACJ,YAAAC;AAAA,IACA,6BAAAC,IAA8B;AAAA,IAC9B,qBAAqBC;AAAA,IACrB,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,cAAAC;AAAA,EACJ,IAAMN,GACEO,IAAON,EAAW,SAAS,MAAM,GACjCO,IAAmBP,EAAW,SAAS,sBAAsB,GAC7DQ,IAAkBR,EAAW,SAASC,IAA8B,iBAAiB,mBAAmB,GACxGQ,IAAkBT,EAAW,QAAQ,iBACrCU,IAAmBL,GACnBM,IAAmBC,EAAM,OAAO,IAAI;AAC1C,EAAIV,MAA4B,UAAaS,EAAiB,YAAY,SACxEA,EAAiB,UAAU,IAAIE,EAAkB;AAAA,IAC/C,MAAAP;AAAA,IACA,kBAAkB;AAAA,IAClB,kBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,cAAcC;AAAA,IACd,YAAAP;AAAA,IACA,UAAU;AAAA,IACV,QAAAC;AAAA,EACN,CAAK;AAEH,QAAMU,IAAQZ,KAA2BS,EAAiB;AAC1D,SAAAX,EAAW,eAAe,cAAcG,CAAU,GAClDY,EAAmB,MAAM;AACvB,UAAMC,IAAe;AAAA,MACnB,MAAAV;AAAA,MACA,YAAAH;AAAA,MACA,kBAAAI;AAAA,MACA,iBAAAC;AAAA,IACN;AACI,IAAIS,EAAUV,CAAgB,MAC5BS,EAAa,sBAAsBT,IAEjCO,EAAM,MAAM,sBAAsBA,EAAM,MAAM,qBAChDE,EAAa,oBAAoBT,IAEnCO,EAAM,OAAOE,CAAY;AAAA,EAC3B,GAAG,CAACV,GAAMH,GAAYI,GAAkBC,GAAiBM,CAAK,CAAC,GAG/DA,EAAM,QAAQ,eAAeJ,GAC7BI,EAAM,QAAQ,SAASV,GAChBU;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index389.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]}
package/dist/index39.js CHANGED
@@ -1,26 +1,31 @@
1
- import * as l from "react";
2
- import { useDialogRootContext as n } from "./index171.js";
3
- import { useRenderElement as a } from "./index172.js";
4
- import { useBaseUiId as m } from "./index178.js";
5
- const d = /* @__PURE__ */ l.forwardRef(function(e, t) {
1
+ import * as m from "react";
2
+ import { inertValue as d } from "./index246.js";
3
+ import { useDialogRootContext as u } from "./index231.js";
4
+ import { DialogPortalContext as c } from "./index241.js";
5
+ import { InternalBackdrop as p } from "./index247.js";
6
+ import { j as t } from "./index30.js";
7
+ import { FloatingPortal as f } from "./index248.js";
8
+ const x = /* @__PURE__ */ m.forwardRef(function(r, a) {
6
9
  const {
7
- render: c,
8
- className: f,
9
- style: u,
10
- id: r,
11
- ...i
12
- } = e, {
13
- store: s
14
- } = n(), o = m(r);
15
- return s.useSyncedValueWithCleanup("titleElementId", o), a("h2", e, {
16
- ref: t,
17
- props: [{
18
- id: o
19
- }, i]
20
- });
10
+ keepMounted: e = !1,
11
+ ...l
12
+ } = r, {
13
+ store: o
14
+ } = u(), n = o.useState("mounted"), i = o.useState("modal"), s = o.useState("open");
15
+ return n || e ? /* @__PURE__ */ t.jsx(c.Provider, {
16
+ value: e,
17
+ children: /* @__PURE__ */ t.jsxs(f, {
18
+ ref: a,
19
+ ...l,
20
+ children: [n && i === !0 && /* @__PURE__ */ t.jsx(p, {
21
+ ref: o.context.internalBackdropRef,
22
+ inert: d(!s)
23
+ }), r.children]
24
+ })
25
+ }) : null;
21
26
  });
22
- process.env.NODE_ENV !== "production" && (d.displayName = "DialogTitle");
27
+ process.env.NODE_ENV !== "production" && (x.displayName = "DialogPortal");
23
28
  export {
24
- d as DialogTitle
29
+ x as DialogPortal
25
30
  };
26
31
  //# sourceMappingURL=index39.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index39.js","sources":["../../../node_modules/@base-ui/react/dialog/title/DialogTitle.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useDialogRootContext } from \"../root/DialogRootContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { useBaseUiId } from \"../../internals/useBaseUiId.mjs\";\n/**\n * A heading that labels the dialog.\n * Renders an `<h2>` element.\n *\n * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)\n */\nexport const DialogTitle = /*#__PURE__*/React.forwardRef(function DialogTitle(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n id: idProp,\n ...elementProps\n } = componentProps;\n const {\n store\n } = useDialogRootContext();\n const id = useBaseUiId(idProp);\n store.useSyncedValueWithCleanup('titleElementId', id);\n return useRenderElement('h2', componentProps, {\n ref: forwardedRef,\n props: [{\n id\n }, elementProps]\n });\n});\nif (process.env.NODE_ENV !== \"production\") DialogTitle.displayName = \"DialogTitle\";"],"names":["DialogTitle","React","componentProps","forwardedRef","render","className","style","idProp","elementProps","store","useDialogRootContext","id","useBaseUiId","useRenderElement"],"mappings":";;;;AAYY,MAACA,IAA2B,gBAAAC,EAAM,WAAW,SAAqBC,GAAgBC,GAAc;AAC1G,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,IAAIC;AAAA,IACJ,GAAGC;AAAA,EACP,IAAMN,GACE;AAAA,IACJ,OAAAO;AAAA,EACJ,IAAMC,EAAoB,GAClBC,IAAKC,EAAYL,CAAM;AAC7B,SAAAE,EAAM,0BAA0B,kBAAkBE,CAAE,GAC7CE,EAAiB,MAAMX,GAAgB;AAAA,IAC5C,KAAKC;AAAA,IACL,OAAO,CAAC;AAAA,MACN,IAAAQ;AAAA,IACN,GAAOH,CAAY;AAAA,EACnB,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcR,EAAY,cAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index39.js","sources":["../../../node_modules/@base-ui/react/dialog/portal/DialogPortal.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { inertValue } from '@base-ui/utils/inertValue';\nimport { FloatingPortal } from \"../../floating-ui-react/index.mjs\";\nimport { useDialogRootContext } from \"../root/DialogRootContext.mjs\";\nimport { DialogPortalContext } from \"./DialogPortalContext.mjs\";\nimport { InternalBackdrop } from \"../../utils/InternalBackdrop.mjs\";\n\n/**\n * A portal element that moves the popup to a different part of the DOM.\n * By default, the portal element is appended to `<body>`.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const DialogPortal = /*#__PURE__*/React.forwardRef(function DialogPortal(props, forwardedRef) {\n const {\n keepMounted = false,\n ...portalProps\n } = props;\n const {\n store\n } = useDialogRootContext();\n const mounted = store.useState('mounted');\n const modal = store.useState('modal');\n const open = store.useState('open');\n const shouldRender = mounted || keepMounted;\n if (!shouldRender) {\n return null;\n }\n return /*#__PURE__*/_jsx(DialogPortalContext.Provider, {\n value: keepMounted,\n children: /*#__PURE__*/_jsxs(FloatingPortal, {\n ref: forwardedRef,\n ...portalProps,\n children: [mounted && modal === true && /*#__PURE__*/_jsx(InternalBackdrop, {\n ref: store.context.internalBackdropRef,\n inert: inertValue(!open)\n }), props.children]\n })\n });\n});\nif (process.env.NODE_ENV !== \"production\") DialogPortal.displayName = \"DialogPortal\";"],"names":["DialogPortal","React","props","forwardedRef","keepMounted","portalProps","store","useDialogRootContext","mounted","modal","open","_jsx","DialogPortalContext","_jsxs","FloatingPortal","InternalBackdrop","inertValue"],"mappings":";;;;;;;AAiBY,MAACA,IAA4B,gBAAAC,EAAM,WAAW,SAAsBC,GAAOC,GAAc;AACnG,QAAM;AAAA,IACJ,aAAAC,IAAc;AAAA,IACd,GAAGC;AAAA,EACP,IAAMH,GACE;AAAA,IACJ,OAAAI;AAAA,EACJ,IAAMC,EAAoB,GAClBC,IAAUF,EAAM,SAAS,SAAS,GAClCG,IAAQH,EAAM,SAAS,OAAO,GAC9BI,IAAOJ,EAAM,SAAS,MAAM;AAElC,SADqBE,KAAWJ,IAIZO,gBAAAA,EAAAA,IAAKC,EAAoB,UAAU;AAAA,IACrD,OAAOR;AAAA,IACP,UAAuBS,gBAAAA,EAAAA,KAAMC,GAAgB;AAAA,MAC3C,KAAKX;AAAA,MACL,GAAGE;AAAA,MACH,UAAU,CAACG,KAAWC,MAAU,MAAqBE,gBAAAA,EAAAA,IAAKI,GAAkB;AAAA,QAC1E,KAAKT,EAAM,QAAQ;AAAA,QACnB,OAAOU,EAAW,CAACN,CAAI;AAAA,MAC/B,CAAO,GAAGR,EAAM,QAAQ;AAAA,IACxB,CAAK;AAAA,EACL,CAAG,IAZQ;AAaX,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcF,EAAa,cAAc;","x_google_ignoreList":[0]}
package/dist/index390.js CHANGED
@@ -1,10 +1,10 @@
1
- const t = "data-base-ui-focusable", o = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", e = "ArrowLeft", n = "ArrowRight", R = "ArrowUp", a = "ArrowDown";
1
+ import { constructFrom as a } from "./index378.js";
2
+ import { toDate as c } from "./index379.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();
6
+ }
2
7
  export {
3
- a as ARROW_DOWN,
4
- e as ARROW_LEFT,
5
- n as ARROW_RIGHT,
6
- R as ARROW_UP,
7
- t as FOCUSABLE_ATTRIBUTE,
8
- o as TYPEABLE_SELECTOR
8
+ l as getDaysInMonth
9
9
  };
10
10
  //# sourceMappingURL=index390.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index390.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/constants.mjs"],"sourcesContent":["export const FOCUSABLE_ATTRIBUTE = 'data-base-ui-focusable';\nexport const ACTIVE_KEY = 'active';\nexport const SELECTED_KEY = 'selected';\nexport const TYPEABLE_SELECTOR = \"input:not([type='hidden']):not([disabled]),\" + \"[contenteditable]:not([contenteditable='false']),textarea:not([disabled])\";\nexport const ARROW_LEFT = 'ArrowLeft';\nexport const ARROW_RIGHT = 'ArrowRight';\nexport const ARROW_UP = 'ArrowUp';\nexport const ARROW_DOWN = 'ArrowDown';"],"names":["FOCUSABLE_ATTRIBUTE","TYPEABLE_SELECTOR","ARROW_LEFT","ARROW_RIGHT","ARROW_UP","ARROW_DOWN"],"mappings":"AAAY,MAACA,IAAsB,0BAGtBC,IAAoB,wHACpBC,IAAa,aACbC,IAAc,cACdC,IAAW,WACXC,IAAa;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index390.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]}
package/dist/index391.js CHANGED
@@ -1,19 +1,11 @@
1
- import { FloatingRootStore as e } from "./index388.js";
2
- import { PopupTriggerMap as n } from "./index360.js";
3
- function r() {
4
- return new e({
5
- open: !1,
6
- transitionStatus: void 0,
7
- floatingElement: null,
8
- referenceElement: null,
9
- triggerElements: new n(),
10
- floatingId: void 0,
11
- syncOnly: !1,
12
- nested: !1,
13
- onOpenChange: void 0
14
- });
1
+ import { constructFrom as f } from "./index378.js";
2
+ import { getISOWeekYear as s } from "./index392.js";
3
+ import { startOfISOWeek as a } from "./index208.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);
15
7
  }
16
8
  export {
17
- r as getEmptyRootContext
9
+ O as startOfISOWeekYear
18
10
  };
19
11
  //# sourceMappingURL=index391.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index391.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/getEmptyRootContext.mjs"],"sourcesContent":["import { PopupTriggerMap } from \"../../utils/popups/index.mjs\";\nimport { FloatingRootStore } from \"../components/FloatingRootStore.mjs\";\nexport function getEmptyRootContext() {\n return new FloatingRootStore({\n open: false,\n transitionStatus: undefined,\n floatingElement: null,\n referenceElement: null,\n triggerElements: new PopupTriggerMap(),\n floatingId: undefined,\n syncOnly: false,\n nested: false,\n onOpenChange: undefined\n });\n}"],"names":["getEmptyRootContext","FloatingRootStore","PopupTriggerMap"],"mappings":";;AAEO,SAASA,IAAsB;AACpC,SAAO,IAAIC,EAAkB;AAAA,IAC3B,MAAM;AAAA,IACN,kBAAkB;AAAA,IAClB,iBAAiB;AAAA,IACjB,kBAAkB;AAAA,IAClB,iBAAiB,IAAIC,EAAe;AAAA,IACpC,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,cAAc;AAAA,EAClB,CAAG;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index391.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]}
package/dist/index392.js CHANGED
@@ -1,8 +1,15 @@
1
- import { constructFromSymbol as o } from "./index394.js";
2
- function c(r, n) {
3
- return typeof r == "function" ? r(n) : r && typeof r == "object" && o in r ? r[o](n) : r instanceof Date ? new r.constructor(n) : new Date(n);
1
+ import { constructFrom as s } from "./index378.js";
2
+ import { startOfISOWeek as a } from "./index208.js";
3
+ import { toDate as m } from "./index379.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;
4
11
  }
5
12
  export {
6
- c as constructFrom
13
+ Y as getISOWeekYear
7
14
  };
8
15
  //# sourceMappingURL=index392.js.map