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

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 (475) hide show
  1. package/constants/settings.d.ts +1 -1
  2. package/constants/stories.settings.d.ts +11 -0
  3. package/index.js +1 -62
  4. package/index.mjs +98 -9098
  5. package/index10.js +1 -0
  6. package/index10.mjs +60 -0
  7. package/index100.js +1 -0
  8. package/index100.mjs +4 -0
  9. package/index101.js +1 -0
  10. package/index101.mjs +400 -0
  11. package/index102.js +5 -0
  12. package/index102.mjs +42 -0
  13. package/index103.js +1 -0
  14. package/index103.mjs +4 -0
  15. package/index104.js +1 -0
  16. package/index104.mjs +10 -0
  17. package/index105.js +2 -0
  18. package/index105.mjs +329 -0
  19. package/index106.js +1 -0
  20. package/index106.mjs +52 -0
  21. package/index107.js +1 -0
  22. package/index107.mjs +4 -0
  23. package/index108.js +1 -0
  24. package/index108.mjs +67 -0
  25. package/index109.js +1 -0
  26. package/index109.mjs +45 -0
  27. package/index11.js +1 -0
  28. package/index11.mjs +12 -0
  29. package/index110.js +10 -0
  30. package/index110.mjs +62 -0
  31. package/index111.js +1 -0
  32. package/index111.mjs +46 -0
  33. package/index112.js +1 -0
  34. package/index112.mjs +42 -0
  35. package/index113.js +1 -0
  36. package/index113.mjs +4 -0
  37. package/index114.js +1 -0
  38. package/index114.mjs +4 -0
  39. package/index115.js +1 -0
  40. package/index115.mjs +4 -0
  41. package/index116.js +1 -0
  42. package/index116.mjs +33 -0
  43. package/index117.js +5 -0
  44. package/index117.mjs +21 -0
  45. package/index118.js +9 -0
  46. package/index118.mjs +63 -0
  47. package/index119.js +1 -0
  48. package/index119.mjs +65 -0
  49. package/index12.js +1 -0
  50. package/index12.mjs +215 -0
  51. package/index120.js +1 -0
  52. package/index120.mjs +16 -0
  53. package/index121.js +1 -0
  54. package/index121.mjs +9 -0
  55. package/index122.js +1 -0
  56. package/index122.mjs +9 -0
  57. package/index123.js +1 -0
  58. package/index123.mjs +8 -0
  59. package/index124.js +1 -0
  60. package/index124.mjs +8 -0
  61. package/index125.js +1 -0
  62. package/index125.mjs +7 -0
  63. package/index126.js +1 -0
  64. package/index126.mjs +7 -0
  65. package/index127.js +1 -0
  66. package/index127.mjs +9 -0
  67. package/index128.js +1 -0
  68. package/index128.mjs +7 -0
  69. package/index129.js +1 -0
  70. package/index129.mjs +69 -0
  71. package/index13.js +1 -0
  72. package/index13.mjs +29 -0
  73. package/index130.js +1 -0
  74. package/index130.mjs +5 -0
  75. package/index131.js +1 -0
  76. package/index131.mjs +7 -0
  77. package/index132.js +1 -0
  78. package/index132.mjs +13 -0
  79. package/index133.js +1 -0
  80. package/index133.mjs +4 -0
  81. package/index134.js +1 -0
  82. package/index134.mjs +393 -0
  83. package/index135.js +1 -0
  84. package/index135.mjs +127 -0
  85. package/index136.js +1 -0
  86. package/index136.mjs +136 -0
  87. package/index137.js +1 -0
  88. package/index137.mjs +4 -0
  89. package/index138.js +1 -0
  90. package/index138.mjs +4 -0
  91. package/index139.js +8 -0
  92. package/index139.mjs +78 -0
  93. package/index14.js +1 -0
  94. package/index14.mjs +44 -0
  95. package/index140.js +8 -0
  96. package/index140.mjs +95 -0
  97. package/index141.js +5 -0
  98. package/index141.mjs +54 -0
  99. package/index142.js +1 -0
  100. package/index142.mjs +10 -0
  101. package/index143.js +1 -0
  102. package/index143.mjs +7 -0
  103. package/index144.js +1 -0
  104. package/index144.mjs +54 -0
  105. package/index145.js +11 -0
  106. package/index145.mjs +60 -0
  107. package/index146.js +1 -0
  108. package/index146.mjs +4 -0
  109. package/index147.js +1 -0
  110. package/index147.mjs +4 -0
  111. package/index148.js +1 -0
  112. package/index148.mjs +7 -0
  113. package/index149.js +1 -0
  114. package/index149.mjs +7 -0
  115. package/index15.js +1 -0
  116. package/index15.mjs +8 -0
  117. package/index150.js +1 -0
  118. package/index150.mjs +9 -0
  119. package/index151.js +1 -0
  120. package/index151.mjs +15 -0
  121. package/index152.js +1 -0
  122. package/index152.mjs +18 -0
  123. package/index153.js +1 -0
  124. package/index153.mjs +11 -0
  125. package/index154.js +1 -0
  126. package/index154.mjs +8 -0
  127. package/index155.js +1 -0
  128. package/index155.mjs +8 -0
  129. package/index156.js +1 -0
  130. package/index156.mjs +7 -0
  131. package/index157.js +1 -0
  132. package/index157.mjs +515 -0
  133. package/index158.js +1 -0
  134. package/index158.mjs +52 -0
  135. package/index159.js +1 -0
  136. package/index159.mjs +20 -0
  137. package/index16.js +1 -0
  138. package/index16.mjs +15 -0
  139. package/index160.js +1 -0
  140. package/index160.mjs +20 -0
  141. package/index161.js +1 -0
  142. package/index161.mjs +7 -0
  143. package/index162.js +1 -0
  144. package/index162.mjs +10 -0
  145. package/index163.js +1 -0
  146. package/index163.mjs +8 -0
  147. package/index164.js +1 -0
  148. package/index164.mjs +7 -0
  149. package/index165.js +1 -0
  150. package/index165.mjs +8 -0
  151. package/index166.js +1 -0
  152. package/index166.mjs +11 -0
  153. package/index167.js +1 -0
  154. package/index167.mjs +7 -0
  155. package/index168.js +1 -0
  156. package/index168.mjs +10 -0
  157. package/index169.js +1 -0
  158. package/index169.mjs +14 -0
  159. package/index17.js +1 -0
  160. package/index17.mjs +108 -0
  161. package/index170.js +1 -0
  162. package/index170.mjs +11 -0
  163. package/index171.js +1 -0
  164. package/index171.mjs +11 -0
  165. package/index172.js +1 -0
  166. package/index172.mjs +15 -0
  167. package/index173.js +1 -0
  168. package/index173.mjs +6 -0
  169. package/index174.js +1 -0
  170. package/index174.mjs +35 -0
  171. package/index175.js +1 -0
  172. package/index175.mjs +67 -0
  173. package/index176.js +1 -0
  174. package/index176.mjs +10 -0
  175. package/index177.js +1 -0
  176. package/index177.mjs +10 -0
  177. package/index178.js +1 -0
  178. package/index178.mjs +9 -0
  179. package/index179.js +1 -0
  180. package/index179.mjs +9 -0
  181. package/index18.js +1 -0
  182. package/index18.mjs +136 -0
  183. package/index180.js +1 -0
  184. package/index180.mjs +16 -0
  185. package/index181.js +1 -0
  186. package/index181.mjs +4 -0
  187. package/index182.js +1 -0
  188. package/index182.mjs +4 -0
  189. package/index183.js +1 -0
  190. package/index183.mjs +4 -0
  191. package/index184.js +1 -0
  192. package/index184.mjs +59 -0
  193. package/index185.js +1 -0
  194. package/index185.mjs +24 -0
  195. package/index186.js +1 -0
  196. package/index186.mjs +43 -0
  197. package/index187.js +1 -0
  198. package/index187.mjs +63 -0
  199. package/index188.js +1 -0
  200. package/index188.mjs +34 -0
  201. package/index189.js +1 -0
  202. package/index189.mjs +15 -0
  203. package/index19.js +1 -0
  204. package/index19.mjs +11 -0
  205. package/index190.js +1 -0
  206. package/index190.mjs +64 -0
  207. package/index191.js +1 -0
  208. package/index191.mjs +64 -0
  209. package/index192.js +1 -0
  210. package/index192.mjs +65 -0
  211. package/index193.js +1 -0
  212. package/index193.mjs +65 -0
  213. package/index194.js +1 -0
  214. package/index194.mjs +42 -0
  215. package/index195.js +1 -0
  216. package/index195.mjs +43 -0
  217. package/index196.js +1 -0
  218. package/index196.mjs +55 -0
  219. package/index197.js +1 -0
  220. package/index197.mjs +45 -0
  221. package/index198.js +1 -0
  222. package/index198.mjs +39 -0
  223. package/index199.js +1 -0
  224. package/index199.mjs +68 -0
  225. package/index2.js +1 -0
  226. package/index2.mjs +12 -0
  227. package/index20.js +1 -0
  228. package/index20.mjs +54 -0
  229. package/index200.js +1 -0
  230. package/index200.mjs +68 -0
  231. package/index201.js +1 -0
  232. package/index201.mjs +93 -0
  233. package/index202.js +1 -0
  234. package/index202.mjs +43 -0
  235. package/index203.js +1 -0
  236. package/index203.mjs +43 -0
  237. package/index204.js +1 -0
  238. package/index204.mjs +43 -0
  239. package/index205.js +1 -0
  240. package/index205.mjs +27 -0
  241. package/index206.js +1 -0
  242. package/index206.mjs +26 -0
  243. package/index207.js +1 -0
  244. package/index207.mjs +26 -0
  245. package/index208.js +1 -0
  246. package/index208.mjs +27 -0
  247. package/index209.js +1 -0
  248. package/index209.mjs +26 -0
  249. package/index21.js +1 -0
  250. package/index21.mjs +33 -0
  251. package/index210.js +1 -0
  252. package/index210.mjs +26 -0
  253. package/index211.js +1 -0
  254. package/index211.mjs +16 -0
  255. package/index212.js +1 -0
  256. package/index212.mjs +42 -0
  257. package/index213.js +1 -0
  258. package/index213.mjs +42 -0
  259. package/index214.js +1 -0
  260. package/index214.mjs +16 -0
  261. package/index215.js +1 -0
  262. package/index215.mjs +16 -0
  263. package/index216.js +1 -0
  264. package/index216.mjs +70 -0
  265. package/index217.js +1 -0
  266. package/index217.mjs +33 -0
  267. package/index218.js +1 -0
  268. package/index218.mjs +11 -0
  269. package/index219.js +1 -0
  270. package/index219.mjs +155 -0
  271. package/index22.js +1 -0
  272. package/index22.mjs +22 -0
  273. package/index220.js +1 -0
  274. package/index220.mjs +110 -0
  275. package/index221.js +1 -0
  276. package/index221.mjs +22 -0
  277. package/index222.js +1 -0
  278. package/index222.mjs +103 -0
  279. package/index223.js +1 -0
  280. package/index223.mjs +49 -0
  281. package/index224.js +1 -0
  282. package/index224.mjs +70 -0
  283. package/index225.js +1 -0
  284. package/index225.mjs +33 -0
  285. package/index226.js +1 -0
  286. package/index226.mjs +11 -0
  287. package/index227.js +1 -0
  288. package/index227.mjs +110 -0
  289. package/index228.js +1 -0
  290. package/index228.mjs +109 -0
  291. package/index229.js +1 -0
  292. package/index229.mjs +9 -0
  293. package/index23.js +1 -0
  294. package/index23.mjs +32 -0
  295. package/index230.js +1 -0
  296. package/index230.mjs +18 -0
  297. package/index231.js +1 -0
  298. package/index231.mjs +31 -0
  299. package/index232.js +1 -0
  300. package/index232.mjs +15 -0
  301. package/index233.js +1 -0
  302. package/index233.mjs +61 -0
  303. package/index234.js +1 -0
  304. package/index234.mjs +11 -0
  305. package/index235.js +1 -0
  306. package/index235.mjs +22 -0
  307. package/index24.js +2 -0
  308. package/index24.mjs +62 -0
  309. package/index25.js +1 -0
  310. package/index25.mjs +15 -0
  311. package/index26.js +1 -0
  312. package/index26.mjs +12 -0
  313. package/index27.js +1 -0
  314. package/index27.mjs +43 -0
  315. package/index28.js +1 -0
  316. package/index28.mjs +34 -0
  317. package/index29.js +1 -0
  318. package/index29.mjs +10 -0
  319. package/index3.js +1 -0
  320. package/index3.mjs +15 -0
  321. package/index30.js +1 -0
  322. package/index30.mjs +72 -0
  323. package/index31.js +1 -0
  324. package/index31.mjs +40 -0
  325. package/index32.js +1 -0
  326. package/index32.mjs +48 -0
  327. package/index33.js +1 -0
  328. package/index33.mjs +90 -0
  329. package/index34.js +1 -0
  330. package/index34.mjs +36 -0
  331. package/index35.js +1 -0
  332. package/index35.mjs +25 -0
  333. package/index36.js +1 -0
  334. package/index36.mjs +27 -0
  335. package/index37.js +1 -0
  336. package/index37.mjs +110 -0
  337. package/index38.js +1 -0
  338. package/index38.mjs +57 -0
  339. package/index39.js +1 -0
  340. package/index39.mjs +21 -0
  341. package/index4.js +1 -0
  342. package/index4.mjs +58 -0
  343. package/index40.js +1 -0
  344. package/index40.mjs +40 -0
  345. package/index41.js +1 -0
  346. package/index41.mjs +54 -0
  347. package/index42.js +1 -0
  348. package/index42.mjs +73 -0
  349. package/index43.js +1 -0
  350. package/index43.mjs +49 -0
  351. package/index44.js +1 -0
  352. package/index44.mjs +13 -0
  353. package/index45.js +1 -0
  354. package/index45.mjs +73 -0
  355. package/index46.js +1 -0
  356. package/index46.mjs +99 -0
  357. package/index47.js +1 -0
  358. package/index47.mjs +45 -0
  359. package/index48.js +1 -0
  360. package/index48.mjs +26 -0
  361. package/index49.js +1 -0
  362. package/index49.mjs +83 -0
  363. package/index5.js +1 -0
  364. package/index5.mjs +136 -0
  365. package/index50.js +1 -0
  366. package/index50.mjs +35 -0
  367. package/index51.js +1 -0
  368. package/index51.mjs +10 -0
  369. package/index52.js +1 -0
  370. package/index52.mjs +13 -0
  371. package/index53.js +1 -0
  372. package/index53.mjs +30 -0
  373. package/index54.js +1 -0
  374. package/index54.mjs +51 -0
  375. package/index55.js +1 -0
  376. package/index55.mjs +10 -0
  377. package/index56.js +1 -0
  378. package/index56.mjs +49 -0
  379. package/index58.js +1 -0
  380. package/index58.mjs +64 -0
  381. package/index59.js +1 -0
  382. package/index59.mjs +62 -0
  383. package/index6.js +1 -0
  384. package/index6.mjs +29 -0
  385. package/index60.js +1 -0
  386. package/index60.mjs +31 -0
  387. package/index61.js +1 -0
  388. package/index61.mjs +23 -0
  389. package/index62.js +1 -0
  390. package/index62.mjs +32 -0
  391. package/index63.js +1 -0
  392. package/index63.mjs +16 -0
  393. package/index64.js +1 -0
  394. package/index64.mjs +61 -0
  395. package/index65.js +1 -0
  396. package/index65.mjs +19 -0
  397. package/index66.js +7 -0
  398. package/index66.mjs +411 -0
  399. package/index7.js +1 -0
  400. package/index7.mjs +8 -0
  401. package/index70.js +1 -0
  402. package/index70.mjs +4 -0
  403. package/index71.js +1 -0
  404. package/index71.mjs +76 -0
  405. package/index72.js +1 -0
  406. package/index72.mjs +31 -0
  407. package/index73.js +1 -0
  408. package/index73.mjs +38 -0
  409. package/index74.js +1 -0
  410. package/index74.mjs +6 -0
  411. package/index75.js +1 -0
  412. package/index75.mjs +37 -0
  413. package/index76.js +1 -0
  414. package/index76.mjs +7 -0
  415. package/index77.js +1 -0
  416. package/index77.mjs +7 -0
  417. package/index78.js +1 -0
  418. package/index78.mjs +7 -0
  419. package/index79.js +1 -0
  420. package/index79.mjs +7 -0
  421. package/index8.js +1 -0
  422. package/index8.mjs +18 -0
  423. package/index80.js +1 -0
  424. package/index80.mjs +7 -0
  425. package/index81.js +1 -0
  426. package/index81.mjs +19 -0
  427. package/index82.js +1 -0
  428. package/index82.mjs +87 -0
  429. package/index83.js +1 -0
  430. package/index83.mjs +8 -0
  431. package/index84.js +1 -0
  432. package/index84.mjs +27 -0
  433. package/index85.js +1 -0
  434. package/index85.mjs +57 -0
  435. package/index87.js +1 -0
  436. package/index87.mjs +7 -0
  437. package/index88.js +1 -0
  438. package/index88.mjs +121 -0
  439. package/index89.js +1 -0
  440. package/index89.mjs +20 -0
  441. package/index9.js +1 -0
  442. package/index9.mjs +18 -0
  443. package/index90.js +1 -0
  444. package/index90.mjs +26 -0
  445. package/index91.js +1 -0
  446. package/index91.mjs +4 -0
  447. package/index92.js +1 -0
  448. package/index92.mjs +237 -0
  449. package/index93.js +1 -0
  450. package/index93.mjs +4 -0
  451. package/index94.js +1 -0
  452. package/index94.mjs +13 -0
  453. package/index95.js +1 -0
  454. package/index95.mjs +249 -0
  455. package/index96.js +1 -0
  456. package/index96.mjs +91 -0
  457. package/index97.js +1 -0
  458. package/index97.mjs +15 -0
  459. package/index98.js +1 -0
  460. package/index98.mjs +6 -0
  461. package/index99.js +1 -0
  462. package/index99.mjs +4 -0
  463. package/lib/atoms/input/text-field/TextField.d.ts +1 -1
  464. package/lib/atoms/select/Select.types.d.ts +1 -1
  465. package/lib/base/icon/Icon.d.ts +1 -1
  466. package/lib/molecules/datepicker/Calendar.d.ts +1 -1
  467. package/lib/molecules/flyout/Flyout.d.ts +1 -1
  468. package/lib/molecules/tag/Tag.d.ts +1 -1
  469. package/package.json +4 -1
  470. package/packages/antwerp-ui/react-components/src/lib/atoms/input/text-field/TextField.css +1 -0
  471. package/packages/antwerp-ui/react-components/src/lib/atoms/tooltip/Tooltip.css +1 -0
  472. package/packages/antwerp-ui/react-components/src/lib/molecules/autocomplete/Autocomplete.css +1 -0
  473. package/packages/antwerp-ui/react-components/src/lib/molecules/datepicker/DateRangePicker.css +1 -0
  474. package/utils/math.utils.d.ts +1 -1
  475. package/index.css +0 -1
package/index63.mjs ADDED
@@ -0,0 +1,16 @@
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 ADDED
@@ -0,0 +1 @@
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 ADDED
@@ -0,0 +1,61 @@
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 ADDED
@@ -0,0 +1 @@
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 ADDED
@@ -0,0 +1,19 @@
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 ADDED
@@ -0,0 +1,7 @@
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 ADDED
@@ -0,0 +1,411 @@
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 ADDED
@@ -0,0 +1 @@
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 ADDED
@@ -0,0 +1,8 @@
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 ADDED
@@ -0,0 +1 @@
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 ADDED
@@ -0,0 +1,4 @@
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 ADDED
@@ -0,0 +1 @@
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=$;