forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Switch] Migrate SwitchBase to emotion (mui#24552)
- Loading branch information
1 parent
ad78dec
commit 7faada0
Showing
6 changed files
with
98 additions
and
41 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export interface SwitchBaseClasses { | ||
root: string; | ||
checked: string; | ||
disabled: string; | ||
input: string; | ||
} | ||
|
||
declare const switchBaseClasses: SwitchBaseClasses; | ||
|
||
export function getSwitchBaseUtilityClass(slot: string): string; | ||
|
||
export default switchBaseClasses; |
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,14 @@ | ||
import { generateUtilityClass, generateUtilityClasses } from '@material-ui/unstyled'; | ||
|
||
export function getSwitchBaseUtilityClass(slot) { | ||
return generateUtilityClass('PrivateSwitchBase', slot); | ||
} | ||
|
||
const switchBaseClasses = generateUtilityClasses('PrivateSwitchBase', [ | ||
'root', | ||
'checked', | ||
'disabled', | ||
'input', | ||
]); | ||
|
||
export default switchBaseClasses; |
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