forked from mui/material-ui
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tab] Migrate TabScrollButton to emotion (mui#24654)
- Loading branch information
Showing
9 changed files
with
107 additions
and
38 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/TabScrollButton/TabScrollButton.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 './TabScrollButton'; | ||
export * from './TabScrollButton'; | ||
|
||
export { default as tabScrollButtonClasses } from './tabScrollButtonClasses'; | ||
export * from './tabScrollButtonClasses'; |
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 './TabScrollButton'; | ||
|
||
export { default as tabScrollButtonClasses } from './tabScrollButtonClasses'; | ||
export * from './tabScrollButtonClasses'; |
12 changes: 12 additions & 0 deletions
12
packages/material-ui/src/TabScrollButton/tabScrollButtonClasses.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,12 @@ | ||
export interface TabScrollButtonClasses { | ||
root: string; | ||
vertical: string; | ||
horizontal: string; | ||
disabled: string; | ||
} | ||
|
||
declare const tabScrollButtonClasses: TabScrollButtonClasses; | ||
|
||
export function getTabScrollButtonUtilityClass(slot: string): string; | ||
|
||
export default tabScrollButtonClasses; |
14 changes: 14 additions & 0 deletions
14
packages/material-ui/src/TabScrollButton/tabScrollButtonClasses.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,14 @@ | ||
import { generateUtilityClass, generateUtilityClasses } from '@material-ui/unstyled'; | ||
|
||
export function getTabScrollButtonUtilityClass(slot) { | ||
return generateUtilityClass('MuiTabScrollButton', slot); | ||
} | ||
|
||
const tabScrollButtonClasses = generateUtilityClasses('MuiTabScrollButton', [ | ||
'root', | ||
'vertical', | ||
'horizontal', | ||
'disabled', | ||
]); | ||
|
||
export default tabScrollButtonClasses; |