-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Theming] Overhaul Icon Generation #529
Merged
Merged
Changes from 53 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
e91a13c
Remove deprecated icons (none in use, new major version required anyway)
michaeljaltamirano 9b0bd46
Delete unused style file
michaeljaltamirano c48fa01
Rename propTypes, defaultProps, and inline prop name (raises dev cons…
michaeljaltamirano fde60a3
Remove icons from gitignore
michaeljaltamirano bd37b37
Fix path import resolution, recognize theme __type signature
michaeljaltamirano 209e561
Add useIcon hook
michaeljaltamirano a95b21e
Commit new icons directory
michaeljaltamirano a1befe5
Commit shared-component/icon changes
michaeljaltamirano e118671
Delete src/svgs folder
michaeljaltamirano 2d1cdff
Update prop spreading rules
michaeljaltamirano 77c060a
Adjust src and stories
michaeljaltamirano a7ad3b1
Adjust svg build options
michaeljaltamirano d29e1bc
Push snapshot changes
michaeljaltamirano a9d1442
Bump svgr packages, removing CLI icon building steps (temporarily), a…
michaeljaltamirano 1150ceb
Merge branch 'master' into poc/icons
michaeljaltamirano e9bb4a7
Update size snapshot
michaeljaltamirano 3e20443
Remove SVGR icon generation scaffolding (no longer in use)
michaeljaltamirano eee2363
Remove MDX file, update Notes for Icons
michaeljaltamirano 752f977
Remove icon TODOs
michaeljaltamirano 006f827
use non-forked create-index
michaeljaltamirano 7aaacef
Export icons as default to avoid auto-import namespace pollution, upd…
michaeljaltamirano a5d6969
Merge branch 'master' into poc/icons
michaeljaltamirano 200202d
Fix storybook command
michaeljaltamirano 76bf5ea
Write after build to avoid whitespace issue
michaeljaltamirano 0ff0f5a
Fix serializing via Icon and useIcon setup
michaeljaltamirano a63d5c2
Delete the prettierignore
michaeljaltamirano 6caba3d
Remove src/icons specific eslint rules
michaeljaltamirano 1df8eee
Move formatting logic into create-index, run tsc after index is created
michaeljaltamirano 2420e62
Update size snapshot and Icon JSDoc comment
michaeljaltamirano ab3212a
Fix casing issue with LockIcon
michaeljaltamirano 18c5bff
Fix casing (again)
michaeljaltamirano 7af9dd7
Remove unused postbuild step command
michaeljaltamirano 232de34
Bump node version
michaeljaltamirano c54fc7e
Restore fill application in snapshots
michaeljaltamirano a810f2f
Merge branch 'master' into poc/icons
michaeljaltamirano 6061ffb
Update svg mock mapping for jest
michaeljaltamirano e222486
Delete unused icon test
michaeljaltamirano 0b46c3d
Reformat useIcon context comment
michaeljaltamirano d38d623
Update build .size-snapshot.json
michaeljaltamirano 406dc6c
Reset icon story setup
michaeljaltamirano e403469
First pass of working Icon component without fill regression
michaeljaltamirano dc2391d
Simplify usage without cloneElement to be more straightforward
michaeljaltamirano 257923c
Make arrow like our other icons
michaeljaltamirano e88ee59
Remove warning in rollup build step re: umd naming
michaeljaltamirano 1d52678
Commit working overhaul, src/icons/test functionality WIP
michaeljaltamirano ba3550e
Temporarily modify src/icons/test
michaeljaltamirano 8444b17
Commit change to prevent newline diff
michaeljaltamirano c30e964
No newline re-write, pt. 2
michaeljaltamirano 8c47a3c
Fix casing for navIcons build step
michaeljaltamirano de7e988
Update icon svg test
michaeljaltamirano 31ba633
Merge branch 'master' into poc/icons
michaeljaltamirano bbba415
Update heroku postbuild step (to avoid build error from earlier this …
michaeljaltamirano 99eac0b
Update icons stories add an SVG description
michaeljaltamirano 01a319f
Clean src/icons/**/svgs to ensure icon generation is consistent + we …
michaeljaltamirano 3c287c4
Try postbuild step without icon generation, for fun
michaeljaltamirano b9dbe22
Merge branch 'master' into poc/icons
michaeljaltamirano 6aec061
Merge branch 'master' into poc/icons
michaeljaltamirano cf2c604
Remove svgr/webpack, fix Icon prop type, simplify storybook webpack c…
michaeljaltamirano File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
}, | ||
"settings": { | ||
"import/resolver": { | ||
"node": {}, | ||
"webpack": { | ||
"config": "./.storybook/webpack.config.js" | ||
} | ||
|
@@ -54,7 +55,7 @@ | |
"no-underscore-dangle": [ | ||
"warn", | ||
{ | ||
"allow": ["__isProxy"] | ||
"allow": ["__isProxy", "__type"] | ||
} | ||
], | ||
"no-use-before-define": "off", | ||
|
@@ -123,20 +124,20 @@ | |
{ | ||
"files": ["*.tsx"], | ||
"rules": { | ||
"react/prop-types": "off" | ||
"react/prop-types": "off", | ||
"react/jsx-props-no-spreading": "off" | ||
} | ||
}, | ||
{ | ||
"files": ["stories/**/*.{js,ts,tsx}"], | ||
"files": ["src/icons/**/svgs/index.tsx"], | ||
"rules": { | ||
"no-alert": "off" | ||
"prettier/prettier": "off" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
} | ||
}, | ||
{ | ||
"files": ["src/icons/**"], | ||
"files": ["stories/**/*.{js,ts,tsx}"], | ||
"rules": { | ||
"import/extensions": "off", | ||
"react/jsx-props-no-spreading": "off" | ||
"no-alert": "off" | ||
} | ||
} | ||
] | ||
|
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 |
---|---|---|
|
@@ -78,7 +78,6 @@ typings/ | |
# build files | ||
dist/ | ||
lib/ | ||
src/icons/ | ||
.out | ||
|
||
# JetBrains | ||
|
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 |
---|---|---|
@@ -1,6 +1 @@ | ||
src/svgs/deprecated/index.js | ||
src/svgs/emojis/index.js | ||
src/svgs/glyphs/index.js | ||
src/svgs/icons/index.js | ||
src/svgs/logos/index.js | ||
src/svgs/navIcons/index.js | ||
src/icons/**/svgs/index.tsx |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now have full type coverage in
radiance-ui/src
🥳 So we can turn this off for TS files.