-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TextField] Migrate InputAdornment to emotion (#25279)
- Loading branch information
Showing
10 changed files
with
142 additions
and
63 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
23 changes: 11 additions & 12 deletions
23
packages/material-ui/src/InputAdornment/InputAdornment.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
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 './InputAdornment'; | ||
export * from './InputAdornment'; | ||
export { default } from './InputAdornment'; | ||
|
||
export { default as inputAdornmentClasses } from './inputAdornmentClasses'; | ||
export * from './inputAdornmentClasses'; |
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 './InputAdornment'; | ||
|
||
export { default as inputAdornmentClasses } from './inputAdornmentClasses'; | ||
export * from './inputAdornmentClasses'; |
9 changes: 9 additions & 0 deletions
9
packages/material-ui/src/InputAdornment/inputAdornmentClasses.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,9 @@ | ||
import { InputAdornmentClassKey } from './InputAdornment'; | ||
|
||
export type InputAdornmentClasses = Record<InputAdornmentClassKey, string>; | ||
|
||
declare const inputAdornmentClasses: InputAdornmentClasses; | ||
|
||
export function getInputAdornmentUtilityClass(slot: string): string; | ||
|
||
export default inputAdornmentClasses; |
17 changes: 17 additions & 0 deletions
17
packages/material-ui/src/InputAdornment/inputAdornmentClasses.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,17 @@ | ||
import { generateUtilityClass, generateUtilityClasses } from '@material-ui/unstyled'; | ||
|
||
export function getInputAdornmentUtilityClass(slot) { | ||
return generateUtilityClass('MuiInputAdornment', slot); | ||
} | ||
|
||
const inputAdornmentClasses = generateUtilityClasses('MuiInputAdornment', [ | ||
'root', | ||
'filled', | ||
'positionStart', | ||
'positionEnd', | ||
'disablePointerEvents', | ||
'hiddenLabel', | ||
'sizeSmall', | ||
]); | ||
|
||
export default inputAdornmentClasses; |