Refactor: Standardize Icon Handle Types to Use AnimatedIconHandle#25
Refactor: Standardize Icon Handle Types to Use AnimatedIconHandle#25Abhijit-Jha merged 4 commits intoitshover:masterfrom
AnimatedIconHandle#25Conversation
|
@luth-v is attempting to deploy a commit to the itshover's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Amazing work @luth-v , great refactor overall Since icon handle types have changed, you’ll need to run npm run registry:build to regenerate the registry. Also, please test the icons once to ensure everything works as expected after the changes. |
|
Also, since this PR changes the icon handles, the previous Hero section update will need to be adjusted accordingly. Please make sure to update that part as well. |
|
Important Review skippedToo many files! 149 files out of 299 files are above the max files limit of 150. You can disable this status message by setting the Comment |
|
@Abhijit-Jha I've built & tested the registry to make sure the icons are working both in documentation page & as library Doc page
Registry
I also added new section in Contributing.md for simple tutorial on how to test the library locally |

Summary
Refactors all icon components to use the shared
AnimatedIconHandletype instead of individual component-specific handle types (e.g.,YoutubeIconHandle,TerminalIconHandle, etc.)Changes
YoutubeIconHandle,TerminalIconHandle)AnimatedIconHandlefrom./typesforwardRefgeneric types fromforwardRef<SpecificIconHandle, AnimatedIconProps>toforwardRef<AnimatedIconHandle, AnimatedIconProps>Testingsection inCONTRIBUTING.mdfor simple tutorial on testing the icons in both doc site & as library consumerSpecial Cases
trash-icon.tsx: Preserved the customTrashIconPropsinterface as it extendsAnimatedIconPropswith additional properties (shakeOnClick,dangerHover,keepOpenOnDelete)layout-sidebar-right-collapse-icon.tsx: Skipped as it uses a different pattern (functional component withoutforwardRef)