-
-
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.
[Checkbox] Migrate to emotion (#24702)
- Loading branch information
Showing
50 changed files
with
158 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export { default } from './BadgeUnstyled'; | ||
export * from './BadgeUnstyled'; | ||
|
||
export { default as badgeUnstyledClasses } from './badgeUnstyledClasses'; | ||
export * from './badgeUnstyledClasses'; |
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,8 @@ | ||
export { default } from './SliderUnstyled'; | ||
export * from './SliderUnstyled'; | ||
|
||
export { default as SliderValueLabelUnstyled } from './SliderValueLabelUnstyled'; | ||
export * from './SliderValueLabelUnstyled'; | ||
|
||
export { default as sliderUnstyledClasses } from './sliderUnstyledClasses'; | ||
export * from './sliderUnstyledClasses'; |
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,4 +1,5 @@ | ||
export { default } from './AlertTitle'; | ||
export * from './AlertTitle'; | ||
|
||
export { default as alertTitleClasses } from './alertTitleClasses'; | ||
export * from './alertTitleClasses'; |
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,3 +1,4 @@ | ||
export { default } from './AlertTitle'; | ||
|
||
export { default as alertTitleClasses } from './alertTitleClasses'; | ||
export * from './alertTitleClasses'; |
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,4 +1,5 @@ | ||
export { default } from './AppBar'; | ||
export * from './AppBar'; | ||
|
||
export { default as appBarClasses } from './appBarClasses'; | ||
export * from './appBarClasses'; |
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,3 +1,4 @@ | ||
export { default } from './AppBar'; | ||
|
||
export { default as appBarClasses } from './appBarClasses'; | ||
export * from './appBarClasses'; |
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,4 +1,5 @@ | ||
export { default } from './Avatar'; | ||
export * from './Avatar'; | ||
|
||
export { default as avatarClasses } from './avatarClasses'; | ||
export * from './avatarClasses'; |
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,3 +1,4 @@ | ||
export { default } from './Avatar'; | ||
|
||
export { default as avatarClasses } from './avatarClasses'; | ||
export * from './avatarClasses'; |
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,4 +1,5 @@ | ||
export { default } from './Button'; | ||
export * from './Button'; | ||
|
||
export { default as buttonClasses } from './buttonClasses'; | ||
export * from './buttonClasses'; |
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,3 +1,4 @@ | ||
export { default } from './Button'; | ||
|
||
export { default as buttonClasses } from './buttonClasses'; | ||
export * from './buttonClasses'; |
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,8 @@ | ||
export { default } from './ButtonBase'; | ||
export * from './ButtonBase'; | ||
|
||
export { default as buttonBaseClasses } from './buttonBaseClasses'; | ||
export * from './buttonBaseClasses'; | ||
|
||
export { default as touchRippleClasses } from './touchRippleClasses'; | ||
export * from './touchRippleClasses'; |
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,5 +1,7 @@ | ||
export { default } from './ButtonBase'; | ||
|
||
export { default as buttonBaseClasses } from './buttonBaseClasses'; | ||
export * from './buttonBaseClasses'; | ||
|
||
export { default as touchRippleClasses } from './touchRippleClasses'; | ||
export * from './touchRippleClasses'; |
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,4 +1,5 @@ | ||
export { default } from './Card'; | ||
export * from './Card'; | ||
|
||
export { default as cardClasses } from './cardClasses'; | ||
export * from './cardClasses'; |
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,3 +1,4 @@ | ||
export { default } from './Card'; | ||
|
||
export { default as cardClasses } from './cardClasses'; | ||
export * from './cardClasses'; |
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,4 +1,5 @@ | ||
export { default } from './CardActions'; | ||
export * from './CardActions'; | ||
|
||
export { default as cardActionsClasses } from './cardActionsClasses'; | ||
export * from './cardActionsClasses'; |
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,3 +1,4 @@ | ||
export { default } from './CardActions'; | ||
|
||
export { default as cardActionsClasses } from './cardActionsClasses'; | ||
export * from './cardActionsClasses'; |
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,4 +1,5 @@ | ||
export { default } from './CardContent'; | ||
export * from './CardContent'; | ||
|
||
export { default as cardContentClasses } from './cardContentClasses'; | ||
export * from './cardContentClasses'; |
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,3 +1,4 @@ | ||
export { default } from './CardContent'; | ||
|
||
export { default as cardContentClasses } from './cardContentClasses'; | ||
export * from './cardContentClasses'; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { CheckboxClassKey } from './Checkbox'; | ||
|
||
declare const checkboxClasses: Record<CheckboxClassKey, string>; | ||
|
||
export function getCheckboxUtilityClass(slot: string): string; | ||
|
||
export default checkboxClasses; |
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,16 @@ | ||
import { generateUtilityClass, generateUtilityClasses } from '@material-ui/unstyled'; | ||
|
||
export function getCheckboxUtilityClass(slot) { | ||
return generateUtilityClass('MuiCheckbox', slot); | ||
} | ||
|
||
const checkboxClasses = generateUtilityClasses('MuiCheckbox', [ | ||
'root', | ||
'checked', | ||
'disabled', | ||
'indeterminate', | ||
'colorPrimary', | ||
'colorSecondary', | ||
]); | ||
|
||
export default checkboxClasses; |
Oops, something went wrong.