@a-ui/react 7.13.0-beta.3 → 7.13.0-beta.5

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 (452) hide show
  1. package/cjs/index10.js +1 -1
  2. package/cjs/index100.js +1 -1
  3. package/cjs/index101.js +1 -1
  4. package/cjs/index102.js +1 -5
  5. package/cjs/index103.js +1 -1
  6. package/cjs/index104.js +1 -1
  7. package/cjs/index105.js +1 -2
  8. package/cjs/index106.js +1 -1
  9. package/cjs/index107.js +1 -1
  10. package/cjs/index108.js +1 -1
  11. package/cjs/index109.js +1 -1
  12. package/cjs/index11.js +1 -1
  13. package/cjs/index110.js +1 -10
  14. package/cjs/index111.js +1 -1
  15. package/cjs/index112.js +1 -1
  16. package/cjs/index113.js +1 -1
  17. package/cjs/index114.js +2 -1
  18. package/cjs/index115.js +1 -1
  19. package/cjs/index116.js +1 -1
  20. package/cjs/index117.js +1 -5
  21. package/cjs/index118.js +1 -9
  22. package/cjs/index119.js +10 -1
  23. package/cjs/index12.js +1 -1
  24. package/cjs/index120.js +1 -1
  25. package/cjs/index121.js +1 -1
  26. package/cjs/index122.js +1 -1
  27. package/cjs/index123.js +1 -1
  28. package/cjs/index124.js +1 -1
  29. package/cjs/index125.js +1 -1
  30. package/cjs/index126.js +5 -1
  31. package/cjs/index127.js +9 -1
  32. package/cjs/index128.js +1 -1
  33. package/cjs/index129.js +1 -1
  34. package/cjs/index13.js +1 -1
  35. package/cjs/index130.js +1 -1
  36. package/cjs/index131.js +1 -1
  37. package/cjs/index132.js +1 -1
  38. package/cjs/index133.js +1 -1
  39. package/cjs/index134.js +1 -1
  40. package/cjs/index135.js +1 -1
  41. package/cjs/index136.js +1 -1
  42. package/cjs/index138.js +6 -9
  43. package/cjs/index139.js +8 -1
  44. package/cjs/index14.js +1 -1
  45. package/cjs/index140.js +5 -1
  46. package/cjs/index141.js +1 -1
  47. package/cjs/index142.js +1 -8
  48. package/cjs/index143.js +1 -8
  49. package/cjs/index144.js +1 -5
  50. package/cjs/index145.js +11 -1
  51. package/cjs/index146.js +1 -1
  52. package/cjs/index147.js +1 -1
  53. package/cjs/index148.js +1 -1
  54. package/cjs/index149.js +1 -1
  55. package/cjs/index150.js +1 -1
  56. package/cjs/index151.js +1 -1
  57. package/cjs/index152.js +1 -1
  58. package/cjs/index153.js +1 -1
  59. package/cjs/index154.js +1 -1
  60. package/cjs/index155.js +1 -1
  61. package/cjs/index156.js +1 -1
  62. package/cjs/index157.js +1 -1
  63. package/cjs/index158.js +1 -1
  64. package/cjs/index159.js +1 -1
  65. package/cjs/index16.js +1 -1
  66. package/cjs/index160.js +1 -1
  67. package/cjs/index161.js +1 -1
  68. package/cjs/index162.js +1 -1
  69. package/cjs/index163.js +1 -1
  70. package/cjs/index164.js +1 -1
  71. package/cjs/index165.js +1 -1
  72. package/cjs/index166.js +1 -1
  73. package/cjs/index167.js +1 -1
  74. package/cjs/index168.js +1 -1
  75. package/cjs/index169.js +1 -1
  76. package/cjs/index17.js +1 -1
  77. package/cjs/index170.js +1 -1
  78. package/cjs/index171.js +1 -1
  79. package/cjs/index172.js +1 -1
  80. package/cjs/index173.js +1 -1
  81. package/cjs/index174.js +1 -1
  82. package/cjs/index175.js +1 -1
  83. package/cjs/index176.js +1 -1
  84. package/cjs/index177.js +1 -1
  85. package/cjs/index178.js +1 -1
  86. package/cjs/index179.js +1 -1
  87. package/cjs/index18.js +1 -1
  88. package/cjs/index180.js +1 -1
  89. package/cjs/index181.js +1 -1
  90. package/cjs/index182.js +1 -1
  91. package/cjs/index183.js +1 -1
  92. package/cjs/index184.js +1 -1
  93. package/cjs/index185.js +1 -1
  94. package/cjs/index186.js +1 -1
  95. package/cjs/index187.js +1 -1
  96. package/cjs/index188.js +1 -1
  97. package/cjs/index189.js +1 -1
  98. package/cjs/index190.js +1 -1
  99. package/cjs/index191.js +1 -1
  100. package/cjs/index192.js +1 -1
  101. package/cjs/index193.js +1 -1
  102. package/cjs/index194.js +1 -1
  103. package/cjs/index195.js +1 -1
  104. package/cjs/index196.js +1 -1
  105. package/cjs/index197.js +1 -1
  106. package/cjs/index198.js +1 -1
  107. package/cjs/index199.js +1 -1
  108. package/cjs/index2.js +1 -1
  109. package/cjs/index20.js +1 -1
  110. package/cjs/index200.js +1 -1
  111. package/cjs/index201.js +1 -1
  112. package/cjs/index202.js +1 -1
  113. package/cjs/index203.js +1 -1
  114. package/cjs/index204.js +1 -1
  115. package/cjs/index205.js +1 -1
  116. package/cjs/index206.js +1 -1
  117. package/cjs/index207.js +1 -1
  118. package/cjs/index208.js +1 -1
  119. package/cjs/index209.js +1 -1
  120. package/cjs/index21.js +1 -1
  121. package/cjs/index210.js +1 -1
  122. package/cjs/index211.js +1 -1
  123. package/cjs/index212.js +1 -1
  124. package/cjs/index213.js +1 -1
  125. package/cjs/index214.js +1 -1
  126. package/cjs/index215.js +1 -1
  127. package/cjs/index216.js +1 -1
  128. package/cjs/index217.js +1 -1
  129. package/cjs/index218.js +1 -1
  130. package/cjs/index219.js +1 -1
  131. package/cjs/index22.js +1 -1
  132. package/cjs/index220.js +1 -1
  133. package/cjs/index221.js +1 -1
  134. package/cjs/index222.js +1 -1
  135. package/cjs/index223.js +1 -1
  136. package/cjs/index224.js +1 -1
  137. package/cjs/index225.js +1 -1
  138. package/cjs/index226.js +1 -1
  139. package/cjs/index227.js +1 -1
  140. package/cjs/index228.js +1 -1
  141. package/cjs/index229.js +1 -1
  142. package/cjs/index230.js +1 -1
  143. package/cjs/index231.js +1 -1
  144. package/cjs/index232.js +1 -1
  145. package/cjs/index233.js +1 -1
  146. package/cjs/index234.js +1 -1
  147. package/cjs/index235.js +1 -1
  148. package/cjs/index24.js +1 -1
  149. package/cjs/index25.js +1 -1
  150. package/cjs/index26.js +1 -1
  151. package/cjs/index27.js +1 -1
  152. package/cjs/index28.js +1 -1
  153. package/cjs/index3.js +1 -1
  154. package/cjs/index30.js +1 -1
  155. package/cjs/index31.js +1 -1
  156. package/cjs/index32.js +1 -1
  157. package/cjs/index33.js +1 -1
  158. package/cjs/index34.js +1 -1
  159. package/cjs/index36.js +1 -1
  160. package/cjs/index37.js +1 -1
  161. package/cjs/index38.js +1 -1
  162. package/cjs/index39.js +1 -1
  163. package/cjs/index4.js +1 -1
  164. package/cjs/index40.js +1 -1
  165. package/cjs/index41.js +1 -1
  166. package/cjs/index42.js +1 -1
  167. package/cjs/index43.js +1 -1
  168. package/cjs/index44.js +1 -1
  169. package/cjs/index45.js +1 -1
  170. package/cjs/index46.js +1 -1
  171. package/cjs/index47.js +1 -1
  172. package/cjs/index48.js +1 -1
  173. package/cjs/index49.js +1 -1
  174. package/cjs/index5.js +1 -1
  175. package/cjs/index50.js +1 -1
  176. package/cjs/index51.js +1 -1
  177. package/cjs/index52.js +1 -1
  178. package/cjs/index53.js +1 -1
  179. package/cjs/index54.js +1 -1
  180. package/cjs/index55.js +1 -1
  181. package/cjs/index56.js +1 -0
  182. package/cjs/index57.js +1 -1
  183. package/cjs/index58.js +1 -1
  184. package/cjs/index59.js +1 -0
  185. package/cjs/index6.js +1 -1
  186. package/cjs/index60.js +1 -1
  187. package/cjs/index61.js +7 -1
  188. package/cjs/index62.js +1 -1
  189. package/cjs/index63.js +1 -7
  190. package/cjs/index64.js +1 -0
  191. package/cjs/index65.js +1 -0
  192. package/cjs/index66.js +1 -1
  193. package/cjs/index67.js +1 -1
  194. package/cjs/index68.js +1 -1
  195. package/cjs/index69.js +1 -1
  196. package/cjs/index70.js +1 -1
  197. package/cjs/index71.js +1 -1
  198. package/cjs/index72.js +1 -1
  199. package/cjs/index73.js +1 -1
  200. package/cjs/index74.js +1 -1
  201. package/cjs/index75.js +1 -1
  202. package/cjs/index76.js +1 -1
  203. package/cjs/index77.js +1 -1
  204. package/cjs/index78.js +1 -1
  205. package/cjs/index79.js +1 -1
  206. package/cjs/index8.js +1 -1
  207. package/cjs/index80.js +1 -1
  208. package/cjs/index81.js +1 -1
  209. package/cjs/index83.js +1 -1
  210. package/cjs/index84.js +1 -1
  211. package/cjs/index85.js +1 -1
  212. package/cjs/index86.js +1 -0
  213. package/cjs/index87.js +1 -1
  214. package/cjs/index88.js +1 -1
  215. package/cjs/index89.js +1 -1
  216. package/cjs/index9.js +1 -1
  217. package/cjs/index90.js +1 -1
  218. package/cjs/index91.js +5 -1
  219. package/cjs/index92.js +1 -1
  220. package/cjs/index93.js +1 -1
  221. package/cjs/index94.js +1 -1
  222. package/cjs/index95.js +1 -1
  223. package/cjs/index96.js +1 -1
  224. package/cjs/index97.js +1 -1
  225. package/cjs/index98.js +1 -1
  226. package/cjs/index99.js +1 -1
  227. package/es/index10.mjs +4 -4
  228. package/es/index100.mjs +5 -2
  229. package/es/index101.mjs +11 -398
  230. package/es/index102.mjs +244 -37
  231. package/es/index103.mjs +89 -2
  232. package/es/index104.mjs +14 -9
  233. package/es/index105.mjs +4 -327
  234. package/es/index106.mjs +2 -50
  235. package/es/index107.mjs +2 -2
  236. package/es/index108.mjs +2 -65
  237. package/es/index109.mjs +385 -37
  238. package/es/index11.mjs +1 -1
  239. package/es/index110.mjs +123 -58
  240. package/es/index111.mjs +136 -46
  241. package/es/index112.mjs +2 -40
  242. package/es/index113.mjs +8 -2
  243. package/es/index114.mjs +327 -2
  244. package/es/index115.mjs +50 -2
  245. package/es/index116.mjs +2 -31
  246. package/es/index117.mjs +65 -19
  247. package/es/index118.mjs +40 -58
  248. package/es/index119.mjs +59 -62
  249. package/es/index12.mjs +14 -14
  250. package/es/index120.mjs +45 -15
  251. package/es/index121.mjs +39 -6
  252. package/es/index122.mjs +2 -7
  253. package/es/index123.mjs +2 -6
  254. package/es/index124.mjs +2 -6
  255. package/es/index125.mjs +30 -4
  256. package/es/index126.mjs +19 -5
  257. package/es/index127.mjs +60 -6
  258. package/es/index128.mjs +62 -4
  259. package/es/index129.mjs +13 -66
  260. package/es/index13.mjs +2 -2
  261. package/es/index130.mjs +7 -3
  262. package/es/index131.mjs +6 -4
  263. package/es/index132.mjs +5 -10
  264. package/es/index133.mjs +6 -2
  265. package/es/index134.mjs +4 -390
  266. package/es/index135.mjs +6 -124
  267. package/es/index136.mjs +4 -133
  268. package/es/index138.mjs +73 -55
  269. package/es/index139.mjs +93 -2
  270. package/es/index14.mjs +3 -3
  271. package/es/index140.mjs +52 -2
  272. package/es/index141.mjs +8 -2
  273. package/es/index142.mjs +4 -75
  274. package/es/index143.mjs +48 -89
  275. package/es/index144.mjs +2 -52
  276. package/es/index145.mjs +58 -8
  277. package/es/index146.mjs +2 -5
  278. package/es/index147.mjs +2 -52
  279. package/es/index148.mjs +5 -2
  280. package/es/index149.mjs +5 -2
  281. package/es/index150.mjs +7 -2
  282. package/es/index151.mjs +12 -4
  283. package/es/index152.mjs +15 -4
  284. package/es/index153.mjs +9 -7
  285. package/es/index154.mjs +5 -12
  286. package/es/index155.mjs +5 -15
  287. package/es/index156.mjs +4 -8
  288. package/es/index157.mjs +512 -5
  289. package/es/index158.mjs +50 -6
  290. package/es/index159.mjs +17 -4
  291. package/es/index16.mjs +1 -1
  292. package/es/index160.mjs +16 -511
  293. package/es/index161.mjs +5 -50
  294. package/es/index162.mjs +7 -17
  295. package/es/index163.mjs +6 -18
  296. package/es/index164.mjs +4 -4
  297. package/es/index165.mjs +5 -7
  298. package/es/index166.mjs +8 -5
  299. package/es/index167.mjs +4 -4
  300. package/es/index168.mjs +7 -5
  301. package/es/index169.mjs +11 -8
  302. package/es/index17.mjs +4 -4
  303. package/es/index170.mjs +8 -4
  304. package/es/index171.mjs +8 -7
  305. package/es/index172.mjs +12 -11
  306. package/es/index173.mjs +3 -8
  307. package/es/index174.mjs +32 -8
  308. package/es/index175.mjs +65 -13
  309. package/es/index176.mjs +7 -3
  310. package/es/index177.mjs +7 -32
  311. package/es/index178.mjs +7 -65
  312. package/es/index179.mjs +6 -7
  313. package/es/index18.mjs +8 -8
  314. package/es/index180.mjs +13 -7
  315. package/es/index181.mjs +2 -7
  316. package/es/index182.mjs +2 -7
  317. package/es/index183.mjs +2 -14
  318. package/es/index184.mjs +55 -66
  319. package/es/index185.mjs +22 -31
  320. package/es/index186.mjs +41 -9
  321. package/es/index187.mjs +58 -150
  322. package/es/index188.mjs +31 -107
  323. package/es/index189.mjs +12 -67
  324. package/es/index190.mjs +62 -31
  325. package/es/index191.mjs +62 -9
  326. package/es/index192.mjs +62 -107
  327. package/es/index193.mjs +62 -106
  328. package/es/index194.mjs +37 -54
  329. package/es/index195.mjs +36 -17
  330. package/es/index196.mjs +45 -33
  331. package/es/index197.mjs +24 -42
  332. package/es/index198.mjs +34 -29
  333. package/es/index199.mjs +63 -10
  334. package/es/index2.mjs +1 -1
  335. package/es/index20.mjs +2 -2
  336. package/es/index200.mjs +43 -39
  337. package/es/index201.mjs +70 -41
  338. package/es/index202.mjs +28 -50
  339. package/es/index203.mjs +32 -54
  340. package/es/index204.mjs +35 -34
  341. package/es/index205.mjs +19 -35
  342. package/es/index206.mjs +13 -42
  343. package/es/index207.mjs +18 -37
  344. package/es/index208.mjs +19 -31
  345. package/es/index209.mjs +18 -60
  346. package/es/index21.mjs +1 -1
  347. package/es/index210.mjs +18 -60
  348. package/es/index211.mjs +11 -88
  349. package/es/index212.mjs +35 -36
  350. package/es/index213.mjs +35 -36
  351. package/es/index214.mjs +11 -38
  352. package/es/index215.mjs +11 -22
  353. package/es/index216.mjs +67 -23
  354. package/es/index217.mjs +31 -24
  355. package/es/index218.mjs +9 -25
  356. package/es/index219.mjs +151 -22
  357. package/es/index22.mjs +1 -1
  358. package/es/index220.mjs +107 -23
  359. package/es/index221.mjs +17 -11
  360. package/es/index222.mjs +98 -37
  361. package/es/index223.mjs +47 -40
  362. package/es/index224.mjs +67 -13
  363. package/es/index225.mjs +31 -14
  364. package/es/index226.mjs +9 -16
  365. package/es/index227.mjs +108 -29
  366. package/es/index228.mjs +107 -13
  367. package/es/index229.mjs +58 -6
  368. package/es/index230.mjs +8 -19
  369. package/es/index231.mjs +17 -98
  370. package/es/index232.mjs +7 -47
  371. package/es/index233.mjs +15 -58
  372. package/es/index234.mjs +28 -8
  373. package/es/index235.mjs +12 -19
  374. package/es/index24.mjs +4 -4
  375. package/es/index25.mjs +2 -2
  376. package/es/index26.mjs +1 -1
  377. package/es/index27.mjs +1 -1
  378. package/es/index28.mjs +1 -1
  379. package/es/index3.mjs +1 -1
  380. package/es/index30.mjs +3 -3
  381. package/es/index31.mjs +2 -2
  382. package/es/index32.mjs +2 -2
  383. package/es/index33.mjs +3 -3
  384. package/es/index34.mjs +1 -1
  385. package/es/index36.mjs +3 -3
  386. package/es/index37.mjs +3 -3
  387. package/es/index38.mjs +3 -3
  388. package/es/index39.mjs +3 -3
  389. package/es/index4.mjs +2 -2
  390. package/es/index40.mjs +2 -2
  391. package/es/index41.mjs +1 -1
  392. package/es/index42.mjs +4 -4
  393. package/es/index43.mjs +1 -1
  394. package/es/index44.mjs +2 -2
  395. package/es/index45.mjs +3 -3
  396. package/es/index46.mjs +3 -3
  397. package/es/index47.mjs +2 -2
  398. package/es/index48.mjs +1 -1
  399. package/es/index49.mjs +2 -2
  400. package/es/index50.mjs +1 -1
  401. package/es/index51.mjs +11 -8
  402. package/es/index52.mjs +6 -47
  403. package/es/index53.mjs +21 -11
  404. package/es/index54.mjs +8 -28
  405. package/es/index55.mjs +27 -29
  406. package/es/index56.mjs +49 -0
  407. package/es/index57.mjs +47 -6
  408. package/es/index58.mjs +29 -46
  409. package/es/index59.mjs +19 -0
  410. package/es/index6.mjs +3 -3
  411. package/es/index60.mjs +29 -17
  412. package/es/index61.mjs +406 -26
  413. package/es/index62.mjs +28 -20
  414. package/es/index63.mjs +34 -407
  415. package/es/index64.mjs +19 -0
  416. package/es/index65.mjs +37 -0
  417. package/es/index66.mjs +2 -14
  418. package/es/index67.mjs +71 -56
  419. package/es/index68.mjs +28 -61
  420. package/es/index69.mjs +33 -57
  421. package/es/index70.mjs +4 -2
  422. package/es/index71.mjs +33 -72
  423. package/es/index72.mjs +4 -28
  424. package/es/index73.mjs +4 -35
  425. package/es/index74.mjs +4 -3
  426. package/es/index75.mjs +4 -34
  427. package/es/index76.mjs +4 -4
  428. package/es/index77.mjs +16 -4
  429. package/es/index78.mjs +84 -4
  430. package/es/index79.mjs +5 -4
  431. package/es/index8.mjs +3 -3
  432. package/es/index80.mjs +24 -4
  433. package/es/index81.mjs +53 -15
  434. package/es/index83.mjs +4 -5
  435. package/es/index84.mjs +115 -21
  436. package/es/index85.mjs +60 -53
  437. package/es/index86.mjs +62 -0
  438. package/es/index87.mjs +13 -4
  439. package/es/index88.mjs +57 -117
  440. package/es/index89.mjs +5 -5
  441. package/es/index9.mjs +1 -1
  442. package/es/index90.mjs +395 -21
  443. package/es/index91.mjs +40 -2
  444. package/es/index92.mjs +23 -234
  445. package/es/index93.mjs +2 -2
  446. package/es/index94.mjs +236 -12
  447. package/es/index95.mjs +2 -247
  448. package/es/index96.mjs +60 -82
  449. package/es/index97.mjs +5 -15
  450. package/es/index98.mjs +5 -4
  451. package/es/index99.mjs +11 -2
  452. package/package.json +7 -5
package/es/index63.mjs CHANGED
@@ -1,411 +1,38 @@
1
- import ce, { useState as w, useRef as $, useEffect as u, useContext as St, useCallback as At, useImperativeHandle as Et, createContext as kt, useLayoutEffect as Ot } from "react";
2
- import { autoUpdate as Tt, arrow as xt, computePosition as ut, offset as Lt, flip as Ct, shift as Rt } from "./index101.mjs";
3
- import lt from "./index102.mjs";
4
- /*
5
- * React Tooltip
6
- * {@link https://github.com/ReactTooltip/react-tooltip}
7
- * @copyright ReactTooltip Team
8
- * @license MIT
9
- */
10
- const Nt = "react-tooltip-core-styles", zt = "react-tooltip-base-styles", dt = { core: !1, base: !1 };
11
- function pt({ css: l, id: n = zt, type: v = "base", ref: c }) {
12
- var m, h;
13
- if (!l || typeof document > "u" || dt[v] || v === "core" && typeof process < "u" && (!((m = process == null ? void 0 : process.env) === null || m === void 0) && m.REACT_TOOLTIP_DISABLE_CORE_STYLES) || v !== "base" && typeof process < "u" && (!((h = process == null ? void 0 : process.env) === null || h === void 0) && h.REACT_TOOLTIP_DISABLE_BASE_STYLES)) return;
14
- v === "core" && (n = Nt), c || (c = {});
15
- const { insertAt: C } = c;
16
- if (document.getElementById(n)) return;
17
- const b = document.head || document.getElementsByTagName("head")[0], _ = document.createElement("style");
18
- _.id = n, _.type = "text/css", C === "top" && b.firstChild ? b.insertBefore(_, b.firstChild) : b.appendChild(_), _.styleSheet ? _.styleSheet.cssText = l : _.appendChild(document.createTextNode(l)), dt[v] = !0;
19
- }
20
- const ft = async ({ elementReference: l = null, tooltipReference: n = null, tooltipArrowReference: v = null, place: c = "top", offset: m = 10, strategy: h = "absolute", middlewares: C = [Lt(Number(m)), Ct({ fallbackAxisSideDirection: "start" }), Rt({ padding: 5 })], border: b, arrowSize: _ = 8 }) => {
21
- if (!l) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: c };
22
- if (n === null) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: c };
23
- const q = C;
24
- return v ? (q.push(xt({ element: v, padding: 5 })), ut(l, n, { placement: c, strategy: h, middleware: q }).then(({ x: K, y: j, placement: J, middlewareData: G }) => {
25
- var I, x;
26
- const Z = { left: `${K}px`, top: `${j}px`, border: b }, { x: M, y: U } = (I = G.arrow) !== null && I !== void 0 ? I : { x: 0, y: 0 }, W = (x = { top: "bottom", right: "left", bottom: "top", left: "right" }[J.split("-")[0]]) !== null && x !== void 0 ? x : "bottom", Y = b && { borderBottom: b, borderRight: b };
27
- let ue = 0;
28
- if (b) {
29
- const ee = `${b}`.match(/(\d+)px/);
30
- ue = ee?.[1] ? Number(ee[1]) : 1;
31
- }
32
- return { tooltipStyles: Z, tooltipArrowStyles: { left: M != null ? `${M}px` : "", top: U != null ? `${U}px` : "", right: "", bottom: "", ...Y, [W]: `-${_ / 2 + ue}px` }, place: J };
33
- })) : ut(l, n, { placement: "bottom", strategy: h, middleware: q }).then(({ x: K, y: j, placement: J }) => ({ tooltipStyles: { left: `${K}px`, top: `${j}px` }, tooltipArrowStyles: {}, place: J }));
34
- }, vt = (l, n) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(l, n), mt = (l, n, v) => {
35
- let c = null;
36
- const m = function(...h) {
37
- const C = () => {
38
- c = null;
39
- };
40
- !c && (l.apply(this, h), c = setTimeout(C, n));
41
- };
42
- return m.cancel = () => {
43
- c && (clearTimeout(c), c = null);
44
- }, m;
45
- }, yt = (l) => l !== null && !Array.isArray(l) && typeof l == "object", rt = (l, n) => {
46
- if (l === n) return !0;
47
- if (Array.isArray(l) && Array.isArray(n)) return l.length === n.length && l.every((m, h) => rt(m, n[h]));
48
- if (Array.isArray(l) !== Array.isArray(n)) return !1;
49
- if (!yt(l) || !yt(n)) return l === n;
50
- const v = Object.keys(l), c = Object.keys(n);
51
- return v.length === c.length && v.every((m) => rt(l[m], n[m]));
52
- }, $t = (l) => {
53
- if (!(l instanceof HTMLElement || l instanceof SVGElement)) return !1;
54
- const n = getComputedStyle(l);
55
- return ["overflow", "overflow-x", "overflow-y"].some((v) => {
56
- const c = n.getPropertyValue(v);
57
- return c === "auto" || c === "scroll";
58
- });
59
- }, wt = (l) => {
60
- if (!l) return null;
61
- let n = l.parentElement;
62
- for (; n; ) {
63
- if ($t(n)) return n;
64
- n = n.parentElement;
65
- }
66
- return document.scrollingElement || document.documentElement;
67
- }, jt = typeof window < "u" ? Ot : u, z = (l) => {
68
- l.current && (clearTimeout(l.current), l.current = null);
69
- }, It = "DEFAULT_TOOLTIP_ID", Bt = { anchorRefs: /* @__PURE__ */ new Set(), activeAnchor: { current: null }, attach: () => {
70
- }, detach: () => {
71
- }, setActiveAnchor: () => {
72
- } }, Dt = kt({ getTooltipData: () => Bt });
73
- function ht(l = It) {
74
- return St(Dt).getTooltipData(l);
75
- }
76
- var Te = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, ot = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
77
- const qt = ({ forwardRef: l, id: n, className: v, classNameArrow: c, variant: m = "dark", anchorId: h, anchorSelect: C, place: b = "top", offset: _ = 10, events: q = ["hover"], openOnClick: K = !1, positionStrategy: j = "absolute", middlewares: J, wrapper: G, delayShow: I = 0, delayHide: x = 0, float: Z = !1, hidden: M = !1, noArrow: U = !1, clickable: W = !1, closeOnEsc: Y = !1, closeOnScroll: ue = !1, closeOnResize: ee = !1, openEvents: R, closeEvents: de, globalCloseEvents: xe, imperativeModeOnly: Ge, style: Me, position: We, afterShow: He, afterHide: H, disableTooltip: pe, content: Le, contentWrapperRef: te, isOpen: B, defaultIsOpen: fe = !1, setIsOpen: oe, previousActiveAnchor: Ce, activeAnchor: d, setActiveAnchor: ve, border: Pe, opacity: Xe, arrowColor: Je, arrowSize: me = 8, role: Ze = "tooltip" }) => {
78
- var le;
79
- const k = $(null), ye = $(null), D = $(null), re = $(null), we = $(null), [ne, Ue] = w({ tooltipStyles: {}, tooltipArrowStyles: {}, place: b }), [O, Re] = w(!1), [he, F] = w(!1), [f, be] = w(null), Ve = $(!1), _e = $(null), { anchorRefs: Ye, setActiveAnchor: Ne } = ht(n), ze = $(!1), [Q, $e] = w([]), se = $(!1), ge = K || q.includes("click"), Fe = ge || R?.click || R?.dblclick || R?.mousedown, je = R ? { ...R } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
80
- !R && ge && Object.assign(je, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
81
- const ae = de ? { ...de } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
82
- !de && ge && Object.assign(ae, { mouseleave: !1, blur: !1, mouseout: !1 });
83
- const S = xe ? { ...xe } : { escape: Y || !1, scroll: ue || !1, resize: ee || !1, clickOutsideAnchor: Fe || !1 };
84
- Ge && (Object.assign(je, { mouseover: !1, focus: !1, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 }), Object.assign(ae, { mouseout: !1, blur: !1, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 }), Object.assign(S, { escape: !1, scroll: !1, resize: !1, clickOutsideAnchor: !1 })), jt(() => (se.current = !0, () => {
85
- se.current = !1;
86
- }), []);
87
- const T = (e) => {
88
- se.current && (e && F(!0), setTimeout(() => {
89
- se.current && (oe?.(e), B === void 0 && Re(e));
90
- }, 10));
91
- };
92
- u(() => {
93
- if (n) {
94
- if (O) {
95
- o(Ce);
96
- const t = e(d), i = [.../* @__PURE__ */ new Set([...t, n])].filter(Boolean).join(" ");
97
- d?.setAttribute("aria-describedby", i);
98
- } else o(d);
99
- return () => {
100
- o(d), o(Ce);
101
- };
102
- }
103
- function e(t) {
104
- var i;
105
- return ((i = t?.getAttribute("aria-describedby")) === null || i === void 0 ? void 0 : i.split(" ")) || [];
106
- }
107
- function o(t) {
108
- const i = e(t).filter((g) => g !== n);
109
- i.length ? t?.setAttribute("aria-describedby", i.join(" ")) : t?.removeAttribute("aria-describedby");
110
- }
111
- }, [d, O, n, Ce]), u(() => {
112
- if (B === void 0) return () => null;
113
- B && F(!0);
114
- const e = setTimeout(() => {
115
- Re(B);
116
- }, 10);
117
- return () => {
118
- clearTimeout(e);
119
- };
120
- }, [B]), u(() => {
121
- if (O !== Ve.current) if (z(we), Ve.current = O, O) He?.();
122
- else {
123
- const e = ((o) => {
124
- const t = o.match(/^([\d.]+)(ms|s)$/);
125
- if (!t) return 0;
126
- const [, i, g] = t;
127
- return Number(i) * (g === "ms" ? 1 : 1e3);
128
- })(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
129
- we.current = setTimeout(() => {
130
- F(!1), be(null), H?.();
131
- }, e + 25);
132
- }
133
- }, [O]);
134
- const Ie = (e) => {
135
- Ue((o) => rt(o, e) ? o : e);
136
- }, Be = (e = I) => {
137
- z(D), he ? T(!0) : D.current = setTimeout(() => {
138
- T(!0);
139
- }, e);
140
- }, Se = (e = x) => {
141
- z(re), re.current = setTimeout(() => {
142
- ze.current || T(!1);
143
- }, e);
144
- }, De = (e) => {
145
- var o;
146
- if (!e) return;
147
- const t = (o = e.currentTarget) !== null && o !== void 0 ? o : e.target;
148
- if (!t?.isConnected) return ve(null), void Ne({ current: null });
149
- I ? Be() : T(!0), ve(t), Ne({ current: t }), z(re);
150
- }, Ae = () => {
151
- W ? Se(x || 100) : x ? Se() : T(!1), z(D);
152
- }, Ee = ({ x: e, y: o }) => {
153
- var t;
154
- const i = { getBoundingClientRect: () => ({ x: e, y: o, width: 0, height: 0, top: o, left: e, right: e, bottom: o }) };
155
- ft({ place: (t = f?.place) !== null && t !== void 0 ? t : b, offset: _, elementReference: i, tooltipReference: k.current, tooltipArrowReference: ye.current, strategy: j, middlewares: J, border: Pe, arrowSize: me }).then((g) => {
156
- Ie(g);
157
- });
158
- }, ke = (e) => {
159
- if (!e) return;
160
- const o = e, t = { x: o.clientX, y: o.clientY };
161
- Ee(t), _e.current = t;
162
- }, qe = (e) => {
163
- var o;
164
- if (!O) return;
165
- const t = e.target;
166
- t.isConnected && (!((o = k.current) === null || o === void 0) && o.contains(t) || [document.querySelector(`[id='${h}']`), ...Q].some((i) => i?.contains(t)) || (T(!1), z(D)));
167
- }, Qe = mt(De, 50), y = mt(Ae, 50), A = (e) => {
168
- y.cancel(), Qe(e);
169
- }, r = () => {
170
- Qe.cancel(), y();
171
- }, s = At(() => {
172
- var e, o;
173
- const t = (e = f?.position) !== null && e !== void 0 ? e : We;
174
- t ? Ee(t) : Z ? _e.current && Ee(_e.current) : d?.isConnected && ft({ place: (o = f?.place) !== null && o !== void 0 ? o : b, offset: _, elementReference: d, tooltipReference: k.current, tooltipArrowReference: ye.current, strategy: j, middlewares: J, border: Pe, arrowSize: me }).then((i) => {
175
- se.current && Ie(i);
176
- });
177
- }, [O, d, Le, Me, b, f?.place, _, j, We, f?.position, Z, me]);
178
- u(() => {
179
- var e, o;
180
- const t = new Set(Ye);
181
- Q.forEach((a) => {
182
- pe?.(a) || t.add({ current: a });
183
- });
184
- const i = document.querySelector(`[id='${h}']`);
185
- i && !pe?.(i) && t.add({ current: i });
186
- const g = () => {
187
- T(!1);
188
- }, P = wt(d), X = wt(k.current);
189
- S.scroll && (window.addEventListener("scroll", g), P?.addEventListener("scroll", g), X?.addEventListener("scroll", g));
190
- let E = null;
191
- S.resize ? window.addEventListener("resize", g) : d && k.current && (E = Tt(d, k.current, s, { ancestorResize: !0, elementResize: !0, layoutShift: !0 }));
192
- const N = (a) => {
193
- a.key === "Escape" && T(!1);
194
- };
195
- S.escape && window.addEventListener("keydown", N), S.clickOutsideAnchor && window.addEventListener("click", qe);
196
- const p = [], Oe = (a) => !!(a?.target && d?.contains(a.target)), bt = (a) => {
197
- O && Oe(a) || De(a);
198
- }, _t = (a) => {
199
- O && Oe(a) && Ae();
200
- }, nt = ["mouseover", "mouseout", "mouseenter", "mouseleave", "focus", "blur"], st = ["click", "dblclick", "mousedown", "mouseup"];
201
- Object.entries(je).forEach(([a, V]) => {
202
- V && (nt.includes(a) ? p.push({ event: a, listener: A }) : st.includes(a) && p.push({ event: a, listener: bt }));
203
- }), Object.entries(ae).forEach(([a, V]) => {
204
- V && (nt.includes(a) ? p.push({ event: a, listener: r }) : st.includes(a) && p.push({ event: a, listener: _t }));
205
- }), Z && p.push({ event: "pointermove", listener: ke });
206
- const at = () => {
207
- ze.current = !0;
208
- }, it = () => {
209
- ze.current = !1, Ae();
210
- }, ct = W && (ae.mouseout || ae.mouseleave);
211
- return ct && ((e = k.current) === null || e === void 0 || e.addEventListener("mouseover", at), (o = k.current) === null || o === void 0 || o.addEventListener("mouseout", it)), p.forEach(({ event: a, listener: V }) => {
212
- t.forEach((et) => {
213
- var Ke;
214
- (Ke = et.current) === null || Ke === void 0 || Ke.addEventListener(a, V);
215
- });
216
- }), () => {
217
- var a, V;
218
- S.scroll && (window.removeEventListener("scroll", g), P?.removeEventListener("scroll", g), X?.removeEventListener("scroll", g)), S.resize ? window.removeEventListener("resize", g) : E?.(), S.clickOutsideAnchor && window.removeEventListener("click", qe), S.escape && window.removeEventListener("keydown", N), ct && ((a = k.current) === null || a === void 0 || a.removeEventListener("mouseover", at), (V = k.current) === null || V === void 0 || V.removeEventListener("mouseout", it)), p.forEach(({ event: et, listener: Ke }) => {
219
- t.forEach((gt) => {
220
- var tt;
221
- (tt = gt.current) === null || tt === void 0 || tt.removeEventListener(et, Ke);
222
- });
223
- });
224
- };
225
- }, [d, s, he, Ye, Q, R, de, xe, ge, I, x]), u(() => {
226
- var e, o;
227
- let t = (o = (e = f?.anchorSelect) !== null && e !== void 0 ? e : C) !== null && o !== void 0 ? o : "";
228
- !t && n && (t = `[data-tooltip-id='${n.replace(/'/g, "\\'")}']`);
229
- const i = new MutationObserver((g) => {
230
- const P = [], X = [];
231
- g.forEach((E) => {
232
- if (E.type === "attributes" && E.attributeName === "data-tooltip-id" && (E.target.getAttribute("data-tooltip-id") === n ? P.push(E.target) : E.oldValue === n && X.push(E.target)), E.type === "childList") {
233
- if (d) {
234
- const N = [...E.removedNodes].filter((p) => p.nodeType === 1);
235
- if (t) try {
236
- X.push(...N.filter((p) => p.matches(t))), X.push(...N.flatMap((p) => [...p.querySelectorAll(t)]));
237
- } catch {
238
- }
239
- N.some((p) => {
240
- var Oe;
241
- return !!(!((Oe = p?.contains) === null || Oe === void 0) && Oe.call(p, d)) && (F(!1), T(!1), ve(null), z(D), z(re), !0);
242
- });
243
- }
244
- if (t) try {
245
- const N = [...E.addedNodes].filter((p) => p.nodeType === 1);
246
- P.push(...N.filter((p) => p.matches(t))), P.push(...N.flatMap((p) => [...p.querySelectorAll(t)]));
247
- } catch {
248
- }
249
- }
250
- }), (P.length || X.length) && $e((E) => [...E.filter((N) => !X.includes(N)), ...P]);
251
- });
252
- return i.observe(document.body, { childList: !0, subtree: !0, attributes: !0, attributeFilter: ["data-tooltip-id"], attributeOldValue: !0 }), () => {
253
- i.disconnect();
254
- };
255
- }, [n, C, f?.anchorSelect, d]), u(() => {
256
- s();
257
- }, [s]), u(() => {
258
- if (!te?.current) return () => null;
259
- const e = new ResizeObserver(() => {
260
- setTimeout(() => s());
261
- });
262
- return e.observe(te.current), () => {
263
- e.disconnect();
264
- };
265
- }, [Le, te?.current]), u(() => {
266
- var e;
267
- const o = document.querySelector(`[id='${h}']`), t = [...Q, o];
268
- d && t.includes(d) || ve((e = Q[0]) !== null && e !== void 0 ? e : o);
269
- }, [h, Q, d]), u(() => (fe && T(!0), () => {
270
- z(D), z(re);
271
- }), []), u(() => {
272
- var e;
273
- let o = (e = f?.anchorSelect) !== null && e !== void 0 ? e : C;
274
- if (!o && n && (o = `[data-tooltip-id='${n.replace(/'/g, "\\'")}']`), o) try {
275
- const t = Array.from(document.querySelectorAll(o));
276
- $e(t);
277
- } catch {
278
- $e([]);
279
- }
280
- }, [n, C, f?.anchorSelect]), u(() => {
281
- D.current && (z(D), Be(I));
282
- }, [I]);
283
- const L = (le = f?.content) !== null && le !== void 0 ? le : Le, ie = O && Object.keys(ne.tooltipStyles).length > 0;
284
- return Et(l, () => ({ open: (e) => {
285
- if (e?.anchorSelect) try {
286
- document.querySelector(e.anchorSelect);
287
- } catch {
288
- return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`);
289
- }
290
- be(e ?? null), e?.delay ? Be(e.delay) : T(!0);
291
- }, close: (e) => {
292
- e?.delay ? Se(e.delay) : T(!1);
293
- }, activeAnchor: d, place: ne.place, isOpen: !!(he && !M && L && ie) })), he && !M && L ? ce.createElement(G, { id: n, role: Ze, className: lt("react-tooltip", Te.tooltip, ot.tooltip, ot[m], v, `react-tooltip__place-${ne.place}`, Te[ie ? "show" : "closing"], ie ? "react-tooltip__show" : "react-tooltip__closing", j === "fixed" && Te.fixed, W && Te.clickable), onTransitionEnd: (e) => {
294
- z(we), O || e.propertyName !== "opacity" || (F(!1), be(null), H?.());
295
- }, style: { ...Me, ...ne.tooltipStyles, opacity: Xe !== void 0 && ie ? Xe : void 0 }, ref: k }, L, ce.createElement(G, { className: lt("react-tooltip-arrow", Te.arrow, ot.arrow, c, U && Te.noArrow), style: { ...ne.tooltipArrowStyles, background: Je ? `linear-gradient(to right bottom, transparent 50%, ${Je} 50%)` : void 0, "--rt-arrow-size": `${me}px` }, ref: ye })) : null;
296
- }, Kt = ({ content: l }) => ce.createElement("span", { dangerouslySetInnerHTML: { __html: l } }), Pt = ce.forwardRef(({ id: l, anchorId: n, anchorSelect: v, content: c, html: m, render: h, className: C, classNameArrow: b, variant: _ = "dark", place: q = "top", offset: K = 10, wrapper: j = "div", children: J = null, events: G = ["hover"], openOnClick: I = !1, positionStrategy: x = "absolute", middlewares: Z, delayShow: M = 0, delayHide: U = 0, float: W = !1, hidden: Y = !1, noArrow: ue = !1, clickable: ee = !1, closeOnEsc: R = !1, closeOnScroll: de = !1, closeOnResize: xe = !1, openEvents: Ge, closeEvents: Me, globalCloseEvents: We, imperativeModeOnly: He = !1, style: H, position: pe, isOpen: Le, defaultIsOpen: te = !1, disableStyleInjection: B = !1, border: fe, opacity: oe, arrowColor: Ce, arrowSize: d, setIsOpen: ve, afterShow: Pe, afterHide: Xe, disableTooltip: Je, role: me = "tooltip" }, Ze) => {
297
- const [le, k] = w(c), [ye, D] = w(m), [re, we] = w(q), [ne, Ue] = w(_), [O, Re] = w(K), [he, F] = w(M), [f, be] = w(U), [Ve, _e] = w(W), [Ye, Ne] = w(Y), [ze, Q] = w(j), [$e, se] = w(G), [ge, Fe] = w(x), [je, ae] = w(null), [S, T] = w(null), Ie = $(null), Be = $(B), { anchorRefs: Se, activeAnchor: De } = ht(l), Ae = (y) => y?.getAttributeNames().reduce((A, r) => {
298
- var s;
299
- return r.startsWith("data-tooltip-") && (A[r.replace(/^data-tooltip-/, "")] = (s = y?.getAttribute(r)) !== null && s !== void 0 ? s : null), A;
300
- }, {}), Ee = (y) => {
301
- const A = { place: (r) => {
302
- var s;
303
- we((s = r) !== null && s !== void 0 ? s : q);
304
- }, content: (r) => {
305
- k(r ?? c);
306
- }, html: (r) => {
307
- D(r ?? m);
308
- }, variant: (r) => {
309
- var s;
310
- Ue((s = r) !== null && s !== void 0 ? s : _);
311
- }, offset: (r) => {
312
- Re(r === null ? K : Number(r));
313
- }, wrapper: (r) => {
314
- var s;
315
- Q((s = r) !== null && s !== void 0 ? s : j);
316
- }, events: (r) => {
317
- const s = r?.split(" ");
318
- se(s ?? G);
319
- }, "position-strategy": (r) => {
320
- var s;
321
- Fe((s = r) !== null && s !== void 0 ? s : x);
322
- }, "delay-show": (r) => {
323
- F(r === null ? M : Number(r));
324
- }, "delay-hide": (r) => {
325
- be(r === null ? U : Number(r));
326
- }, float: (r) => {
327
- _e(r === null ? W : r === "true");
328
- }, hidden: (r) => {
329
- Ne(r === null ? Y : r === "true");
330
- }, "class-name": (r) => {
331
- ae(r);
332
- } };
333
- Object.values(A).forEach((r) => r(null)), Object.entries(y).forEach(([r, s]) => {
334
- var L;
335
- (L = A[r]) === null || L === void 0 || L.call(A, s);
1
+ import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
+ import { classNames as l } from "./index51.mjs";
3
+ import { getYear as c } from "./index66.mjs";
4
+ import { format as a } from "./index75.mjs";
5
+ import { getDate as p } from "./index103.mjs";
6
+ function D({ yearsRowsStart: s, value: t, activeMonth: o, onChange: d }) {
7
+ const i = (e) => {
8
+ const n = l({
9
+ "is-current": e === c(/* @__PURE__ */ new Date()),
10
+ "is-selected": !!(t && e === c(new Date(t)))
336
11
  });
12
+ return /* @__PURE__ */ r("td", { children: /* @__PURE__ */ r(
13
+ "button",
14
+ {
15
+ type: "button",
16
+ className: n,
17
+ onClick: () => d(new Date(e, o, t ? p(t) : 1)),
18
+ children: a(new Date(e, o), "yyyy")
19
+ }
20
+ ) });
337
21
  };
338
- u(() => {
339
- k(c);
340
- }, [c]), u(() => {
341
- D(m);
342
- }, [m]), u(() => {
343
- we(q);
344
- }, [q]), u(() => {
345
- Ue(_);
346
- }, [_]), u(() => {
347
- Re(K);
348
- }, [K]), u(() => {
349
- F(M);
350
- }, [M]), u(() => {
351
- be(U);
352
- }, [U]), u(() => {
353
- _e(W);
354
- }, [W]), u(() => {
355
- Ne(Y);
356
- }, [Y]), u(() => {
357
- Fe(x);
358
- }, [x]), u(() => {
359
- Be.current !== B && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
360
- }, [B]), u(() => {
361
- typeof window < "u" && window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles", { detail: { disableCore: B === "core", disableBase: B } }));
362
- }, []), u(() => {
363
- var y;
364
- const A = new Set(Se);
365
- let r = v;
366
- if (!r && l && (r = `[data-tooltip-id='${l.replace(/'/g, "\\'")}']`), r) try {
367
- document.querySelectorAll(r).forEach((o) => {
368
- A.add({ current: o });
369
- });
370
- } catch {
371
- console.warn(`[react-tooltip] "${r}" is not a valid CSS selector`);
372
- }
373
- const s = document.querySelector(`[id='${n}']`);
374
- if (s && A.add({ current: s }), !A.size) return () => null;
375
- const L = (y = S ?? s) !== null && y !== void 0 ? y : De.current, ie = new MutationObserver((o) => {
376
- o.forEach((t) => {
377
- var i;
378
- if (!L || t.type !== "attributes" || !(!((i = t.attributeName) === null || i === void 0) && i.startsWith("data-tooltip-"))) return;
379
- const g = Ae(L);
380
- Ee(g);
381
- });
382
- }), e = { attributes: !0, childList: !1, subtree: !1 };
383
- if (L) {
384
- const o = Ae(L);
385
- Ee(o), ie.observe(L, e);
386
- }
387
- return () => {
388
- ie.disconnect();
389
- };
390
- }, [Se, De, S, n, v]), u(() => {
391
- H?.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), fe && !vt("border", `${fe}`) && console.warn(`[react-tooltip] "${fe}" is not a valid \`border\`.`), H?.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), oe && !vt("opacity", `${oe}`) && console.warn(`[react-tooltip] "${oe}" is not a valid \`opacity\`.`);
392
- }, []);
393
- let ke = J;
394
- const qe = $(null);
395
- if (h) {
396
- const y = h({ content: S?.getAttribute("data-tooltip-content") || le || null, activeAnchor: S });
397
- ke = y ? ce.createElement("div", { ref: qe, className: "react-tooltip-content-wrapper" }, y) : null;
398
- } else le && (ke = le);
399
- ye && (ke = ce.createElement(Kt, { content: ye }));
400
- const Qe = { forwardRef: Ze, id: l, anchorId: n, anchorSelect: v, className: lt(C, je), classNameArrow: b, content: ke, contentWrapperRef: qe, place: re, variant: ne, offset: O, wrapper: ze, events: $e, openOnClick: I, positionStrategy: ge, middlewares: Z, delayShow: he, delayHide: f, float: Ve, hidden: Ye, noArrow: ue, clickable: ee, closeOnEsc: R, closeOnScroll: de, closeOnResize: xe, openEvents: Ge, closeEvents: Me, globalCloseEvents: We, imperativeModeOnly: He, style: H, position: pe, isOpen: Le, defaultIsOpen: te, border: fe, opacity: oe, arrowColor: Ce, arrowSize: d, setIsOpen: ve, afterShow: Pe, afterHide: Xe, disableTooltip: Je, activeAnchor: S, previousActiveAnchor: Ie.current, setActiveAnchor: (y) => {
401
- T((A) => (y?.isSameNode(A) || (Ie.current = A), y));
402
- }, role: me };
403
- return ce.createElement(qt, { ...Qe });
404
- });
405
- typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", (l) => {
406
- l.detail.disableCore || pt({ css: ":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}", type: "core" }), l.detail.disableBase || pt({ css: `
407
- .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`, type: "base" });
408
- });
22
+ return /* @__PURE__ */ r("div", { className: "m-datepicker__list", children: /* @__PURE__ */ r("table", { children: /* @__PURE__ */ r("tbody", { className: "m-datepicker__list-body", children: (() => {
23
+ let e = 0;
24
+ const n = [];
25
+ for (; e < 16; )
26
+ n.push(
27
+ /* @__PURE__ */ m("tr", { children: [
28
+ i(s + e),
29
+ i(s + e + 1),
30
+ i(s + e + 2)
31
+ ] }, `aui-calendar-years-${e}`)
32
+ ), e += 3;
33
+ return n;
34
+ })() }) }) });
35
+ }
409
36
  export {
410
- Pt as Tooltip
37
+ D as YearsView
411
38
  };
package/es/index64.mjs ADDED
@@ -0,0 +1,19 @@
1
+ import { getDefaultExportFromCjs as d } from "./index92.mjs";
2
+ import { __module as r } from "./index93.mjs";
3
+ import "./index94.mjs";
4
+ import { __exports as f } from "./index95.mjs";
5
+ (function(o, t) {
6
+ Object.defineProperty(t, "__esModule", {
7
+ value: !0
8
+ });
9
+ var a = f, l = u(a);
10
+ function u(e) {
11
+ return e && e.__esModule ? e : { default: e };
12
+ }
13
+ t.default = l.default, o.exports = t.default;
14
+ })(r, r.exports);
15
+ var i = r.exports;
16
+ const n = /* @__PURE__ */ d(i);
17
+ export {
18
+ n as default
19
+ };
package/es/index65.mjs ADDED
@@ -0,0 +1,37 @@
1
+ import "./index104.mjs";
2
+ import { tz as f } from "./index105.mjs";
3
+ import { TIMEZONE as m } from "./index58.mjs";
4
+ import { format as s } from "./index75.mjs";
5
+ import { isBefore as a } from "./index106.mjs";
6
+ import { isSameDay as o } from "./index107.mjs";
7
+ import { isAfter as u } from "./index100.mjs";
8
+ function S(t, e, r, n) {
9
+ return r && (a(t, new Date(r)) || o(t, new Date(r))) || e && (u(t, new Date(e)) || o(t, new Date(e))) || !!n?.find((i) => o(t, new Date(i)));
10
+ }
11
+ function h(t, e, r) {
12
+ return u(t, new Date(e)) && a(t, new Date(r));
13
+ }
14
+ function O(t, e) {
15
+ try {
16
+ return s(new Date(t), e);
17
+ } catch {
18
+ return t;
19
+ }
20
+ }
21
+ function g(t, e, r, n = "") {
22
+ try {
23
+ return s(t, e, { locale: r });
24
+ } catch {
25
+ return n;
26
+ }
27
+ }
28
+ function y(t, e, r) {
29
+ return f(m)(new Date(Date.UTC(t, e, r, 0, 0, 0))).toISOString();
30
+ }
31
+ export {
32
+ O as formatIfValid,
33
+ g as formatWithFallback,
34
+ h as isBetween,
35
+ S as isInRange,
36
+ y as toUtcMidnightInBrussels
37
+ };
package/es/index66.mjs CHANGED
@@ -1,16 +1,4 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- function a({ start: p, end: x, range: d, min: e, getPositionFromValue: r }) {
3
- return /* @__PURE__ */ f(
4
- "div",
5
- {
6
- className: "a-range-slider__bar",
7
- style: {
8
- left: d ? r(p) + "px" : "",
9
- width: d && x ? r(x + e - p) + "px" : r(p) + "px"
10
- }
11
- }
12
- );
13
- }
1
+ var r = /* @__PURE__ */ ((S) => (S.DAYS = "d", S.MONTHS = "m", S.YEARS = "y", S))(r || {});
14
2
  export {
15
- a as RangeSliderBar
3
+ r as CalendarView
16
4
  };