forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[List] Migrate ListSubheader to emotion (mui#24561)
- Loading branch information
1 parent
27bbb5b
commit 841e805
Showing
10 changed files
with
137 additions
and
50 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
13 changes: 6 additions & 7 deletions
13
packages/material-ui/src/ListSubheader/ListSubheader.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 './ListSubheader'; | ||
export * from './ListSubheader'; | ||
|
||
export { default as listSubheaderClasses } from './listSubheaderClasses'; | ||
export * from './listSubheaderClasses'; |
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 './ListSubheader'; | ||
|
||
export { default as listSubheaderClasses } from './listSubheaderClasses'; | ||
export * from './listSubheaderClasses'; |
14 changes: 14 additions & 0 deletions
14
packages/material-ui/src/ListSubheader/listSubheaderClasses.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,14 @@ | ||
export interface ListSubheaderClasses { | ||
root: string; | ||
colorPrimary: string; | ||
colorInherit: string; | ||
gutters: string; | ||
inset: string; | ||
sticky: string; | ||
} | ||
|
||
declare const listSubheaderClasses: ListSubheaderClasses; | ||
|
||
export function getListSubheaderUtilityClass(slot: string): string; | ||
|
||
export default listSubheaderClasses; |
16 changes: 16 additions & 0 deletions
16
packages/material-ui/src/ListSubheader/listSubheaderClasses.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,16 @@ | ||
import { generateUtilityClass, generateUtilityClasses } from '@material-ui/unstyled'; | ||
|
||
export function getListSubheaderUtilityClass(slot) { | ||
return generateUtilityClass('MuiListSubheader', slot); | ||
} | ||
|
||
const listSubheaderClasses = generateUtilityClasses('MuiListSubheader', [ | ||
'root', | ||
'colorPrimary', | ||
'colorInherit', | ||
'gutters', | ||
'inset', | ||
'sticky', | ||
]); | ||
|
||
export default listSubheaderClasses; |