-
-
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.
[IconButton] Migrate to emotion (#24542)
- Loading branch information
1 parent
528d3e5
commit acb2e7d
Showing
10 changed files
with
191 additions
and
90 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
18 changes: 18 additions & 0 deletions
18
packages/material-ui/src/IconButton/iconButtonClasses.d.ts
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 IconButtonClasses { | ||
root: string; | ||
disabled: string; | ||
colorInherit: string; | ||
colorPrimary: string; | ||
colorSecondary: string; | ||
edgeStart: string; | ||
edgeEnd: string; | ||
sizeSmall: string; | ||
sizeMedium: string; | ||
label: string; | ||
} | ||
|
||
declare const iconButtonClasses: IconButtonClasses; | ||
|
||
export function getIconButtonUtilityClass(slot: string): string; | ||
|
||
export default iconButtonClasses; |
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 getIconButtonUtilityClass(slot) { | ||
return generateUtilityClass('MuiIconButton', slot); | ||
} | ||
|
||
const iconButtonClasses = generateUtilityClasses('MuiIconButton', [ | ||
'root', | ||
'disabled', | ||
'colorInherit', | ||
'colorPrimary', | ||
'colorSecondary', | ||
'edgeStart', | ||
'edgeEnd', | ||
'sizeSmall', | ||
'sizeMedium', | ||
'label', | ||
]); | ||
|
||
export default iconButtonClasses; |
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,5 @@ | ||
export { default } from './IconButton'; | ||
export * from './IconButton'; | ||
|
||
export { default as iconButtonClasses } from './iconButtonClasses'; | ||
export * from './iconButtonClasses'; |
Oops, something went wrong.