-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add svgo to node-build-scripts * add type information and @ts-check to generate-icons-source * iconContents.tsx contains `export const ICON_NAME = <svg>...</svg>` for each icon! * generate and export IconSvgs * refactor existing Icon component to render SVGs * fix usages (no more iconSize) * svg.pt-icon style fixes, LegacyIconName extends IconName * revert documentalist usage * svgo v1 (0.7 is still used by css-loader :sad:) * iconSvgs => iconSvgPaths, map of icon name to array of path strings (d="string"). Icon component renders svg and title tags. * update DocsIcon * remove style tag from endorsed icon (the only one that had it) * fix tree test * IconSvgPaths16 and IconSvgPaths20 objects * [WIP] choose 16 or 20 based on iconSize + example really awkward experience. makes me think we want to use 20 whenever iconSize > 20. * back to iconSize * one more, InputGroup needs a css fix * requires, remove tslints * iconSize <= 16 ? use 16 : use 20 * color + style props, spread all svg props * fix React prop warnings, remove invalid clipRule (not inside clipPath) * fix icons in input groups - padding only! * improve IconExample with IconSuggest * scripts: dev:core watches labs, icons clean rm's src/generated * Button uses Icon instead of class, Dialog close button Icon * IconSuggest new syntax * MenuItem renders Icon instead of class * magic negative margin aligns SVG and DOM * fix a bunch of tests (one offending Popover test) * fix that popover test * comments * revert popoverTests, delete iconSize=inherit test * ensure itemPredicate has default value in QueryList. fixes Icon component eaxmple. * fix tree example * move icon class to data-icon attribute * update docs * put short IconName in data-icon attribute * fix tests * fix Icon props spread * examples/core-examples/common/IconSelect .pt-label supports .pt-popover-wrapper * docs language, normalizedIconName * fix MenuItem icon color and dark submenu shadow * fix input-group button icon size * Callout renders SVG Icon component (#2060) * Callout renders SVG Icon component - added .pt-callout-icon class to adjust padding & layout when icon is present - existing CSS API is unchanged - add Callout Example in docs * fix tests * 👏 totally non-breaking API! only one use of .pt-callout-icon * iconName=null overrides intent * clarify callout icon logic
- Loading branch information
Showing
52 changed files
with
732 additions
and
221 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
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
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.
db083fa
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.
SVG Icons! (#2028)
Preview: documentation | landing | table