Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Theming] Overhaul Icon Generation (#529)
* Remove deprecated icons (none in use, new major version required anyway) * Delete unused style file * Rename propTypes, defaultProps, and inline prop name (raises dev console warning) * Remove icons from gitignore * Fix path import resolution, recognize theme __type signature * Add useIcon hook * Commit new icons directory * Commit shared-component/icon changes * Delete src/svgs folder * Update prop spreading rules * Adjust src and stories * Adjust svg build options * Push snapshot changes * Bump svgr packages, removing CLI icon building steps (temporarily), add test suite for new icons setup * Update size snapshot * Remove SVGR icon generation scaffolding (no longer in use) * Remove MDX file, update Notes for Icons * Remove icon TODOs * use non-forked create-index * Export icons as default to avoid auto-import namespace pollution, update dependencies and build steps * Fix storybook command * Write after build to avoid whitespace issue * Fix serializing via Icon and useIcon setup * Delete the prettierignore * Remove src/icons specific eslint rules * Move formatting logic into create-index, run tsc after index is created * Update size snapshot and Icon JSDoc comment * Fix casing issue with LockIcon * Fix casing (again) * Remove unused postbuild step command * Bump node version * Restore fill application in snapshots * Update svg mock mapping for jest * Delete unused icon test * Reformat useIcon context comment * Update build .size-snapshot.json * Reset icon story setup * First pass of working Icon component without fill regression * Simplify usage without cloneElement to be more straightforward * Make arrow like our other icons * Remove warning in rollup build step re: umd naming * Commit working overhaul, src/icons/test functionality WIP * Temporarily modify src/icons/test * Commit change to prevent newline diff * No newline re-write, pt. 2 * Fix casing for navIcons build step * Update icon svg test * Update heroku postbuild step (to avoid build error from earlier this week) * Update icons stories add an SVG description * Clean src/icons/**/svgs to ensure icon generation is consistent + we remove stale icons * Try postbuild step without icon generation, for fun * Remove svgr/webpack, fix Icon prop type, simplify storybook webpack config, update eslint rule for import extensions
- Loading branch information