diff --git a/babel.config.js b/babel.config.js index 41d369c661a70..e6a9950a2fc1f 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,8 +1,3 @@ -const path = require('path'); - -const errorCodesPath = path.resolve(__dirname, './docs/public/static/error-codes.json'); -const missingError = process.env.MUI_EXTRACT_ERROR_CODES === 'true' ? 'write' : 'annotate'; - let defaultPresets; // We release a ES version of Material-UI. @@ -33,15 +28,6 @@ const defaultAlias = { module.exports = { presets: defaultPresets.concat(['@babel/preset-react', '@babel/preset-typescript']), plugins: [ - [ - 'babel-plugin-macros', - { - muiError: { - errorCodesPath, - missingError, - }, - }, - ], 'babel-plugin-optimize-clsx', ['@babel/plugin-proposal-class-properties', { loose: true }], ['@babel/plugin-proposal-object-rest-spread', { loose: true }], diff --git a/docs/babel.config.js b/docs/babel.config.js index 7f72e473df755..5aab2abbc2d62 100644 --- a/docs/babel.config.js +++ b/docs/babel.config.js @@ -1,8 +1,5 @@ const bpmr = require('babel-plugin-module-resolver'); const fse = require('fs-extra'); -const path = require('path'); - -const errorCodesPath = path.resolve(__dirname, './public/static/error-codes.json'); function resolvePath(sourcePath, currentFile, opts) { if (sourcePath === 'markdown') { @@ -19,6 +16,11 @@ const alias = { '@material-ui/x-grid-modules': '../packages/grid/x-grid-modules/src', '@material-ui/x-grid': '../packages/grid/x-grid/src', '@material-ui/x-license': '../packages/x-license/src', + // Help in the event npm and git are significantly desynchronized. + '@material-ui/core': './node_modules/@material-ui/monorepo/packages/material-ui/src', + '@material-ui/styles': './node_modules/@material-ui/monorepo/packages/material-ui-styles/src', + '@material-ui/docs': './node_modules/@material-ui/monorepo/packages/material-ui-docs/src', + '@material-ui/lab': './node_modules/@material-ui/monorepo/packages/material-ui-lab/src', docs: './node_modules/@material-ui/monorepo/docs', docsx: './', modules: './node_modules/@material-ui/monorepo/modules', @@ -35,11 +37,11 @@ module.exports = { ], plugins: [ [ - 'babel-plugin-macros', + 'babel-plugin-transform-rename-import', { - muiError: { - errorCodesPath, - }, + replacements: [ + { original: '@material-ui/utils/macros/MuiError.macro', replacement: 'react' }, + ], }, ], 'babel-plugin-optimize-clsx', diff --git a/docs/src/pages/components/data-grid/getting-started/getting-started.md b/docs/src/pages/components/data-grid/getting-started/getting-started.md index 750f45e0c5064..83e3716547226 100644 --- a/docs/src/pages/components/data-grid/getting-started/getting-started.md +++ b/docs/src/pages/components/data-grid/getting-started/getting-started.md @@ -109,7 +109,7 @@ The data grid comes in 2 versions: The features only available in the commercial version are suffixed with a ⚡️ icon. - + ### Try XGrid for free @@ -120,10 +120,7 @@ Please take the component for a test run, no need to contact us. If you have an enterprise grid running with an expired or missing license key the grid displays a watermark, and a warning is shown in the console. - -
-
-
+ See [Pricing](https://material-ui.com/store/items/material-ui-x/) for details on purchasing licenses. @@ -131,8 +128,8 @@ See [Pricing](https://material-ui.com/store/items/material-ui-x/) for details on The following table summarizes the features available in the community `DataGrid` and enterprise `XGrid` components. All the features of the community version are available in the enterprise one. -| | Community | Enterprise ⚡️ | -| --------------------------------------------------------------------------------------- | --------- | -------------- | +| Features | Community | Enterprise ⚡️ | +| :-------------------------------------------------------------------------------------- | --------- | -------------- | | **Column** | | | | [Column resizing](/components/data-grid/columns/#column-resizing) | ❌ | ✅ | | [Column groups](/components/data-grid/columns/#column-groups) | 🚧 | 🚧 | diff --git a/docs/src/pages/landing/Pro.js b/docs/src/pages/landing/Pro.js deleted file mode 100644 index c8fe2433d8940..0000000000000 --- a/docs/src/pages/landing/Pro.js +++ /dev/null @@ -1,43 +0,0 @@ -import React from 'react'; -import classNames from 'classnames'; -import { makeStyles } from '@material-ui/core/styles'; -import Link from 'docs/src/modules/components/Link'; -import { useSelector } from 'react-redux'; - -const useStyles = makeStyles( - (theme) => ({ - root: { - padding: theme.spacing(1, 2, 1, 2), - right: 0, - left: 0, - color: theme.palette.common.white, - backgroundColor: '#626980', - position: 'relative', - display: 'none', - [theme.breakpoints.up('sm')]: { - display: 'flex', - top: 100, - left: 'auto', - position: 'absolute', - borderBottomLeftRadius: 36 / 2, - borderTopLeftRadius: 36 / 2, - }, - }, - }), - { name: 'Pro' }, -); - -export default function Pro() { - const classes = useStyles(); - const t = useSelector((state) => state.options.t); - - return ( - - {t('getProfessionalSupport')} - - ); -} diff --git a/docs/src/pages/landing/QuickWord.js b/docs/src/pages/landing/QuickWord.js deleted file mode 100644 index b5cd1f878648b..0000000000000 --- a/docs/src/pages/landing/QuickWord.js +++ /dev/null @@ -1,68 +0,0 @@ -import React from 'react'; -import { useSelector } from 'react-redux'; -import { makeStyles } from '@material-ui/core/styles'; -import Typography from '@material-ui/core/Typography'; -import NoSsr from '@material-ui/core/NoSsr'; -import Link from 'docs/src/modules/components/Link'; - -const backers = [ - { - href: - 'https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=npm-material-ui&utm_medium=referral&utm_campaign=homepage', - alt: 'tidelift', - title: 'Tidelift — Enterprise-ready open source software', - }, - { - href: 'https://bit.dev', - alt: 'bitsrc', - title: 'Bitsrc — The fastest way to share code', - }, - { - href: 'https://www.text-em-all.com', - alt: 'textemall', - title: 'Text-Em-All - Mass Text Messaging & Automated Calling', - }, - { - href: - 'https://www.sencha.com/products/extreact/extreact-for-material-ui/?utm_source=materialui&utm_medium=referral&utm_content=product-200429-extreactmaterialui', - alt: 'sencha', - title: 'Sencha - UI Components for Productive Dev Teams', - }, -]; - -const useStyles = makeStyles( - (theme) => ({ - root: { - textAlign: 'center', - minHeight: 60, - paddingBottom: theme.spacing(2), - }, - }), - { name: 'QuickWord' }, -); - -export default function QuickWord() { - const classes = useStyles(); - const t = useSelector((state) => state.options.t); - const backer = backers[Math.floor(backers.length * Math.random())]; - - return ( -
- {t('homeQuickWord')} - - - {backer.title} - - -
- ); -} diff --git a/docs/src/pages/landing/Quotes.js b/docs/src/pages/landing/Quotes.js deleted file mode 100644 index 0aa0b45dd3a00..0000000000000 --- a/docs/src/pages/landing/Quotes.js +++ /dev/null @@ -1,263 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import { useSelector } from 'react-redux'; -import { makeStyles } from '@material-ui/core/styles'; -import Link from 'docs/src/modules/components/Link'; -import Card from '@material-ui/core/Card'; -import CardActionArea from '@material-ui/core/CardActionArea'; -import CardContent from '@material-ui/core/CardContent'; -import Grid from '@material-ui/core/Grid'; -import Typography from '@material-ui/core/Typography'; -import Avatar from '@material-ui/core/Avatar'; -import TwitterIcon from '@material-ui/icons/Twitter'; -import NoSsr from '@material-ui/core/NoSsr'; -import Container from '@material-ui/core/Container'; -import Divider from '@material-ui/core/Divider'; - -const quotes = [ - { - avatar: 'https://pbs.twimg.com/profile_images/1134188599170215936/9CUB-yeB', - name: 'Aumit Leon', - username: '@aumitleon', - tweet: 'https://twitter.com/aumitleon/status/1210396946566963200', - quote: - 'Material-UI continues to blow my mind how easily I can put together really aesthetic and functional components and minimize overhead.', - }, - { - avatar: 'https://pbs.twimg.com/profile_images/1231452795368329216/GhjrxYH2', - name: 'Derek Shanks', - username: '@fragileglass', - tweet: 'https://twitter.com/fragileglass/status/1205256087290753025', - quote: - 'It’s a game changer with how nicely it works with React. It’s made working with React so much more enjoyable. Everything is configurable and predictable. Bootstrap was killing me. It was hijacking my whole project.', - }, - { - avatar: 'https://pbs.twimg.com/profile_images/1214337550791299072/ybsFasgV', - name: 'Andréa', - username: '@azza_314', - tweet: 'https://twitter.com/azza_314/status/1247384522238259205', - quote: - "Started using @MaterialUI for #ReactJS & I'm ridiculously impressed. They put a ton of work into their documentation and their library is incredibly user friendly. Was able to add a sidebar, header, & modal quickly!", - }, - { - avatar: 'https://pbs.twimg.com/profile_images/1220819548523331584/3T1G8g1q', - name: 'Mohamed EL AYADI', - username: '@MohamedELAYAD19', - tweet: 'https://twitter.com/MohamedELAYAD19/status/1208118580430229504', - quote: - "Such a great library. I have used Material-UI for the last two years as the main react ui library in my projects (in more than 4 companies!) and I find that it's really great! A lot of good work and dedication are put in there. Salute to the team!", - }, - { - avatar: 'https://pbs.twimg.com/profile_images/1144184864754851840/WIVBqpWM', - name: 'Matthias Margot', - username: '@matthiasmargot', - tweet: 'https://twitter.com/matthiasmargot/status/1215482285681795072', - quote: - 'The DX on Material-UI is absolutely insane and that package has shaped my approach to Component API Design / Composition Design & Style System Design. I think those guys got it idiomatically right, wonderful product.', - }, - { - avatar: 'https://pbs.twimg.com/profile_images/1129370929409056769/Zkwjy9_I', - name: 'Samantha Durrant', - username: '@SamDurrant_', - tweet: 'https://twitter.com/SamDurrant_/status/1214741763455209473', - quote: - 'Began coding out the front end of my app today. Used MaterialUI for the first time and love how easy it is to make things look nice. It’s also really cool to see all the hard work building out the backend of my app come to life in the front end!', - }, - { - avatar: 'https://pbs.twimg.com/profile_images/849731047625502720/nudIAz2B', - name: 'Rodrigo Ciprian', - username: '@rodrigocipriani', - tweet: 'https://twitter.com/rodrigocipriani/status/1215578130217340929', - quote: - 'I always use Material-UI, it is really awesome, and it have a looot of very good and easy to use components.', - }, - { - avatar: 'https://pbs.twimg.com/profile_images/1231452795368329216/GhjrxYH2', - name: 'Derek Shanks', - username: '@fragileglass', - tweet: 'https://twitter.com/fragileglass/status/1255170173226680320', - quote: - 'Sometimes a library is so incredibly awesome. You don’t want to use anything else. I absolutely love that I can have the Material look or completely customize @MaterialUI to any look I desire.', - }, - { - avatar: 'https://pbs.twimg.com/profile_images/1214337550791299072/ybsFasgV', - name: 'Andréa', - username: '@azza_314', - tweet: 'https://twitter.com/azza_314/status/1250595347543371776', - quote: - "Becoming more obsessed with @MaterialUI for #React. Along with #TypeScript support, they have phenomenal documentation, and an impressive design section with customizable themes and case studies. This is the best front-end library I've ever worked with!", - }, -]; - -const useStyles = makeStyles( - (theme) => ({ - root: { - minHeight: 160, - paddingTop: theme.spacing(5), - margin: theme.spacing(0, 2), - }, - container: { - marginBottom: theme.spacing(4), - }, - users: { - padding: theme.spacing(10, 0, 0), - }, - grid: { - marginTop: theme.spacing(5), - marginBottom: theme.spacing(5), - }, - img: { - margin: theme.spacing(1.5, 3), - }, - button: { - margin: theme.spacing(2, 0, 0), - }, - }), - { name: 'Quotes' }, -); - -const useQuoteStyles = makeStyles( - (theme) => ({ - card: { - display: 'flex', - flexDirection: 'column', - height: '100%', - }, - cardAction: { - height: '100%', - }, - avatar: { - width: 48, - height: 48, - }, - twitter: { - marginLeft: 'auto', - color: theme.palette.primary.light, - }, - name: { - fontSize: 16, - }, - quote: { - paddingBottom: '16px !important', - paddingTop: 0, - }, - }), - { name: 'HomeQuote' }, -); - -const QuoteLink = React.forwardRef((props, ref) => { - return ( - - ); -}); - -function Quote(props) { - const { avatar, href, name, quote, userName } = props; - const classes = useQuoteStyles(); - - return ( - - - - - - - - - - {name} - - - {userName} - - - - - - - - - - {quote} - - - - - ); -} - -Quote.propTypes = { - avatar: PropTypes.string, - href: PropTypes.string, - name: PropTypes.string, - quote: PropTypes.string, - userName: PropTypes.string, -}; - -const startIndex = Math.floor(Math.random() * quotes.length); -const selectedQuotes = []; -for (let i = 0; i < 3; i += 1) { - selectedQuotes.push(quotes[(startIndex + i) % quotes.length]); -} - -export default function Quotes() { - const classes = useStyles(); - const t = useSelector((state) => state.options.t); - - return ( -
- - - -
- - {t('praise')} - - - {t('praiseDescr')} - - - {selectedQuotes.map((quote) => ( - - - - ))} - -
-
-
-
- ); -} diff --git a/docs/src/pages/landing/Sponsors.js b/docs/src/pages/landing/Sponsors.js deleted file mode 100644 index 25d7b40edc5ed..0000000000000 --- a/docs/src/pages/landing/Sponsors.js +++ /dev/null @@ -1,68 +0,0 @@ -import React from 'react'; -import * as PropTypes from 'prop-types'; -import { useSelector } from 'react-redux'; -import { makeStyles } from '@material-ui/core/styles'; -import NoSsr from '@material-ui/core/NoSsr'; -import MarkdownElement from 'docs/src/modules/components/MarkdownElement'; -import Container from '@material-ui/core/Container'; -import Divider from '@material-ui/core/Divider'; -import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; - -const useStyles = makeStyles( - (theme) => ({ - '@global': { - '.anchor-link-style': { - position: 'absolute', - top: -9999, - left: -9999, - }, - }, - root: { - minHeight: 600, - textAlign: 'center', - }, - markdownElement: { - padding: theme.spacing(4, 0), - }, - }), - { name: 'Sponsors' }, -); - -export default function Sponsors({ docs }) { - const classes = useStyles(); - const userLanguage = useSelector((state) => state.options.userLanguage); - const { rendered } = docs[userLanguage]; - - return ( -
- - - - {rendered.map((renderedMarkdown, index) => { - return ( - - ); - })} - - -
- ); -} - -Sponsors.propTypes = { - docs: PropTypes.object.isRequired, -}; - -const requireRaw = require.context('./', false, /\.md$/); - -export async function getInitialProps() { - const { docs } = prepareMarkdown({ - pageFilename: '/', - requireRaw, - }); - return { docs }; -} diff --git a/docs/src/pages/landing/Steps.js b/docs/src/pages/landing/Steps.js deleted file mode 100644 index abfa6324e92a7..0000000000000 --- a/docs/src/pages/landing/Steps.js +++ /dev/null @@ -1,166 +0,0 @@ -import React from 'react'; -import clsx from 'clsx'; -import { useSelector } from 'react-redux'; -import { makeStyles } from '@material-ui/core/styles'; -import Typography from '@material-ui/core/Typography'; -import Container from '@material-ui/core/Container'; -import Grid from '@material-ui/core/Grid'; -import Button from '@material-ui/core/Button'; -import Divider from '@material-ui/core/Divider'; -import { FileDownload as FileDownloadIcon } from '@material-ui/docs'; -import BuildIcon from '@material-ui/icons/Build'; -import HighlightedCode from 'docs/src/modules/components/HighlightedCode'; -import Link from 'docs/src/modules/components/Link'; - -const InstallationLink = React.forwardRef((buttonProps, ref) => ( - -)); - -const UsageLink = React.forwardRef((buttonProps, ref) => ( - -)); - -const useStyles = makeStyles( - (theme) => ({ - root: { - marginTop: theme.spacing(5), - '& pre': { - margin: theme.spacing(1, 0), - }, - }, - step: { - border: `12px solid ${theme.palette.background.level1}`, - borderRightWidth: 0, - borderLeftWidth: 0, - padding: theme.spacing(2), - backgroundColor: theme.palette.background.level2, - [theme.breakpoints.up('md')]: { - padding: theme.spacing(3), - }, - }, - leftStep: { - [theme.breakpoints.up('md')]: { - borderLeftWidth: 12, - borderRightWidth: 6, - borderBottomWidth: 0, - }, - }, - rightStep: { - borderBottomWidth: 0, - [theme.breakpoints.up('md')]: { - borderLeftWidth: 6, - borderRightWidth: 12, - }, - }, - stepTitle: { - display: 'flex', - marginBottom: theme.spacing(3), - alignItems: 'center', - }, - stepIcon: { - color: theme.palette.primary.main, - marginRight: theme.spacing(2), - fontSize: 30, - }, - stepBody: { - minHeight: 270, - }, - divider: { - marginTop: theme.spacing(4), - marginBottom: theme.spacing(2), - }, - link: { - marginTop: theme.spacing(1), - display: 'block', - }, - img: { - maxWidth: 500, - width: '100%', - height: 'auto', - }, - }), - { name: 'Steps' }, -); - -function HomeSteps() { - const classes = useStyles(); - const t = useSelector((state) => state.options.t); - - return ( - - - -
- - - {t('installation')} - -
-
- - {t('installDescr')} - - - - {t('cdn')} - - - {t('loadFont')} - - `} - language="html" - /> -
- - -
- -
- - - {t('usage')} - -
-
- - {t('usageDescr')} - - Hello World; -}`} - language="jsx" - /> -
- - -
-
-
- ); -} - -export default HomeSteps; diff --git a/docs/src/pages/landing/Themes.js b/docs/src/pages/landing/Themes.js deleted file mode 100644 index 6909813bed4cf..0000000000000 --- a/docs/src/pages/landing/Themes.js +++ /dev/null @@ -1,85 +0,0 @@ -import React from 'react'; -import { useSelector } from 'react-redux'; -import { makeStyles, useTheme } from '@material-ui/core/styles'; -import Typography from '@material-ui/core/Typography'; -import Container from '@material-ui/core/Container'; -import Grid from '@material-ui/core/Grid'; -import Button from '@material-ui/core/Button'; -import NoSsr from '@material-ui/core/NoSsr'; -import Link from 'docs/src/modules/components/Link'; - -const useStyles = makeStyles( - (theme) => ({ - root: { - padding: theme.spacing(2), - minHeight: 160, - marginTop: theme.spacing(8), - }, - - link: { - marginTop: theme.spacing(1), - display: 'block', - }, - img: { - maxWidth: 960, - width: '100%', - height: 'auto', - marginTop: theme.spacing(4), - }, - button: { - margin: theme.spacing(4, 0, 6), - }, - }), - { name: 'Themes' }, -); - -export default function Themes() { - const classes = useStyles(); - const t = useSelector((state) => state.options.t); - const theme = useTheme(); - - return ( -
- - - - {t('themes')} - - - {t('themesDescr')} - - - - {t('themesButton')} - - - - - - - -
- ); -} diff --git a/docs/src/pages/landing/Users.js b/docs/src/pages/landing/Users.js deleted file mode 100644 index 84e123b64be4a..0000000000000 --- a/docs/src/pages/landing/Users.js +++ /dev/null @@ -1,172 +0,0 @@ -import React from 'react'; -import clsx from 'clsx'; -import { useSelector } from 'react-redux'; -import { makeStyles } from '@material-ui/core/styles'; -import NoSsr from '@material-ui/core/NoSsr'; -import Divider from '@material-ui/core/Divider'; -import Grid from '@material-ui/core/Grid'; -import Container from '@material-ui/core/Container'; -import Button from '@material-ui/core/Button'; -import Typography from '@material-ui/core/Typography'; - -const users = [ - { - logo: 'nasa.svg', - logoWidth: 49, - logoHeight: 40, - caption: 'NASA', - }, - { - logo: 'walmart-labs.svg', - logoWidth: 205, - logoHeight: 39, - caption: 'Walmart Labs', - class: 'walmart', - }, - { - logo: 'capgemini.svg', - logoWidth: 180, - logoHeight: 40, - caption: 'Capgemini', - }, - { - logo: 'uniqlo.svg', - logoWidth: 40, - logoHeight: 40, - caption: 'Uniqlo', - }, - { - logo: 'bethesda.svg', - logoWidth: 196, - logoHeight: 29, - caption: 'Bethesda', - }, - { - logo: 'jpmorgan.svg', - logoWidth: 198, - logoHeight: 40, - caption: 'J.P. Morgan', - }, - { - logo: 'shutterstock.svg', - caption: 'Shutterstock', - logoWidth: 205, - logoHeight: 29, - }, - { - logo: 'netflix.svg', - logoWidth: 111, - logoHeight: 29, - caption: 'Netflix', - }, - { - logo: 'coursera.svg', - logoWidth: 169, - logoHeight: 23, - caption: 'Coursera', - class: 'coursera', - }, - { - logo: 'amazon.svg', - logoWidth: 119, - logoHeight: 36, - caption: 'Amazon', - class: 'amazon', - }, - { - logo: 'unity.svg', - logoWidth: 138, - logoHeight: 50, - caption: 'Unity', - class: 'unity', - }, -]; - -const useStyles = makeStyles( - (theme) => ({ - root: { - padding: theme.spacing(2), - minHeight: 160, - paddingTop: theme.spacing(5), - }, - container: { - marginBottom: theme.spacing(4), - }, - users: { - padding: theme.spacing(10, 4, 0), - }, - grid: { - marginTop: theme.spacing(5), - marginBottom: theme.spacing(5), - }, - img: { - margin: theme.spacing(1.5, 3), - }, - amazon: { - margin: theme.spacing(2.4, 3, 1.5), - }, - coursera: { - margin: theme.spacing(2.3, 3, 1.5), - }, - unity: { - margin: theme.spacing(0.5, 3, 1.5), - }, - walmart: { - margin: '13px 4px 12px', - }, - button: { - margin: theme.spacing(2, 0, 0), - }, - }), - { name: 'Users' }, -); - -export default function Users() { - const classes = useStyles(); - const t = useSelector((state) => state.options.t); - - return ( -
- - - -
- - {t('whosUsing')} - - - {t('joinThese')} - - - {users.map((user) => ( - {user.caption} - ))} - - - {t('usingMui')} - - - - -
-
-
-
- ); -} diff --git a/docs/src/pages/landing/backers-de.md b/docs/src/pages/landing/backers-de.md deleted file mode 100644 index 203d7e3b5c6b2..0000000000000 --- a/docs/src/pages/landing/backers-de.md +++ /dev/null @@ -1,26 +0,0 @@ -## Sponsoren von Material-UI - -Die kontinuierliche Weiterentwicklung und Wartung von Material-UI wird durch diese großzügigen Sponsoren ermöglicht: - -### Diamant 💎 - -

- sencha -

- -*2/3 Plätze verfügbar* - -### Gold 🏆 - -

- tidelift - bitsrc -

- -

- call-em-all -

- -### Es gibt noch mehr! - -Sehen Sie die gesamte Liste [unserer Sponsoren](/discover-more/backers/) und erfahren Sie, wie Sie zur Weiterentwicklung von Material-UI betragen können. diff --git a/docs/src/pages/landing/backers-es.md b/docs/src/pages/landing/backers-es.md deleted file mode 100644 index 31ba99850aa31..0000000000000 --- a/docs/src/pages/landing/backers-es.md +++ /dev/null @@ -1,26 +0,0 @@ -## Patrocinadores de Material-UI - -El continuo desarrollo y mantenimiento de Material-UI es posible gracias a estos generosos patrocinadores: - -### Diamante 💎 - -

- sencha -

- -*2/3 slots available* - -### Oro 🏆 - -

- tidelift - bitsrc -

- -

- call-em-all -

- -### ¡Y aún hay más! - -Mira la lista completa de [nuestros patrocinadores](/discover-more/backers/), y aprende cómo puedes contribuir al futuro de Material-UI. diff --git a/docs/src/pages/landing/backers-fr.md b/docs/src/pages/landing/backers-fr.md deleted file mode 100644 index c3e7637328975..0000000000000 --- a/docs/src/pages/landing/backers-fr.md +++ /dev/null @@ -1,26 +0,0 @@ -## Sponsors de Material-UI - -Le développement et la maintenance continus de Material-UI sont rendus possibles par ces généreux sponsors : - -### Diamant 💎 - -

- sencha -

- -*2/3 places disponibles* - -### Or 🏆 - -

- tidelift - bitsrc -

- -

- call-em-all -

- -### Il y en a plus ! - -Voir la liste complète de [nos sponsors](/discover-more/backers/), et apprendre comment vous pouvez contribuer au futur de Material-UI. diff --git a/docs/src/pages/landing/backers-ja.md b/docs/src/pages/landing/backers-ja.md deleted file mode 100644 index 512a590a69037..0000000000000 --- a/docs/src/pages/landing/backers-ja.md +++ /dev/null @@ -1,26 +0,0 @@ -## Material-UIのスポンサー - -Material-UI の継続的な開発や保守は、以下の寛大なスポンサーにより可能になりました: - -### ダイヤモンド 💎 - -

- sencha -

- -*2 枠中 3 枠が参加可能です* - -### ゴールド 🏆 - -

- tidelift - bitsrc -

- -

- call-em-all -

- -### もっとあります! - -[全スポンサーのリスト](/discover-more/backers/)をご覧になり、どのように Material-UI の未来に貢献できるかを知りましょう。 diff --git a/docs/src/pages/landing/backers-pt.md b/docs/src/pages/landing/backers-pt.md deleted file mode 100644 index a38395e472795..0000000000000 --- a/docs/src/pages/landing/backers-pt.md +++ /dev/null @@ -1,26 +0,0 @@ -## Patrocinadores do Material-UI - -O desenvolvimento contínuo e a manutenção do Material-UI só é possível por causa destes generosos patrocinadores: - -### Diamante 💎 - -

- sencha -

- -*2/3 espaços disponíveis* - -### Ouro 🏆 - -

- tidelift - bitsrc -

- -

- call-em-all -

- -### E tem mais! - -Veja a lista completa dos [nossos patrocinadores](/discover-more/backers/) e saiba como você pode contribuir com o futuro do Material-UI. diff --git a/docs/src/pages/landing/backers-ru.md b/docs/src/pages/landing/backers-ru.md deleted file mode 100644 index 296bb234183d6..0000000000000 --- a/docs/src/pages/landing/backers-ru.md +++ /dev/null @@ -1,26 +0,0 @@ -## Спонсоры Material-UI - -Дальнейшее развитие и поддержание Material-UI возможно благодаря этим щедрым спонсорам: - -### Алмазные 💎 - -

- sencha -

- -*2/3 slots available* - -### Золотые 🏆 - -

- tidelift - bitsrc -

- -

- call-em-all -

- -### И не только! - -Ознакомьтесь с полным списком [наших спонсоров](/discover-more/backers/), и узнайте, как вы можете внести свой вклад в будущее Material-UI. diff --git a/docs/src/pages/landing/backers-zh.md b/docs/src/pages/landing/backers-zh.md deleted file mode 100644 index d03155228eaa7..0000000000000 --- a/docs/src/pages/landing/backers-zh.md +++ /dev/null @@ -1,26 +0,0 @@ -## Material-UI 的赞助商 - -这些赞助商的慷慨相助使 Material-UI 的持续开发和维护成为可能: - -### 钻石级💎 - -

- sencha -

- -*2/3 个位置可用* - -### 黄金级 🏆 - -

- tidelift - bitsrc -

- -

- call-em-all -

- -### 更多赞助者! - -查看[我们赞助者](/discover-more/backers/)的完整列表,了解您如何为 Material-UI 的未来做贡献。 diff --git a/docs/src/pages/landing/backers.md b/docs/src/pages/landing/backers.md deleted file mode 100644 index b5e40388a10d2..0000000000000 --- a/docs/src/pages/landing/backers.md +++ /dev/null @@ -1,27 +0,0 @@ -## Material-UI's sponsors - -The continued development and maintenance of Material-UI is made possible by these generous sponsors: - -### Diamond 💎 - -

- sencha -

- -_2/3 slots available_ - -### Gold 🏆 - -

- tidelift - bitsrc -

- -

- call-em-all - bitsrc -

- -### There are more! - -See the full list of [our sponsors](/discover-more/backers/), and learn how you can contribute to the future of Material-UI. diff --git a/package.json b/package.json index 747913df2c7a6..f895fecd2900d 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "@typescript-eslint/parser": "^3.6.1", "babel-plugin-module-resolver": "^4.0.0", "babel-plugin-optimize-clsx": "^2.6.1", + "babel-plugin-transform-rename-import": "^2.3.0", "chai": "^4.2.0", "chai-dom": "^1.8.2", "cross-env": "^7.0.2", diff --git a/yarn.lock b/yarn.lock index 660c18513fd00..f4c595a01b484 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6601,6 +6601,11 @@ babel-plugin-transform-remove-undefined@^0.5.0: dependencies: babel-helper-evaluate-path "^0.5.0" +babel-plugin-transform-rename-import@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-rename-import/-/babel-plugin-transform-rename-import-2.3.0.tgz#5d9d645f937b0ca5c26a24b2510a06277b6ffd9b" + integrity sha512-dPgJoT57XC0PqSnLgl2FwNvxFrWlspatX2dkk7yjKQj5HHGw071vAcOf+hqW8ClqcBDMvEbm6mevn5yHAD8mlQ== + babel-plugin-transform-simplify-comparison-operators@^6.9.4: version "6.9.4" resolved "https://registry.yarnpkg.com/babel-plugin-transform-simplify-comparison-operators/-/babel-plugin-transform-simplify-comparison-operators-6.9.4.tgz#f62afe096cab0e1f68a2d753fdf283888471ceb9"