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.
[TextField] Migrate FormHelperText to emotion (mui#24661)
- Loading branch information
1 parent
576aea2
commit c207c0c
Showing
9 changed files
with
141 additions
and
59 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
13 changes: 6 additions & 7 deletions
13
packages/material-ui/src/FormHelperText/FormHelperText.test.js
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
17 changes: 17 additions & 0 deletions
17
packages/material-ui/src/FormHelperText/formHelperTextClasses.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,17 @@ | ||
export interface FormHelperTextClasses { | ||
root: string; | ||
error: string; | ||
disabled: string; | ||
sizeSmall: string; | ||
sizeMedium: string; | ||
contained: string; | ||
focused: string; | ||
filled: string; | ||
required: string; | ||
} | ||
|
||
declare const formHelperTextClasses: FormHelperTextClasses; | ||
|
||
export function getFormHelperTextUtilityClasses(slot: string): string; | ||
|
||
export default formHelperTextClasses; |
19 changes: 19 additions & 0 deletions
19
packages/material-ui/src/FormHelperText/formHelperTextClasses.js
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,19 @@ | ||
import { generateUtilityClass, generateUtilityClasses } from '@material-ui/unstyled'; | ||
|
||
export function getFormHelperTextUtilityClasses(slot) { | ||
return generateUtilityClass('MuiFormHelperText', slot); | ||
} | ||
|
||
const formHelperTextClasses = generateUtilityClasses('MuiFormHelperText', [ | ||
'root', | ||
'error', | ||
'disabled', | ||
'sizeSmall', | ||
'sizeMedium', | ||
'contained', | ||
'focused', | ||
'filled', | ||
'required', | ||
]); | ||
|
||
export default formHelperTextClasses; |
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 './FormHelperText'; | ||
export * from './FormHelperText'; | ||
|
||
export { default as formHelperTextClasses } from './formHelperTextClasses'; | ||
export * from './formHelperTextClasses'; |
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,4 @@ | ||
export { default } from './FormHelperText'; | ||
|
||
export { default as formHelperTextClasses } from './formHelperTextClasses'; | ||
export * from './formHelperTextClasses'; |