1
- import _ from 'lodash'
2
1
import cx from 'classnames'
2
+ import _ from 'lodash'
3
3
import React , { PropTypes } from 'react'
4
4
5
5
import {
@@ -21,7 +21,7 @@ import ListItem from './ListItem'
21
21
import ListList from './ListList'
22
22
23
23
/**
24
- * A list groups related content
24
+ * A list groups related content.
25
25
*/
26
26
function List ( props ) {
27
27
const {
@@ -38,8 +38,8 @@ function List(props) {
38
38
link,
39
39
ordered,
40
40
relaxed,
41
- size,
42
41
selection,
42
+ size,
43
43
verticalAlign,
44
44
} = props
45
45
@@ -78,12 +78,6 @@ function List(props) {
78
78
List . _meta = {
79
79
name : 'List' ,
80
80
type : META . TYPES . ELEMENT ,
81
- props : {
82
- floated : SUI . FLOATS ,
83
- relaxed : [ 'very' ] ,
84
- size : SUI . SIZES ,
85
- verticalAlign : SUI . VERTICAL_ALIGNMENTS ,
86
- } ,
87
81
}
88
82
89
83
List . propTypes = {
@@ -109,7 +103,7 @@ List.propTypes = {
109
103
divided : PropTypes . bool ,
110
104
111
105
/** An list can be floated left or right. */
112
- floated : PropTypes . oneOf ( List . _meta . props . floated ) ,
106
+ floated : PropTypes . oneOf ( SUI . FLOATS ) ,
113
107
114
108
/** A list can be formatted to have items appear horizontally. */
115
109
horizontal : PropTypes . bool ,
@@ -129,17 +123,17 @@ List.propTypes = {
129
123
/** A list can relax its padding to provide more negative space. */
130
124
relaxed : PropTypes . oneOfType ( [
131
125
PropTypes . bool ,
132
- PropTypes . oneOf ( List . _meta . props . relaxed ) ,
126
+ PropTypes . oneOf ( [ 'very' ] ) ,
133
127
] ) ,
134
128
135
129
/** A selection list formats list items as possible choices. */
136
130
selection : PropTypes . bool ,
137
131
138
132
/** A list can vary in size. */
139
- size : PropTypes . oneOf ( List . _meta . props . size ) ,
133
+ size : PropTypes . oneOf ( SUI . SIZES ) ,
140
134
141
135
/** An element inside a list can be vertically aligned. */
142
- verticalAlign : PropTypes . oneOf ( List . _meta . props . verticalAlign ) ,
136
+ verticalAlign : PropTypes . oneOf ( SUI . VERTICAL_ALIGNMENTS ) ,
143
137
}
144
138
145
139
List . Content = ListContent
0 commit comments