-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Add createMuiStrictModeTheme (#20523)
- Loading branch information
Showing
30 changed files
with
234 additions
and
25 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as React from 'react'; | ||
import { Transition } from '@material-ui/react-transition-group'; | ||
import { useForkRef } from '../utils'; | ||
import Collapse from './Collapse'; | ||
|
||
/** | ||
* @ignore - internal component. | ||
*/ | ||
const StrictModeCollapse = React.forwardRef(function StrictModeCollapse(props, forwardedRef) { | ||
const domRef = React.useRef(null); | ||
const ref = useForkRef(domRef, forwardedRef); | ||
|
||
return ( | ||
<Collapse | ||
{...props} | ||
findDOMNode={() => domRef.current} | ||
ref={ref} | ||
TransitionComponent={Transition} | ||
/> | ||
); | ||
}); | ||
|
||
export default StrictModeCollapse; |
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,2 @@ | ||
export { default } from './Collapse'; | ||
export { default, default as unstable_StrictModeCollapse } from './Collapse'; | ||
export * from './Collapse'; |
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,3 @@ | ||
export { default } from './Collapse'; | ||
// eslint-disable-next-line camelcase | ||
export { default as unstable_StrictModeCollapse } from './StrictModeCollapse'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as React from 'react'; | ||
import { Transition } from '@material-ui/react-transition-group'; | ||
import { useForkRef } from '../utils'; | ||
import Fade from './Fade'; | ||
|
||
/** | ||
* @ignore - internal component. | ||
*/ | ||
const StrictModeFade = React.forwardRef(function StrictModeFade(props, forwardedRef) { | ||
const domRef = React.useRef(null); | ||
const ref = useForkRef(domRef, forwardedRef); | ||
|
||
return ( | ||
<Fade | ||
{...props} | ||
findDOMNode={() => domRef.current} | ||
ref={ref} | ||
TransitionComponent={Transition} | ||
/> | ||
); | ||
}); | ||
|
||
export default StrictModeFade; |
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,2 @@ | ||
export { default } from './Fade'; | ||
export { default, default as unstable_StrictModeFade } from './Fade'; | ||
export * from './Fade'; |
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,3 @@ | ||
export { default } from './Fade'; | ||
// eslint-disable-next-line camelcase | ||
export { default as unstable_StrictModeFade } from './StrictModeFade'; |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as React from 'react'; | ||
import { Transition } from '@material-ui/react-transition-group'; | ||
import { useForkRef } from '../utils'; | ||
import Grow from './Grow'; | ||
|
||
/** | ||
* @ignore - internal component. | ||
*/ | ||
const StrictModeGrow = React.forwardRef(function StrictModeGrow(props, forwardedRef) { | ||
const domRef = React.useRef(null); | ||
const ref = useForkRef(domRef, forwardedRef); | ||
|
||
return ( | ||
<Grow | ||
{...props} | ||
findDOMNode={() => domRef.current} | ||
ref={ref} | ||
TransitionComponent={Transition} | ||
/> | ||
); | ||
}); | ||
|
||
export default StrictModeGrow; |
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,2 @@ | ||
export { default } from './Grow'; | ||
export { default, default as unstable_StrictModeGrow } from './Grow'; | ||
export * from './Grow'; |
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,3 @@ | ||
export { default } from './Grow'; | ||
// eslint-disable-next-line camelcase | ||
export { default as unstable_StrictModeGrow } from './StrictModeGrow'; |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as React from 'react'; | ||
import { Transition } from '@material-ui/react-transition-group'; | ||
import { useForkRef } from '../utils'; | ||
import Slide from './Slide'; | ||
|
||
/** | ||
* @ignore - internal component. | ||
*/ | ||
const StrictModeSlide = React.forwardRef(function StrictModeSlide(props, forwardedRef) { | ||
const domRef = React.useRef(null); | ||
const ref = useForkRef(domRef, forwardedRef); | ||
|
||
return ( | ||
<Slide | ||
{...props} | ||
findDOMNode={() => domRef.current} | ||
ref={ref} | ||
TransitionComponent={Transition} | ||
/> | ||
); | ||
}); | ||
|
||
export default StrictModeSlide; |
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,2 @@ | ||
export { default } from './Slide'; | ||
export { default, default as unstable_StrictModeSlide } from './Slide'; | ||
export * from './Slide'; |
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,3 @@ | ||
export { default } from './Slide'; | ||
// eslint-disable-next-line camelcase | ||
export { default as unstable_StrictModeSlide } from './StrictModeSlide'; |
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,23 @@ | ||
import * as React from 'react'; | ||
import { Transition } from '@material-ui/react-transition-group'; | ||
import { useForkRef } from '../utils'; | ||
import Zoom from './Zoom'; | ||
|
||
/** | ||
* @ignore - internal component. | ||
*/ | ||
const StrictModeZoom = React.forwardRef(function StrictModeZoom(props, forwardedRef) { | ||
const domRef = React.useRef(null); | ||
const ref = useForkRef(domRef, forwardedRef); | ||
|
||
return ( | ||
<Zoom | ||
{...props} | ||
findDOMNode={() => domRef.current} | ||
ref={ref} | ||
TransitionComponent={Transition} | ||
/> | ||
); | ||
}); | ||
|
||
export default StrictModeZoom; |
Oops, something went wrong.