react-useanimations 2.10.0 → 3.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +30 -0
- package/README.md +157 -0
- package/index.d.mts +356 -0
- package/index.d.ts +348 -11
- package/index.js +496 -188
- package/index.mjs +475 -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/alignCenter/index.d.mts +5 -0
- package/lib/alignCenter/index.d.ts +5 -0
- package/lib/alignCenter/index.js +32 -0
- package/lib/alignCenter/index.mjs +9 -0
- package/lib/alignJustify/index.d.mts +5 -0
- package/lib/alignJustify/index.d.ts +5 -0
- package/lib/alignJustify/index.js +32 -0
- package/lib/alignJustify/index.mjs +9 -0
- package/lib/alignLeft/index.d.mts +5 -0
- package/lib/alignLeft/index.d.ts +5 -0
- package/lib/alignLeft/index.js +32 -0
- package/lib/alignLeft/index.mjs +9 -0
- package/lib/alignRight/index.d.mts +5 -0
- package/lib/alignRight/index.d.ts +5 -0
- package/lib/alignRight/index.js +32 -0
- package/lib/alignRight/index.mjs +9 -0
- package/lib/anchor/index.d.mts +5 -0
- package/lib/anchor/index.d.ts +5 -0
- package/lib/anchor/index.js +32 -0
- package/lib/anchor/index.mjs +9 -0
- package/lib/aperture/index.d.mts +5 -0
- package/lib/aperture/index.d.ts +5 -0
- package/lib/aperture/index.js +32 -0
- package/lib/aperture/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/arrowDownLeft/index.d.mts +5 -0
- package/lib/arrowDownLeft/index.d.ts +5 -0
- package/lib/arrowDownLeft/index.js +32 -0
- package/lib/arrowDownLeft/index.mjs +9 -0
- package/lib/arrowDownRight/index.d.mts +5 -0
- package/lib/arrowDownRight/index.d.ts +5 -0
- package/lib/arrowDownRight/index.js +32 -0
- package/lib/arrowDownRight/index.mjs +9 -0
- package/lib/arrowLeft/index.d.mts +5 -0
- package/lib/arrowLeft/index.d.ts +5 -0
- package/lib/arrowLeft/index.js +32 -0
- package/lib/arrowLeft/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/arrowRight/index.d.mts +5 -0
- package/lib/arrowRight/index.d.ts +5 -0
- package/lib/arrowRight/index.js +32 -0
- package/lib/arrowRight/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/arrowUpLeft/index.d.mts +5 -0
- package/lib/arrowUpLeft/index.d.ts +5 -0
- package/lib/arrowUpLeft/index.js +32 -0
- package/lib/arrowUpLeft/index.mjs +9 -0
- package/lib/arrowUpRight/index.d.mts +5 -0
- package/lib/arrowUpRight/index.d.ts +5 -0
- package/lib/arrowUpRight/index.js +32 -0
- package/lib/arrowUpRight/index.mjs +9 -0
- package/lib/atSign/index.d.mts +5 -0
- package/lib/atSign/index.d.ts +5 -0
- package/lib/atSign/index.js +32 -0
- package/lib/atSign/index.mjs +9 -0
- package/lib/award/index.d.mts +5 -0
- package/lib/award/index.d.ts +5 -0
- package/lib/award/index.js +32 -0
- package/lib/award/index.mjs +9 -0
- package/lib/barChart/index.d.mts +5 -0
- package/lib/barChart/index.d.ts +5 -0
- package/lib/barChart/index.js +32 -0
- package/lib/barChart/index.mjs +9 -0
- package/lib/barChart2/index.d.mts +5 -0
- package/lib/barChart2/index.d.ts +5 -0
- package/lib/barChart2/index.js +32 -0
- package/lib/barChart2/index.mjs +9 -0
- package/lib/battery/index.d.mts +5 -0
- package/lib/battery/index.d.ts +5 -0
- package/lib/battery/index.js +32 -0
- package/lib/battery/index.mjs +9 -0
- package/lib/batteryCharging/index.d.mts +5 -0
- package/lib/batteryCharging/index.d.ts +5 -0
- package/lib/batteryCharging/index.js +32 -0
- package/lib/batteryCharging/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/bluetooth/index.d.mts +5 -0
- package/lib/bluetooth/index.d.ts +5 -0
- package/lib/bluetooth/index.js +32 -0
- package/lib/bluetooth/index.mjs +9 -0
- package/lib/bold/index.d.mts +5 -0
- package/lib/bold/index.d.ts +5 -0
- package/lib/bold/index.js +32 -0
- package/lib/bold/index.mjs +9 -0
- package/lib/book/index.d.mts +5 -0
- package/lib/book/index.d.ts +5 -0
- package/lib/book/index.js +32 -0
- package/lib/book/index.mjs +9 -0
- package/lib/bookOpen/index.d.mts +5 -0
- package/lib/bookOpen/index.d.ts +5 -0
- package/lib/bookOpen/index.js +32 -0
- package/lib/bookOpen/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/box/index.d.mts +5 -0
- package/lib/box/index.d.ts +5 -0
- package/lib/box/index.js +32 -0
- package/lib/box/index.mjs +9 -0
- package/lib/briefcase/index.d.mts +5 -0
- package/lib/briefcase/index.d.ts +5 -0
- package/lib/briefcase/index.js +32 -0
- package/lib/briefcase/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/camera/index.d.mts +5 -0
- package/lib/camera/index.d.ts +5 -0
- package/lib/camera/index.js +32 -0
- package/lib/camera/index.mjs +9 -0
- package/lib/cameraOff/index.d.mts +5 -0
- package/lib/cameraOff/index.d.ts +5 -0
- package/lib/cameraOff/index.js +32 -0
- package/lib/cameraOff/index.mjs +9 -0
- package/lib/cast/index.d.mts +5 -0
- package/lib/cast/index.d.ts +5 -0
- package/lib/cast/index.js +32 -0
- package/lib/cast/index.mjs +9 -0
- package/lib/check/index.d.mts +5 -0
- package/lib/check/index.d.ts +5 -0
- package/lib/check/index.js +32 -0
- package/lib/check/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/checkCircle/index.d.mts +5 -0
- package/lib/checkCircle/index.d.ts +5 -0
- package/lib/checkCircle/index.js +32 -0
- package/lib/checkCircle/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/chevronDown/index.d.mts +5 -0
- package/lib/chevronDown/index.d.ts +5 -0
- package/lib/chevronDown/index.js +32 -0
- package/lib/chevronDown/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/chevronUp/index.d.mts +5 -0
- package/lib/chevronUp/index.d.ts +5 -0
- package/lib/chevronUp/index.js +32 -0
- package/lib/chevronUp/index.mjs +9 -0
- package/lib/chevronsDown/index.d.mts +5 -0
- package/lib/chevronsDown/index.d.ts +5 -0
- package/lib/chevronsDown/index.js +32 -0
- package/lib/chevronsDown/index.mjs +9 -0
- package/lib/chevronsLeft/index.d.mts +5 -0
- package/lib/chevronsLeft/index.d.ts +5 -0
- package/lib/chevronsLeft/index.js +32 -0
- package/lib/chevronsLeft/index.mjs +9 -0
- package/lib/chevronsRight/index.d.mts +5 -0
- package/lib/chevronsRight/index.d.ts +5 -0
- package/lib/chevronsRight/index.js +32 -0
- package/lib/chevronsRight/index.mjs +9 -0
- package/lib/chevronsUp/index.d.mts +5 -0
- package/lib/chevronsUp/index.d.ts +5 -0
- package/lib/chevronsUp/index.js +32 -0
- package/lib/chevronsUp/index.mjs +9 -0
- package/lib/chrome/index.d.mts +5 -0
- package/lib/chrome/index.d.ts +5 -0
- package/lib/chrome/index.js +32 -0
- package/lib/chrome/index.mjs +9 -0
- package/lib/circle/index.d.mts +5 -0
- package/lib/circle/index.d.ts +5 -0
- package/lib/circle/index.js +32 -0
- package/lib/circle/index.mjs +9 -0
- package/lib/clipboard/index.d.mts +5 -0
- package/lib/clipboard/index.d.ts +5 -0
- package/lib/clipboard/index.js +32 -0
- package/lib/clipboard/index.mjs +9 -0
- package/lib/clock/index.d.mts +5 -0
- package/lib/clock/index.d.ts +5 -0
- package/lib/clock/index.js +32 -0
- package/lib/clock/index.mjs +9 -0
- package/lib/cloud/index.d.mts +5 -0
- package/lib/cloud/index.d.ts +5 -0
- package/lib/cloud/index.js +32 -0
- package/lib/cloud/index.mjs +9 -0
- package/lib/cloudDrizzle/index.d.mts +5 -0
- package/lib/cloudDrizzle/index.d.ts +5 -0
- package/lib/cloudDrizzle/index.js +32 -0
- package/lib/cloudDrizzle/index.mjs +9 -0
- package/lib/cloudLightning/index.d.mts +5 -0
- package/lib/cloudLightning/index.d.ts +5 -0
- package/lib/cloudLightning/index.js +32 -0
- package/lib/cloudLightning/index.mjs +9 -0
- package/lib/cloudOff/index.d.mts +5 -0
- package/lib/cloudOff/index.d.ts +5 -0
- package/lib/cloudOff/index.js +32 -0
- package/lib/cloudOff/index.mjs +9 -0
- package/lib/cloudRain/index.d.mts +5 -0
- package/lib/cloudRain/index.d.ts +5 -0
- package/lib/cloudRain/index.js +32 -0
- package/lib/cloudRain/index.mjs +9 -0
- package/lib/cloudSnow/index.d.mts +5 -0
- package/lib/cloudSnow/index.d.ts +5 -0
- package/lib/cloudSnow/index.js +32 -0
- package/lib/cloudSnow/index.mjs +9 -0
- package/lib/code/index.d.mts +5 -0
- package/lib/code/index.d.ts +5 -0
- package/lib/code/index.js +32 -0
- package/lib/code/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/codesandbox/index.d.mts +5 -0
- package/lib/codesandbox/index.d.ts +5 -0
- package/lib/codesandbox/index.js +32 -0
- package/lib/codesandbox/index.mjs +9 -0
- package/lib/coffee/index.d.mts +5 -0
- package/lib/coffee/index.d.ts +5 -0
- package/lib/coffee/index.js +32 -0
- package/lib/coffee/index.mjs +9 -0
- package/lib/columns/index.d.mts +5 -0
- package/lib/columns/index.d.ts +5 -0
- package/lib/columns/index.js +32 -0
- package/lib/columns/index.mjs +9 -0
- package/lib/command/index.d.mts +5 -0
- package/lib/command/index.d.ts +5 -0
- package/lib/command/index.js +32 -0
- package/lib/command/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/cornerDownLeft/index.d.mts +5 -0
- package/lib/cornerDownLeft/index.d.ts +5 -0
- package/lib/cornerDownLeft/index.js +32 -0
- package/lib/cornerDownLeft/index.mjs +9 -0
- package/lib/cornerDownRight/index.d.mts +5 -0
- package/lib/cornerDownRight/index.d.ts +5 -0
- package/lib/cornerDownRight/index.js +32 -0
- package/lib/cornerDownRight/index.mjs +9 -0
- package/lib/cornerLeftDown/index.d.mts +5 -0
- package/lib/cornerLeftDown/index.d.ts +5 -0
- package/lib/cornerLeftDown/index.js +32 -0
- package/lib/cornerLeftDown/index.mjs +9 -0
- package/lib/cornerLeftUp/index.d.mts +5 -0
- package/lib/cornerLeftUp/index.d.ts +5 -0
- package/lib/cornerLeftUp/index.js +32 -0
- package/lib/cornerLeftUp/index.mjs +9 -0
- package/lib/cornerRightDown/index.d.mts +5 -0
- package/lib/cornerRightDown/index.d.ts +5 -0
- package/lib/cornerRightDown/index.js +32 -0
- package/lib/cornerRightDown/index.mjs +9 -0
- package/lib/cornerRightUp/index.d.mts +5 -0
- package/lib/cornerRightUp/index.d.ts +5 -0
- package/lib/cornerRightUp/index.js +32 -0
- package/lib/cornerRightUp/index.mjs +9 -0
- package/lib/cornerUpLeft/index.d.mts +5 -0
- package/lib/cornerUpLeft/index.d.ts +5 -0
- package/lib/cornerUpLeft/index.js +32 -0
- package/lib/cornerUpLeft/index.mjs +9 -0
- package/lib/cornerUpRight/index.d.mts +5 -0
- package/lib/cornerUpRight/index.d.ts +5 -0
- package/lib/cornerUpRight/index.js +32 -0
- package/lib/cornerUpRight/index.mjs +9 -0
- package/lib/cpu/index.d.mts +5 -0
- package/lib/cpu/index.d.ts +5 -0
- package/lib/cpu/index.js +32 -0
- package/lib/cpu/index.mjs +9 -0
- package/lib/creditCard/index.d.mts +5 -0
- package/lib/creditCard/index.d.ts +5 -0
- package/lib/creditCard/index.js +32 -0
- package/lib/creditCard/index.mjs +9 -0
- package/lib/crop/index.d.mts +5 -0
- package/lib/crop/index.d.ts +5 -0
- package/lib/crop/index.js +32 -0
- package/lib/crop/index.mjs +9 -0
- package/lib/crosshair/index.d.mts +5 -0
- package/lib/crosshair/index.d.ts +5 -0
- package/lib/crosshair/index.js +32 -0
- package/lib/crosshair/index.mjs +9 -0
- package/lib/database/index.d.mts +5 -0
- package/lib/database/index.d.ts +5 -0
- package/lib/database/index.js +32 -0
- package/lib/database/index.mjs +9 -0
- package/lib/delete/index.d.mts +5 -0
- package/lib/delete/index.d.ts +5 -0
- package/lib/delete/index.js +32 -0
- package/lib/delete/index.mjs +9 -0
- package/lib/disc/index.d.mts +5 -0
- package/lib/disc/index.d.ts +5 -0
- package/lib/disc/index.js +32 -0
- package/lib/disc/index.mjs +9 -0
- package/lib/divide/index.d.mts +5 -0
- package/lib/divide/index.d.ts +5 -0
- package/lib/divide/index.js +32 -0
- package/lib/divide/index.mjs +9 -0
- package/lib/divideCircle/index.d.mts +5 -0
- package/lib/divideCircle/index.d.ts +5 -0
- package/lib/divideCircle/index.js +32 -0
- package/lib/divideCircle/index.mjs +9 -0
- package/lib/divideSquare/index.d.mts +5 -0
- package/lib/divideSquare/index.d.ts +5 -0
- package/lib/divideSquare/index.js +32 -0
- package/lib/divideSquare/index.mjs +9 -0
- package/lib/dollarSign/index.d.mts +5 -0
- package/lib/dollarSign/index.d.ts +5 -0
- package/lib/dollarSign/index.js +32 -0
- package/lib/dollarSign/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/download2/index.d.mts +5 -0
- package/lib/download2/index.d.ts +5 -0
- package/lib/download2/index.js +32 -0
- package/lib/download2/index.mjs +9 -0
- package/lib/downloadCloud/index.d.mts +5 -0
- package/lib/downloadCloud/index.d.ts +5 -0
- package/lib/downloadCloud/index.js +32 -0
- package/lib/downloadCloud/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/droplet/index.d.mts +5 -0
- package/lib/droplet/index.d.ts +5 -0
- package/lib/droplet/index.js +32 -0
- package/lib/droplet/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/edit2/index.d.mts +5 -0
- package/lib/edit2/index.d.ts +5 -0
- package/lib/edit2/index.js +32 -0
- package/lib/edit2/index.mjs +9 -0
- package/lib/edit3/index.d.mts +5 -0
- package/lib/edit3/index.d.ts +5 -0
- package/lib/edit3/index.js +32 -0
- package/lib/edit3/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/externalLink/index.d.mts +5 -0
- package/lib/externalLink/index.d.ts +5 -0
- package/lib/externalLink/index.js +32 -0
- package/lib/externalLink/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/fastForward/index.d.mts +5 -0
- package/lib/fastForward/index.d.ts +5 -0
- package/lib/fastForward/index.js +32 -0
- package/lib/fastForward/index.mjs +9 -0
- package/lib/figma/index.d.mts +5 -0
- package/lib/figma/index.d.ts +5 -0
- package/lib/figma/index.js +32 -0
- package/lib/figma/index.mjs +9 -0
- package/lib/file/index.d.mts +5 -0
- package/lib/file/index.d.ts +5 -0
- package/lib/file/index.js +32 -0
- package/lib/file/index.mjs +9 -0
- package/lib/fileMinus/index.d.mts +5 -0
- package/lib/fileMinus/index.d.ts +5 -0
- package/lib/fileMinus/index.js +32 -0
- package/lib/fileMinus/index.mjs +9 -0
- package/lib/filePlus/index.d.mts +5 -0
- package/lib/filePlus/index.d.ts +5 -0
- package/lib/filePlus/index.js +32 -0
- package/lib/filePlus/index.mjs +9 -0
- package/lib/fileText/index.d.mts +5 -0
- package/lib/fileText/index.d.ts +5 -0
- package/lib/fileText/index.js +32 -0
- package/lib/fileText/index.mjs +9 -0
- package/lib/film/index.d.mts +5 -0
- package/lib/film/index.d.ts +5 -0
- package/lib/film/index.js +32 -0
- package/lib/film/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/flag/index.d.mts +5 -0
- package/lib/flag/index.d.ts +5 -0
- package/lib/flag/index.js +32 -0
- package/lib/flag/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/folderMinus/index.d.mts +5 -0
- package/lib/folderMinus/index.d.ts +5 -0
- package/lib/folderMinus/index.js +32 -0
- package/lib/folderMinus/index.mjs +9 -0
- package/lib/folderPlus/index.d.mts +5 -0
- package/lib/folderPlus/index.d.ts +5 -0
- package/lib/folderPlus/index.js +32 -0
- package/lib/folderPlus/index.mjs +9 -0
- package/lib/framer/index.d.mts +5 -0
- package/lib/framer/index.d.ts +5 -0
- package/lib/framer/index.js +32 -0
- package/lib/framer/index.mjs +9 -0
- package/lib/frown/index.d.mts +5 -0
- package/lib/frown/index.d.ts +5 -0
- package/lib/frown/index.js +32 -0
- package/lib/frown/index.mjs +9 -0
- package/lib/gift/index.d.mts +5 -0
- package/lib/gift/index.d.ts +5 -0
- package/lib/gift/index.js +32 -0
- package/lib/gift/index.mjs +9 -0
- package/lib/gitBranch/index.d.mts +5 -0
- package/lib/gitBranch/index.d.ts +5 -0
- package/lib/gitBranch/index.js +32 -0
- package/lib/gitBranch/index.mjs +9 -0
- package/lib/gitCommit/index.d.mts +5 -0
- package/lib/gitCommit/index.d.ts +5 -0
- package/lib/gitCommit/index.js +32 -0
- package/lib/gitCommit/index.mjs +9 -0
- package/lib/gitMerge/index.d.mts +5 -0
- package/lib/gitMerge/index.d.ts +5 -0
- package/lib/gitMerge/index.js +32 -0
- package/lib/gitMerge/index.mjs +9 -0
- package/lib/gitPullRequest/index.d.mts +5 -0
- package/lib/gitPullRequest/index.d.ts +5 -0
- package/lib/gitPullRequest/index.js +32 -0
- package/lib/gitPullRequest/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/gitlab/index.d.mts +5 -0
- package/lib/gitlab/index.d.ts +5 -0
- package/lib/gitlab/index.js +32 -0
- package/lib/gitlab/index.mjs +9 -0
- package/lib/globe/index.d.mts +5 -0
- package/lib/globe/index.d.ts +5 -0
- package/lib/globe/index.js +32 -0
- package/lib/globe/index.mjs +9 -0
- package/lib/grid/index.d.mts +5 -0
- package/lib/grid/index.d.ts +5 -0
- package/lib/grid/index.js +32 -0
- package/lib/grid/index.mjs +9 -0
- package/lib/hardDrive/index.d.mts +5 -0
- package/lib/hardDrive/index.d.ts +5 -0
- package/lib/hardDrive/index.js +32 -0
- package/lib/hardDrive/index.mjs +9 -0
- package/lib/hash/index.d.mts +5 -0
- package/lib/hash/index.d.ts +5 -0
- package/lib/hash/index.js +32 -0
- package/lib/hash/index.mjs +9 -0
- package/lib/headphones/index.d.mts +5 -0
- package/lib/headphones/index.d.ts +5 -0
- package/lib/headphones/index.js +32 -0
- package/lib/headphones/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/heart2/index.d.mts +5 -0
- package/lib/heart2/index.d.ts +5 -0
- package/lib/heart2/index.js +32 -0
- package/lib/heart2/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/hexagon/index.d.mts +5 -0
- package/lib/hexagon/index.d.ts +5 -0
- package/lib/hexagon/index.js +32 -0
- package/lib/hexagon/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/image/index.d.mts +5 -0
- package/lib/image/index.d.ts +5 -0
- package/lib/image/index.js +32 -0
- package/lib/image/index.mjs +9 -0
- package/lib/inbox/index.d.mts +5 -0
- package/lib/inbox/index.d.ts +5 -0
- package/lib/inbox/index.js +32 -0
- package/lib/inbox/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/italic/index.d.mts +5 -0
- package/lib/italic/index.d.ts +5 -0
- package/lib/italic/index.js +32 -0
- package/lib/italic/index.mjs +9 -0
- package/lib/key/index.d.mts +5 -0
- package/lib/key/index.d.ts +5 -0
- package/lib/key/index.js +32 -0
- package/lib/key/index.mjs +9 -0
- package/lib/layers/index.d.mts +5 -0
- package/lib/layers/index.d.ts +5 -0
- package/lib/layers/index.js +32 -0
- package/lib/layers/index.mjs +9 -0
- package/lib/layout/index.d.mts +5 -0
- package/lib/layout/index.d.ts +5 -0
- package/lib/layout/index.js +32 -0
- package/lib/layout/index.mjs +9 -0
- package/lib/lifeBuoy/index.d.mts +5 -0
- package/lib/lifeBuoy/index.d.ts +5 -0
- package/lib/lifeBuoy/index.js +32 -0
- package/lib/lifeBuoy/index.mjs +9 -0
- package/lib/link/index.d.mts +5 -0
- package/lib/link/index.d.ts +5 -0
- package/lib/link/index.js +32 -0
- package/lib/link/index.mjs +9 -0
- package/lib/link2/index.d.mts +5 -0
- package/lib/link2/index.d.ts +5 -0
- package/lib/link2/index.js +32 -0
- package/lib/link2/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/list/index.d.mts +5 -0
- package/lib/list/index.d.ts +5 -0
- package/lib/list/index.js +32 -0
- package/lib/list/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/logIn/index.d.mts +5 -0
- package/lib/logIn/index.d.ts +5 -0
- package/lib/logIn/index.js +32 -0
- package/lib/logIn/index.mjs +9 -0
- package/lib/logOut/index.d.mts +5 -0
- package/lib/logOut/index.d.ts +5 -0
- package/lib/logOut/index.js +32 -0
- package/lib/logOut/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/map/index.d.mts +5 -0
- package/lib/map/index.d.ts +5 -0
- package/lib/map/index.js +32 -0
- package/lib/map/index.mjs +9 -0
- package/lib/mapPin/index.d.mts +5 -0
- package/lib/mapPin/index.d.ts +5 -0
- package/lib/mapPin/index.js +32 -0
- package/lib/mapPin/index.mjs +9 -0
- package/lib/maximize2/index.d.mts +5 -0
- package/lib/maximize2/index.d.ts +5 -0
- package/lib/maximize2/index.js +32 -0
- package/lib/maximize2/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/meh/index.d.mts +5 -0
- package/lib/meh/index.d.ts +5 -0
- package/lib/meh/index.js +32 -0
- package/lib/meh/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/messageCircle/index.d.mts +5 -0
- package/lib/messageCircle/index.d.ts +5 -0
- package/lib/messageCircle/index.js +32 -0
- package/lib/messageCircle/index.mjs +9 -0
- package/lib/messageSquare/index.d.mts +5 -0
- package/lib/messageSquare/index.d.ts +5 -0
- package/lib/messageSquare/index.js +32 -0
- package/lib/messageSquare/index.mjs +9 -0
- package/lib/micOff/index.d.mts +5 -0
- package/lib/micOff/index.d.ts +5 -0
- package/lib/micOff/index.js +32 -0
- package/lib/micOff/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/minimize2/index.d.mts +5 -0
- package/lib/minimize2/index.d.ts +5 -0
- package/lib/minimize2/index.js +32 -0
- package/lib/minimize2/index.mjs +9 -0
- package/lib/minus/index.d.mts +5 -0
- package/lib/minus/index.d.ts +5 -0
- package/lib/minus/index.js +32 -0
- package/lib/minus/index.mjs +9 -0
- package/lib/minusCircle/index.d.mts +5 -0
- package/lib/minusCircle/index.d.ts +5 -0
- package/lib/minusCircle/index.js +32 -0
- package/lib/minusCircle/index.mjs +9 -0
- package/lib/minusSquare/index.d.mts +5 -0
- package/lib/minusSquare/index.d.ts +5 -0
- package/lib/minusSquare/index.js +32 -0
- package/lib/minusSquare/index.mjs +9 -0
- package/lib/monitor/index.d.mts +5 -0
- package/lib/monitor/index.d.ts +5 -0
- package/lib/monitor/index.js +32 -0
- package/lib/monitor/index.mjs +9 -0
- package/lib/moon/index.d.mts +5 -0
- package/lib/moon/index.d.ts +5 -0
- package/lib/moon/index.js +32 -0
- package/lib/moon/index.mjs +9 -0
- package/lib/moreHorizontal/index.d.mts +5 -0
- package/lib/moreHorizontal/index.d.ts +5 -0
- package/lib/moreHorizontal/index.js +32 -0
- package/lib/moreHorizontal/index.mjs +9 -0
- package/lib/moreVertical/index.d.mts +5 -0
- package/lib/moreVertical/index.d.ts +5 -0
- package/lib/moreVertical/index.js +32 -0
- package/lib/moreVertical/index.mjs +9 -0
- package/lib/mousePointer/index.d.mts +5 -0
- package/lib/mousePointer/index.d.ts +5 -0
- package/lib/mousePointer/index.js +32 -0
- package/lib/mousePointer/index.mjs +9 -0
- package/lib/move/index.d.mts +5 -0
- package/lib/move/index.d.ts +5 -0
- package/lib/move/index.js +32 -0
- package/lib/move/index.mjs +9 -0
- package/lib/music/index.d.mts +5 -0
- package/lib/music/index.d.ts +5 -0
- package/lib/music/index.js +32 -0
- package/lib/music/index.mjs +9 -0
- package/lib/navigation/index.d.mts +5 -0
- package/lib/navigation/index.d.ts +5 -0
- package/lib/navigation/index.js +32 -0
- package/lib/navigation/index.mjs +9 -0
- package/lib/navigation2/index.d.mts +5 -0
- package/lib/navigation2/index.d.ts +5 -0
- package/lib/navigation2/index.js +32 -0
- package/lib/navigation2/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/octagon/index.d.mts +5 -0
- package/lib/octagon/index.d.ts +5 -0
- package/lib/octagon/index.js +32 -0
- package/lib/octagon/index.mjs +9 -0
- package/lib/package/index.d.mts +5 -0
- package/lib/package/index.d.ts +5 -0
- package/lib/package/index.js +32 -0
- package/lib/package/index.mjs +9 -0
- package/lib/paperclip/index.d.mts +5 -0
- package/lib/paperclip/index.d.ts +5 -0
- package/lib/paperclip/index.js +32 -0
- package/lib/paperclip/index.mjs +9 -0
- package/lib/penTool/index.d.mts +5 -0
- package/lib/penTool/index.d.ts +5 -0
- package/lib/penTool/index.js +32 -0
- package/lib/penTool/index.mjs +9 -0
- package/lib/percent/index.d.mts +5 -0
- package/lib/percent/index.d.ts +5 -0
- package/lib/percent/index.js +32 -0
- package/lib/percent/index.mjs +9 -0
- package/lib/phone/index.d.mts +5 -0
- package/lib/phone/index.d.ts +5 -0
- package/lib/phone/index.js +32 -0
- package/lib/phone/index.mjs +9 -0
- package/lib/phoneCall/index.d.mts +5 -0
- package/lib/phoneCall/index.d.ts +5 -0
- package/lib/phoneCall/index.js +32 -0
- package/lib/phoneCall/index.mjs +9 -0
- package/lib/phoneForwarded/index.d.mts +5 -0
- package/lib/phoneForwarded/index.d.ts +5 -0
- package/lib/phoneForwarded/index.js +32 -0
- package/lib/phoneForwarded/index.mjs +9 -0
- package/lib/phoneIncoming/index.d.mts +5 -0
- package/lib/phoneIncoming/index.d.ts +5 -0
- package/lib/phoneIncoming/index.js +32 -0
- package/lib/phoneIncoming/index.mjs +9 -0
- package/lib/phoneMissed/index.d.mts +5 -0
- package/lib/phoneMissed/index.d.ts +5 -0
- package/lib/phoneMissed/index.js +32 -0
- package/lib/phoneMissed/index.mjs +9 -0
- package/lib/phoneOff/index.d.mts +5 -0
- package/lib/phoneOff/index.d.ts +5 -0
- package/lib/phoneOff/index.js +32 -0
- package/lib/phoneOff/index.mjs +9 -0
- package/lib/phoneOutgoing/index.d.mts +5 -0
- package/lib/phoneOutgoing/index.d.ts +5 -0
- package/lib/phoneOutgoing/index.js +32 -0
- package/lib/phoneOutgoing/index.mjs +9 -0
- package/lib/pieChart/index.d.mts +5 -0
- package/lib/pieChart/index.d.ts +5 -0
- package/lib/pieChart/index.js +32 -0
- package/lib/pieChart/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/plusCircle/index.d.mts +5 -0
- package/lib/plusCircle/index.d.ts +5 -0
- package/lib/plusCircle/index.js +32 -0
- package/lib/plusCircle/index.mjs +9 -0
- package/lib/plusSquare/index.d.mts +5 -0
- package/lib/plusSquare/index.d.ts +5 -0
- package/lib/plusSquare/index.js +32 -0
- package/lib/plusSquare/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/power/index.d.mts +5 -0
- package/lib/power/index.d.ts +5 -0
- package/lib/power/index.js +32 -0
- package/lib/power/index.mjs +9 -0
- package/lib/printer/index.d.mts +5 -0
- package/lib/printer/index.d.ts +5 -0
- package/lib/printer/index.js +32 -0
- package/lib/printer/index.mjs +9 -0
- package/lib/radio/index.d.mts +5 -0
- package/lib/radio/index.d.ts +5 -0
- package/lib/radio/index.js +32 -0
- package/lib/radio/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/refresh2/index.d.mts +5 -0
- package/lib/refresh2/index.d.ts +5 -0
- package/lib/refresh2/index.js +32 -0
- package/lib/refresh2/index.mjs +9 -0
- package/lib/refreshCcw/index.d.mts +5 -0
- package/lib/refreshCcw/index.d.ts +5 -0
- package/lib/refreshCcw/index.js +32 -0
- package/lib/refreshCcw/index.mjs +9 -0
- package/lib/repeat/index.d.mts +5 -0
- package/lib/repeat/index.d.ts +5 -0
- package/lib/repeat/index.js +32 -0
- package/lib/repeat/index.mjs +9 -0
- package/lib/rewind/index.d.mts +5 -0
- package/lib/rewind/index.d.ts +5 -0
- package/lib/rewind/index.js +32 -0
- package/lib/rewind/index.mjs +9 -0
- package/lib/rotateCcw/index.d.mts +5 -0
- package/lib/rotateCcw/index.d.ts +5 -0
- package/lib/rotateCcw/index.js +32 -0
- package/lib/rotateCcw/index.mjs +9 -0
- package/lib/rotateCw/index.d.mts +5 -0
- package/lib/rotateCw/index.d.ts +5 -0
- package/lib/rotateCw/index.js +32 -0
- package/lib/rotateCw/index.mjs +9 -0
- package/lib/rss/index.d.mts +5 -0
- package/lib/rss/index.d.ts +5 -0
- package/lib/rss/index.js +32 -0
- package/lib/rss/index.mjs +9 -0
- package/lib/save/index.d.mts +5 -0
- package/lib/save/index.d.ts +5 -0
- package/lib/save/index.js +32 -0
- package/lib/save/index.mjs +9 -0
- package/lib/scissors/index.d.mts +5 -0
- package/lib/scissors/index.d.ts +5 -0
- package/lib/scissors/index.js +32 -0
- package/lib/scissors/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/send/index.d.mts +5 -0
- package/lib/send/index.d.ts +5 -0
- package/lib/send/index.js +32 -0
- package/lib/send/index.mjs +9 -0
- package/lib/server/index.d.mts +5 -0
- package/lib/server/index.d.ts +5 -0
- package/lib/server/index.js +32 -0
- package/lib/server/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/shield/index.d.mts +5 -0
- package/lib/shield/index.d.ts +5 -0
- package/lib/shield/index.js +32 -0
- package/lib/shield/index.mjs +9 -0
- package/lib/shieldOff/index.d.mts +5 -0
- package/lib/shieldOff/index.d.ts +5 -0
- package/lib/shieldOff/index.js +32 -0
- package/lib/shieldOff/index.mjs +9 -0
- package/lib/shoppingBag/index.d.mts +5 -0
- package/lib/shoppingBag/index.d.ts +5 -0
- package/lib/shoppingBag/index.js +32 -0
- package/lib/shoppingBag/index.mjs +9 -0
- package/lib/shoppingCart/index.d.mts +5 -0
- package/lib/shoppingCart/index.d.ts +5 -0
- package/lib/shoppingCart/index.js +32 -0
- package/lib/shoppingCart/index.mjs +9 -0
- package/lib/shuffle/index.d.mts +5 -0
- package/lib/shuffle/index.d.ts +5 -0
- package/lib/shuffle/index.js +32 -0
- package/lib/shuffle/index.mjs +9 -0
- package/lib/sidebar/index.d.mts +5 -0
- package/lib/sidebar/index.d.ts +5 -0
- package/lib/sidebar/index.js +32 -0
- package/lib/sidebar/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/slack/index.d.mts +5 -0
- package/lib/slack/index.d.ts +5 -0
- package/lib/slack/index.js +32 -0
- package/lib/slack/index.mjs +9 -0
- package/lib/slash/index.d.mts +5 -0
- package/lib/slash/index.d.ts +5 -0
- package/lib/slash/index.js +32 -0
- package/lib/slash/index.mjs +9 -0
- package/lib/smartphone/index.d.mts +5 -0
- package/lib/smartphone/index.d.ts +5 -0
- package/lib/smartphone/index.js +32 -0
- package/lib/smartphone/index.mjs +9 -0
- package/lib/smile/index.d.mts +5 -0
- package/lib/smile/index.d.ts +5 -0
- package/lib/smile/index.js +32 -0
- package/lib/smile/index.mjs +9 -0
- package/lib/speaker/index.d.mts +5 -0
- package/lib/speaker/index.d.ts +5 -0
- package/lib/speaker/index.js +32 -0
- package/lib/speaker/index.mjs +9 -0
- package/lib/square/index.d.mts +5 -0
- package/lib/square/index.d.ts +5 -0
- package/lib/square/index.js +32 -0
- package/lib/square/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/stopCircle/index.d.mts +5 -0
- package/lib/stopCircle/index.d.ts +5 -0
- package/lib/stopCircle/index.js +32 -0
- package/lib/stopCircle/index.mjs +9 -0
- package/lib/sun/index.d.mts +5 -0
- package/lib/sun/index.d.ts +5 -0
- package/lib/sun/index.js +32 -0
- package/lib/sun/index.mjs +9 -0
- package/lib/sunrise/index.d.mts +5 -0
- package/lib/sunrise/index.d.ts +5 -0
- package/lib/sunrise/index.js +32 -0
- package/lib/sunrise/index.mjs +9 -0
- package/lib/sunset/index.d.mts +5 -0
- package/lib/sunset/index.d.ts +5 -0
- package/lib/sunset/index.js +32 -0
- package/lib/sunset/index.mjs +9 -0
- package/lib/table/index.d.mts +5 -0
- package/lib/table/index.d.ts +5 -0
- package/lib/table/index.js +32 -0
- package/lib/table/index.mjs +9 -0
- package/lib/tablet/index.d.mts +5 -0
- package/lib/tablet/index.d.ts +5 -0
- package/lib/tablet/index.js +32 -0
- package/lib/tablet/index.mjs +9 -0
- package/lib/tag/index.d.mts +5 -0
- package/lib/tag/index.d.ts +5 -0
- package/lib/tag/index.js +32 -0
- package/lib/tag/index.mjs +9 -0
- package/lib/target/index.d.mts +5 -0
- package/lib/target/index.d.ts +5 -0
- package/lib/target/index.js +32 -0
- package/lib/target/index.mjs +9 -0
- package/lib/terminal/index.d.mts +5 -0
- package/lib/terminal/index.d.ts +5 -0
- package/lib/terminal/index.js +32 -0
- package/lib/terminal/index.mjs +9 -0
- package/lib/thermometer/index.d.mts +5 -0
- package/lib/thermometer/index.d.ts +5 -0
- package/lib/thermometer/index.js +32 -0
- package/lib/thermometer/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/thumbsDown/index.d.mts +5 -0
- package/lib/thumbsDown/index.d.ts +5 -0
- package/lib/thumbsDown/index.js +32 -0
- package/lib/thumbsDown/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/tool/index.d.mts +5 -0
- package/lib/tool/index.d.ts +5 -0
- package/lib/tool/index.js +32 -0
- package/lib/tool/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/trello/index.d.mts +5 -0
- package/lib/trello/index.d.ts +5 -0
- package/lib/trello/index.js +32 -0
- package/lib/trello/index.mjs +9 -0
- package/lib/trendingDown/index.d.mts +5 -0
- package/lib/trendingDown/index.d.ts +5 -0
- package/lib/trendingDown/index.js +32 -0
- package/lib/trendingDown/index.mjs +9 -0
- package/lib/trendingUp/index.d.mts +5 -0
- package/lib/trendingUp/index.d.ts +5 -0
- package/lib/trendingUp/index.js +32 -0
- package/lib/trendingUp/index.mjs +9 -0
- package/lib/triangle/index.d.mts +5 -0
- package/lib/triangle/index.d.ts +5 -0
- package/lib/triangle/index.js +32 -0
- package/lib/triangle/index.mjs +9 -0
- package/lib/truck/index.d.mts +5 -0
- package/lib/truck/index.d.ts +5 -0
- package/lib/truck/index.js +32 -0
- package/lib/truck/index.mjs +9 -0
- package/lib/tv/index.d.mts +5 -0
- package/lib/tv/index.d.ts +5 -0
- package/lib/tv/index.js +32 -0
- package/lib/tv/index.mjs +9 -0
- package/lib/twitch/index.d.mts +5 -0
- package/lib/twitch/index.d.ts +5 -0
- package/lib/twitch/index.js +32 -0
- package/lib/twitch/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/twitterX/index.d.mts +5 -0
- package/lib/twitterX/index.d.ts +5 -0
- package/lib/twitterX/index.js +32 -0
- package/lib/twitterX/index.mjs +9 -0
- package/lib/type/index.d.mts +5 -0
- package/lib/type/index.d.ts +5 -0
- package/lib/type/index.js +32 -0
- package/lib/type/index.mjs +9 -0
- package/lib/umbrella/index.d.mts +5 -0
- package/lib/umbrella/index.d.ts +5 -0
- package/lib/umbrella/index.js +32 -0
- package/lib/umbrella/index.mjs +9 -0
- package/lib/underline/index.d.mts +5 -0
- package/lib/underline/index.d.ts +5 -0
- package/lib/underline/index.js +32 -0
- package/lib/underline/index.mjs +9 -0
- package/lib/upload/index.d.mts +5 -0
- package/lib/upload/index.d.ts +5 -0
- package/lib/upload/index.js +32 -0
- package/lib/upload/index.mjs +9 -0
- package/lib/uploadCloud/index.d.mts +5 -0
- package/lib/uploadCloud/index.d.ts +5 -0
- package/lib/uploadCloud/index.js +32 -0
- package/lib/uploadCloud/index.mjs +9 -0
- package/lib/user/index.d.mts +5 -0
- package/lib/user/index.d.ts +5 -0
- package/lib/user/index.js +32 -0
- package/lib/user/index.mjs +9 -0
- package/lib/userCheck/index.d.mts +5 -0
- package/lib/userCheck/index.d.ts +5 -0
- package/lib/userCheck/index.js +32 -0
- package/lib/userCheck/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/users/index.d.mts +5 -0
- package/lib/users/index.d.ts +5 -0
- package/lib/users/index.js +32 -0
- package/lib/users/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/videoOff/index.d.mts +5 -0
- package/lib/videoOff/index.d.ts +5 -0
- package/lib/videoOff/index.js +32 -0
- package/lib/videoOff/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/voicemail/index.d.mts +5 -0
- package/lib/voicemail/index.d.ts +5 -0
- package/lib/voicemail/index.js +32 -0
- package/lib/voicemail/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/watch/index.d.mts +5 -0
- package/lib/watch/index.d.ts +5 -0
- package/lib/watch/index.js +32 -0
- package/lib/watch/index.mjs +9 -0
- package/lib/wifi/index.d.mts +5 -0
- package/lib/wifi/index.d.ts +5 -0
- package/lib/wifi/index.js +32 -0
- package/lib/wifi/index.mjs +9 -0
- package/lib/wifiOff/index.d.mts +5 -0
- package/lib/wifiOff/index.d.ts +5 -0
- package/lib/wifiOff/index.js +32 -0
- package/lib/wifiOff/index.mjs +9 -0
- package/lib/wind/index.d.mts +5 -0
- package/lib/wind/index.d.ts +5 -0
- package/lib/wind/index.js +32 -0
- package/lib/wind/index.mjs +9 -0
- package/lib/xOctagon/index.d.mts +5 -0
- package/lib/xOctagon/index.d.ts +5 -0
- package/lib/xOctagon/index.js +32 -0
- package/lib/xOctagon/index.mjs +9 -0
- package/lib/xSquare/index.d.mts +5 -0
- package/lib/xSquare/index.d.ts +5 -0
- package/lib/xSquare/index.js +32 -0
- package/lib/xSquare/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/zap/index.d.mts +5 -0
- package/lib/zap/index.d.ts +5 -0
- package/lib/zap/index.js +32 -0
- package/lib/zap/index.mjs +9 -0
- package/lib/zapOff/index.d.mts +5 -0
- package/lib/zapOff/index.d.ts +5 -0
- package/lib/zapOff/index.js +32 -0
- package/lib/zapOff/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
package/LICENSE
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
RIGHTS
|
|
2
|
+
|
|
3
|
+
All the free files available in useAnimations are distributed
|
|
4
|
+
under Creative Commons (CC) Attribution (BY) unless stated otherwise.
|
|
5
|
+
Our resources (animations) can be used for personal and commercial usage
|
|
6
|
+
within Web and Mobile Applications.
|
|
7
|
+
|
|
8
|
+
You may modify the resources according to your requirements and use them
|
|
9
|
+
in any or all of your personal or commercial projects. For example,
|
|
10
|
+
you may include this resource on a website or mobile application
|
|
11
|
+
you will be designing for a client.
|
|
12
|
+
|
|
13
|
+
You are required to attribute or link to useanimations.com in any of projects.
|
|
14
|
+
useAnimations (useanimations.com) will not be responsible for any outcome
|
|
15
|
+
that may occur during the use of our resources.
|
|
16
|
+
|
|
17
|
+
Files from useAnimations can be shared as long as the useAnimations
|
|
18
|
+
are credited appropriately.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
PROHIBITIONS
|
|
22
|
+
|
|
23
|
+
You do not have the rights to redistribute, resell, lease, license,
|
|
24
|
+
sub-license or offer the file downloaded to any third party.
|
|
25
|
+
For any resalable web applications, software programs, web templates,
|
|
26
|
+
app templates, merchandise etc. you should not include our graphics resources.
|
|
27
|
+
This will be considered as a redistribution of our resources
|
|
28
|
+
which is forbidden by us.
|
|
29
|
+
|
|
30
|
+
More about Creative Commons (CC) Attribution (BY) - https://creativecommons.org/licenses/by/4.0/
|
package/README.md
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
## React UseAnimations Icons
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/react-useanimations) [](https://www.npmjs.com/package/react-useanimations)
|
|
4
|
+
|
|
5
|
+
#### What is react-useanimations?
|
|
6
|
+
|
|
7
|
+
React-useanimations is the official React component for [useAnimations](https://useanimations.com), a free library of 290+ animated Lottie icons.
|
|
8
|
+
|
|
9
|
+
📖 **Documentation:** [useanimations.com/documentation](https://useanimations.com/documentation): React props and all import names, plus plain HTML/JS, Vue, iOS and Android guides.
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
### Installation
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
npm install react-useanimations
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Requires React 16.8+ (tested with React 18 and 19). Works with StrictMode, Next.js (App Router) and other SSR frameworks.
|
|
20
|
+
|
|
21
|
+
### Usage
|
|
22
|
+
|
|
23
|
+
```javascript
|
|
24
|
+
import UseAnimations from 'react-useanimations';
|
|
25
|
+
// EVERY ANIMATION NEEDS TO BE IMPORTED FIRST -> YOUR BUNDLE WILL INCLUDE ONLY WHAT IT NEEDS
|
|
26
|
+
import github from 'react-useanimations/lib/github';
|
|
27
|
+
|
|
28
|
+
const App = () => <UseAnimations animation={github} />;
|
|
29
|
+
|
|
30
|
+
export default App;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Icons can be configured with inline props:
|
|
34
|
+
|
|
35
|
+
```javascript
|
|
36
|
+
<UseAnimations
|
|
37
|
+
animation={github}
|
|
38
|
+
size={56}
|
|
39
|
+
strokeColor="currentColor"
|
|
40
|
+
wrapperStyle={{ padding: 100 }}
|
|
41
|
+
/>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
These props are available:
|
|
45
|
+
|
|
46
|
+
| Prop | Default | Definition |
|
|
47
|
+
| :----------- | :-------: | ---------------------------------------------------------------------------------------------------------------------------: |
|
|
48
|
+
| animation | / | animation imported from `react-useanimations/lib/<name>` |
|
|
49
|
+
| size | `24` | animation size in px |
|
|
50
|
+
| strokeColor | / | stroke color of the icon, e.g. `'currentColor'` |
|
|
51
|
+
| fillColor | / | fill color of the icon |
|
|
52
|
+
| pathCss | / | extra CSS declarations for the icon's paths |
|
|
53
|
+
| wrapperStyle | `{}` | wrapper div styles |
|
|
54
|
+
| interaction | per icon* | `'loop'`, `'click-toggle'`, `'click-replay'`, `'hover'`, `'hover-loop'` or `'hover-replay'` |
|
|
55
|
+
| reverse | `false` | for `click-toggle` icons: `true` shows the end state (e.g. a checked checkbox); can be controlled |
|
|
56
|
+
| autoplay | per icon* | `true` for looping icons like loaders |
|
|
57
|
+
| loop | per icon* | `true` for looping icons like loaders |
|
|
58
|
+
| speed | `1` | playback speed (1 is normal speed) |
|
|
59
|
+
| options | `{}` | any other [lottie-web options](https://github.com/airbnb/lottie-web#other-loading-options); applied when the animation loads |
|
|
60
|
+
| render | / | render prop for a custom wrapper, see below |
|
|
61
|
+
|
|
62
|
+
\* Each icon has a default interaction matching [useanimations.com](https://useanimations.com):
|
|
63
|
+
|
|
64
|
+
- `loop`: plays continuously (loaders, alerts).
|
|
65
|
+
- `click-toggle`: toggles between two states on click (menu, checkbox, play/pause).
|
|
66
|
+
- `click-replay`: replays from the start on every click.
|
|
67
|
+
- `hover`: plays forward on mouse enter and backward on mouse leave.
|
|
68
|
+
- `hover-loop`: loops while hovered (social icons).
|
|
69
|
+
- `hover-replay`: plays once from the start on mouse enter.
|
|
70
|
+
|
|
71
|
+
Any other prop (`className`, `aria-label`, `onClick`, `onMouseEnter`, …) is passed to the wrapper div. Your event handlers run before the animation's; call `event.preventDefault()` to skip the animation.
|
|
72
|
+
|
|
73
|
+
#### Controlled toggle
|
|
74
|
+
|
|
75
|
+
```javascript
|
|
76
|
+
import { useState } from 'react';
|
|
77
|
+
import UseAnimations from 'react-useanimations';
|
|
78
|
+
import menu from 'react-useanimations/lib/menu';
|
|
79
|
+
|
|
80
|
+
export const MenuButton = () => {
|
|
81
|
+
const [open, setOpen] = useState(false);
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<UseAnimations
|
|
85
|
+
animation={menu}
|
|
86
|
+
size={40}
|
|
87
|
+
reverse={open} // also animates when `open` changes elsewhere, e.g. the menu closes on Escape
|
|
88
|
+
onClick={() => setOpen(!open)}
|
|
89
|
+
/>
|
|
90
|
+
);
|
|
91
|
+
};
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
#### Changing the interaction
|
|
95
|
+
|
|
96
|
+
```javascript
|
|
97
|
+
<UseAnimations animation={download} interaction="hover" />
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
#### Wrapping the animation in another element
|
|
101
|
+
|
|
102
|
+
```javascript
|
|
103
|
+
import heart from 'react-useanimations/lib/heart';
|
|
104
|
+
|
|
105
|
+
export const LikeButton = () => (
|
|
106
|
+
<UseAnimations
|
|
107
|
+
animation={heart}
|
|
108
|
+
size={60}
|
|
109
|
+
onClick={() => console.log('liked')}
|
|
110
|
+
render={(eventProps, animationProps) => (
|
|
111
|
+
<button type="button" aria-label="Like" {...eventProps}>
|
|
112
|
+
<div {...animationProps} />
|
|
113
|
+
</button>
|
|
114
|
+
)}
|
|
115
|
+
/>
|
|
116
|
+
);
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
`eventProps` holds the `onClick`, `onMouseEnter` and `onMouseLeave` handlers for your interactive element (e.g. a button) and `animationProps` holds the animation itself, which you spread inside a plain `<div>`.
|
|
120
|
+
|
|
121
|
+
#### Next.js and other SSR frameworks
|
|
122
|
+
|
|
123
|
+
The component is marked `'use client'` and loads lottie-web only in the browser, so it can be rendered from server components without `dynamic(..., { ssr: false })`.
|
|
124
|
+
|
|
125
|
+
### Available animations
|
|
126
|
+
|
|
127
|
+
<!-- icons:start -->
|
|
128
|
+
|
|
129
|
+
`activity`, `airplay`, `alertCircle`, `alertOctagon`, `alertTriangle`, `alignCenter`, `alignJustify`, `alignLeft`, `alignRight`, `anchor`, `aperture`, `archive`, `arrowDown`, `arrowDownCircle`, `arrowDownLeft`, `arrowDownRight`, `arrowLeft`, `arrowLeftCircle`, `arrowRight`, `arrowRightCircle`, `arrowUp`, `arrowUpCircle`, `arrowUpLeft`, `arrowUpRight`, `atSign`, `award`, `barChart`, `barChart2`, `battery`, `batteryCharging`, `behance`, `bluetooth`, `bold`, `book`, `bookmark`, `bookOpen`, `box`, `briefcase`, `calendar`, `camera`, `cameraOff`, `cast`, `check`, `checkBox`, `checkCircle`, `checkmark`, `chevronDown`, `chevronLeft`, `chevronRight`, `chevronsDown`, `chevronsLeft`, `chevronsRight`, `chevronsUp`, `chevronUp`, `chrome`, `circle`, `clipboard`, `clock`, `cloud`, `cloudDrizzle`, `cloudLightning`, `cloudOff`, `cloudRain`, `cloudSnow`, `code`, `codepen`, `codesandbox`, `coffee`, `columns`, `command`, `copy`, `cornerDownLeft`, `cornerDownRight`, `cornerLeftDown`, `cornerLeftUp`, `cornerRightDown`, `cornerRightUp`, `cornerUpLeft`, `cornerUpRight`, `cpu`, `creditCard`, `crop`, `crosshair`, `database`, `delete`, `disc`, `divide`, `divideCircle`, `divideSquare`, `dollarSign`, `download`, `download2`, `downloadCloud`, `dribbble`, `droplet`, `edit`, `edit2`, `edit3`, `error`, `explore`, `externalLink`, `facebook`, `fastForward`, `figma`, `file`, `fileMinus`, `filePlus`, `fileText`, `film`, `filter`, `flag`, `folder`, `folderMinus`, `folderPlus`, `framer`, `frown`, `gift`, `gitBranch`, `gitCommit`, `github`, `gitlab`, `gitMerge`, `gitPullRequest`, `globe`, `grid`, `hardDrive`, `hash`, `headphones`, `heart`, `heart2`, `help`, `hexagon`, `home`, `image`, `inbox`, `infinity`, `info`, `instagram`, `italic`, `key`, `layers`, `layout`, `lifeBuoy`, `link`, `link2`, `linkedin`, `list`, `loading`, `loading2`, `loading3`, `loading4`, `lock`, `logIn`, `logOut`, `mail`, `map`, `mapPin`, `maximize2`, `maximizeMinimize`, `maximizeMinimize2`, `meh`, `menu`, `menu2`, `menu3`, `menu4`, `messageCircle`, `messageSquare`, `micOff`, `microphone`, `microphone2`, `minimize2`, `minus`, `minusCircle`, `minusSquare`, `monitor`, `moon`, `moreHorizontal`, `moreVertical`, `mousePointer`, `move`, `music`, `navigation`, `navigation2`, `notification`, `notification2`, `notification3`, `notification4`, `octagon`, `package`, `paperclip`, `penTool`, `percent`, `phone`, `phoneCall`, `phoneForwarded`, `phoneIncoming`, `phoneMissed`, `phoneOff`, `phoneOutgoing`, `pieChart`, `playPause`, `playPauseCircle`, `plusCircle`, `plusSquare`, `plusToX`, `pocket`, `power`, `printer`, `radio`, `radioButton`, `refresh`, `refresh2`, `refreshCcw`, `repeat`, `rewind`, `rotateCcw`, `rotateCw`, `rss`, `save`, `scissors`, `scrollDown`, `searchToX`, `send`, `server`, `settings`, `settings2`, `share`, `shield`, `shieldOff`, `shoppingBag`, `shoppingCart`, `shuffle`, `sidebar`, `skipBack`, `skipForward`, `slack`, `slash`, `smartphone`, `smile`, `speaker`, `square`, `star`, `stopCircle`, `sun`, `sunrise`, `sunset`, `table`, `tablet`, `tag`, `target`, `terminal`, `thermometer`, `thumbsDown`, `thumbUp`, `toggle`, `tool`, `trash`, `trash2`, `trello`, `trendingDown`, `trendingUp`, `triangle`, `truck`, `tv`, `twitch`, `twitter`, `twitterX`, `type`, `umbrella`, `underline`, `upload`, `uploadCloud`, `user`, `userCheck`, `userMinus`, `userPlus`, `users`, `userX`, `video`, `video2`, `videoOff`, `visibility`, `visibility2`, `visibility3`, `voicemail`, `volume`, `watch`, `wifi`, `wifiOff`, `wind`, `xOctagon`, `xSquare`, `youtube`, `youtube2`, `zap`, `zapOff`, `zoomIn`, `zoomOut`
|
|
130
|
+
<!-- icons:end -->
|
|
131
|
+
|
|
132
|
+
Import each one from `react-useanimations/lib/<name>`. `delete` and `package` are reserved words in JavaScript, so import them under another name, e.g. `import deleteIcon from 'react-useanimations/lib/delete';`.
|
|
133
|
+
|
|
134
|
+
### Upgrading from v2
|
|
135
|
+
|
|
136
|
+
- 211 new icons (290+ in total), matching the full set on useanimations.com.
|
|
137
|
+
- Icon interactions now match useanimations.com (e.g. `zoomIn` plays on hover instead of looping, social icons loop while hovered). Pass `interaction` to keep a different behavior.
|
|
138
|
+
- `reverse` is now fully controlled: changing it from `true` to `false` animates back.
|
|
139
|
+
- `onMouseEnter` / `onMouseLeave` no longer replace the hover animation, and `style` is merged into the wrapper styles.
|
|
140
|
+
- `loop={false}` and `autoplay={false}` now override the defaults of looping icons.
|
|
141
|
+
- `options` is typed as lottie-web's `AnimationConfigWithData<'svg'>`.
|
|
142
|
+
- The `react-useanimations/utils/*` paths were removed; import the types (`Animation`, `AnimationKey`, `Interaction`, `UseAnimationsProps`) from `react-useanimations`.
|
|
143
|
+
|
|
144
|
+
### Development
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
npm install
|
|
148
|
+
npm test # vitest
|
|
149
|
+
npm run lint
|
|
150
|
+
npm run check-types
|
|
151
|
+
npm run build # builds dist/ (CJS + ESM + types)
|
|
152
|
+
npm run sync-icons # syncs src/lib with https://useanimations.com/icons.json
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### License
|
|
156
|
+
|
|
157
|
+
The animations are free for personal and commercial use under [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/). Attribution with a link to [useanimations.com](https://useanimations.com) is required; redistributing or reselling the files themselves (e.g. in icon packs, templates or UI kits) is not allowed. See [LICENSE](LICENSE) and [Licencing & Terms](https://useanimations.com/licencing-and-terms).
|
package/index.d.mts
ADDED
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AnimationConfigWithData } from 'lottie-web';
|
|
3
|
+
|
|
4
|
+
declare const interactions: {
|
|
5
|
+
readonly activity: "loop";
|
|
6
|
+
readonly airplay: "loop";
|
|
7
|
+
readonly alertCircle: "loop";
|
|
8
|
+
readonly alertOctagon: "loop";
|
|
9
|
+
readonly alertTriangle: "loop";
|
|
10
|
+
readonly alignCenter: "click-replay";
|
|
11
|
+
readonly alignJustify: "click-replay";
|
|
12
|
+
readonly alignLeft: "click-replay";
|
|
13
|
+
readonly alignRight: "click-replay";
|
|
14
|
+
readonly anchor: "hover-replay";
|
|
15
|
+
readonly aperture: "hover-replay";
|
|
16
|
+
readonly archive: "hover";
|
|
17
|
+
readonly arrowDown: "loop";
|
|
18
|
+
readonly arrowDownCircle: "click-replay";
|
|
19
|
+
readonly arrowDownLeft: "hover-replay";
|
|
20
|
+
readonly arrowDownRight: "hover-replay";
|
|
21
|
+
readonly arrowLeft: "hover-replay";
|
|
22
|
+
readonly arrowLeftCircle: "click-replay";
|
|
23
|
+
readonly arrowRight: "hover-replay";
|
|
24
|
+
readonly arrowRightCircle: "click-replay";
|
|
25
|
+
readonly arrowUp: "loop";
|
|
26
|
+
readonly arrowUpCircle: "click-replay";
|
|
27
|
+
readonly arrowUpLeft: "hover-replay";
|
|
28
|
+
readonly arrowUpRight: "hover-replay";
|
|
29
|
+
readonly atSign: "hover-replay";
|
|
30
|
+
readonly award: "hover-replay";
|
|
31
|
+
readonly barChart: "hover-replay";
|
|
32
|
+
readonly barChart2: "hover-replay";
|
|
33
|
+
readonly battery: "hover-replay";
|
|
34
|
+
readonly batteryCharging: "hover-replay";
|
|
35
|
+
readonly behance: "hover-loop";
|
|
36
|
+
readonly bluetooth: "hover-replay";
|
|
37
|
+
readonly bold: "click-replay";
|
|
38
|
+
readonly book: "hover-replay";
|
|
39
|
+
readonly bookmark: "click-toggle";
|
|
40
|
+
readonly bookOpen: "hover-replay";
|
|
41
|
+
readonly box: "hover-replay";
|
|
42
|
+
readonly briefcase: "hover-replay";
|
|
43
|
+
readonly calendar: "hover";
|
|
44
|
+
readonly camera: "click-replay";
|
|
45
|
+
readonly cameraOff: "click-toggle";
|
|
46
|
+
readonly cast: "hover-replay";
|
|
47
|
+
readonly check: "click-replay";
|
|
48
|
+
readonly checkBox: "click-toggle";
|
|
49
|
+
readonly checkCircle: "click-replay";
|
|
50
|
+
readonly checkmark: "loop";
|
|
51
|
+
readonly chevronDown: "hover-replay";
|
|
52
|
+
readonly chevronLeft: "click-replay";
|
|
53
|
+
readonly chevronRight: "click-replay";
|
|
54
|
+
readonly chevronsDown: "hover-replay";
|
|
55
|
+
readonly chevronsLeft: "hover-replay";
|
|
56
|
+
readonly chevronsRight: "hover-replay";
|
|
57
|
+
readonly chevronsUp: "hover-replay";
|
|
58
|
+
readonly chevronUp: "hover-replay";
|
|
59
|
+
readonly chrome: "hover-replay";
|
|
60
|
+
readonly circle: "hover-replay";
|
|
61
|
+
readonly clipboard: "hover-replay";
|
|
62
|
+
readonly clock: "hover-replay";
|
|
63
|
+
readonly cloud: "hover-loop";
|
|
64
|
+
readonly cloudDrizzle: "hover-replay";
|
|
65
|
+
readonly cloudLightning: "hover-replay";
|
|
66
|
+
readonly cloudOff: "click-toggle";
|
|
67
|
+
readonly cloudRain: "hover-replay";
|
|
68
|
+
readonly cloudSnow: "hover-replay";
|
|
69
|
+
readonly code: "hover-replay";
|
|
70
|
+
readonly codepen: "hover-loop";
|
|
71
|
+
readonly codesandbox: "hover-replay";
|
|
72
|
+
readonly coffee: "hover-replay";
|
|
73
|
+
readonly columns: "hover-replay";
|
|
74
|
+
readonly command: "hover-replay";
|
|
75
|
+
readonly copy: "hover";
|
|
76
|
+
readonly cornerDownLeft: "hover-replay";
|
|
77
|
+
readonly cornerDownRight: "hover-replay";
|
|
78
|
+
readonly cornerLeftDown: "hover-replay";
|
|
79
|
+
readonly cornerLeftUp: "hover-replay";
|
|
80
|
+
readonly cornerRightDown: "hover-replay";
|
|
81
|
+
readonly cornerRightUp: "hover-replay";
|
|
82
|
+
readonly cornerUpLeft: "hover-replay";
|
|
83
|
+
readonly cornerUpRight: "hover-replay";
|
|
84
|
+
readonly cpu: "hover-replay";
|
|
85
|
+
readonly creditCard: "hover-replay";
|
|
86
|
+
readonly crop: "click-replay";
|
|
87
|
+
readonly crosshair: "hover-replay";
|
|
88
|
+
readonly database: "hover-replay";
|
|
89
|
+
readonly delete: "click-replay";
|
|
90
|
+
readonly disc: "hover-replay";
|
|
91
|
+
readonly divide: "hover-replay";
|
|
92
|
+
readonly divideCircle: "hover-replay";
|
|
93
|
+
readonly divideSquare: "hover-replay";
|
|
94
|
+
readonly dollarSign: "hover-replay";
|
|
95
|
+
readonly download: "click-replay";
|
|
96
|
+
readonly download2: "click-replay";
|
|
97
|
+
readonly downloadCloud: "click-replay";
|
|
98
|
+
readonly dribbble: "hover-loop";
|
|
99
|
+
readonly droplet: "hover-replay";
|
|
100
|
+
readonly edit: "hover";
|
|
101
|
+
readonly edit2: "click-replay";
|
|
102
|
+
readonly edit3: "click-replay";
|
|
103
|
+
readonly error: "loop";
|
|
104
|
+
readonly explore: "hover";
|
|
105
|
+
readonly externalLink: "hover-replay";
|
|
106
|
+
readonly facebook: "hover-loop";
|
|
107
|
+
readonly fastForward: "hover-replay";
|
|
108
|
+
readonly figma: "hover-replay";
|
|
109
|
+
readonly file: "hover-replay";
|
|
110
|
+
readonly fileMinus: "click-replay";
|
|
111
|
+
readonly filePlus: "click-replay";
|
|
112
|
+
readonly fileText: "hover-replay";
|
|
113
|
+
readonly film: "hover-replay";
|
|
114
|
+
readonly filter: "click-replay";
|
|
115
|
+
readonly flag: "hover-loop";
|
|
116
|
+
readonly folder: "hover";
|
|
117
|
+
readonly folderMinus: "click-replay";
|
|
118
|
+
readonly folderPlus: "click-replay";
|
|
119
|
+
readonly framer: "hover-replay";
|
|
120
|
+
readonly frown: "hover-replay";
|
|
121
|
+
readonly gift: "hover-replay";
|
|
122
|
+
readonly gitBranch: "hover-replay";
|
|
123
|
+
readonly gitCommit: "hover-replay";
|
|
124
|
+
readonly github: "hover-loop";
|
|
125
|
+
readonly gitlab: "hover-replay";
|
|
126
|
+
readonly gitMerge: "hover-replay";
|
|
127
|
+
readonly gitPullRequest: "hover-replay";
|
|
128
|
+
readonly globe: "hover-loop";
|
|
129
|
+
readonly grid: "hover-replay";
|
|
130
|
+
readonly hardDrive: "hover-replay";
|
|
131
|
+
readonly hash: "hover-replay";
|
|
132
|
+
readonly headphones: "hover-replay";
|
|
133
|
+
readonly heart: "click-toggle";
|
|
134
|
+
readonly heart2: "click-replay";
|
|
135
|
+
readonly help: "loop";
|
|
136
|
+
readonly hexagon: "hover-replay";
|
|
137
|
+
readonly home: "hover";
|
|
138
|
+
readonly image: "hover-replay";
|
|
139
|
+
readonly inbox: "hover-replay";
|
|
140
|
+
readonly infinity: "loop";
|
|
141
|
+
readonly info: "hover";
|
|
142
|
+
readonly instagram: "hover";
|
|
143
|
+
readonly italic: "click-replay";
|
|
144
|
+
readonly key: "hover-replay";
|
|
145
|
+
readonly layers: "hover-replay";
|
|
146
|
+
readonly layout: "hover-replay";
|
|
147
|
+
readonly lifeBuoy: "hover-replay";
|
|
148
|
+
readonly link: "click-replay";
|
|
149
|
+
readonly link2: "click-replay";
|
|
150
|
+
readonly linkedin: "hover-loop";
|
|
151
|
+
readonly list: "hover-replay";
|
|
152
|
+
readonly loading: "loop";
|
|
153
|
+
readonly loading2: "loop";
|
|
154
|
+
readonly loading3: "loop";
|
|
155
|
+
readonly loading4: "loop";
|
|
156
|
+
readonly lock: "click-toggle";
|
|
157
|
+
readonly logIn: "click-replay";
|
|
158
|
+
readonly logOut: "click-replay";
|
|
159
|
+
readonly mail: "hover";
|
|
160
|
+
readonly map: "hover-replay";
|
|
161
|
+
readonly mapPin: "hover-replay";
|
|
162
|
+
readonly maximize2: "hover-replay";
|
|
163
|
+
readonly maximizeMinimize: "click-toggle";
|
|
164
|
+
readonly maximizeMinimize2: "click-toggle";
|
|
165
|
+
readonly meh: "hover-replay";
|
|
166
|
+
readonly menu: "click-toggle";
|
|
167
|
+
readonly menu2: "click-toggle";
|
|
168
|
+
readonly menu3: "click-toggle";
|
|
169
|
+
readonly menu4: "click-toggle";
|
|
170
|
+
readonly messageCircle: "hover-replay";
|
|
171
|
+
readonly messageSquare: "hover-replay";
|
|
172
|
+
readonly micOff: "click-toggle";
|
|
173
|
+
readonly microphone: "click-toggle";
|
|
174
|
+
readonly microphone2: "click-toggle";
|
|
175
|
+
readonly minimize2: "hover-replay";
|
|
176
|
+
readonly minus: "click-replay";
|
|
177
|
+
readonly minusCircle: "click-replay";
|
|
178
|
+
readonly minusSquare: "click-replay";
|
|
179
|
+
readonly monitor: "hover-replay";
|
|
180
|
+
readonly moon: "hover-replay";
|
|
181
|
+
readonly moreHorizontal: "loop";
|
|
182
|
+
readonly moreVertical: "loop";
|
|
183
|
+
readonly mousePointer: "click-replay";
|
|
184
|
+
readonly move: "hover-replay";
|
|
185
|
+
readonly music: "hover-replay";
|
|
186
|
+
readonly navigation: "hover-replay";
|
|
187
|
+
readonly navigation2: "hover-replay";
|
|
188
|
+
readonly notification: "click-toggle";
|
|
189
|
+
readonly notification2: "click-toggle";
|
|
190
|
+
readonly notification3: "loop";
|
|
191
|
+
readonly notification4: "loop";
|
|
192
|
+
readonly octagon: "hover-replay";
|
|
193
|
+
readonly package: "hover-replay";
|
|
194
|
+
readonly paperclip: "hover-replay";
|
|
195
|
+
readonly penTool: "hover-replay";
|
|
196
|
+
readonly percent: "hover-replay";
|
|
197
|
+
readonly phone: "click-replay";
|
|
198
|
+
readonly phoneCall: "click-replay";
|
|
199
|
+
readonly phoneForwarded: "hover-replay";
|
|
200
|
+
readonly phoneIncoming: "hover-replay";
|
|
201
|
+
readonly phoneMissed: "hover-replay";
|
|
202
|
+
readonly phoneOff: "click-toggle";
|
|
203
|
+
readonly phoneOutgoing: "hover-replay";
|
|
204
|
+
readonly pieChart: "hover-replay";
|
|
205
|
+
readonly playPause: "click-toggle";
|
|
206
|
+
readonly playPauseCircle: "click-toggle";
|
|
207
|
+
readonly plusCircle: "click-replay";
|
|
208
|
+
readonly plusSquare: "click-replay";
|
|
209
|
+
readonly plusToX: "click-toggle";
|
|
210
|
+
readonly pocket: "hover-loop";
|
|
211
|
+
readonly power: "click-replay";
|
|
212
|
+
readonly printer: "click-replay";
|
|
213
|
+
readonly radio: "hover-replay";
|
|
214
|
+
readonly radioButton: "click-toggle";
|
|
215
|
+
readonly refresh: "click-replay";
|
|
216
|
+
readonly refresh2: "click-replay";
|
|
217
|
+
readonly refreshCcw: "click-replay";
|
|
218
|
+
readonly repeat: "click-replay";
|
|
219
|
+
readonly rewind: "hover-replay";
|
|
220
|
+
readonly rotateCcw: "click-replay";
|
|
221
|
+
readonly rotateCw: "click-replay";
|
|
222
|
+
readonly rss: "hover-replay";
|
|
223
|
+
readonly save: "click-replay";
|
|
224
|
+
readonly scissors: "click-replay";
|
|
225
|
+
readonly scrollDown: "loop";
|
|
226
|
+
readonly searchToX: "click-toggle";
|
|
227
|
+
readonly send: "click-replay";
|
|
228
|
+
readonly server: "hover-replay";
|
|
229
|
+
readonly settings: "hover";
|
|
230
|
+
readonly settings2: "click-toggle";
|
|
231
|
+
readonly share: "hover";
|
|
232
|
+
readonly shield: "hover-replay";
|
|
233
|
+
readonly shieldOff: "click-toggle";
|
|
234
|
+
readonly shoppingBag: "hover-replay";
|
|
235
|
+
readonly shoppingCart: "click-replay";
|
|
236
|
+
readonly shuffle: "click-replay";
|
|
237
|
+
readonly sidebar: "hover-replay";
|
|
238
|
+
readonly skipBack: "click-replay";
|
|
239
|
+
readonly skipForward: "click-replay";
|
|
240
|
+
readonly slack: "hover-replay";
|
|
241
|
+
readonly slash: "hover-replay";
|
|
242
|
+
readonly smartphone: "hover-replay";
|
|
243
|
+
readonly smile: "hover-replay";
|
|
244
|
+
readonly speaker: "hover-replay";
|
|
245
|
+
readonly square: "hover-replay";
|
|
246
|
+
readonly star: "click-toggle";
|
|
247
|
+
readonly stopCircle: "click-replay";
|
|
248
|
+
readonly sun: "hover-replay";
|
|
249
|
+
readonly sunrise: "hover-replay";
|
|
250
|
+
readonly sunset: "hover-replay";
|
|
251
|
+
readonly table: "hover-replay";
|
|
252
|
+
readonly tablet: "hover-replay";
|
|
253
|
+
readonly tag: "hover-replay";
|
|
254
|
+
readonly target: "hover-replay";
|
|
255
|
+
readonly terminal: "loop";
|
|
256
|
+
readonly thermometer: "hover-replay";
|
|
257
|
+
readonly thumbsDown: "click-replay";
|
|
258
|
+
readonly thumbUp: "click-toggle";
|
|
259
|
+
readonly toggle: "click-toggle";
|
|
260
|
+
readonly tool: "hover-replay";
|
|
261
|
+
readonly trash: "hover";
|
|
262
|
+
readonly trash2: "hover";
|
|
263
|
+
readonly trello: "hover-replay";
|
|
264
|
+
readonly trendingDown: "hover-replay";
|
|
265
|
+
readonly trendingUp: "hover-replay";
|
|
266
|
+
readonly triangle: "hover-replay";
|
|
267
|
+
readonly truck: "hover-replay";
|
|
268
|
+
readonly tv: "hover-replay";
|
|
269
|
+
readonly twitch: "hover-replay";
|
|
270
|
+
readonly twitter: "hover-loop";
|
|
271
|
+
readonly twitterX: "hover-replay";
|
|
272
|
+
readonly type: "click-replay";
|
|
273
|
+
readonly umbrella: "hover-replay";
|
|
274
|
+
readonly underline: "click-replay";
|
|
275
|
+
readonly upload: "click-replay";
|
|
276
|
+
readonly uploadCloud: "click-replay";
|
|
277
|
+
readonly user: "hover-replay";
|
|
278
|
+
readonly userCheck: "click-replay";
|
|
279
|
+
readonly userMinus: "hover";
|
|
280
|
+
readonly userPlus: "hover";
|
|
281
|
+
readonly users: "hover-replay";
|
|
282
|
+
readonly userX: "hover";
|
|
283
|
+
readonly video: "click-toggle";
|
|
284
|
+
readonly video2: "click-toggle";
|
|
285
|
+
readonly videoOff: "click-toggle";
|
|
286
|
+
readonly visibility: "click-toggle";
|
|
287
|
+
readonly visibility2: "click-toggle";
|
|
288
|
+
readonly visibility3: "click-toggle";
|
|
289
|
+
readonly voicemail: "hover-replay";
|
|
290
|
+
readonly volume: "click-toggle";
|
|
291
|
+
readonly watch: "hover-replay";
|
|
292
|
+
readonly wifi: "hover-replay";
|
|
293
|
+
readonly wifiOff: "click-toggle";
|
|
294
|
+
readonly wind: "hover-replay";
|
|
295
|
+
readonly xOctagon: "click-replay";
|
|
296
|
+
readonly xSquare: "click-replay";
|
|
297
|
+
readonly youtube: "hover";
|
|
298
|
+
readonly youtube2: "hover";
|
|
299
|
+
readonly zap: "hover-replay";
|
|
300
|
+
readonly zapOff: "click-toggle";
|
|
301
|
+
readonly zoomIn: "hover";
|
|
302
|
+
readonly zoomOut: "hover";
|
|
303
|
+
};
|
|
304
|
+
type AnimationKey = keyof typeof interactions;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* How an icon reacts to the user, matching the `interaction` field of the useAnimations catalog.
|
|
308
|
+
* - `loop`: plays continuously.
|
|
309
|
+
* - `click-toggle`: toggles between two states on click (forward, then backward).
|
|
310
|
+
* - `click-replay`: replays from the start on every click.
|
|
311
|
+
* - `hover`: plays forward on mouse enter and backward on mouse leave.
|
|
312
|
+
* - `hover-loop`: loops while hovered and stops on mouse leave.
|
|
313
|
+
* - `hover-replay`: plays once from the start on mouse enter.
|
|
314
|
+
*/
|
|
315
|
+
type Interaction = 'loop' | 'click-toggle' | 'click-replay' | 'hover' | 'hover-loop' | 'hover-replay';
|
|
316
|
+
type Animation = {
|
|
317
|
+
animationData: unknown;
|
|
318
|
+
animationKey: AnimationKey;
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
type MouseHandler = (event: React.MouseEvent<HTMLElement>) => void;
|
|
322
|
+
type EventProps = {
|
|
323
|
+
onClick: MouseHandler;
|
|
324
|
+
onMouseEnter: MouseHandler;
|
|
325
|
+
onMouseLeave: MouseHandler;
|
|
326
|
+
};
|
|
327
|
+
type AnimationProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
328
|
+
ref: React.Ref<HTMLDivElement>;
|
|
329
|
+
style: React.CSSProperties;
|
|
330
|
+
};
|
|
331
|
+
type OwnProps = {
|
|
332
|
+
/** Animation imported from `react-useanimations/lib/<name>`. */
|
|
333
|
+
animation: Animation;
|
|
334
|
+
/** Overrides the icon's default interaction, e.g. `'hover'` for an icon that normally plays on click. */
|
|
335
|
+
interaction?: Interaction;
|
|
336
|
+
/** For `click-toggle` icons: `true` shows the end state (e.g. a checked checkbox). Can be controlled. */
|
|
337
|
+
reverse?: boolean;
|
|
338
|
+
strokeColor?: string;
|
|
339
|
+
fillColor?: string;
|
|
340
|
+
/** Extra CSS declarations applied to every path of the icon. */
|
|
341
|
+
pathCss?: string;
|
|
342
|
+
/** Extra lottie-web options, applied when the animation loads. */
|
|
343
|
+
options?: Partial<AnimationConfigWithData<'svg'>>;
|
|
344
|
+
size?: number;
|
|
345
|
+
loop?: boolean | number;
|
|
346
|
+
autoplay?: boolean;
|
|
347
|
+
speed?: number;
|
|
348
|
+
wrapperStyle?: React.CSSProperties;
|
|
349
|
+
/** Renders a custom wrapper: spread `eventProps` on the interactive element, `animationProps` on a div. */
|
|
350
|
+
render?: (eventProps: EventProps, animationProps: AnimationProps) => React.ReactElement;
|
|
351
|
+
};
|
|
352
|
+
type UseAnimationsProps = OwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, keyof OwnProps>;
|
|
353
|
+
|
|
354
|
+
declare const UseAnimations: (props: UseAnimationsProps) => React.ReactElement;
|
|
355
|
+
|
|
356
|
+
export { type Animation, type AnimationKey, type AnimationProps, type EventProps, type Interaction, type UseAnimationsProps, UseAnimations as default };
|