react-useanimations 2.10.0 → 3.0.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 (451) hide show
  1. package/LICENSE +30 -0
  2. package/README.md +155 -0
  3. package/index.d.mts +144 -0
  4. package/index.d.ts +136 -11
  5. package/index.js +279 -188
  6. package/index.mjs +258 -0
  7. package/lib/activity/index.d.mts +5 -0
  8. package/lib/activity/index.d.ts +5 -3
  9. package/lib/activity/index.js +27 -11
  10. package/lib/activity/index.mjs +9 -0
  11. package/lib/airplay/index.d.mts +5 -0
  12. package/lib/airplay/index.d.ts +5 -3
  13. package/lib/airplay/index.js +27 -11
  14. package/lib/airplay/index.mjs +9 -0
  15. package/lib/alertCircle/index.d.mts +5 -0
  16. package/lib/alertCircle/index.d.ts +5 -3
  17. package/lib/alertCircle/index.js +27 -11
  18. package/lib/alertCircle/index.mjs +9 -0
  19. package/lib/alertOctagon/index.d.mts +5 -0
  20. package/lib/alertOctagon/index.d.ts +5 -3
  21. package/lib/alertOctagon/index.js +27 -11
  22. package/lib/alertOctagon/index.mjs +9 -0
  23. package/lib/alertTriangle/index.d.mts +5 -0
  24. package/lib/alertTriangle/index.d.ts +5 -3
  25. package/lib/alertTriangle/index.js +27 -11
  26. package/lib/alertTriangle/index.mjs +9 -0
  27. package/lib/archive/index.d.mts +5 -0
  28. package/lib/archive/index.d.ts +5 -3
  29. package/lib/archive/index.js +27 -11
  30. package/lib/archive/index.mjs +9 -0
  31. package/lib/arrowDown/index.d.mts +5 -0
  32. package/lib/arrowDown/index.d.ts +5 -3
  33. package/lib/arrowDown/index.js +27 -11
  34. package/lib/arrowDown/index.mjs +9 -0
  35. package/lib/arrowDownCircle/index.d.mts +5 -0
  36. package/lib/arrowDownCircle/index.d.ts +5 -3
  37. package/lib/arrowDownCircle/index.js +27 -11
  38. package/lib/arrowDownCircle/index.mjs +9 -0
  39. package/lib/arrowLeftCircle/index.d.mts +5 -0
  40. package/lib/arrowLeftCircle/index.d.ts +5 -3
  41. package/lib/arrowLeftCircle/index.js +27 -11
  42. package/lib/arrowLeftCircle/index.mjs +9 -0
  43. package/lib/arrowRightCircle/index.d.mts +5 -0
  44. package/lib/arrowRightCircle/index.d.ts +5 -3
  45. package/lib/arrowRightCircle/index.js +27 -11
  46. package/lib/arrowRightCircle/index.mjs +9 -0
  47. package/lib/arrowUp/index.d.mts +5 -0
  48. package/lib/arrowUp/index.d.ts +5 -3
  49. package/lib/arrowUp/index.js +27 -11
  50. package/lib/arrowUp/index.mjs +9 -0
  51. package/lib/arrowUpCircle/index.d.mts +5 -0
  52. package/lib/arrowUpCircle/index.d.ts +5 -3
  53. package/lib/arrowUpCircle/index.js +27 -11
  54. package/lib/arrowUpCircle/index.mjs +9 -0
  55. package/lib/behance/index.d.mts +5 -0
  56. package/lib/behance/index.d.ts +5 -3
  57. package/lib/behance/index.js +27 -11
  58. package/lib/behance/index.mjs +9 -0
  59. package/lib/bookmark/index.d.mts +5 -0
  60. package/lib/bookmark/index.d.ts +5 -3
  61. package/lib/bookmark/index.js +27 -11
  62. package/lib/bookmark/index.mjs +9 -0
  63. package/lib/calendar/index.d.mts +5 -0
  64. package/lib/calendar/index.d.ts +5 -3
  65. package/lib/calendar/index.js +27 -11
  66. package/lib/calendar/index.mjs +9 -0
  67. package/lib/checkBox/index.d.mts +5 -0
  68. package/lib/checkBox/index.d.ts +5 -3
  69. package/lib/checkBox/index.js +27 -11
  70. package/lib/checkBox/index.mjs +9 -0
  71. package/lib/checkmark/index.d.mts +5 -0
  72. package/lib/checkmark/index.d.ts +5 -3
  73. package/lib/checkmark/index.js +27 -11
  74. package/lib/checkmark/index.mjs +9 -0
  75. package/lib/chevronLeft/index.d.mts +5 -0
  76. package/lib/chevronLeft/index.d.ts +5 -0
  77. package/lib/chevronLeft/index.js +32 -0
  78. package/lib/chevronLeft/index.mjs +9 -0
  79. package/lib/chevronRight/index.d.mts +5 -0
  80. package/lib/chevronRight/index.d.ts +5 -0
  81. package/lib/chevronRight/index.js +32 -0
  82. package/lib/chevronRight/index.mjs +9 -0
  83. package/lib/codepen/index.d.mts +5 -0
  84. package/lib/codepen/index.d.ts +5 -3
  85. package/lib/codepen/index.js +27 -11
  86. package/lib/codepen/index.mjs +9 -0
  87. package/lib/copy/index.d.mts +5 -0
  88. package/lib/copy/index.d.ts +5 -3
  89. package/lib/copy/index.js +27 -11
  90. package/lib/copy/index.mjs +9 -0
  91. package/lib/download/index.d.mts +5 -0
  92. package/lib/download/index.d.ts +5 -3
  93. package/lib/download/index.js +27 -11
  94. package/lib/download/index.mjs +9 -0
  95. package/lib/dribbble/index.d.mts +5 -0
  96. package/lib/dribbble/index.d.ts +5 -3
  97. package/lib/dribbble/index.js +27 -11
  98. package/lib/dribbble/index.mjs +9 -0
  99. package/lib/edit/index.d.mts +5 -0
  100. package/lib/edit/index.d.ts +5 -3
  101. package/lib/edit/index.js +27 -11
  102. package/lib/edit/index.mjs +9 -0
  103. package/lib/error/index.d.mts +5 -0
  104. package/lib/error/index.d.ts +5 -3
  105. package/lib/error/index.js +27 -11
  106. package/lib/error/index.mjs +9 -0
  107. package/lib/explore/index.d.mts +5 -0
  108. package/lib/explore/index.d.ts +5 -3
  109. package/lib/explore/index.js +27 -11
  110. package/lib/explore/index.mjs +9 -0
  111. package/lib/facebook/index.d.mts +5 -0
  112. package/lib/facebook/index.d.ts +5 -3
  113. package/lib/facebook/index.js +27 -11
  114. package/lib/facebook/index.mjs +9 -0
  115. package/lib/filter/index.d.mts +5 -0
  116. package/lib/filter/index.d.ts +5 -0
  117. package/lib/filter/index.js +32 -0
  118. package/lib/filter/index.mjs +9 -0
  119. package/lib/folder/index.d.mts +5 -0
  120. package/lib/folder/index.d.ts +5 -3
  121. package/lib/folder/index.js +27 -11
  122. package/lib/folder/index.mjs +9 -0
  123. package/lib/github/index.d.mts +5 -0
  124. package/lib/github/index.d.ts +5 -3
  125. package/lib/github/index.js +27 -11
  126. package/lib/github/index.mjs +9 -0
  127. package/lib/heart/index.d.mts +5 -0
  128. package/lib/heart/index.d.ts +5 -3
  129. package/lib/heart/index.js +27 -11
  130. package/lib/heart/index.mjs +9 -0
  131. package/lib/help/index.d.mts +5 -0
  132. package/lib/help/index.d.ts +5 -3
  133. package/lib/help/index.js +27 -11
  134. package/lib/help/index.mjs +9 -0
  135. package/lib/home/index.d.mts +5 -0
  136. package/lib/home/index.d.ts +5 -3
  137. package/lib/home/index.js +27 -11
  138. package/lib/home/index.mjs +9 -0
  139. package/lib/infinity/index.d.mts +5 -0
  140. package/lib/infinity/index.d.ts +5 -3
  141. package/lib/infinity/index.js +27 -11
  142. package/lib/infinity/index.mjs +9 -0
  143. package/lib/info/index.d.mts +5 -0
  144. package/lib/info/index.d.ts +5 -3
  145. package/lib/info/index.js +27 -11
  146. package/lib/info/index.mjs +9 -0
  147. package/lib/instagram/index.d.mts +5 -0
  148. package/lib/instagram/index.d.ts +5 -3
  149. package/lib/instagram/index.js +27 -11
  150. package/lib/instagram/index.mjs +9 -0
  151. package/lib/linkedin/index.d.mts +5 -0
  152. package/lib/linkedin/index.d.ts +5 -3
  153. package/lib/linkedin/index.js +27 -11
  154. package/lib/linkedin/index.mjs +9 -0
  155. package/lib/loading/index.d.mts +5 -0
  156. package/lib/loading/index.d.ts +5 -3
  157. package/lib/loading/index.js +27 -11
  158. package/lib/loading/index.mjs +9 -0
  159. package/lib/loading2/index.d.mts +5 -0
  160. package/lib/loading2/index.d.ts +5 -3
  161. package/lib/loading2/index.js +27 -11
  162. package/lib/loading2/index.mjs +9 -0
  163. package/lib/loading3/index.d.mts +5 -0
  164. package/lib/loading3/index.d.ts +5 -3
  165. package/lib/loading3/index.js +27 -11
  166. package/lib/loading3/index.mjs +9 -0
  167. package/lib/loading4/index.d.mts +5 -0
  168. package/lib/loading4/index.d.ts +5 -0
  169. package/lib/loading4/index.js +32 -0
  170. package/lib/loading4/index.mjs +9 -0
  171. package/lib/lock/index.d.mts +5 -0
  172. package/lib/lock/index.d.ts +5 -3
  173. package/lib/lock/index.js +27 -11
  174. package/lib/lock/index.mjs +9 -0
  175. package/lib/mail/index.d.mts +5 -0
  176. package/lib/mail/index.d.ts +5 -3
  177. package/lib/mail/index.js +27 -11
  178. package/lib/mail/index.mjs +9 -0
  179. package/lib/maximizeMinimize/index.d.mts +5 -0
  180. package/lib/maximizeMinimize/index.d.ts +5 -3
  181. package/lib/maximizeMinimize/index.js +27 -11
  182. package/lib/maximizeMinimize/index.mjs +9 -0
  183. package/lib/maximizeMinimize2/index.d.mts +5 -0
  184. package/lib/maximizeMinimize2/index.d.ts +5 -3
  185. package/lib/maximizeMinimize2/index.js +27 -11
  186. package/lib/maximizeMinimize2/index.mjs +9 -0
  187. package/lib/menu/index.d.mts +5 -0
  188. package/lib/menu/index.d.ts +5 -3
  189. package/lib/menu/index.js +27 -11
  190. package/lib/menu/index.mjs +9 -0
  191. package/lib/menu2/index.d.mts +5 -0
  192. package/lib/menu2/index.d.ts +5 -3
  193. package/lib/menu2/index.js +27 -11
  194. package/lib/menu2/index.mjs +9 -0
  195. package/lib/menu3/index.d.mts +5 -0
  196. package/lib/menu3/index.d.ts +5 -3
  197. package/lib/menu3/index.js +27 -11
  198. package/lib/menu3/index.mjs +9 -0
  199. package/lib/menu4/index.d.mts +5 -0
  200. package/lib/menu4/index.d.ts +5 -3
  201. package/lib/menu4/index.js +27 -11
  202. package/lib/menu4/index.mjs +9 -0
  203. package/lib/microphone/index.d.mts +5 -0
  204. package/lib/microphone/index.d.ts +5 -3
  205. package/lib/microphone/index.js +27 -11
  206. package/lib/microphone/index.mjs +9 -0
  207. package/lib/microphone2/index.d.mts +5 -0
  208. package/lib/microphone2/index.d.ts +5 -3
  209. package/lib/microphone2/index.js +27 -11
  210. package/lib/microphone2/index.mjs +9 -0
  211. package/lib/notification/index.d.mts +5 -0
  212. package/lib/notification/index.d.ts +5 -3
  213. package/lib/notification/index.js +27 -11
  214. package/lib/notification/index.mjs +9 -0
  215. package/lib/notification2/index.d.mts +5 -0
  216. package/lib/notification2/index.d.ts +5 -3
  217. package/lib/notification2/index.js +27 -11
  218. package/lib/notification2/index.mjs +9 -0
  219. package/lib/notification3/index.d.mts +5 -0
  220. package/lib/notification3/index.d.ts +5 -0
  221. package/lib/notification3/index.js +32 -0
  222. package/lib/notification3/index.mjs +9 -0
  223. package/lib/notification4/index.d.mts +5 -0
  224. package/lib/notification4/index.d.ts +5 -0
  225. package/lib/notification4/index.js +32 -0
  226. package/lib/notification4/index.mjs +9 -0
  227. package/lib/playPause/index.d.mts +5 -0
  228. package/lib/playPause/index.d.ts +5 -3
  229. package/lib/playPause/index.js +27 -11
  230. package/lib/playPause/index.mjs +9 -0
  231. package/lib/playPauseCircle/index.d.mts +5 -0
  232. package/lib/playPauseCircle/index.d.ts +5 -3
  233. package/lib/playPauseCircle/index.js +27 -11
  234. package/lib/playPauseCircle/index.mjs +9 -0
  235. package/lib/plusToX/index.d.mts +5 -0
  236. package/lib/plusToX/index.d.ts +5 -3
  237. package/lib/plusToX/index.js +27 -11
  238. package/lib/plusToX/index.mjs +9 -0
  239. package/lib/pocket/index.d.mts +5 -0
  240. package/lib/pocket/index.d.ts +5 -3
  241. package/lib/pocket/index.js +27 -11
  242. package/lib/pocket/index.mjs +9 -0
  243. package/lib/radioButton/index.d.mts +5 -0
  244. package/lib/radioButton/index.d.ts +5 -3
  245. package/lib/radioButton/index.js +27 -11
  246. package/lib/radioButton/index.mjs +9 -0
  247. package/lib/refresh/index.d.mts +5 -0
  248. package/lib/refresh/index.d.ts +5 -0
  249. package/lib/refresh/index.js +32 -0
  250. package/lib/refresh/index.mjs +9 -0
  251. package/lib/scrollDown/index.d.mts +5 -0
  252. package/lib/scrollDown/index.d.ts +5 -3
  253. package/lib/scrollDown/index.js +27 -11
  254. package/lib/scrollDown/index.mjs +9 -0
  255. package/lib/searchToX/index.d.mts +5 -0
  256. package/lib/searchToX/index.d.ts +5 -3
  257. package/lib/searchToX/index.js +27 -11
  258. package/lib/searchToX/index.mjs +9 -0
  259. package/lib/settings/index.d.mts +5 -0
  260. package/lib/settings/index.d.ts +5 -3
  261. package/lib/settings/index.js +27 -11
  262. package/lib/settings/index.mjs +9 -0
  263. package/lib/settings2/index.d.mts +5 -0
  264. package/lib/settings2/index.d.ts +5 -3
  265. package/lib/settings2/index.js +27 -11
  266. package/lib/settings2/index.mjs +9 -0
  267. package/lib/share/index.d.mts +5 -0
  268. package/lib/share/index.d.ts +5 -3
  269. package/lib/share/index.js +27 -11
  270. package/lib/share/index.mjs +9 -0
  271. package/lib/skipBack/index.d.mts +5 -0
  272. package/lib/skipBack/index.d.ts +5 -3
  273. package/lib/skipBack/index.js +27 -11
  274. package/lib/skipBack/index.mjs +9 -0
  275. package/lib/skipForward/index.d.mts +5 -0
  276. package/lib/skipForward/index.d.ts +5 -3
  277. package/lib/skipForward/index.js +27 -11
  278. package/lib/skipForward/index.mjs +9 -0
  279. package/lib/star/index.d.mts +5 -0
  280. package/lib/star/index.d.ts +5 -3
  281. package/lib/star/index.js +27 -11
  282. package/lib/star/index.mjs +9 -0
  283. package/lib/thumbUp/index.d.mts +5 -0
  284. package/lib/thumbUp/index.d.ts +5 -3
  285. package/lib/thumbUp/index.js +27 -11
  286. package/lib/thumbUp/index.mjs +9 -0
  287. package/lib/toggle/index.d.mts +5 -0
  288. package/lib/toggle/index.d.ts +5 -3
  289. package/lib/toggle/index.js +27 -11
  290. package/lib/toggle/index.mjs +9 -0
  291. package/lib/trash/index.d.mts +5 -0
  292. package/lib/trash/index.d.ts +5 -3
  293. package/lib/trash/index.js +27 -11
  294. package/lib/trash/index.mjs +9 -0
  295. package/lib/trash2/index.d.mts +5 -0
  296. package/lib/trash2/index.d.ts +5 -3
  297. package/lib/trash2/index.js +27 -11
  298. package/lib/trash2/index.mjs +9 -0
  299. package/lib/twitter/index.d.mts +5 -0
  300. package/lib/twitter/index.d.ts +5 -3
  301. package/lib/twitter/index.js +27 -11
  302. package/lib/twitter/index.mjs +9 -0
  303. package/lib/userMinus/index.d.mts +5 -0
  304. package/lib/userMinus/index.d.ts +5 -3
  305. package/lib/userMinus/index.js +27 -11
  306. package/lib/userMinus/index.mjs +9 -0
  307. package/lib/userPlus/index.d.mts +5 -0
  308. package/lib/userPlus/index.d.ts +5 -3
  309. package/lib/userPlus/index.js +27 -11
  310. package/lib/userPlus/index.mjs +9 -0
  311. package/lib/userX/index.d.mts +5 -0
  312. package/lib/userX/index.d.ts +5 -3
  313. package/lib/userX/index.js +27 -11
  314. package/lib/userX/index.mjs +9 -0
  315. package/lib/video/index.d.mts +5 -0
  316. package/lib/video/index.d.ts +5 -3
  317. package/lib/video/index.js +27 -11
  318. package/lib/video/index.mjs +9 -0
  319. package/lib/video2/index.d.mts +5 -0
  320. package/lib/video2/index.d.ts +5 -3
  321. package/lib/video2/index.js +27 -11
  322. package/lib/video2/index.mjs +9 -0
  323. package/lib/visibility/index.d.mts +5 -0
  324. package/lib/visibility/index.d.ts +5 -3
  325. package/lib/visibility/index.js +27 -11
  326. package/lib/visibility/index.mjs +9 -0
  327. package/lib/visibility2/index.d.mts +5 -0
  328. package/lib/visibility2/index.d.ts +5 -3
  329. package/lib/visibility2/index.js +27 -11
  330. package/lib/visibility2/index.mjs +9 -0
  331. package/lib/visibility3/index.d.mts +5 -0
  332. package/lib/visibility3/index.d.ts +5 -0
  333. package/lib/visibility3/index.js +32 -0
  334. package/lib/visibility3/index.mjs +9 -0
  335. package/lib/volume/index.d.mts +5 -0
  336. package/lib/volume/index.d.ts +5 -3
  337. package/lib/volume/index.js +27 -11
  338. package/lib/volume/index.mjs +9 -0
  339. package/lib/youtube/index.d.mts +5 -0
  340. package/lib/youtube/index.d.ts +5 -3
  341. package/lib/youtube/index.js +27 -11
  342. package/lib/youtube/index.mjs +9 -0
  343. package/lib/youtube2/index.d.mts +5 -0
  344. package/lib/youtube2/index.d.ts +5 -3
  345. package/lib/youtube2/index.js +27 -11
  346. package/lib/youtube2/index.mjs +9 -0
  347. package/lib/zoomIn/index.d.mts +5 -0
  348. package/lib/zoomIn/index.d.ts +5 -3
  349. package/lib/zoomIn/index.js +27 -11
  350. package/lib/zoomIn/index.mjs +9 -0
  351. package/lib/zoomOut/index.d.mts +5 -0
  352. package/lib/zoomOut/index.d.ts +5 -3
  353. package/lib/zoomOut/index.js +27 -11
  354. package/lib/zoomOut/index.mjs +9 -0
  355. package/package.json +55 -68
  356. package/bin/addAnimationFiles.sh +0 -28
  357. package/bin/generateStories.sh +0 -34
  358. package/lib/activity/activity.json +0 -1
  359. package/lib/airplay/airplay.json +0 -1
  360. package/lib/alertCircle/alertCircle.json +0 -1
  361. package/lib/alertOctagon/alertOctagon.json +0 -1
  362. package/lib/alertTriangle/alertTriangle.json +0 -1
  363. package/lib/archive/archive.json +0 -1
  364. package/lib/arrowDown/arrowDown.json +0 -1
  365. package/lib/arrowDownCircle/arrowDownCircle.json +0 -1
  366. package/lib/arrowLeftCircle/arrowLeftCircle.json +0 -1
  367. package/lib/arrowRightCircle/arrowRightCircle.json +0 -1
  368. package/lib/arrowUp/arrowUp.json +0 -1
  369. package/lib/arrowUpCircle/arrowUpCircle.json +0 -1
  370. package/lib/behance/behance.json +0 -1
  371. package/lib/bookmark/bookmark.json +0 -1
  372. package/lib/calendar/calendar.json +0 -1
  373. package/lib/checkBox/checkBox.json +0 -1
  374. package/lib/checkmark/checkmark.json +0 -1
  375. package/lib/codepen/codepen.json +0 -1
  376. package/lib/copy/copy.json +0 -1
  377. package/lib/download/download.json +0 -1
  378. package/lib/dribbble/dribbble.json +0 -1
  379. package/lib/edit/edit.json +0 -1
  380. package/lib/error/error.json +0 -1
  381. package/lib/explore/explore.json +0 -1
  382. package/lib/facebook/facebook.json +0 -1
  383. package/lib/folder/folder.json +0 -1
  384. package/lib/github/github.json +0 -1
  385. package/lib/heart/heart.json +0 -1
  386. package/lib/help/help.json +0 -1
  387. package/lib/home/home.json +0 -1
  388. package/lib/infinity/infinity.json +0 -1
  389. package/lib/info/info.json +0 -1
  390. package/lib/instagram/instagram.json +0 -1
  391. package/lib/linkedin/linkedin.json +0 -1
  392. package/lib/loading/loading.json +0 -1
  393. package/lib/loading2/loading2.json +0 -1
  394. package/lib/loading3/loading3.json +0 -1
  395. package/lib/lock/lock.json +0 -1
  396. package/lib/mail/mail.json +0 -1
  397. package/lib/maximizeMinimize/maximizeMinimize.json +0 -1
  398. package/lib/maximizeMinimize2/maximizeMinimize2.json +0 -1
  399. package/lib/menu/menu.json +0 -1
  400. package/lib/menu2/menu2.json +0 -1
  401. package/lib/menu3/menu3.json +0 -1
  402. package/lib/menu4/menu4.json +0 -1
  403. package/lib/microphone/microphone.json +0 -1
  404. package/lib/microphone2/microphone2.json +0 -1
  405. package/lib/notification/notification.json +0 -1
  406. package/lib/notification2/notification2.json +0 -1
  407. package/lib/playPause/playPause.json +0 -1
  408. package/lib/playPauseCircle/playPauseCircle.json +0 -1
  409. package/lib/plusToX/plusToX.json +0 -1
  410. package/lib/pocket/pocket.json +0 -1
  411. package/lib/radioButton/radioButton.json +0 -1
  412. package/lib/scrollDown/scrollDown.json +0 -1
  413. package/lib/searchToX/searchToX.json +0 -1
  414. package/lib/settings/settings.json +0 -1
  415. package/lib/settings2/settings2.json +0 -1
  416. package/lib/share/share.json +0 -1
  417. package/lib/skipBack/skipBack.json +0 -1
  418. package/lib/skipForward/skipForward.json +0 -1
  419. package/lib/star/star.json +0 -1
  420. package/lib/thumbUp/thumbUp.json +0 -1
  421. package/lib/toggle/toggle.json +0 -1
  422. package/lib/trash/trash.json +0 -1
  423. package/lib/trash2/trash2.json +0 -1
  424. package/lib/twitter/twitter.json +0 -1
  425. package/lib/userMinus/userMinus.json +0 -1
  426. package/lib/userPlus/userPlus.json +0 -1
  427. package/lib/userX/userX.json +0 -1
  428. package/lib/video/video.json +0 -1
  429. package/lib/video2/video2.json +0 -1
  430. package/lib/visibility/visibility.json +0 -1
  431. package/lib/visibility2/visibility2.json +0 -1
  432. package/lib/volume/volume.json +0 -1
  433. package/lib/youtube/youtube.json +0 -1
  434. package/lib/youtube2/youtube2.json +0 -1
  435. package/lib/zoomIn/zoomIn.json +0 -1
  436. package/lib/zoomOut/zoomOut.json +0 -1
  437. package/stories/controlled.stories.d.ts +0 -60
  438. package/stories/controlled.stories.js +0 -231
  439. package/stories/generated.stories.d.ts +0 -20
  440. package/stories/generated.stories.js +0 -977
  441. package/stories/variants.stories.d.ts +0 -70
  442. package/stories/variants.stories.js +0 -196
  443. package/typings.d.ts +0 -6
  444. package/utils/constants.d.ts +0 -6
  445. package/utils/constants.js +0 -1
  446. package/utils/getEffect.d.ts +0 -3
  447. package/utils/getEffect.js +0 -94
  448. package/utils/getEvents.d.ts +0 -12
  449. package/utils/getEvents.js +0 -96
  450. package/utils/index.d.ts +0 -3
  451. package/utils/index.js +0 -23
package/index.js CHANGED
@@ -1,197 +1,288 @@
1
+ 'use client';
1
2
  "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // src/index.tsx
32
+ var src_exports = {};
33
+ __export(src_exports, {
34
+ default: () => src_default
7
35
  });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _lottieWeb = _interopRequireDefault(require("lottie-web"));
13
-
14
- var _utils = require("./utils");
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
19
-
20
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
-
22
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
-
24
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
25
-
26
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
27
-
28
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
29
-
30
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
31
-
32
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33
-
34
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
35
-
36
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
37
-
38
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
39
-
40
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
-
42
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
43
-
44
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
45
-
46
- var getRandomId = function getRandomId(key) {
47
- return "".concat(key, "_i").concat(Math.floor(Math.random() * 10000 + 1));
36
+ module.exports = __toCommonJS(src_exports);
37
+ var import_react = __toESM(require("react"));
38
+
39
+ // src/icons.ts
40
+ var interactions = {
41
+ activity: "loop",
42
+ airplay: "loop",
43
+ alertCircle: "loop",
44
+ alertOctagon: "loop",
45
+ alertTriangle: "loop",
46
+ archive: "hover",
47
+ arrowDown: "loop",
48
+ arrowDownCircle: "click-replay",
49
+ arrowLeftCircle: "click-replay",
50
+ arrowRightCircle: "click-replay",
51
+ arrowUp: "loop",
52
+ arrowUpCircle: "click-replay",
53
+ behance: "hover-loop",
54
+ bookmark: "click-toggle",
55
+ calendar: "hover",
56
+ checkBox: "click-toggle",
57
+ checkmark: "loop",
58
+ chevronLeft: "click-replay",
59
+ chevronRight: "click-replay",
60
+ codepen: "hover-loop",
61
+ copy: "hover",
62
+ download: "click-replay",
63
+ dribbble: "hover-loop",
64
+ edit: "hover",
65
+ error: "loop",
66
+ explore: "hover",
67
+ facebook: "hover-loop",
68
+ filter: "click-replay",
69
+ folder: "hover",
70
+ github: "hover-loop",
71
+ heart: "click-toggle",
72
+ help: "loop",
73
+ home: "hover",
74
+ infinity: "loop",
75
+ info: "hover",
76
+ instagram: "hover",
77
+ linkedin: "hover-loop",
78
+ loading: "loop",
79
+ loading2: "loop",
80
+ loading3: "loop",
81
+ loading4: "loop",
82
+ lock: "click-toggle",
83
+ mail: "hover",
84
+ maximizeMinimize: "click-toggle",
85
+ maximizeMinimize2: "click-toggle",
86
+ menu: "click-toggle",
87
+ menu2: "click-toggle",
88
+ menu3: "click-toggle",
89
+ menu4: "click-toggle",
90
+ microphone: "click-toggle",
91
+ microphone2: "click-toggle",
92
+ notification: "click-toggle",
93
+ notification2: "click-toggle",
94
+ notification3: "loop",
95
+ notification4: "loop",
96
+ playPause: "click-toggle",
97
+ playPauseCircle: "click-toggle",
98
+ plusToX: "click-toggle",
99
+ pocket: "hover-loop",
100
+ radioButton: "click-toggle",
101
+ refresh: "click-replay",
102
+ scrollDown: "loop",
103
+ searchToX: "click-toggle",
104
+ settings: "hover",
105
+ settings2: "click-toggle",
106
+ share: "hover",
107
+ skipBack: "click-replay",
108
+ skipForward: "click-replay",
109
+ star: "click-toggle",
110
+ thumbUp: "click-toggle",
111
+ toggle: "click-toggle",
112
+ trash: "hover",
113
+ trash2: "hover",
114
+ twitter: "hover-loop",
115
+ userMinus: "hover",
116
+ userPlus: "hover",
117
+ userX: "hover",
118
+ video: "click-toggle",
119
+ video2: "click-toggle",
120
+ visibility: "click-toggle",
121
+ visibility2: "click-toggle",
122
+ visibility3: "click-toggle",
123
+ volume: "click-toggle",
124
+ youtube: "hover",
125
+ youtube2: "hover",
126
+ zoomIn: "hover",
127
+ zoomOut: "hover"
128
+ };
129
+ var fullPlayerIcons = /* @__PURE__ */ new Set(["error", "twitter"]);
130
+
131
+ // src/interactions.ts
132
+ var getInteraction = (key) => (
133
+ // Unknown keys (e.g. custom animations) fall back to replaying on click.
134
+ interactions[key] ?? "click-replay"
135
+ );
136
+ var playToggle = (animation, toEnd) => {
137
+ animation.setDirection(toEnd ? 1 : -1);
138
+ animation.play();
139
+ };
140
+ var replay = (animation) => {
141
+ animation.setDirection(1);
142
+ animation.playSegments([0, animation.totalFrames], true);
143
+ };
144
+ var hoverStart = (animation, interaction) => {
145
+ if (interaction === "hover") animation.setDirection(1);
146
+ animation.play();
147
+ };
148
+ var hoverEnd = (animation, interaction) => {
149
+ if (interaction === "hover") {
150
+ animation.setDirection(-1);
151
+ animation.play();
152
+ } else {
153
+ animation.stop();
154
+ }
48
155
  };
49
156
 
50
- var UseAnimations = function UseAnimations(_ref) {
51
- var _ref$animation = _ref.animation,
52
- animationData = _ref$animation.animationData,
53
- animationKey = _ref$animation.animationKey,
54
- _ref$reverse = _ref.reverse,
55
- reverse = _ref$reverse === void 0 ? false : _ref$reverse,
56
- _ref$size = _ref.size,
57
- size = _ref$size === void 0 ? 24 : _ref$size,
58
- _ref$speed = _ref.speed,
59
- speed = _ref$speed === void 0 ? 1 : _ref$speed,
60
- strokeColor = _ref.strokeColor,
61
- fillColor = _ref.fillColor,
62
- pathCss = _ref.pathCss,
63
- loop = _ref.loop,
64
- autoplay = _ref.autoplay,
65
- wrapperStyle = _ref.wrapperStyle,
66
- options = _ref.options,
67
- _onClick = _ref.onClick,
68
- render = _ref.render,
69
- other = _objectWithoutProperties(_ref, ["animation", "reverse", "size", "speed", "strokeColor", "fillColor", "pathCss", "loop", "autoplay", "wrapperStyle", "options", "onClick", "render"]);
70
-
71
- var _useState = (0, _react.useState)(),
72
- _useState2 = _slicedToArray(_useState, 2),
73
- animation = _useState2[0],
74
- setAnimation = _useState2[1];
75
-
76
- var _useState3 = (0, _react.useState)(getRandomId(animationKey)),
77
- _useState4 = _slicedToArray(_useState3, 1),
78
- animationId = _useState4[0];
79
-
80
- var _useState5 = (0, _react.useState)({}),
81
- _useState6 = _slicedToArray(_useState5, 2),
82
- events = _useState6[0],
83
- setEvents = _useState6[1];
84
-
85
- var ref = (0, _react.useRef)(null);
86
-
87
- var defaultStyles = _objectSpread({
88
- overflow: 'hidden',
89
- outline: 'none',
90
- width: "".concat(size, "px"),
91
- height: "".concat(size, "px")
92
- }, wrapperStyle); // INVOKE THE LOTTIE ANIMATION
93
-
94
-
95
- (0, _react.useEffect)(function () {
96
- var animEffect = (0, _utils.getEffect)(animationKey);
97
-
98
- var defaultOptions = _objectSpread({
99
- container: ref.current,
100
- renderer: 'svg',
101
- animationData: animationData,
102
- loop: loop || animEffect === 'LOOP_PLAY',
103
- autoplay: autoplay || animEffect === 'LOOP_PLAY',
104
- rendererSettings: {
105
- // LOADS DOM ELEMENTS WHEN NEEDED. MIGHT SPEED UP INITIALIZATION FOR LARGE NUMBER OF ELEMENTS.
106
- progressiveLoad: true,
107
- // lottie-web missing id type
108
- // @ts-ignore-next-line
109
- id: animationId
110
- }
111
- }, options);
112
-
113
- setAnimation(_lottieWeb["default"].loadAnimation(defaultOptions));
114
- return function () {
115
- animation === null || animation === void 0 ? void 0 : animation.destroy();
116
- setAnimation(undefined);
117
- };
118
- }, []); // HANDLE STYLING FOR ANIMATION
119
-
120
- (0, _react.useEffect)(function () {
121
- if (strokeColor || fillColor || pathCss) {
122
- try {
123
- var css = "#".concat(animationId, " path { ").concat(strokeColor ? "stroke: ".concat(strokeColor, ";") : '', " ").concat(fillColor ? "fill: ".concat(fillColor, ";") : '', " ").concat(pathCss || '', "}");
124
- var sheetEl = document.getElementById('useAnimationsSheet'); // STYLESHEET HASN'T BEEN CREATED YET
125
-
126
- if (!sheetEl) {
127
- sheetEl = document.createElement('style');
128
- sheetEl.setAttribute('id', 'useAnimationsSheet');
129
- sheetEl.appendChild(document.createTextNode(''));
130
- document.head.appendChild(sheetEl);
131
- }
132
-
133
- var sheet = sheetEl ? sheetEl.sheet || sheetEl.styleSheet : null;
134
- sheet.insertRule(css);
135
- } catch (err) {
136
- // eslint-disable-next-line
137
- console.warn("There's been a problem with deleting a CSSRule, please report that issue in https://github.com/useAnimations/react-useanimations", err);
138
- }
139
- }
140
-
141
- return function () {
142
- // DELETE CSS RULE
143
- try {
144
- var _sheetEl = document.getElementById('useAnimationsSheet');
145
-
146
- var _sheet = _sheetEl ? _sheetEl.sheet || _sheetEl.styleSheet : null;
147
-
148
- if (_sheet) {
149
- var animationRuleIndex = Array.from(_sheet.cssRules).findIndex(function (rule) {
150
- return rule.selectorText === "#".concat(animationId, " path");
151
- });
152
-
153
- if (animationRuleIndex !== -1) {
154
- _sheet.deleteRule(animationRuleIndex);
155
- }
157
+ // src/lottie.ts
158
+ var light;
159
+ var full;
160
+ var unwrap = (mod) => mod.default ?? mod;
161
+ var loadLottie = (needsFullPlayer) => {
162
+ if (needsFullPlayer) {
163
+ full ?? (full = import("lottie-web").then(unwrap));
164
+ return full;
165
+ }
166
+ light ?? (light = import("lottie-web/build/player/lottie_light").then(unwrap));
167
+ return light;
168
+ };
169
+ var lottie_default = loadLottie;
170
+
171
+ // src/index.tsx
172
+ var idCounter = 0;
173
+ var UseAnimations = (props) => {
174
+ const {
175
+ animation: { animationData, animationKey },
176
+ interaction: interactionProp,
177
+ reverse = false,
178
+ size = 24,
179
+ speed = 1,
180
+ strokeColor,
181
+ fillColor,
182
+ pathCss,
183
+ loop,
184
+ autoplay,
185
+ wrapperStyle,
186
+ options,
187
+ render,
188
+ style,
189
+ onClick,
190
+ onMouseEnter,
191
+ onMouseLeave,
192
+ ...other
193
+ } = props;
194
+ const containerRef = (0, import_react.useRef)(null);
195
+ const [player, setPlayer] = (0, import_react.useState)(null);
196
+ const [id] = (0, import_react.useState)(() => `useanimations-${idCounter += 1}`);
197
+ const atEnd = (0, import_react.useRef)(false);
198
+ const latest = (0, import_react.useRef)({ options, speed });
199
+ const interaction = interactionProp ?? getInteraction(animationKey);
200
+ const shouldLoop = loop ?? (interaction === "loop" || interaction === "hover-loop");
201
+ const shouldAutoplay = autoplay ?? interaction === "loop";
202
+ (0, import_react.useEffect)(() => {
203
+ latest.current = { options, speed };
204
+ });
205
+ (0, import_react.useEffect)(() => {
206
+ const container = containerRef.current;
207
+ if (!container) return void 0;
208
+ let cancelled = false;
209
+ let instance;
210
+ lottie_default(fullPlayerIcons.has(animationKey)).then((lottie) => {
211
+ if (cancelled) return;
212
+ const { options: custom, speed: initialSpeed } = latest.current;
213
+ instance = lottie.loadAnimation({
214
+ container,
215
+ renderer: "svg",
216
+ animationData,
217
+ loop: shouldLoop,
218
+ autoplay: shouldAutoplay,
219
+ ...custom,
220
+ // lottie-web supports `id` (set on the <svg>) but its types don't declare it.
221
+ rendererSettings: {
222
+ progressiveLoad: true,
223
+ ...custom?.rendererSettings,
224
+ id
156
225
  }
157
- } catch (err) {
158
- // eslint-disable-next-line
159
- console.warn("There's been a problem with deleting a CSSRule, please report that issue in https://github.com/useAnimations/react-useanimations", err);
160
- }
226
+ });
227
+ instance.setSpeed(initialSpeed);
228
+ atEnd.current = false;
229
+ setPlayer(instance);
230
+ });
231
+ return () => {
232
+ cancelled = true;
233
+ instance?.destroy();
234
+ setPlayer(null);
161
235
  };
162
- }, [strokeColor, fillColor, pathCss]); // SET NAVIGATION EVENTS
163
-
164
- (0, _react.useEffect)(function () {
165
- // eslint-disable-next-line
166
- var events = animation ? (0, _utils.getEvents)({
167
- animation: animation,
168
- reverse: reverse,
169
- animEffect: (0, _utils.getEffect)(animationKey)
170
- }) : undefined;
171
- if (events) setEvents(events);
172
- }, [animation, reverse]); // SET ANIMATION SPEED
173
-
174
- (0, _react.useEffect)(function () {
175
- if (animation) {
176
- animation.setSpeed(speed);
236
+ }, [animationData, animationKey, shouldLoop, shouldAutoplay, id]);
237
+ (0, import_react.useEffect)(() => {
238
+ player?.setSpeed(speed);
239
+ }, [player, speed]);
240
+ (0, import_react.useEffect)(() => {
241
+ if (!player || interaction !== "click-toggle" || reverse === atEnd.current) return;
242
+ atEnd.current = reverse;
243
+ playToggle(player, reverse);
244
+ }, [player, interaction, reverse]);
245
+ (0, import_react.useEffect)(() => {
246
+ if (!strokeColor && !fillColor && !pathCss) return void 0;
247
+ const sheet = document.createElement("style");
248
+ sheet.textContent = `#${id} path { ${strokeColor ? `stroke: ${strokeColor};` : ""} ${fillColor ? `fill: ${fillColor};` : ""} ${pathCss ?? ""} }`;
249
+ document.head.appendChild(sheet);
250
+ return () => sheet.remove();
251
+ }, [id, strokeColor, fillColor, pathCss]);
252
+ const eventProps = {
253
+ onClick: (event) => {
254
+ onClick?.(event);
255
+ if (!player || event.defaultPrevented) return;
256
+ if (interaction === "click-toggle") {
257
+ atEnd.current = !atEnd.current;
258
+ playToggle(player, atEnd.current);
259
+ } else if (interaction === "click-replay") {
260
+ replay(player);
261
+ }
262
+ },
263
+ onMouseEnter: (event) => {
264
+ onMouseEnter?.(event);
265
+ if (!player || event.defaultPrevented) return;
266
+ if (interaction === "hover" || interaction === "hover-loop") hoverStart(player, interaction);
267
+ },
268
+ onMouseLeave: (event) => {
269
+ onMouseLeave?.(event);
270
+ if (!player || event.defaultPrevented) return;
271
+ if (interaction === "hover" || interaction === "hover-loop") hoverEnd(player, interaction);
177
272
  }
178
- }, [animation, speed]);
179
-
180
- var eventProps = _objectSpread(_objectSpread({}, events), {}, {
181
- onClick: function onClick(e) {
182
- if (_onClick) _onClick(e);
183
- if (events && 'onClick' in events) events.onClick();
273
+ };
274
+ const animationProps = {
275
+ ...other,
276
+ ref: containerRef,
277
+ style: {
278
+ overflow: "hidden",
279
+ outline: "none",
280
+ width: `${size}px`,
281
+ height: `${size}px`,
282
+ ...wrapperStyle,
283
+ ...style
184
284
  }
185
- });
186
-
187
- var animationProps = _objectSpread(_objectSpread({
188
- ref: ref
189
- }, other), {}, {
190
- style: defaultStyles
191
- });
192
-
193
- return render ? render(eventProps, animationProps) : /*#__PURE__*/_react["default"].createElement("div", _extends({}, eventProps, animationProps));
285
+ };
286
+ return render ? render(eventProps, animationProps) : /* @__PURE__ */ import_react.default.createElement("div", { ...eventProps, ...animationProps });
194
287
  };
195
-
196
- var _default = UseAnimations;
197
- exports["default"] = _default;
288
+ var src_default = UseAnimations;