mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #26356 from Reggino/material-ui
Material ui was missing proper support for <List>
This commit is contained in:
Vendored
+4
-7
@@ -1,4 +1,4 @@
|
||||
// Type definitions for material-ui 0.20
|
||||
// Type definitions for material-ui 0.21
|
||||
// Project: https://github.com/callemall/material-ui
|
||||
// Definitions by: Nathan Brown <https://github.com/ngbrown>
|
||||
// Igor Beagorudsky <https://github.com/theigor>
|
||||
@@ -12,6 +12,7 @@
|
||||
// Dan Jones <https://github.com/dan-j>
|
||||
// Daisuke Mino <https://github.com/minodisk>
|
||||
// Sam Walsh <https://github.com/samwalshnz>
|
||||
// Tim de Koning <https://github.com/reggino>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.6
|
||||
|
||||
@@ -1144,12 +1145,8 @@ declare namespace __MaterialUI {
|
||||
}
|
||||
|
||||
namespace List {
|
||||
export interface ListProps {
|
||||
// <Paper/> is the element that get the 'other' properties
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
export class List extends React.Component<ListProps> {
|
||||
}
|
||||
export interface ListProps extends React.HTMLAttributes<{}> {}
|
||||
export class List extends React.Component<ListProps> {}
|
||||
|
||||
export interface ListItemProps extends EnhancedButtonProps {
|
||||
// <EnhancedButton/> is the element that get the 'other' properties
|
||||
|
||||
@@ -2536,7 +2536,7 @@ const AutoCompleteExampleFilters = () => (
|
||||
|
||||
// "http://www.material-ui.com/#/components/avatar"
|
||||
const AvatarExampleSimple = () => (
|
||||
<List>
|
||||
<List className="foo">
|
||||
<ListItem
|
||||
disabled={true}
|
||||
leftAvatar={
|
||||
|
||||
Reference in New Issue
Block a user