-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Icon component using SVGR (#1609)
* Transfer Icon work to a branch cut from V2 * Export Icon component from index.ts * Update package.json to effectively pin the version of babel/preset-env, use Storybook controls to eliminate need for 238 storybook examples for Icon * Regenerate yarn.lock * Add tests for Icon component * Remove preset-env * Update yarn.lock * Fix serverside test * Use SVGR to convert icons to inline React components * Fix Icon component in Storybook * Fix loading SVG from both JSX and CSS * Use resource query to use SVG as react component * Import all icons * Add stories for icons * Update example page * Update docs, remove old fontawesome packages * Rename svgr resource query Co-authored-by: Arianna Kellogg <ari@truss.works>
- Loading branch information
1 parent
dc531b2
commit 317c859
Showing
18 changed files
with
4,088 additions
and
352 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,8 @@ | |
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"import/resolver": "webpack" | ||
}, | ||
"overrides": [ | ||
{ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = 'svg' |
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
Oops, something went wrong.