@@ -95,13 +95,6 @@ Image.Group = ImageGroup
95
95
Image . _meta = {
96
96
name : 'Image' ,
97
97
type : META . TYPES . ELEMENT ,
98
- props : {
99
- verticalAlign : SUI . VERTICAL_ALIGNMENTS ,
100
- floated : SUI . FLOATS ,
101
- shape : [ 'rounded' , 'circular' ] ,
102
- size : SUI . SIZES ,
103
- spaced : [ 'left' , 'right' ] ,
104
- } ,
105
98
}
106
99
107
100
Image . propTypes = {
@@ -133,7 +126,7 @@ Image.propTypes = {
133
126
dimmer : customPropTypes . itemShorthand ,
134
127
135
128
/** An image can sit to the left or right of other content. */
136
- floated : PropTypes . oneOf ( Image . _meta . props . floated ) ,
129
+ floated : PropTypes . oneOf ( SUI . FLOATS ) ,
137
130
138
131
/** An image can take up the width of its container. */
139
132
fluid : customPropTypes . every ( [
@@ -160,15 +153,15 @@ Image.propTypes = {
160
153
label : customPropTypes . itemShorthand ,
161
154
162
155
/** An image may appear rounded or circular. */
163
- shape : PropTypes . oneOf ( Image . _meta . props . shape ) ,
156
+ shape : PropTypes . oneOf ( [ 'rounded' , 'circular' ] ) ,
164
157
165
158
/** An image may appear at different sizes. */
166
- size : PropTypes . oneOf ( Image . _meta . props . size ) ,
159
+ size : PropTypes . oneOf ( SUI . SIZES ) ,
167
160
168
161
/** An image can specify that it needs an additional spacing to separate it from nearby content. */
169
162
spaced : PropTypes . oneOfType ( [
170
163
PropTypes . bool ,
171
- PropTypes . oneOf ( Image . _meta . props . spaced ) ,
164
+ PropTypes . oneOf ( [ 'left' , 'right' ] ) ,
172
165
] ) ,
173
166
174
167
/** Specifies the URL of the image. */
@@ -177,16 +170,16 @@ Image.propTypes = {
177
170
/** Whether or not to add the ui className. */
178
171
ui : PropTypes . bool ,
179
172
180
- /** An image can specify its vertical alignment */
181
- verticalAlign : PropTypes . oneOf ( Image . _meta . props . verticalAlign ) ,
173
+ /** An image can specify its vertical alignment. */
174
+ verticalAlign : PropTypes . oneOf ( SUI . VERTICAL_ALIGNMENTS ) ,
182
175
183
- /** The img element width attribute */
176
+ /** The img element width attribute. */
184
177
width : PropTypes . oneOfType ( [
185
178
PropTypes . string ,
186
179
PropTypes . number ,
187
180
] ) ,
188
181
189
- /** An image can render wrapped in a `div.ui.image` as alternative HTML markup */
182
+ /** An image can render wrapped in a `div.ui.image` as alternative HTML markup. */
190
183
wrapped : customPropTypes . every ( [
191
184
PropTypes . bool ,
192
185
// these props wrap the image in an a tag already
0 commit comments