-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Stepper] Migrate StepConnector to emotion (#25092)
- Loading branch information
1 parent
c85bc0b
commit 4f7797e
Showing
11 changed files
with
151 additions
and
75 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
21 changes: 9 additions & 12 deletions
21
packages/material-ui/src/StepConnector/StepConnector.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 './StepConnector'; | ||
export * from './StepConnector'; | ||
|
||
export { default as stepConnectorClasses } from './stepConnectorClasses'; | ||
export * from './stepConnectorClasses'; |
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 './StepConnector'; | ||
|
||
export { default as stepConnectorClasses } from './stepConnectorClasses'; | ||
export * from './stepConnectorClasses'; |
7 changes: 7 additions & 0 deletions
7
packages/material-ui/src/StepConnector/stepConnectorClasses.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,7 @@ | ||
import { StepConnectorClasskey } from './StepConnector'; | ||
|
||
declare const stepConnectorClasses: Record<StepConnectorClasskey, string>; | ||
|
||
export function getStepConnectorUtilityClass(slot: string): string; | ||
|
||
export default stepConnectorClasses; |
20 changes: 20 additions & 0 deletions
20
packages/material-ui/src/StepConnector/stepConnectorClasses.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,20 @@ | ||
import { generateUtilityClass, generateUtilityClasses } from '@material-ui/unstyled'; | ||
|
||
export function getStepConnectorUtilityClass(slot) { | ||
return generateUtilityClass('MuiStepConnector', slot); | ||
} | ||
|
||
const stepConnectorClasses = generateUtilityClasses('MuiStepConnector', [ | ||
'root', | ||
'horizontal', | ||
'vertical', | ||
'alternativeLabel', | ||
'active', | ||
'completed', | ||
'disabled', | ||
'line', | ||
'lineHorizontal', | ||
'lineVertical', | ||
]); | ||
|
||
export default stepConnectorClasses; |
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