-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SvgIcon] Migrate to emotion (#24506)
- Loading branch information
1 parent
0edc67f
commit 1b9eed2
Showing
12 changed files
with
150 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
export { default } from './SvgIcon'; | ||
export * from './SvgIcon'; | ||
export { default as svgIconClasses } from './svgIconClasses'; | ||
export * from './svgIconClasses'; |
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 +1,3 @@ | ||
export { default } from './SvgIcon'; | ||
export { default as svgIconClasses } from './svgIconClasses'; | ||
export * from './svgIconClasses'; |
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,18 @@ | ||
export interface SvgIconClasses { | ||
root: string; | ||
colorPrimary: string; | ||
colorSecondary: string; | ||
colorAction: string; | ||
colorError: string; | ||
colorDisabled: string; | ||
fontSizeInherit: string; | ||
fontSizeSmall: string; | ||
fontSizeMedium: string; | ||
fontSizeLarge: string; | ||
} | ||
|
||
declare const svgIconClasses: SvgIconClasses; | ||
|
||
export function getSvgIconUtilityClass(slot: string): string; | ||
|
||
export default svgIconClasses; |
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,20 @@ | ||
import { generateUtilityClass, generateUtilityClasses } from '@material-ui/unstyled'; | ||
|
||
export function getSvgIconUtilityClass(slot) { | ||
return generateUtilityClass('MuiSvgIcon', slot); | ||
} | ||
|
||
const svgIconClasses = generateUtilityClasses('MuiSvgIcon', [ | ||
'root', | ||
'colorPrimary', | ||
'colorSecondary', | ||
'colorAction', | ||
'colorError', | ||
'colorDisabled', | ||
'fontSizeInherit', | ||
'fontSizeSmall', | ||
'fontSizeMedium', | ||
'fontSizeLarge', | ||
]); | ||
|
||
export default svgIconClasses; |
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