@a-ui/react 7.13.0-beta.1 → 7.13.0-beta.2

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