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.
…)" This reverts commit 1b9c8ab.
- Loading branch information
Showing
29 changed files
with
129 additions
and
540 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,19 +1,6 @@ | ||
import * as React from 'react'; | ||
import Dialog from '@mui/material/Dialog'; | ||
import { PaperProps } from '@mui/material/Paper'; | ||
import { expectType } from '@mui/types'; | ||
import { Dialog } from '@mui/material'; | ||
|
||
const paperProps: PaperProps<'span'> = { | ||
component: 'span', | ||
onClick: (event) => { | ||
expectType<React.MouseEvent<HTMLSpanElement, MouseEvent>, typeof event>(event); | ||
}, | ||
}; | ||
function Test() { | ||
return ( | ||
<React.Fragment> | ||
<Dialog open />; | ||
<Dialog open PaperProps={paperProps} />; | ||
</React.Fragment> | ||
); | ||
function optionalChildrenTest() { | ||
<Dialog open />; | ||
} |
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 was deleted.
Oops, something went wrong.
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
66 changes: 0 additions & 66 deletions
66
packages/mui-material/src/FormHelperText/FormHelperText.spec.tsx
This file was deleted.
Oops, something went wrong.
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,68 +1,7 @@ | ||
import * as React from 'react'; | ||
import Paper from '@mui/material/Paper'; | ||
import Grid, { GridProps } from '@mui/material/Grid'; | ||
import { expectType } from '@mui/types'; | ||
|
||
const CustomComponent: React.FC<{ stringProp: string; numberProp: number }> = | ||
function CustomComponent() { | ||
return <div />; | ||
}; | ||
|
||
const props: GridProps<'span'> = { | ||
component: 'span', | ||
onChange: (event) => { | ||
expectType<React.FormEvent<HTMLSpanElement>, typeof event>(event); | ||
}, | ||
}; | ||
|
||
const props2: GridProps = { | ||
onChange: (event) => { | ||
expectType<React.FormEvent<HTMLDivElement>, typeof event>(event); | ||
}, | ||
}; | ||
|
||
const props3: GridProps<'span'> = { | ||
// @ts-expect-error | ||
component: 'div', | ||
}; | ||
|
||
const props4: GridProps<typeof CustomComponent> = { | ||
component: CustomComponent, | ||
stringProp: '2', | ||
numberProp: 2, | ||
}; | ||
|
||
const props5: GridProps<typeof CustomComponent> = { | ||
component: CustomComponent, | ||
stringProp: '2', | ||
numberProp: 2, | ||
// @ts-expect-error | ||
inCorrectProp: 3, | ||
}; | ||
|
||
// @ts-expect-error | ||
const props6: GridProps<typeof CustomComponent> = { | ||
component: CustomComponent, | ||
}; | ||
import Grid from '@mui/material/Grid'; | ||
|
||
function ResponsiveTest() { | ||
return ( | ||
<React.Fragment> | ||
<Grid item xs={12} sm={8} md={5} component={Paper} elevation={6} square /> | ||
<Grid item component={'a'} href="/test" /> | ||
|
||
<Grid item component={CustomComponent} stringProp="s" numberProp={1} /> | ||
{ | ||
// @ts-expect-error | ||
<Grid item component={CustomComponent} /> | ||
} | ||
<Grid | ||
item | ||
component="span" | ||
onChange={(event) => { | ||
expectType<React.FormEvent<HTMLSpanElement>, typeof event>(event); | ||
}} | ||
/> | ||
</React.Fragment> | ||
); | ||
<Grid item xs={12} sm={8} md={5} component={Paper} elevation={6} square />; | ||
} |
Oops, something went wrong.