react-useanimations 2.0.9 → 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.
- package/README.md +112 -67
- package/index.d.mts +144 -0
- package/index.d.ts +144 -0
- package/index.js +288 -0
- package/index.mjs +258 -0
- package/lib/activity/index.d.mts +5 -0
- package/lib/activity/index.d.ts +5 -0
- package/lib/activity/index.js +32 -0
- package/lib/activity/index.mjs +9 -0
- package/lib/airplay/index.d.mts +5 -0
- package/lib/airplay/index.d.ts +5 -0
- package/lib/airplay/index.js +32 -0
- package/lib/airplay/index.mjs +9 -0
- package/lib/alertCircle/index.d.mts +5 -0
- package/lib/alertCircle/index.d.ts +5 -0
- package/lib/alertCircle/index.js +32 -0
- package/lib/alertCircle/index.mjs +9 -0
- package/lib/alertOctagon/index.d.mts +5 -0
- package/lib/alertOctagon/index.d.ts +5 -0
- package/lib/alertOctagon/index.js +32 -0
- package/lib/alertOctagon/index.mjs +9 -0
- package/lib/alertTriangle/index.d.mts +5 -0
- package/lib/alertTriangle/index.d.ts +5 -0
- package/lib/alertTriangle/index.js +32 -0
- package/lib/alertTriangle/index.mjs +9 -0
- package/lib/archive/index.d.mts +5 -0
- package/lib/archive/index.d.ts +5 -0
- package/lib/archive/index.js +32 -0
- package/lib/archive/index.mjs +9 -0
- package/lib/arrowDown/index.d.mts +5 -0
- package/lib/arrowDown/index.d.ts +5 -0
- package/lib/arrowDown/index.js +32 -0
- package/lib/arrowDown/index.mjs +9 -0
- package/lib/arrowDownCircle/index.d.mts +5 -0
- package/lib/arrowDownCircle/index.d.ts +5 -0
- package/lib/arrowDownCircle/index.js +32 -0
- package/lib/arrowDownCircle/index.mjs +9 -0
- package/lib/arrowLeftCircle/index.d.mts +5 -0
- package/lib/arrowLeftCircle/index.d.ts +5 -0
- package/lib/arrowLeftCircle/index.js +32 -0
- package/lib/arrowLeftCircle/index.mjs +9 -0
- package/lib/arrowRightCircle/index.d.mts +5 -0
- package/lib/arrowRightCircle/index.d.ts +5 -0
- package/lib/arrowRightCircle/index.js +32 -0
- package/lib/arrowRightCircle/index.mjs +9 -0
- package/lib/arrowUp/index.d.mts +5 -0
- package/lib/arrowUp/index.d.ts +5 -0
- package/lib/arrowUp/index.js +32 -0
- package/lib/arrowUp/index.mjs +9 -0
- package/lib/arrowUpCircle/index.d.mts +5 -0
- package/lib/arrowUpCircle/index.d.ts +5 -0
- package/lib/arrowUpCircle/index.js +32 -0
- package/lib/arrowUpCircle/index.mjs +9 -0
- package/lib/behance/index.d.mts +5 -0
- package/lib/behance/index.d.ts +5 -0
- package/lib/behance/index.js +32 -0
- package/lib/behance/index.mjs +9 -0
- package/lib/bookmark/index.d.mts +5 -0
- package/lib/bookmark/index.d.ts +5 -0
- package/lib/bookmark/index.js +32 -0
- package/lib/bookmark/index.mjs +9 -0
- package/lib/calendar/index.d.mts +5 -0
- package/lib/calendar/index.d.ts +5 -0
- package/lib/calendar/index.js +32 -0
- package/lib/calendar/index.mjs +9 -0
- package/lib/checkBox/index.d.mts +5 -0
- package/lib/checkBox/index.d.ts +5 -0
- package/lib/checkBox/index.js +32 -0
- package/lib/checkBox/index.mjs +9 -0
- package/lib/checkmark/index.d.mts +5 -0
- package/lib/checkmark/index.d.ts +5 -0
- package/lib/checkmark/index.js +32 -0
- package/lib/checkmark/index.mjs +9 -0
- package/lib/chevronLeft/index.d.mts +5 -0
- package/lib/chevronLeft/index.d.ts +5 -0
- package/lib/chevronLeft/index.js +32 -0
- package/lib/chevronLeft/index.mjs +9 -0
- package/lib/chevronRight/index.d.mts +5 -0
- package/lib/chevronRight/index.d.ts +5 -0
- package/lib/chevronRight/index.js +32 -0
- package/lib/chevronRight/index.mjs +9 -0
- package/lib/codepen/index.d.mts +5 -0
- package/lib/codepen/index.d.ts +5 -0
- package/lib/codepen/index.js +32 -0
- package/lib/codepen/index.mjs +9 -0
- package/lib/copy/index.d.mts +5 -0
- package/lib/copy/index.d.ts +5 -0
- package/lib/copy/index.js +32 -0
- package/lib/copy/index.mjs +9 -0
- package/lib/download/index.d.mts +5 -0
- package/lib/download/index.d.ts +5 -0
- package/lib/download/index.js +32 -0
- package/lib/download/index.mjs +9 -0
- package/lib/dribbble/index.d.mts +5 -0
- package/lib/dribbble/index.d.ts +5 -0
- package/lib/dribbble/index.js +32 -0
- package/lib/dribbble/index.mjs +9 -0
- package/lib/edit/index.d.mts +5 -0
- package/lib/edit/index.d.ts +5 -0
- package/lib/edit/index.js +32 -0
- package/lib/edit/index.mjs +9 -0
- package/lib/error/index.d.mts +5 -0
- package/lib/error/index.d.ts +5 -0
- package/lib/error/index.js +32 -0
- package/lib/error/index.mjs +9 -0
- package/lib/explore/index.d.mts +5 -0
- package/lib/explore/index.d.ts +5 -0
- package/lib/explore/index.js +32 -0
- package/lib/explore/index.mjs +9 -0
- package/lib/facebook/index.d.mts +5 -0
- package/lib/facebook/index.d.ts +5 -0
- package/lib/facebook/index.js +32 -0
- package/lib/facebook/index.mjs +9 -0
- package/lib/filter/index.d.mts +5 -0
- package/lib/filter/index.d.ts +5 -0
- package/lib/filter/index.js +32 -0
- package/lib/filter/index.mjs +9 -0
- package/lib/folder/index.d.mts +5 -0
- package/lib/folder/index.d.ts +5 -0
- package/lib/folder/index.js +32 -0
- package/lib/folder/index.mjs +9 -0
- package/lib/github/index.d.mts +5 -0
- package/lib/github/index.d.ts +5 -0
- package/lib/github/index.js +32 -0
- package/lib/github/index.mjs +9 -0
- package/lib/heart/index.d.mts +5 -0
- package/lib/heart/index.d.ts +5 -0
- package/lib/heart/index.js +32 -0
- package/lib/heart/index.mjs +9 -0
- package/lib/help/index.d.mts +5 -0
- package/lib/help/index.d.ts +5 -0
- package/lib/help/index.js +32 -0
- package/lib/help/index.mjs +9 -0
- package/lib/home/index.d.mts +5 -0
- package/lib/home/index.d.ts +5 -0
- package/lib/home/index.js +32 -0
- package/lib/home/index.mjs +9 -0
- package/lib/infinity/index.d.mts +5 -0
- package/lib/infinity/index.d.ts +5 -0
- package/lib/infinity/index.js +32 -0
- package/lib/infinity/index.mjs +9 -0
- package/lib/info/index.d.mts +5 -0
- package/lib/info/index.d.ts +5 -0
- package/lib/info/index.js +32 -0
- package/lib/info/index.mjs +9 -0
- package/lib/instagram/index.d.mts +5 -0
- package/lib/instagram/index.d.ts +5 -0
- package/lib/instagram/index.js +32 -0
- package/lib/instagram/index.mjs +9 -0
- package/lib/linkedin/index.d.mts +5 -0
- package/lib/linkedin/index.d.ts +5 -0
- package/lib/linkedin/index.js +32 -0
- package/lib/linkedin/index.mjs +9 -0
- package/lib/loading/index.d.mts +5 -0
- package/lib/loading/index.d.ts +5 -0
- package/lib/loading/index.js +32 -0
- package/lib/loading/index.mjs +9 -0
- package/lib/loading2/index.d.mts +5 -0
- package/lib/loading2/index.d.ts +5 -0
- package/lib/loading2/index.js +32 -0
- package/lib/loading2/index.mjs +9 -0
- package/lib/loading3/index.d.mts +5 -0
- package/lib/loading3/index.d.ts +5 -0
- package/lib/loading3/index.js +32 -0
- package/lib/loading3/index.mjs +9 -0
- package/lib/loading4/index.d.mts +5 -0
- package/lib/loading4/index.d.ts +5 -0
- package/lib/loading4/index.js +32 -0
- package/lib/loading4/index.mjs +9 -0
- package/lib/lock/index.d.mts +5 -0
- package/lib/lock/index.d.ts +5 -0
- package/lib/lock/index.js +32 -0
- package/lib/lock/index.mjs +9 -0
- package/lib/mail/index.d.mts +5 -0
- package/lib/mail/index.d.ts +5 -0
- package/lib/mail/index.js +32 -0
- package/lib/mail/index.mjs +9 -0
- package/lib/maximizeMinimize/index.d.mts +5 -0
- package/lib/maximizeMinimize/index.d.ts +5 -0
- package/lib/maximizeMinimize/index.js +32 -0
- package/lib/maximizeMinimize/index.mjs +9 -0
- package/lib/maximizeMinimize2/index.d.mts +5 -0
- package/lib/maximizeMinimize2/index.d.ts +5 -0
- package/lib/maximizeMinimize2/index.js +32 -0
- package/lib/maximizeMinimize2/index.mjs +9 -0
- package/lib/menu/index.d.mts +5 -0
- package/lib/menu/index.d.ts +5 -0
- package/lib/menu/index.js +32 -0
- package/lib/menu/index.mjs +9 -0
- package/lib/menu2/index.d.mts +5 -0
- package/lib/menu2/index.d.ts +5 -0
- package/lib/menu2/index.js +32 -0
- package/lib/menu2/index.mjs +9 -0
- package/lib/menu3/index.d.mts +5 -0
- package/lib/menu3/index.d.ts +5 -0
- package/lib/menu3/index.js +32 -0
- package/lib/menu3/index.mjs +9 -0
- package/lib/menu4/index.d.mts +5 -0
- package/lib/menu4/index.d.ts +5 -0
- package/lib/menu4/index.js +32 -0
- package/lib/menu4/index.mjs +9 -0
- package/lib/microphone/index.d.mts +5 -0
- package/lib/microphone/index.d.ts +5 -0
- package/lib/microphone/index.js +32 -0
- package/lib/microphone/index.mjs +9 -0
- package/lib/microphone2/index.d.mts +5 -0
- package/lib/microphone2/index.d.ts +5 -0
- package/lib/microphone2/index.js +32 -0
- package/lib/microphone2/index.mjs +9 -0
- package/lib/notification/index.d.mts +5 -0
- package/lib/notification/index.d.ts +5 -0
- package/lib/notification/index.js +32 -0
- package/lib/notification/index.mjs +9 -0
- package/lib/notification2/index.d.mts +5 -0
- package/lib/notification2/index.d.ts +5 -0
- package/lib/notification2/index.js +32 -0
- package/lib/notification2/index.mjs +9 -0
- package/lib/notification3/index.d.mts +5 -0
- package/lib/notification3/index.d.ts +5 -0
- package/lib/notification3/index.js +32 -0
- package/lib/notification3/index.mjs +9 -0
- package/lib/notification4/index.d.mts +5 -0
- package/lib/notification4/index.d.ts +5 -0
- package/lib/notification4/index.js +32 -0
- package/lib/notification4/index.mjs +9 -0
- package/lib/playPause/index.d.mts +5 -0
- package/lib/playPause/index.d.ts +5 -0
- package/lib/playPause/index.js +32 -0
- package/lib/playPause/index.mjs +9 -0
- package/lib/playPauseCircle/index.d.mts +5 -0
- package/lib/playPauseCircle/index.d.ts +5 -0
- package/lib/playPauseCircle/index.js +32 -0
- package/lib/playPauseCircle/index.mjs +9 -0
- package/lib/plusToX/index.d.mts +5 -0
- package/lib/plusToX/index.d.ts +5 -0
- package/lib/plusToX/index.js +32 -0
- package/lib/plusToX/index.mjs +9 -0
- package/lib/pocket/index.d.mts +5 -0
- package/lib/pocket/index.d.ts +5 -0
- package/lib/pocket/index.js +32 -0
- package/lib/pocket/index.mjs +9 -0
- package/lib/radioButton/index.d.mts +5 -0
- package/lib/radioButton/index.d.ts +5 -0
- package/lib/radioButton/index.js +32 -0
- package/lib/radioButton/index.mjs +9 -0
- package/lib/refresh/index.d.mts +5 -0
- package/lib/refresh/index.d.ts +5 -0
- package/lib/refresh/index.js +32 -0
- package/lib/refresh/index.mjs +9 -0
- package/lib/scrollDown/index.d.mts +5 -0
- package/lib/scrollDown/index.d.ts +5 -0
- package/lib/scrollDown/index.js +32 -0
- package/lib/scrollDown/index.mjs +9 -0
- package/lib/searchToX/index.d.mts +5 -0
- package/lib/searchToX/index.d.ts +5 -0
- package/lib/searchToX/index.js +32 -0
- package/lib/searchToX/index.mjs +9 -0
- package/lib/settings/index.d.mts +5 -0
- package/lib/settings/index.d.ts +5 -0
- package/lib/settings/index.js +32 -0
- package/lib/settings/index.mjs +9 -0
- package/lib/settings2/index.d.mts +5 -0
- package/lib/settings2/index.d.ts +5 -0
- package/lib/settings2/index.js +32 -0
- package/lib/settings2/index.mjs +9 -0
- package/lib/share/index.d.mts +5 -0
- package/lib/share/index.d.ts +5 -0
- package/lib/share/index.js +32 -0
- package/lib/share/index.mjs +9 -0
- package/lib/skipBack/index.d.mts +5 -0
- package/lib/skipBack/index.d.ts +5 -0
- package/lib/skipBack/index.js +32 -0
- package/lib/skipBack/index.mjs +9 -0
- package/lib/skipForward/index.d.mts +5 -0
- package/lib/skipForward/index.d.ts +5 -0
- package/lib/skipForward/index.js +32 -0
- package/lib/skipForward/index.mjs +9 -0
- package/lib/star/index.d.mts +5 -0
- package/lib/star/index.d.ts +5 -0
- package/lib/star/index.js +32 -0
- package/lib/star/index.mjs +9 -0
- package/lib/thumbUp/index.d.mts +5 -0
- package/lib/thumbUp/index.d.ts +5 -0
- package/lib/thumbUp/index.js +32 -0
- package/lib/thumbUp/index.mjs +9 -0
- package/lib/toggle/index.d.mts +5 -0
- package/lib/toggle/index.d.ts +5 -0
- package/lib/toggle/index.js +32 -0
- package/lib/toggle/index.mjs +9 -0
- package/lib/trash/index.d.mts +5 -0
- package/lib/trash/index.d.ts +5 -0
- package/lib/trash/index.js +32 -0
- package/lib/trash/index.mjs +9 -0
- package/lib/trash2/index.d.mts +5 -0
- package/lib/trash2/index.d.ts +5 -0
- package/lib/trash2/index.js +32 -0
- package/lib/trash2/index.mjs +9 -0
- package/lib/twitter/index.d.mts +5 -0
- package/lib/twitter/index.d.ts +5 -0
- package/lib/twitter/index.js +32 -0
- package/lib/twitter/index.mjs +9 -0
- package/lib/userMinus/index.d.mts +5 -0
- package/lib/userMinus/index.d.ts +5 -0
- package/lib/userMinus/index.js +32 -0
- package/lib/userMinus/index.mjs +9 -0
- package/lib/userPlus/index.d.mts +5 -0
- package/lib/userPlus/index.d.ts +5 -0
- package/lib/userPlus/index.js +32 -0
- package/lib/userPlus/index.mjs +9 -0
- package/lib/userX/index.d.mts +5 -0
- package/lib/userX/index.d.ts +5 -0
- package/lib/userX/index.js +32 -0
- package/lib/userX/index.mjs +9 -0
- package/lib/video/index.d.mts +5 -0
- package/lib/video/index.d.ts +5 -0
- package/lib/video/index.js +32 -0
- package/lib/video/index.mjs +9 -0
- package/lib/video2/index.d.mts +5 -0
- package/lib/video2/index.d.ts +5 -0
- package/lib/video2/index.js +32 -0
- package/lib/video2/index.mjs +9 -0
- package/lib/visibility/index.d.mts +5 -0
- package/lib/visibility/index.d.ts +5 -0
- package/lib/visibility/index.js +32 -0
- package/lib/visibility/index.mjs +9 -0
- package/lib/visibility2/index.d.mts +5 -0
- package/lib/visibility2/index.d.ts +5 -0
- package/lib/visibility2/index.js +32 -0
- package/lib/visibility2/index.mjs +9 -0
- package/lib/visibility3/index.d.mts +5 -0
- package/lib/visibility3/index.d.ts +5 -0
- package/lib/visibility3/index.js +32 -0
- package/lib/visibility3/index.mjs +9 -0
- package/lib/volume/index.d.mts +5 -0
- package/lib/volume/index.d.ts +5 -0
- package/lib/volume/index.js +32 -0
- package/lib/volume/index.mjs +9 -0
- package/lib/youtube/index.d.mts +5 -0
- package/lib/youtube/index.d.ts +5 -0
- package/lib/youtube/index.js +32 -0
- package/lib/youtube/index.mjs +9 -0
- package/lib/youtube2/index.d.mts +5 -0
- package/lib/youtube2/index.d.ts +5 -0
- package/lib/youtube2/index.js +32 -0
- package/lib/youtube2/index.mjs +9 -0
- package/lib/zoomIn/index.d.mts +5 -0
- package/lib/zoomIn/index.d.ts +5 -0
- package/lib/zoomIn/index.js +32 -0
- package/lib/zoomIn/index.mjs +9 -0
- package/lib/zoomOut/index.d.mts +5 -0
- package/lib/zoomOut/index.d.ts +5 -0
- package/lib/zoomOut/index.js +32 -0
- package/lib/zoomOut/index.mjs +9 -0
- package/package.json +55 -65
- package/.babelrc +0 -4
- package/.editorconfig +0 -15
- package/.eslintignore +0 -2
- package/.eslintrc.json +0 -31
- package/.gitattributes +0 -1
- package/.prettierrc +0 -10
- package/.storybook/main.js +0 -15
- package/.vscode/settings.json +0 -5
- package/README_v1.md +0 -46
- package/src/bin/addAnimationFiles.sh +0 -28
- package/src/bin/generateStories.sh +0 -34
- package/src/index.tsx +0 -177
- package/src/lib/activity/activity.json +0 -1
- package/src/lib/activity/index.ts +0 -4
- package/src/lib/airplay/airplay.json +0 -1
- package/src/lib/airplay/index.ts +0 -4
- package/src/lib/alertCircle/alertCircle.json +0 -1
- package/src/lib/alertCircle/index.ts +0 -4
- package/src/lib/alertOctagon/alertOctagon.json +0 -1
- package/src/lib/alertOctagon/index.ts +0 -4
- package/src/lib/alertTriangle/alertTriangle.json +0 -1
- package/src/lib/alertTriangle/index.ts +0 -4
- package/src/lib/archive/archive.json +0 -1
- package/src/lib/archive/index.ts +0 -4
- package/src/lib/arrowDown/arrowDown.json +0 -1
- package/src/lib/arrowDown/index.ts +0 -4
- package/src/lib/arrowDownCircle/arrowDownCircle.json +0 -1
- package/src/lib/arrowDownCircle/index.ts +0 -4
- package/src/lib/arrowLeftCircle/arrowLeftCircle.json +0 -1
- package/src/lib/arrowLeftCircle/index.ts +0 -4
- package/src/lib/arrowRightCircle/arrowRightCircle.json +0 -1
- package/src/lib/arrowRightCircle/index.ts +0 -4
- package/src/lib/arrowUp/arrowUp.json +0 -1
- package/src/lib/arrowUp/index.ts +0 -4
- package/src/lib/arrowUpCircle/arrowUpCircle.json +0 -1
- package/src/lib/arrowUpCircle/index.ts +0 -4
- package/src/lib/behance/behance.json +0 -1
- package/src/lib/behance/index.ts +0 -4
- package/src/lib/bookmark/bookmark.json +0 -1
- package/src/lib/bookmark/index.ts +0 -4
- package/src/lib/calendar/calendar.json +0 -1
- package/src/lib/calendar/index.ts +0 -4
- package/src/lib/checkBox/checkBox.json +0 -1
- package/src/lib/checkBox/index.ts +0 -4
- package/src/lib/checkmark/checkmark.json +0 -1
- package/src/lib/checkmark/index.ts +0 -4
- package/src/lib/codepen/codepen.json +0 -1
- package/src/lib/codepen/index.ts +0 -4
- package/src/lib/copy/copy.json +0 -1
- package/src/lib/copy/index.ts +0 -4
- package/src/lib/download/download.json +0 -1
- package/src/lib/download/index.ts +0 -4
- package/src/lib/dribbble/dribbble.json +0 -1
- package/src/lib/dribbble/index.ts +0 -4
- package/src/lib/edit/edit.json +0 -1
- package/src/lib/edit/index.ts +0 -4
- package/src/lib/error/error.json +0 -1
- package/src/lib/error/index.ts +0 -4
- package/src/lib/explore/explore.json +0 -1
- package/src/lib/explore/index.ts +0 -4
- package/src/lib/facebook/facebook.json +0 -1
- package/src/lib/facebook/index.ts +0 -4
- package/src/lib/folder/folder.json +0 -1
- package/src/lib/folder/index.ts +0 -4
- package/src/lib/github/github.json +0 -1
- package/src/lib/github/index.ts +0 -4
- package/src/lib/heart/heart.json +0 -1
- package/src/lib/heart/index.ts +0 -4
- package/src/lib/help/help.json +0 -1
- package/src/lib/help/index.ts +0 -4
- package/src/lib/home/home.json +0 -1
- package/src/lib/home/index.ts +0 -4
- package/src/lib/infinity/index.ts +0 -4
- package/src/lib/infinity/infinity.json +0 -1
- package/src/lib/info/index.ts +0 -4
- package/src/lib/info/info.json +0 -1
- package/src/lib/instagram/index.ts +0 -4
- package/src/lib/instagram/instagram.json +0 -1
- package/src/lib/linkedin/index.ts +0 -4
- package/src/lib/linkedin/linkedin.json +0 -1
- package/src/lib/loading/index.ts +0 -4
- package/src/lib/loading/loading.json +0 -1
- package/src/lib/loading2/index.ts +0 -4
- package/src/lib/loading2/loading2.json +0 -1
- package/src/lib/loading3/index.ts +0 -4
- package/src/lib/loading3/loading3.json +0 -1
- package/src/lib/lock/index.ts +0 -4
- package/src/lib/lock/lock.json +0 -1
- package/src/lib/mail/index.ts +0 -4
- package/src/lib/mail/mail.json +0 -1
- package/src/lib/maximizeMinimize/index.ts +0 -4
- package/src/lib/maximizeMinimize/maximizeMinimize.json +0 -1
- package/src/lib/maximizeMinimize2/index.ts +0 -4
- package/src/lib/maximizeMinimize2/maximizeMinimize2.json +0 -1
- package/src/lib/menu/index.ts +0 -4
- package/src/lib/menu/menu.json +0 -1
- package/src/lib/menu2/index.ts +0 -4
- package/src/lib/menu2/menu2.json +0 -1
- package/src/lib/menu3/index.ts +0 -4
- package/src/lib/menu3/menu3.json +0 -1
- package/src/lib/menu4/index.ts +0 -4
- package/src/lib/menu4/menu4.json +0 -1
- package/src/lib/microphone/index.ts +0 -4
- package/src/lib/microphone/microphone.json +0 -1
- package/src/lib/microphone2/index.ts +0 -4
- package/src/lib/microphone2/microphone2.json +0 -1
- package/src/lib/notification/index.ts +0 -4
- package/src/lib/notification/notification.json +0 -1
- package/src/lib/notification2/index.ts +0 -4
- package/src/lib/notification2/notification2.json +0 -1
- package/src/lib/playPause/index.ts +0 -4
- package/src/lib/playPause/playPause.json +0 -1
- package/src/lib/playPauseCircle/index.ts +0 -4
- package/src/lib/playPauseCircle/playPauseCircle.json +0 -1
- package/src/lib/plusToX/index.ts +0 -4
- package/src/lib/plusToX/plusToX.json +0 -1
- package/src/lib/pocket/index.ts +0 -4
- package/src/lib/pocket/pocket.json +0 -1
- package/src/lib/radioButton/index.ts +0 -4
- package/src/lib/radioButton/radioButton.json +0 -1
- package/src/lib/scrollDown/index.ts +0 -4
- package/src/lib/scrollDown/scrollDown.json +0 -1
- package/src/lib/searchToX/index.ts +0 -4
- package/src/lib/searchToX/searchToX.json +0 -1
- package/src/lib/settings/index.ts +0 -4
- package/src/lib/settings/settings.json +0 -1
- package/src/lib/settings2/index.ts +0 -4
- package/src/lib/settings2/settings2.json +0 -1
- package/src/lib/share/index.ts +0 -4
- package/src/lib/share/share.json +0 -1
- package/src/lib/skipBack/index.ts +0 -4
- package/src/lib/skipBack/skipBack.json +0 -1
- package/src/lib/skipForward/index.ts +0 -4
- package/src/lib/skipForward/skipForward.json +0 -1
- package/src/lib/star/index.ts +0 -4
- package/src/lib/star/star.json +0 -1
- package/src/lib/thumbUp/index.ts +0 -4
- package/src/lib/thumbUp/thumbUp.json +0 -1
- package/src/lib/toggle/index.ts +0 -4
- package/src/lib/toggle/toggle.json +0 -1
- package/src/lib/trash/index.ts +0 -4
- package/src/lib/trash/trash.json +0 -1
- package/src/lib/trash2/index.ts +0 -4
- package/src/lib/trash2/trash2.json +0 -1
- package/src/lib/twitter/index.ts +0 -4
- package/src/lib/twitter/twitter.json +0 -1
- package/src/lib/userMinus/index.ts +0 -4
- package/src/lib/userMinus/userMinus.json +0 -1
- package/src/lib/userPlus/index.ts +0 -4
- package/src/lib/userPlus/userPlus.json +0 -1
- package/src/lib/userX/index.ts +0 -4
- package/src/lib/userX/userX.json +0 -1
- package/src/lib/video/index.ts +0 -4
- package/src/lib/video/video.json +0 -1
- package/src/lib/video2/index.ts +0 -4
- package/src/lib/video2/video2.json +0 -1
- package/src/lib/visibility/index.ts +0 -4
- package/src/lib/visibility/visibility.json +0 -1
- package/src/lib/visibility2/index.ts +0 -4
- package/src/lib/visibility2/visibility2.json +0 -1
- package/src/lib/volume/index.ts +0 -4
- package/src/lib/volume/volume.json +0 -1
- package/src/lib/youtube/index.ts +0 -4
- package/src/lib/youtube/youtube.json +0 -1
- package/src/lib/youtube2/index.ts +0 -4
- package/src/lib/youtube2/youtube2.json +0 -1
- package/src/lib/zoomIn/index.ts +0 -4
- package/src/lib/zoomIn/zoomIn.json +0 -1
- package/src/lib/zoomOut/index.ts +0 -4
- package/src/lib/zoomOut/zoomOut.json +0 -1
- package/src/stories/controlled.stories.tsx +0 -257
- package/src/stories/generated.stories.tsx +0 -406
- package/src/stories/variants.stories.tsx +0 -237
- package/src/typings.d.ts +0 -6
- package/src/utils/constants.ts +0 -93
- package/src/utils/getEffect.ts +0 -91
- package/src/utils/getEvents.ts +0 -81
- package/src/utils/index.ts +0 -3
- package/tsconfig.json +0 -67
- package/useanimations-preview.gif +0 -0
package/index.js
ADDED
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
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
|
|
35
|
+
});
|
|
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
|
+
}
|
|
155
|
+
};
|
|
156
|
+
|
|
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
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
instance.setSpeed(initialSpeed);
|
|
228
|
+
atEnd.current = false;
|
|
229
|
+
setPlayer(instance);
|
|
230
|
+
});
|
|
231
|
+
return () => {
|
|
232
|
+
cancelled = true;
|
|
233
|
+
instance?.destroy();
|
|
234
|
+
setPlayer(null);
|
|
235
|
+
};
|
|
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);
|
|
272
|
+
}
|
|
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
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
return render ? render(eventProps, animationProps) : /* @__PURE__ */ import_react.default.createElement("div", { ...eventProps, ...animationProps });
|
|
287
|
+
};
|
|
288
|
+
var src_default = UseAnimations;
|
package/index.mjs
ADDED
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// src/index.tsx
|
|
4
|
+
import React, { useEffect, useRef, useState } from "react";
|
|
5
|
+
|
|
6
|
+
// src/icons.ts
|
|
7
|
+
var interactions = {
|
|
8
|
+
activity: "loop",
|
|
9
|
+
airplay: "loop",
|
|
10
|
+
alertCircle: "loop",
|
|
11
|
+
alertOctagon: "loop",
|
|
12
|
+
alertTriangle: "loop",
|
|
13
|
+
archive: "hover",
|
|
14
|
+
arrowDown: "loop",
|
|
15
|
+
arrowDownCircle: "click-replay",
|
|
16
|
+
arrowLeftCircle: "click-replay",
|
|
17
|
+
arrowRightCircle: "click-replay",
|
|
18
|
+
arrowUp: "loop",
|
|
19
|
+
arrowUpCircle: "click-replay",
|
|
20
|
+
behance: "hover-loop",
|
|
21
|
+
bookmark: "click-toggle",
|
|
22
|
+
calendar: "hover",
|
|
23
|
+
checkBox: "click-toggle",
|
|
24
|
+
checkmark: "loop",
|
|
25
|
+
chevronLeft: "click-replay",
|
|
26
|
+
chevronRight: "click-replay",
|
|
27
|
+
codepen: "hover-loop",
|
|
28
|
+
copy: "hover",
|
|
29
|
+
download: "click-replay",
|
|
30
|
+
dribbble: "hover-loop",
|
|
31
|
+
edit: "hover",
|
|
32
|
+
error: "loop",
|
|
33
|
+
explore: "hover",
|
|
34
|
+
facebook: "hover-loop",
|
|
35
|
+
filter: "click-replay",
|
|
36
|
+
folder: "hover",
|
|
37
|
+
github: "hover-loop",
|
|
38
|
+
heart: "click-toggle",
|
|
39
|
+
help: "loop",
|
|
40
|
+
home: "hover",
|
|
41
|
+
infinity: "loop",
|
|
42
|
+
info: "hover",
|
|
43
|
+
instagram: "hover",
|
|
44
|
+
linkedin: "hover-loop",
|
|
45
|
+
loading: "loop",
|
|
46
|
+
loading2: "loop",
|
|
47
|
+
loading3: "loop",
|
|
48
|
+
loading4: "loop",
|
|
49
|
+
lock: "click-toggle",
|
|
50
|
+
mail: "hover",
|
|
51
|
+
maximizeMinimize: "click-toggle",
|
|
52
|
+
maximizeMinimize2: "click-toggle",
|
|
53
|
+
menu: "click-toggle",
|
|
54
|
+
menu2: "click-toggle",
|
|
55
|
+
menu3: "click-toggle",
|
|
56
|
+
menu4: "click-toggle",
|
|
57
|
+
microphone: "click-toggle",
|
|
58
|
+
microphone2: "click-toggle",
|
|
59
|
+
notification: "click-toggle",
|
|
60
|
+
notification2: "click-toggle",
|
|
61
|
+
notification3: "loop",
|
|
62
|
+
notification4: "loop",
|
|
63
|
+
playPause: "click-toggle",
|
|
64
|
+
playPauseCircle: "click-toggle",
|
|
65
|
+
plusToX: "click-toggle",
|
|
66
|
+
pocket: "hover-loop",
|
|
67
|
+
radioButton: "click-toggle",
|
|
68
|
+
refresh: "click-replay",
|
|
69
|
+
scrollDown: "loop",
|
|
70
|
+
searchToX: "click-toggle",
|
|
71
|
+
settings: "hover",
|
|
72
|
+
settings2: "click-toggle",
|
|
73
|
+
share: "hover",
|
|
74
|
+
skipBack: "click-replay",
|
|
75
|
+
skipForward: "click-replay",
|
|
76
|
+
star: "click-toggle",
|
|
77
|
+
thumbUp: "click-toggle",
|
|
78
|
+
toggle: "click-toggle",
|
|
79
|
+
trash: "hover",
|
|
80
|
+
trash2: "hover",
|
|
81
|
+
twitter: "hover-loop",
|
|
82
|
+
userMinus: "hover",
|
|
83
|
+
userPlus: "hover",
|
|
84
|
+
userX: "hover",
|
|
85
|
+
video: "click-toggle",
|
|
86
|
+
video2: "click-toggle",
|
|
87
|
+
visibility: "click-toggle",
|
|
88
|
+
visibility2: "click-toggle",
|
|
89
|
+
visibility3: "click-toggle",
|
|
90
|
+
volume: "click-toggle",
|
|
91
|
+
youtube: "hover",
|
|
92
|
+
youtube2: "hover",
|
|
93
|
+
zoomIn: "hover",
|
|
94
|
+
zoomOut: "hover"
|
|
95
|
+
};
|
|
96
|
+
var fullPlayerIcons = /* @__PURE__ */ new Set(["error", "twitter"]);
|
|
97
|
+
|
|
98
|
+
// src/interactions.ts
|
|
99
|
+
var getInteraction = (key) => (
|
|
100
|
+
// Unknown keys (e.g. custom animations) fall back to replaying on click.
|
|
101
|
+
interactions[key] ?? "click-replay"
|
|
102
|
+
);
|
|
103
|
+
var playToggle = (animation, toEnd) => {
|
|
104
|
+
animation.setDirection(toEnd ? 1 : -1);
|
|
105
|
+
animation.play();
|
|
106
|
+
};
|
|
107
|
+
var replay = (animation) => {
|
|
108
|
+
animation.setDirection(1);
|
|
109
|
+
animation.playSegments([0, animation.totalFrames], true);
|
|
110
|
+
};
|
|
111
|
+
var hoverStart = (animation, interaction) => {
|
|
112
|
+
if (interaction === "hover") animation.setDirection(1);
|
|
113
|
+
animation.play();
|
|
114
|
+
};
|
|
115
|
+
var hoverEnd = (animation, interaction) => {
|
|
116
|
+
if (interaction === "hover") {
|
|
117
|
+
animation.setDirection(-1);
|
|
118
|
+
animation.play();
|
|
119
|
+
} else {
|
|
120
|
+
animation.stop();
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// src/lottie.ts
|
|
125
|
+
var light;
|
|
126
|
+
var full;
|
|
127
|
+
var unwrap = (mod) => mod.default ?? mod;
|
|
128
|
+
var loadLottie = (needsFullPlayer) => {
|
|
129
|
+
if (needsFullPlayer) {
|
|
130
|
+
full ?? (full = import("lottie-web").then(unwrap));
|
|
131
|
+
return full;
|
|
132
|
+
}
|
|
133
|
+
light ?? (light = import("lottie-web/build/player/lottie_light").then(unwrap));
|
|
134
|
+
return light;
|
|
135
|
+
};
|
|
136
|
+
var lottie_default = loadLottie;
|
|
137
|
+
|
|
138
|
+
// src/index.tsx
|
|
139
|
+
var idCounter = 0;
|
|
140
|
+
var UseAnimations = (props) => {
|
|
141
|
+
const {
|
|
142
|
+
animation: { animationData, animationKey },
|
|
143
|
+
interaction: interactionProp,
|
|
144
|
+
reverse = false,
|
|
145
|
+
size = 24,
|
|
146
|
+
speed = 1,
|
|
147
|
+
strokeColor,
|
|
148
|
+
fillColor,
|
|
149
|
+
pathCss,
|
|
150
|
+
loop,
|
|
151
|
+
autoplay,
|
|
152
|
+
wrapperStyle,
|
|
153
|
+
options,
|
|
154
|
+
render,
|
|
155
|
+
style,
|
|
156
|
+
onClick,
|
|
157
|
+
onMouseEnter,
|
|
158
|
+
onMouseLeave,
|
|
159
|
+
...other
|
|
160
|
+
} = props;
|
|
161
|
+
const containerRef = useRef(null);
|
|
162
|
+
const [player, setPlayer] = useState(null);
|
|
163
|
+
const [id] = useState(() => `useanimations-${idCounter += 1}`);
|
|
164
|
+
const atEnd = useRef(false);
|
|
165
|
+
const latest = useRef({ options, speed });
|
|
166
|
+
const interaction = interactionProp ?? getInteraction(animationKey);
|
|
167
|
+
const shouldLoop = loop ?? (interaction === "loop" || interaction === "hover-loop");
|
|
168
|
+
const shouldAutoplay = autoplay ?? interaction === "loop";
|
|
169
|
+
useEffect(() => {
|
|
170
|
+
latest.current = { options, speed };
|
|
171
|
+
});
|
|
172
|
+
useEffect(() => {
|
|
173
|
+
const container = containerRef.current;
|
|
174
|
+
if (!container) return void 0;
|
|
175
|
+
let cancelled = false;
|
|
176
|
+
let instance;
|
|
177
|
+
lottie_default(fullPlayerIcons.has(animationKey)).then((lottie) => {
|
|
178
|
+
if (cancelled) return;
|
|
179
|
+
const { options: custom, speed: initialSpeed } = latest.current;
|
|
180
|
+
instance = lottie.loadAnimation({
|
|
181
|
+
container,
|
|
182
|
+
renderer: "svg",
|
|
183
|
+
animationData,
|
|
184
|
+
loop: shouldLoop,
|
|
185
|
+
autoplay: shouldAutoplay,
|
|
186
|
+
...custom,
|
|
187
|
+
// lottie-web supports `id` (set on the <svg>) but its types don't declare it.
|
|
188
|
+
rendererSettings: {
|
|
189
|
+
progressiveLoad: true,
|
|
190
|
+
...custom?.rendererSettings,
|
|
191
|
+
id
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
instance.setSpeed(initialSpeed);
|
|
195
|
+
atEnd.current = false;
|
|
196
|
+
setPlayer(instance);
|
|
197
|
+
});
|
|
198
|
+
return () => {
|
|
199
|
+
cancelled = true;
|
|
200
|
+
instance?.destroy();
|
|
201
|
+
setPlayer(null);
|
|
202
|
+
};
|
|
203
|
+
}, [animationData, animationKey, shouldLoop, shouldAutoplay, id]);
|
|
204
|
+
useEffect(() => {
|
|
205
|
+
player?.setSpeed(speed);
|
|
206
|
+
}, [player, speed]);
|
|
207
|
+
useEffect(() => {
|
|
208
|
+
if (!player || interaction !== "click-toggle" || reverse === atEnd.current) return;
|
|
209
|
+
atEnd.current = reverse;
|
|
210
|
+
playToggle(player, reverse);
|
|
211
|
+
}, [player, interaction, reverse]);
|
|
212
|
+
useEffect(() => {
|
|
213
|
+
if (!strokeColor && !fillColor && !pathCss) return void 0;
|
|
214
|
+
const sheet = document.createElement("style");
|
|
215
|
+
sheet.textContent = `#${id} path { ${strokeColor ? `stroke: ${strokeColor};` : ""} ${fillColor ? `fill: ${fillColor};` : ""} ${pathCss ?? ""} }`;
|
|
216
|
+
document.head.appendChild(sheet);
|
|
217
|
+
return () => sheet.remove();
|
|
218
|
+
}, [id, strokeColor, fillColor, pathCss]);
|
|
219
|
+
const eventProps = {
|
|
220
|
+
onClick: (event) => {
|
|
221
|
+
onClick?.(event);
|
|
222
|
+
if (!player || event.defaultPrevented) return;
|
|
223
|
+
if (interaction === "click-toggle") {
|
|
224
|
+
atEnd.current = !atEnd.current;
|
|
225
|
+
playToggle(player, atEnd.current);
|
|
226
|
+
} else if (interaction === "click-replay") {
|
|
227
|
+
replay(player);
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
onMouseEnter: (event) => {
|
|
231
|
+
onMouseEnter?.(event);
|
|
232
|
+
if (!player || event.defaultPrevented) return;
|
|
233
|
+
if (interaction === "hover" || interaction === "hover-loop") hoverStart(player, interaction);
|
|
234
|
+
},
|
|
235
|
+
onMouseLeave: (event) => {
|
|
236
|
+
onMouseLeave?.(event);
|
|
237
|
+
if (!player || event.defaultPrevented) return;
|
|
238
|
+
if (interaction === "hover" || interaction === "hover-loop") hoverEnd(player, interaction);
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
const animationProps = {
|
|
242
|
+
...other,
|
|
243
|
+
ref: containerRef,
|
|
244
|
+
style: {
|
|
245
|
+
overflow: "hidden",
|
|
246
|
+
outline: "none",
|
|
247
|
+
width: `${size}px`,
|
|
248
|
+
height: `${size}px`,
|
|
249
|
+
...wrapperStyle,
|
|
250
|
+
...style
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
return render ? render(eventProps, animationProps) : /* @__PURE__ */ React.createElement("div", { ...eventProps, ...animationProps });
|
|
254
|
+
};
|
|
255
|
+
var src_default = UseAnimations;
|
|
256
|
+
export {
|
|
257
|
+
src_default as default
|
|
258
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/lib/activity/index.ts
|
|
21
|
+
var activity_exports = {};
|
|
22
|
+
__export(activity_exports, {
|
|
23
|
+
default: () => activity_default2
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(activity_exports);
|
|
26
|
+
|
|
27
|
+
// src/lib/activity/activity.json
|
|
28
|
+
var activity_default = { v: "5.6.5", fr: 30, ip: 0, op: 40, w: 32, h: 32, nm: "activity", ddd: 0, assets: [], layers: [{ ddd: 0, ind: 1, ty: 4, nm: "activity Outlines", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [16, 16, 0], ix: 2 }, a: { a: 0, k: [12, 12, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ ind: 0, ty: "sh", ix: 1, ks: { a: 0, k: { i: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]], o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]], v: [[12, 0], [6, 0], [3, 9], [-3, -9], [-6, 0], [-12, 0]], c: false }, ix: 2 }, nm: "Path 1", mn: "ADBE Vector Shape - Group", hd: false }, { ty: "tm", s: { a: 1, k: [{ i: { x: [0.667], y: [1] }, o: { x: [0.167], y: [0.167] }, t: 13, s: [100] }, { t: 40, s: [4] }], ix: 1 }, e: { a: 1, k: [{ i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 13, s: [100] }, { t: 40, s: [96] }], ix: 2 }, o: { a: 0, k: 0, ix: 3 }, m: 1, ix: 2, nm: "Trim Paths 1", mn: "ADBE Vector Filter - Trim", hd: false }, { ty: "st", c: { a: 0, k: [0, 0, 0, 1], ix: 3 }, o: { a: 0, k: 100, ix: 4 }, w: { a: 0, k: 2, ix: 5 }, lc: 2, lj: 2, bm: 0, nm: "Stroke 1", mn: "ADBE Vector Graphic - Stroke", hd: false }, { ty: "tr", p: { a: 0, k: [12, 12], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "2", np: 3, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: false }, { ty: "gr", it: [{ ind: 0, ty: "sh", ix: 1, ks: { a: 0, k: { i: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]], o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]], v: [[12, 0], [6, 0], [3, 9], [-3, -9], [-6, 0], [-12, 0]], c: false }, ix: 2 }, nm: "Path 1", mn: "ADBE Vector Shape - Group", hd: false }, { ty: "tm", s: { a: 1, k: [{ i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 0, s: [4] }, { t: 5, s: [0] }], ix: 1 }, e: { a: 1, k: [{ i: { x: [0.833], y: [0.833] }, o: { x: [0.333], y: [0] }, t: 0, s: [96] }, { t: 15, s: [0] }], ix: 2 }, o: { a: 0, k: 0, ix: 3 }, m: 1, ix: 2, nm: "Trim Paths 1", mn: "ADBE Vector Filter - Trim", hd: false }, { ty: "st", c: { a: 0, k: [0, 0, 0, 1], ix: 3 }, o: { a: 0, k: 100, ix: 4 }, w: { a: 0, k: 2, ix: 5 }, lc: 2, lj: 2, bm: 0, nm: "Stroke 1", mn: "ADBE Vector Graphic - Stroke", hd: false }, { ty: "tr", p: { a: 0, k: [12, 12], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "1", np: 3, cix: 2, bm: 0, ix: 2, mn: "ADBE Vector Group", hd: false }], ip: 0, op: 41, st: 0, bm: 0 }], markers: [] };
|
|
29
|
+
|
|
30
|
+
// src/lib/activity/index.ts
|
|
31
|
+
var activity = { animationData: activity_default, animationKey: "activity" };
|
|
32
|
+
var activity_default2 = activity;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// src/lib/activity/activity.json
|
|
2
|
+
var activity_default = { v: "5.6.5", fr: 30, ip: 0, op: 40, w: 32, h: 32, nm: "activity", ddd: 0, assets: [], layers: [{ ddd: 0, ind: 1, ty: 4, nm: "activity Outlines", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [16, 16, 0], ix: 2 }, a: { a: 0, k: [12, 12, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ ind: 0, ty: "sh", ix: 1, ks: { a: 0, k: { i: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]], o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]], v: [[12, 0], [6, 0], [3, 9], [-3, -9], [-6, 0], [-12, 0]], c: false }, ix: 2 }, nm: "Path 1", mn: "ADBE Vector Shape - Group", hd: false }, { ty: "tm", s: { a: 1, k: [{ i: { x: [0.667], y: [1] }, o: { x: [0.167], y: [0.167] }, t: 13, s: [100] }, { t: 40, s: [4] }], ix: 1 }, e: { a: 1, k: [{ i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 13, s: [100] }, { t: 40, s: [96] }], ix: 2 }, o: { a: 0, k: 0, ix: 3 }, m: 1, ix: 2, nm: "Trim Paths 1", mn: "ADBE Vector Filter - Trim", hd: false }, { ty: "st", c: { a: 0, k: [0, 0, 0, 1], ix: 3 }, o: { a: 0, k: 100, ix: 4 }, w: { a: 0, k: 2, ix: 5 }, lc: 2, lj: 2, bm: 0, nm: "Stroke 1", mn: "ADBE Vector Graphic - Stroke", hd: false }, { ty: "tr", p: { a: 0, k: [12, 12], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "2", np: 3, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: false }, { ty: "gr", it: [{ ind: 0, ty: "sh", ix: 1, ks: { a: 0, k: { i: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]], o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]], v: [[12, 0], [6, 0], [3, 9], [-3, -9], [-6, 0], [-12, 0]], c: false }, ix: 2 }, nm: "Path 1", mn: "ADBE Vector Shape - Group", hd: false }, { ty: "tm", s: { a: 1, k: [{ i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 0, s: [4] }, { t: 5, s: [0] }], ix: 1 }, e: { a: 1, k: [{ i: { x: [0.833], y: [0.833] }, o: { x: [0.333], y: [0] }, t: 0, s: [96] }, { t: 15, s: [0] }], ix: 2 }, o: { a: 0, k: 0, ix: 3 }, m: 1, ix: 2, nm: "Trim Paths 1", mn: "ADBE Vector Filter - Trim", hd: false }, { ty: "st", c: { a: 0, k: [0, 0, 0, 1], ix: 3 }, o: { a: 0, k: 100, ix: 4 }, w: { a: 0, k: 2, ix: 5 }, lc: 2, lj: 2, bm: 0, nm: "Stroke 1", mn: "ADBE Vector Graphic - Stroke", hd: false }, { ty: "tr", p: { a: 0, k: [12, 12], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "1", np: 3, cix: 2, bm: 0, ix: 2, mn: "ADBE Vector Group", hd: false }], ip: 0, op: 41, st: 0, bm: 0 }], markers: [] };
|
|
3
|
+
|
|
4
|
+
// src/lib/activity/index.ts
|
|
5
|
+
var activity = { animationData: activity_default, animationKey: "activity" };
|
|
6
|
+
var activity_default2 = activity;
|
|
7
|
+
export {
|
|
8
|
+
activity_default2 as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/lib/airplay/index.ts
|
|
21
|
+
var airplay_exports = {};
|
|
22
|
+
__export(airplay_exports, {
|
|
23
|
+
default: () => airplay_default2
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(airplay_exports);
|
|
26
|
+
|
|
27
|
+
// src/lib/airplay/airplay.json
|
|
28
|
+
var airplay_default = { v: "5.6.5", fr: 30, ip: 0, op: 30, w: 32, h: 32, nm: "airplay", ddd: 0, assets: [], layers: [{ ddd: 0, ind: 1, ty: 4, nm: "airplay Outlines", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [16, 16, 0], ix: 2 }, a: { a: 0, k: [12, 12, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ ind: 0, ty: "sh", ix: 1, ks: { a: 0, k: { i: [[0, 0], [0, 0], [0, 0]], o: [[0, 0], [0, 0], [0, 0]], v: [[0, -3], [5, 3], [-5, 3]], c: true }, ix: 2 }, nm: "Path 1", mn: "ADBE Vector Shape - Group", hd: false }, { ty: "st", c: { a: 0, k: [0, 0, 0, 1], ix: 3 }, o: { a: 0, k: 100, ix: 4 }, w: { a: 0, k: 2, ix: 5 }, lc: 2, lj: 2, bm: 0, nm: "Stroke 1", mn: "ADBE Vector Graphic - Stroke", hd: false }, { ty: "tr", p: { a: 1, k: [{ i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 0, s: [12, 18], to: [0, 0.085], ti: [0, 0.417] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 3, s: [12, 18.509], to: [0, -0.417], ti: [0, 0.085] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 6, s: [12, 15.5], to: [0, -0.085], ti: [0, -0.229] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 10, s: [12, 18], to: [0, 0.229], ti: [0, 0] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 14, s: [12, 16.875], to: [0, 0], ti: [0, -0.188] }, { t: 18, s: [12, 18] }], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "arrow", np: 2, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: false }, { ty: "gr", it: [{ ind: 0, ty: "sh", ix: 1, ks: { a: 0, k: { i: [[0, 0], [0, 0], [0, 1.104], [0, 0], [-1.104, 0], [0, 0], [0, -1.104], [0, 0], [1.104, 0], [0, 0]], o: [[0, 0], [-1.104, 0], [0, 0], [0, -1.104], [0, 0], [1.104, 0], [0, 0], [0, 1.104], [0, 0], [0, 0]], v: [[-7, 7], [-8, 7], [-10, 5], [-10, -5], [-8, -7], [8, -7], [10, -5], [10, 5], [8, 7], [7, 7]], c: false }, ix: 2 }, nm: "Path 1", mn: "ADBE Vector Shape - Group", hd: false }, { ty: "tm", s: { a: 1, k: [{ i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 4, s: [0] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 6, s: [5] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 10, s: [0] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 12, s: [0] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 14, s: [5] }, { t: 18, s: [0] }], ix: 1 }, e: { a: 1, k: [{ i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 4, s: [100] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 6, s: [95] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 10, s: [100] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 12, s: [100] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 14, s: [95] }, { t: 18, s: [100] }], ix: 2 }, o: { a: 0, k: 0, ix: 3 }, m: 1, ix: 2, nm: "Trim Paths 1", mn: "ADBE Vector Filter - Trim", hd: false }, { ty: "st", c: { a: 0, k: [0, 0, 0, 1], ix: 3 }, o: { a: 0, k: 100, ix: 4 }, w: { a: 0, k: 2, ix: 5 }, lc: 2, lj: 2, bm: 0, nm: "Stroke 1", mn: "ADBE Vector Graphic - Stroke", hd: false }, { ty: "tr", p: { a: 0, k: [12, 10], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "monitor", np: 3, cix: 2, bm: 0, ix: 2, mn: "ADBE Vector Group", hd: false }], ip: 0, op: 31, st: 0, bm: 0 }], markers: [] };
|
|
29
|
+
|
|
30
|
+
// src/lib/airplay/index.ts
|
|
31
|
+
var airplay = { animationData: airplay_default, animationKey: "airplay" };
|
|
32
|
+
var airplay_default2 = airplay;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// src/lib/airplay/airplay.json
|
|
2
|
+
var airplay_default = { v: "5.6.5", fr: 30, ip: 0, op: 30, w: 32, h: 32, nm: "airplay", ddd: 0, assets: [], layers: [{ ddd: 0, ind: 1, ty: 4, nm: "airplay Outlines", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [16, 16, 0], ix: 2 }, a: { a: 0, k: [12, 12, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ ind: 0, ty: "sh", ix: 1, ks: { a: 0, k: { i: [[0, 0], [0, 0], [0, 0]], o: [[0, 0], [0, 0], [0, 0]], v: [[0, -3], [5, 3], [-5, 3]], c: true }, ix: 2 }, nm: "Path 1", mn: "ADBE Vector Shape - Group", hd: false }, { ty: "st", c: { a: 0, k: [0, 0, 0, 1], ix: 3 }, o: { a: 0, k: 100, ix: 4 }, w: { a: 0, k: 2, ix: 5 }, lc: 2, lj: 2, bm: 0, nm: "Stroke 1", mn: "ADBE Vector Graphic - Stroke", hd: false }, { ty: "tr", p: { a: 1, k: [{ i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 0, s: [12, 18], to: [0, 0.085], ti: [0, 0.417] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 3, s: [12, 18.509], to: [0, -0.417], ti: [0, 0.085] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 6, s: [12, 15.5], to: [0, -0.085], ti: [0, -0.229] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 10, s: [12, 18], to: [0, 0.229], ti: [0, 0] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 14, s: [12, 16.875], to: [0, 0], ti: [0, -0.188] }, { t: 18, s: [12, 18] }], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "arrow", np: 2, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: false }, { ty: "gr", it: [{ ind: 0, ty: "sh", ix: 1, ks: { a: 0, k: { i: [[0, 0], [0, 0], [0, 1.104], [0, 0], [-1.104, 0], [0, 0], [0, -1.104], [0, 0], [1.104, 0], [0, 0]], o: [[0, 0], [-1.104, 0], [0, 0], [0, -1.104], [0, 0], [1.104, 0], [0, 0], [0, 1.104], [0, 0], [0, 0]], v: [[-7, 7], [-8, 7], [-10, 5], [-10, -5], [-8, -7], [8, -7], [10, -5], [10, 5], [8, 7], [7, 7]], c: false }, ix: 2 }, nm: "Path 1", mn: "ADBE Vector Shape - Group", hd: false }, { ty: "tm", s: { a: 1, k: [{ i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 4, s: [0] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 6, s: [5] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 10, s: [0] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 12, s: [0] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 14, s: [5] }, { t: 18, s: [0] }], ix: 1 }, e: { a: 1, k: [{ i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 4, s: [100] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 6, s: [95] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 10, s: [100] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 12, s: [100] }, { i: { x: [0.833], y: [0.833] }, o: { x: [0.167], y: [0.167] }, t: 14, s: [95] }, { t: 18, s: [100] }], ix: 2 }, o: { a: 0, k: 0, ix: 3 }, m: 1, ix: 2, nm: "Trim Paths 1", mn: "ADBE Vector Filter - Trim", hd: false }, { ty: "st", c: { a: 0, k: [0, 0, 0, 1], ix: 3 }, o: { a: 0, k: 100, ix: 4 }, w: { a: 0, k: 2, ix: 5 }, lc: 2, lj: 2, bm: 0, nm: "Stroke 1", mn: "ADBE Vector Graphic - Stroke", hd: false }, { ty: "tr", p: { a: 0, k: [12, 10], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "monitor", np: 3, cix: 2, bm: 0, ix: 2, mn: "ADBE Vector Group", hd: false }], ip: 0, op: 31, st: 0, bm: 0 }], markers: [] };
|
|
3
|
+
|
|
4
|
+
// src/lib/airplay/index.ts
|
|
5
|
+
var airplay = { animationData: airplay_default, animationKey: "airplay" };
|
|
6
|
+
var airplay_default2 = airplay;
|
|
7
|
+
export {
|
|
8
|
+
airplay_default2 as default
|
|
9
|
+
};
|