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.
[Modal] Migrate to emotion + unstyled (mui#24857)
- Loading branch information
Showing
74 changed files
with
1,701 additions
and
835 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as React from 'react'; | ||
import ApiPage from 'docs/src/modules/components/ApiPage'; | ||
import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; | ||
import jsonPageContent from './modal-unstyled.json'; | ||
|
||
export default function Page(props) { | ||
const { descriptions, pageContent } = props; | ||
return <ApiPage descriptions={descriptions} pageContent={pageContent} />; | ||
} | ||
|
||
Page.getInitialProps = () => { | ||
const req = require.context( | ||
'docs/translations/api-docs/modal-unstyled', | ||
false, | ||
/modal-unstyled.*.json$/, | ||
); | ||
const descriptions = mapApiPageTranslations(req); | ||
|
||
return { | ||
descriptions, | ||
pageContent: jsonPageContent, | ||
}; | ||
}; |
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,40 @@ | ||
{ | ||
"props": { | ||
"children": { "type": { "name": "custom", "description": "element" }, "required": true }, | ||
"open": { "type": { "name": "bool" }, "required": true }, | ||
"BackdropComponent": { "type": { "name": "elementType" } }, | ||
"BackdropProps": { "type": { "name": "object" } }, | ||
"classes": { "type": { "name": "object" } }, | ||
"closeAfterTransition": { "type": { "name": "bool" } }, | ||
"component": { "type": { "name": "elementType" } }, | ||
"components": { | ||
"type": { "name": "shape", "description": "{ Root?: elementType }" }, | ||
"default": "{}" | ||
}, | ||
"componentsProps": { "type": { "name": "object" }, "default": "{}" }, | ||
"container": { "type": { "name": "union", "description": "HTML element<br>| func" } }, | ||
"disableAutoFocus": { "type": { "name": "bool" } }, | ||
"disableEnforceFocus": { "type": { "name": "bool" } }, | ||
"disableEscapeKeyDown": { "type": { "name": "bool" } }, | ||
"disablePortal": { "type": { "name": "bool" } }, | ||
"disableRestoreFocus": { "type": { "name": "bool" } }, | ||
"disableScrollLock": { "type": { "name": "bool" } }, | ||
"hideBackdrop": { "type": { "name": "bool" } }, | ||
"keepMounted": { "type": { "name": "bool" } }, | ||
"onBackdropClick": { "type": { "name": "func" } }, | ||
"onClose": { "type": { "name": "func" } } | ||
}, | ||
"name": "ModalUnstyled", | ||
"styles": { | ||
"classes": ["root", "hidden"], | ||
"globalClasses": { "root": "MuiModal-root", "hidden": "MuiModal-hidden" }, | ||
"name": null | ||
}, | ||
"spread": true, | ||
"forwardsRefTo": "HTMLDivElement", | ||
"filename": "/packages/material-ui-unstyled/src/ModalUnstyled/ModalUnstyled.js", | ||
"inheritance": null, | ||
"demos": "<ul><li><a href=\"/components/modal/\">Modal</a></li></ul>", | ||
"styledComponent": true, | ||
"cssComponent": false | ||
} |
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
Oops, something went wrong.