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.
- package/LICENSE +30 -0
- package/README.md +155 -0
- package/index.d.mts +144 -0
- package/index.d.ts +136 -11
- package/index.js +279 -188
- package/index.mjs +258 -0
- package/lib/activity/index.d.mts +5 -0
- package/lib/activity/index.d.ts +5 -3
- package/lib/activity/index.js +27 -11
- package/lib/activity/index.mjs +9 -0
- package/lib/airplay/index.d.mts +5 -0
- package/lib/airplay/index.d.ts +5 -3
- package/lib/airplay/index.js +27 -11
- package/lib/airplay/index.mjs +9 -0
- package/lib/alertCircle/index.d.mts +5 -0
- package/lib/alertCircle/index.d.ts +5 -3
- package/lib/alertCircle/index.js +27 -11
- package/lib/alertCircle/index.mjs +9 -0
- package/lib/alertOctagon/index.d.mts +5 -0
- package/lib/alertOctagon/index.d.ts +5 -3
- package/lib/alertOctagon/index.js +27 -11
- package/lib/alertOctagon/index.mjs +9 -0
- package/lib/alertTriangle/index.d.mts +5 -0
- package/lib/alertTriangle/index.d.ts +5 -3
- package/lib/alertTriangle/index.js +27 -11
- package/lib/alertTriangle/index.mjs +9 -0
- package/lib/archive/index.d.mts +5 -0
- package/lib/archive/index.d.ts +5 -3
- package/lib/archive/index.js +27 -11
- package/lib/archive/index.mjs +9 -0
- package/lib/arrowDown/index.d.mts +5 -0
- package/lib/arrowDown/index.d.ts +5 -3
- package/lib/arrowDown/index.js +27 -11
- package/lib/arrowDown/index.mjs +9 -0
- package/lib/arrowDownCircle/index.d.mts +5 -0
- package/lib/arrowDownCircle/index.d.ts +5 -3
- package/lib/arrowDownCircle/index.js +27 -11
- package/lib/arrowDownCircle/index.mjs +9 -0
- package/lib/arrowLeftCircle/index.d.mts +5 -0
- package/lib/arrowLeftCircle/index.d.ts +5 -3
- package/lib/arrowLeftCircle/index.js +27 -11
- package/lib/arrowLeftCircle/index.mjs +9 -0
- package/lib/arrowRightCircle/index.d.mts +5 -0
- package/lib/arrowRightCircle/index.d.ts +5 -3
- package/lib/arrowRightCircle/index.js +27 -11
- package/lib/arrowRightCircle/index.mjs +9 -0
- package/lib/arrowUp/index.d.mts +5 -0
- package/lib/arrowUp/index.d.ts +5 -3
- package/lib/arrowUp/index.js +27 -11
- package/lib/arrowUp/index.mjs +9 -0
- package/lib/arrowUpCircle/index.d.mts +5 -0
- package/lib/arrowUpCircle/index.d.ts +5 -3
- package/lib/arrowUpCircle/index.js +27 -11
- package/lib/arrowUpCircle/index.mjs +9 -0
- package/lib/behance/index.d.mts +5 -0
- package/lib/behance/index.d.ts +5 -3
- package/lib/behance/index.js +27 -11
- package/lib/behance/index.mjs +9 -0
- package/lib/bookmark/index.d.mts +5 -0
- package/lib/bookmark/index.d.ts +5 -3
- package/lib/bookmark/index.js +27 -11
- package/lib/bookmark/index.mjs +9 -0
- package/lib/calendar/index.d.mts +5 -0
- package/lib/calendar/index.d.ts +5 -3
- package/lib/calendar/index.js +27 -11
- package/lib/calendar/index.mjs +9 -0
- package/lib/checkBox/index.d.mts +5 -0
- package/lib/checkBox/index.d.ts +5 -3
- package/lib/checkBox/index.js +27 -11
- package/lib/checkBox/index.mjs +9 -0
- package/lib/checkmark/index.d.mts +5 -0
- package/lib/checkmark/index.d.ts +5 -3
- package/lib/checkmark/index.js +27 -11
- 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 -3
- package/lib/codepen/index.js +27 -11
- package/lib/codepen/index.mjs +9 -0
- package/lib/copy/index.d.mts +5 -0
- package/lib/copy/index.d.ts +5 -3
- package/lib/copy/index.js +27 -11
- package/lib/copy/index.mjs +9 -0
- package/lib/download/index.d.mts +5 -0
- package/lib/download/index.d.ts +5 -3
- package/lib/download/index.js +27 -11
- package/lib/download/index.mjs +9 -0
- package/lib/dribbble/index.d.mts +5 -0
- package/lib/dribbble/index.d.ts +5 -3
- package/lib/dribbble/index.js +27 -11
- package/lib/dribbble/index.mjs +9 -0
- package/lib/edit/index.d.mts +5 -0
- package/lib/edit/index.d.ts +5 -3
- package/lib/edit/index.js +27 -11
- package/lib/edit/index.mjs +9 -0
- package/lib/error/index.d.mts +5 -0
- package/lib/error/index.d.ts +5 -3
- package/lib/error/index.js +27 -11
- package/lib/error/index.mjs +9 -0
- package/lib/explore/index.d.mts +5 -0
- package/lib/explore/index.d.ts +5 -3
- package/lib/explore/index.js +27 -11
- package/lib/explore/index.mjs +9 -0
- package/lib/facebook/index.d.mts +5 -0
- package/lib/facebook/index.d.ts +5 -3
- package/lib/facebook/index.js +27 -11
- 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 -3
- package/lib/folder/index.js +27 -11
- package/lib/folder/index.mjs +9 -0
- package/lib/github/index.d.mts +5 -0
- package/lib/github/index.d.ts +5 -3
- package/lib/github/index.js +27 -11
- package/lib/github/index.mjs +9 -0
- package/lib/heart/index.d.mts +5 -0
- package/lib/heart/index.d.ts +5 -3
- package/lib/heart/index.js +27 -11
- package/lib/heart/index.mjs +9 -0
- package/lib/help/index.d.mts +5 -0
- package/lib/help/index.d.ts +5 -3
- package/lib/help/index.js +27 -11
- package/lib/help/index.mjs +9 -0
- package/lib/home/index.d.mts +5 -0
- package/lib/home/index.d.ts +5 -3
- package/lib/home/index.js +27 -11
- package/lib/home/index.mjs +9 -0
- package/lib/infinity/index.d.mts +5 -0
- package/lib/infinity/index.d.ts +5 -3
- package/lib/infinity/index.js +27 -11
- package/lib/infinity/index.mjs +9 -0
- package/lib/info/index.d.mts +5 -0
- package/lib/info/index.d.ts +5 -3
- package/lib/info/index.js +27 -11
- package/lib/info/index.mjs +9 -0
- package/lib/instagram/index.d.mts +5 -0
- package/lib/instagram/index.d.ts +5 -3
- package/lib/instagram/index.js +27 -11
- package/lib/instagram/index.mjs +9 -0
- package/lib/linkedin/index.d.mts +5 -0
- package/lib/linkedin/index.d.ts +5 -3
- package/lib/linkedin/index.js +27 -11
- package/lib/linkedin/index.mjs +9 -0
- package/lib/loading/index.d.mts +5 -0
- package/lib/loading/index.d.ts +5 -3
- package/lib/loading/index.js +27 -11
- package/lib/loading/index.mjs +9 -0
- package/lib/loading2/index.d.mts +5 -0
- package/lib/loading2/index.d.ts +5 -3
- package/lib/loading2/index.js +27 -11
- package/lib/loading2/index.mjs +9 -0
- package/lib/loading3/index.d.mts +5 -0
- package/lib/loading3/index.d.ts +5 -3
- package/lib/loading3/index.js +27 -11
- 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 -3
- package/lib/lock/index.js +27 -11
- package/lib/lock/index.mjs +9 -0
- package/lib/mail/index.d.mts +5 -0
- package/lib/mail/index.d.ts +5 -3
- package/lib/mail/index.js +27 -11
- package/lib/mail/index.mjs +9 -0
- package/lib/maximizeMinimize/index.d.mts +5 -0
- package/lib/maximizeMinimize/index.d.ts +5 -3
- package/lib/maximizeMinimize/index.js +27 -11
- package/lib/maximizeMinimize/index.mjs +9 -0
- package/lib/maximizeMinimize2/index.d.mts +5 -0
- package/lib/maximizeMinimize2/index.d.ts +5 -3
- package/lib/maximizeMinimize2/index.js +27 -11
- package/lib/maximizeMinimize2/index.mjs +9 -0
- package/lib/menu/index.d.mts +5 -0
- package/lib/menu/index.d.ts +5 -3
- package/lib/menu/index.js +27 -11
- package/lib/menu/index.mjs +9 -0
- package/lib/menu2/index.d.mts +5 -0
- package/lib/menu2/index.d.ts +5 -3
- package/lib/menu2/index.js +27 -11
- package/lib/menu2/index.mjs +9 -0
- package/lib/menu3/index.d.mts +5 -0
- package/lib/menu3/index.d.ts +5 -3
- package/lib/menu3/index.js +27 -11
- package/lib/menu3/index.mjs +9 -0
- package/lib/menu4/index.d.mts +5 -0
- package/lib/menu4/index.d.ts +5 -3
- package/lib/menu4/index.js +27 -11
- package/lib/menu4/index.mjs +9 -0
- package/lib/microphone/index.d.mts +5 -0
- package/lib/microphone/index.d.ts +5 -3
- package/lib/microphone/index.js +27 -11
- package/lib/microphone/index.mjs +9 -0
- package/lib/microphone2/index.d.mts +5 -0
- package/lib/microphone2/index.d.ts +5 -3
- package/lib/microphone2/index.js +27 -11
- package/lib/microphone2/index.mjs +9 -0
- package/lib/notification/index.d.mts +5 -0
- package/lib/notification/index.d.ts +5 -3
- package/lib/notification/index.js +27 -11
- package/lib/notification/index.mjs +9 -0
- package/lib/notification2/index.d.mts +5 -0
- package/lib/notification2/index.d.ts +5 -3
- package/lib/notification2/index.js +27 -11
- 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 -3
- package/lib/playPause/index.js +27 -11
- package/lib/playPause/index.mjs +9 -0
- package/lib/playPauseCircle/index.d.mts +5 -0
- package/lib/playPauseCircle/index.d.ts +5 -3
- package/lib/playPauseCircle/index.js +27 -11
- package/lib/playPauseCircle/index.mjs +9 -0
- package/lib/plusToX/index.d.mts +5 -0
- package/lib/plusToX/index.d.ts +5 -3
- package/lib/plusToX/index.js +27 -11
- package/lib/plusToX/index.mjs +9 -0
- package/lib/pocket/index.d.mts +5 -0
- package/lib/pocket/index.d.ts +5 -3
- package/lib/pocket/index.js +27 -11
- package/lib/pocket/index.mjs +9 -0
- package/lib/radioButton/index.d.mts +5 -0
- package/lib/radioButton/index.d.ts +5 -3
- package/lib/radioButton/index.js +27 -11
- 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 -3
- package/lib/scrollDown/index.js +27 -11
- package/lib/scrollDown/index.mjs +9 -0
- package/lib/searchToX/index.d.mts +5 -0
- package/lib/searchToX/index.d.ts +5 -3
- package/lib/searchToX/index.js +27 -11
- package/lib/searchToX/index.mjs +9 -0
- package/lib/settings/index.d.mts +5 -0
- package/lib/settings/index.d.ts +5 -3
- package/lib/settings/index.js +27 -11
- package/lib/settings/index.mjs +9 -0
- package/lib/settings2/index.d.mts +5 -0
- package/lib/settings2/index.d.ts +5 -3
- package/lib/settings2/index.js +27 -11
- package/lib/settings2/index.mjs +9 -0
- package/lib/share/index.d.mts +5 -0
- package/lib/share/index.d.ts +5 -3
- package/lib/share/index.js +27 -11
- package/lib/share/index.mjs +9 -0
- package/lib/skipBack/index.d.mts +5 -0
- package/lib/skipBack/index.d.ts +5 -3
- package/lib/skipBack/index.js +27 -11
- package/lib/skipBack/index.mjs +9 -0
- package/lib/skipForward/index.d.mts +5 -0
- package/lib/skipForward/index.d.ts +5 -3
- package/lib/skipForward/index.js +27 -11
- package/lib/skipForward/index.mjs +9 -0
- package/lib/star/index.d.mts +5 -0
- package/lib/star/index.d.ts +5 -3
- package/lib/star/index.js +27 -11
- package/lib/star/index.mjs +9 -0
- package/lib/thumbUp/index.d.mts +5 -0
- package/lib/thumbUp/index.d.ts +5 -3
- package/lib/thumbUp/index.js +27 -11
- package/lib/thumbUp/index.mjs +9 -0
- package/lib/toggle/index.d.mts +5 -0
- package/lib/toggle/index.d.ts +5 -3
- package/lib/toggle/index.js +27 -11
- package/lib/toggle/index.mjs +9 -0
- package/lib/trash/index.d.mts +5 -0
- package/lib/trash/index.d.ts +5 -3
- package/lib/trash/index.js +27 -11
- package/lib/trash/index.mjs +9 -0
- package/lib/trash2/index.d.mts +5 -0
- package/lib/trash2/index.d.ts +5 -3
- package/lib/trash2/index.js +27 -11
- package/lib/trash2/index.mjs +9 -0
- package/lib/twitter/index.d.mts +5 -0
- package/lib/twitter/index.d.ts +5 -3
- package/lib/twitter/index.js +27 -11
- package/lib/twitter/index.mjs +9 -0
- package/lib/userMinus/index.d.mts +5 -0
- package/lib/userMinus/index.d.ts +5 -3
- package/lib/userMinus/index.js +27 -11
- package/lib/userMinus/index.mjs +9 -0
- package/lib/userPlus/index.d.mts +5 -0
- package/lib/userPlus/index.d.ts +5 -3
- package/lib/userPlus/index.js +27 -11
- package/lib/userPlus/index.mjs +9 -0
- package/lib/userX/index.d.mts +5 -0
- package/lib/userX/index.d.ts +5 -3
- package/lib/userX/index.js +27 -11
- package/lib/userX/index.mjs +9 -0
- package/lib/video/index.d.mts +5 -0
- package/lib/video/index.d.ts +5 -3
- package/lib/video/index.js +27 -11
- package/lib/video/index.mjs +9 -0
- package/lib/video2/index.d.mts +5 -0
- package/lib/video2/index.d.ts +5 -3
- package/lib/video2/index.js +27 -11
- package/lib/video2/index.mjs +9 -0
- package/lib/visibility/index.d.mts +5 -0
- package/lib/visibility/index.d.ts +5 -3
- package/lib/visibility/index.js +27 -11
- package/lib/visibility/index.mjs +9 -0
- package/lib/visibility2/index.d.mts +5 -0
- package/lib/visibility2/index.d.ts +5 -3
- package/lib/visibility2/index.js +27 -11
- 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 -3
- package/lib/volume/index.js +27 -11
- package/lib/volume/index.mjs +9 -0
- package/lib/youtube/index.d.mts +5 -0
- package/lib/youtube/index.d.ts +5 -3
- package/lib/youtube/index.js +27 -11
- package/lib/youtube/index.mjs +9 -0
- package/lib/youtube2/index.d.mts +5 -0
- package/lib/youtube2/index.d.ts +5 -3
- package/lib/youtube2/index.js +27 -11
- package/lib/youtube2/index.mjs +9 -0
- package/lib/zoomIn/index.d.mts +5 -0
- package/lib/zoomIn/index.d.ts +5 -3
- package/lib/zoomIn/index.js +27 -11
- package/lib/zoomIn/index.mjs +9 -0
- package/lib/zoomOut/index.d.mts +5 -0
- package/lib/zoomOut/index.d.ts +5 -3
- package/lib/zoomOut/index.js +27 -11
- package/lib/zoomOut/index.mjs +9 -0
- package/package.json +55 -68
- package/bin/addAnimationFiles.sh +0 -28
- package/bin/generateStories.sh +0 -34
- package/lib/activity/activity.json +0 -1
- package/lib/airplay/airplay.json +0 -1
- package/lib/alertCircle/alertCircle.json +0 -1
- package/lib/alertOctagon/alertOctagon.json +0 -1
- package/lib/alertTriangle/alertTriangle.json +0 -1
- package/lib/archive/archive.json +0 -1
- package/lib/arrowDown/arrowDown.json +0 -1
- package/lib/arrowDownCircle/arrowDownCircle.json +0 -1
- package/lib/arrowLeftCircle/arrowLeftCircle.json +0 -1
- package/lib/arrowRightCircle/arrowRightCircle.json +0 -1
- package/lib/arrowUp/arrowUp.json +0 -1
- package/lib/arrowUpCircle/arrowUpCircle.json +0 -1
- package/lib/behance/behance.json +0 -1
- package/lib/bookmark/bookmark.json +0 -1
- package/lib/calendar/calendar.json +0 -1
- package/lib/checkBox/checkBox.json +0 -1
- package/lib/checkmark/checkmark.json +0 -1
- package/lib/codepen/codepen.json +0 -1
- package/lib/copy/copy.json +0 -1
- package/lib/download/download.json +0 -1
- package/lib/dribbble/dribbble.json +0 -1
- package/lib/edit/edit.json +0 -1
- package/lib/error/error.json +0 -1
- package/lib/explore/explore.json +0 -1
- package/lib/facebook/facebook.json +0 -1
- package/lib/folder/folder.json +0 -1
- package/lib/github/github.json +0 -1
- package/lib/heart/heart.json +0 -1
- package/lib/help/help.json +0 -1
- package/lib/home/home.json +0 -1
- package/lib/infinity/infinity.json +0 -1
- package/lib/info/info.json +0 -1
- package/lib/instagram/instagram.json +0 -1
- package/lib/linkedin/linkedin.json +0 -1
- package/lib/loading/loading.json +0 -1
- package/lib/loading2/loading2.json +0 -1
- package/lib/loading3/loading3.json +0 -1
- package/lib/lock/lock.json +0 -1
- package/lib/mail/mail.json +0 -1
- package/lib/maximizeMinimize/maximizeMinimize.json +0 -1
- package/lib/maximizeMinimize2/maximizeMinimize2.json +0 -1
- package/lib/menu/menu.json +0 -1
- package/lib/menu2/menu2.json +0 -1
- package/lib/menu3/menu3.json +0 -1
- package/lib/menu4/menu4.json +0 -1
- package/lib/microphone/microphone.json +0 -1
- package/lib/microphone2/microphone2.json +0 -1
- package/lib/notification/notification.json +0 -1
- package/lib/notification2/notification2.json +0 -1
- package/lib/playPause/playPause.json +0 -1
- package/lib/playPauseCircle/playPauseCircle.json +0 -1
- package/lib/plusToX/plusToX.json +0 -1
- package/lib/pocket/pocket.json +0 -1
- package/lib/radioButton/radioButton.json +0 -1
- package/lib/scrollDown/scrollDown.json +0 -1
- package/lib/searchToX/searchToX.json +0 -1
- package/lib/settings/settings.json +0 -1
- package/lib/settings2/settings2.json +0 -1
- package/lib/share/share.json +0 -1
- package/lib/skipBack/skipBack.json +0 -1
- package/lib/skipForward/skipForward.json +0 -1
- package/lib/star/star.json +0 -1
- package/lib/thumbUp/thumbUp.json +0 -1
- package/lib/toggle/toggle.json +0 -1
- package/lib/trash/trash.json +0 -1
- package/lib/trash2/trash2.json +0 -1
- package/lib/twitter/twitter.json +0 -1
- package/lib/userMinus/userMinus.json +0 -1
- package/lib/userPlus/userPlus.json +0 -1
- package/lib/userX/userX.json +0 -1
- package/lib/video/video.json +0 -1
- package/lib/video2/video2.json +0 -1
- package/lib/visibility/visibility.json +0 -1
- package/lib/visibility2/visibility2.json +0 -1
- package/lib/volume/volume.json +0 -1
- package/lib/youtube/youtube.json +0 -1
- package/lib/youtube2/youtube2.json +0 -1
- package/lib/zoomIn/zoomIn.json +0 -1
- package/lib/zoomOut/zoomOut.json +0 -1
- package/stories/controlled.stories.d.ts +0 -60
- package/stories/controlled.stories.js +0 -231
- package/stories/generated.stories.d.ts +0 -20
- package/stories/generated.stories.js +0 -977
- package/stories/variants.stories.d.ts +0 -70
- package/stories/variants.stories.js +0 -196
- package/typings.d.ts +0 -6
- package/utils/constants.d.ts +0 -6
- package/utils/constants.js +0 -1
- package/utils/getEffect.d.ts +0 -3
- package/utils/getEffect.js +0 -94
- package/utils/getEvents.d.ts +0 -12
- package/utils/getEvents.js +0 -96
- package/utils/index.d.ts +0 -3
- package/utils/index.js +0 -23
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
"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
|
|
7
|
-
});
|
|
8
|
-
exports.ChangingPathCss = exports.ChangingFillColor = exports.ChangingStrokeColor = exports.RadioButton = exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _addonInfo = require("@storybook/addon-info");
|
|
13
|
-
|
|
14
|
-
var _radioButton = _interopRequireDefault(require("../lib/radioButton"));
|
|
15
|
-
|
|
16
|
-
var _star = _interopRequireDefault(require("../lib/star"));
|
|
17
|
-
|
|
18
|
-
var _ = _interopRequireDefault(require(".."));
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
23
|
-
|
|
24
|
-
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; }
|
|
25
|
-
|
|
26
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27
|
-
|
|
28
|
-
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."); }
|
|
29
|
-
|
|
30
|
-
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); }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
|
-
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; }
|
|
35
|
-
|
|
36
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
|
-
|
|
38
|
-
// ANIMATIONS WITH CLICK PLAY & BACKWARDS WILL HAVE REVERSE FUNCITONALITY FOR STATE MNG
|
|
39
|
-
var _default = {
|
|
40
|
-
title: 'Controlled State',
|
|
41
|
-
component: _["default"],
|
|
42
|
-
decorators: [_addonInfo.withInfo]
|
|
43
|
-
};
|
|
44
|
-
exports["default"] = _default;
|
|
45
|
-
|
|
46
|
-
var RadioButton = function RadioButton() {
|
|
47
|
-
var _useState = (0, _react.useState)(true),
|
|
48
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
49
|
-
checked = _useState2[0],
|
|
50
|
-
setChecked = _useState2[1];
|
|
51
|
-
|
|
52
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
53
|
-
style: {
|
|
54
|
-
display: 'flex',
|
|
55
|
-
flexWrap: 'wrap'
|
|
56
|
-
}
|
|
57
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
58
|
-
style: {
|
|
59
|
-
padding: '20px'
|
|
60
|
-
}
|
|
61
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "radioButton"), /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
62
|
-
reverse: checked,
|
|
63
|
-
onClick: function onClick() {
|
|
64
|
-
setChecked(!checked);
|
|
65
|
-
},
|
|
66
|
-
size: 40,
|
|
67
|
-
wrapperStyle: {
|
|
68
|
-
marginTop: '5px'
|
|
69
|
-
},
|
|
70
|
-
animation: _radioButton["default"]
|
|
71
|
-
})));
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
exports.RadioButton = RadioButton;
|
|
75
|
-
RadioButton.story = {
|
|
76
|
-
parameters: {
|
|
77
|
-
info: {
|
|
78
|
-
text: "\n ~~~js\n export const RadioButton = () => {\n const [checked, setChecked] = useState(true);\n \n return (\n <div style={{ display: 'flex', flexWrap: 'wrap' }}>\n <div style={{ padding: '20px' }}>\n <span>radioButton</span>\n <UseAnimation\n reverse={checked}\n onClick={() => {\n setChecked(!checked);\n }}\n size={40}\n wrapperStyle={{ marginTop: '5px' }}\n animation={radioButton}\n />\n </div>\n </div>\n );\n };\n ~~~\n "
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
var ChangingStrokeColor = function ChangingStrokeColor() {
|
|
84
|
-
var _useState3 = (0, _react.useState)('black'),
|
|
85
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
86
|
-
strokeColor = _useState4[0],
|
|
87
|
-
setStrokeColor = _useState4[1];
|
|
88
|
-
|
|
89
|
-
var handleButtonOnClick = function handleButtonOnClick() {
|
|
90
|
-
return strokeColor === 'black' ? setStrokeColor('red') : setStrokeColor('black');
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
94
|
-
style: {
|
|
95
|
-
display: 'flex',
|
|
96
|
-
flexWrap: 'wrap',
|
|
97
|
-
flexDirection: 'column'
|
|
98
|
-
}
|
|
99
|
-
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
100
|
-
type: "button",
|
|
101
|
-
onClick: handleButtonOnClick,
|
|
102
|
-
style: {
|
|
103
|
-
width: 100,
|
|
104
|
-
height: 50
|
|
105
|
-
}
|
|
106
|
-
}, "Change Stroke Color"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
107
|
-
style: {
|
|
108
|
-
padding: '20px'
|
|
109
|
-
}
|
|
110
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "star"), /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
111
|
-
pathCss: "fill: pink",
|
|
112
|
-
strokeColor: strokeColor,
|
|
113
|
-
size: 40,
|
|
114
|
-
wrapperStyle: {
|
|
115
|
-
marginTop: '5px'
|
|
116
|
-
},
|
|
117
|
-
animation: _star["default"]
|
|
118
|
-
})));
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
exports.ChangingStrokeColor = ChangingStrokeColor;
|
|
122
|
-
ChangingStrokeColor.story = {
|
|
123
|
-
parameters: {
|
|
124
|
-
info: {
|
|
125
|
-
text: "\n ~~~js\n export const ChangingStrokeColor = () => {\n const [strokeColor, setStrokeColor] = useState('black');\n \n const handleButtonOnClick = () =>\n strokeColor === 'black' ? setStrokeColor('red') : setStrokeColor('black');\n \n return (\n <div style={{ display: 'flex', flexWrap: 'wrap', flexDirection: 'column' }}>\n <button type=\"button\" onClick={handleButtonOnClick} style={{ width: 100, height: 50 }}>\n Change Stroke Color\n </button>\n <div style={{ padding: '20px' }}>\n <span>star</span>\n <UseAnimation\n strokeColor={strokeColor}\n size={40}\n wrapperStyle={{ marginTop: '5px' }}\n animation={star}\n />\n </div>\n </div>\n );\n };\n ~~~\n "
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
var ChangingFillColor = function ChangingFillColor() {
|
|
131
|
-
var _useState5 = (0, _react.useState)('black'),
|
|
132
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
133
|
-
fillColor = _useState6[0],
|
|
134
|
-
setFillColor = _useState6[1];
|
|
135
|
-
|
|
136
|
-
var handleButtonOnClick = function handleButtonOnClick() {
|
|
137
|
-
return fillColor === 'black' ? setFillColor('red') : setFillColor('black');
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
|
-
style: {
|
|
142
|
-
display: 'flex',
|
|
143
|
-
flexWrap: 'wrap',
|
|
144
|
-
flexDirection: 'column'
|
|
145
|
-
}
|
|
146
|
-
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
147
|
-
type: "button",
|
|
148
|
-
onClick: handleButtonOnClick,
|
|
149
|
-
style: {
|
|
150
|
-
width: 100,
|
|
151
|
-
height: 50
|
|
152
|
-
}
|
|
153
|
-
}, "Change Fill Color"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
|
-
style: {
|
|
155
|
-
padding: '20px'
|
|
156
|
-
}
|
|
157
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "star"), /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
158
|
-
fillColor: fillColor,
|
|
159
|
-
size: 40,
|
|
160
|
-
wrapperStyle: {
|
|
161
|
-
marginTop: '5px'
|
|
162
|
-
},
|
|
163
|
-
animation: _star["default"]
|
|
164
|
-
})));
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
exports.ChangingFillColor = ChangingFillColor;
|
|
168
|
-
ChangingFillColor.story = {
|
|
169
|
-
parameters: {
|
|
170
|
-
info: {
|
|
171
|
-
text: "\n ~~~js\n export const ChangingFillColor = () => {\n const [fillColor, setFillColor] = useState('black');\n \n const handleButtonOnClick = () =>\n fillColor === 'black' ? setFillColor('red') : setFillColor('black');\n \n return (\n <div style={{ display: 'flex', flexWrap: 'wrap', flexDirection: 'column' }}>\n <button type=\"button\" onClick={handleButtonOnClick} style={{ width: 100, height: 50 }}>\n Change Fill Color\n </button>\n <div style={{ padding: '20px' }}>\n <span>star</span>\n <UseAnimation\n fillColor={fillColor}\n size={40}\n wrapperStyle={{ marginTop: '5px' }}\n animation={star}\n />\n </div>\n </div>\n );\n };\n ~~~\n "
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
var ChangingPathCss = function ChangingPathCss() {
|
|
177
|
-
var defaultCssPath = 'fill: red; stroke: blue;';
|
|
178
|
-
|
|
179
|
-
var _useState7 = (0, _react.useState)(defaultCssPath),
|
|
180
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
181
|
-
pathCss = _useState8[0],
|
|
182
|
-
setPathCss = _useState8[1];
|
|
183
|
-
|
|
184
|
-
var handleButtonOnClick = function handleButtonOnClick() {
|
|
185
|
-
return pathCss === defaultCssPath ? setPathCss('fill: blue; stroke: red;') : setPathCss(defaultCssPath);
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
189
|
-
style: {
|
|
190
|
-
display: 'flex',
|
|
191
|
-
flexWrap: 'wrap',
|
|
192
|
-
flexDirection: 'column'
|
|
193
|
-
}
|
|
194
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
195
|
-
style: {
|
|
196
|
-
display: 'flex',
|
|
197
|
-
alignItems: 'center'
|
|
198
|
-
}
|
|
199
|
-
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
200
|
-
type: "button",
|
|
201
|
-
onClick: handleButtonOnClick,
|
|
202
|
-
style: {
|
|
203
|
-
width: 100,
|
|
204
|
-
height: 50
|
|
205
|
-
}
|
|
206
|
-
}, "Change Path Css"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
207
|
-
style: {
|
|
208
|
-
marginLeft: '20px'
|
|
209
|
-
}
|
|
210
|
-
}, "After changing, click the star back & forth to see the fill & stroke change taking an effect")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
211
|
-
style: {
|
|
212
|
-
padding: '20px'
|
|
213
|
-
}
|
|
214
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "star"), /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
215
|
-
pathCss: pathCss,
|
|
216
|
-
size: 40,
|
|
217
|
-
wrapperStyle: {
|
|
218
|
-
marginTop: '5px'
|
|
219
|
-
},
|
|
220
|
-
animation: _star["default"]
|
|
221
|
-
})));
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
exports.ChangingPathCss = ChangingPathCss;
|
|
225
|
-
ChangingPathCss.story = {
|
|
226
|
-
parameters: {
|
|
227
|
-
info: {
|
|
228
|
-
text: "\n ~~~js\n export const ChangingPathCss = () => {\n const defaultCssPath = 'fill: red; stroke: blue;';\n const [pathCss, setPathCss] = useState(defaultCssPath);\n \n const handleButtonOnClick = () =>\n pathCss === defaultCssPath\n ? setPathCss('fill: blue; stroke: red;')\n : setPathCss(defaultCssPath);\n \n return (\n <div style={{ display: 'flex', flexWrap: 'wrap', flexDirection: 'column' }}>\n <div style={{ display: 'flex', alignItems: 'center' }}>\n <button type=\"button\" onClick={handleButtonOnClick} style={{ width: 100, height: 50 }}>\n Change Path Css\n </button>\n <span style={{ marginLeft: '20px' }}>\n After changing, click the star back & forth to see the fill & stroke change taking an\n effect\n </span>\n </div>\n <div style={{ padding: '20px' }}>\n <span>star</span>\n <UseAnimation\n pathCss={pathCss}\n size={40}\n wrapperStyle={{ marginTop: '5px' }}\n animation={star}\n />\n </div>\n </div>\n );\n };\n ~~~\n "
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: React.FC<{
|
|
5
|
-
animation: import("../utils").Animation;
|
|
6
|
-
reverse?: boolean | undefined;
|
|
7
|
-
strokeColor?: string | undefined;
|
|
8
|
-
fillColor?: string | undefined;
|
|
9
|
-
pathCss?: string | undefined;
|
|
10
|
-
options?: Partial<import("lottie-web").AnimationConfig> | undefined;
|
|
11
|
-
size?: number | undefined;
|
|
12
|
-
loop?: number | boolean | undefined;
|
|
13
|
-
autoplay?: boolean | undefined;
|
|
14
|
-
speed?: number | undefined;
|
|
15
|
-
wrapperStyle?: React.CSSProperties | undefined;
|
|
16
|
-
render?: ((eventProps: any, animationProps: any) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>) | undefined;
|
|
17
|
-
} & React.HTMLProps<HTMLDivElement>>;
|
|
18
|
-
};
|
|
19
|
-
export default _default;
|
|
20
|
-
export declare const All: () => JSX.Element;
|