-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: refactor Button and Anchor (#492)
some breaking changes such as link renamed into href but since Anchor is in alpha mode, no bump in main version <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Updated anchor components across various files to use `href` attribute instead of `link`. - Introduced new properties like `target`, `className`, and `noTruncate` across different UI components for enhanced customization and functionality. - Added new story examples for `Anchor` and `Button` components in the documentation to showcase the usage of new properties. - **Bug Fixes** - Corrected the import paths and properties for `ButtonLink` and `Anchor` components to ensure proper functionality. - **Documentation** - Enhanced component stories in documentation with additional arguments and updated existing ones for better clarity and control. - **Refactor** - Removed unused properties like `onClick` and `type` from `Button` components to streamline component interfaces. - Adjusted utility functions to support new `noTruncate` property, improving button text handling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
16 changed files
with
205 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
packages/ui-components/src/common/__tests__/utilities.test.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.