2015-10-08 11:12:15 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
|
|
|
|
let AscribeSpinner = React.createClass({
|
|
|
|
propTypes: {
|
2015-10-09 16:21:26 +02:00
|
|
|
classNames: React.PropTypes.string,
|
2015-10-08 11:12:15 +02:00
|
|
|
size: React.PropTypes.oneOf(['sm', 'md', 'lg']),
|
|
|
|
color: React.PropTypes.oneOf(['blue', 'dark-blue', 'light-blue', 'pink', 'black', 'loop'])
|
|
|
|
},
|
|
|
|
|
|
|
|
getDefaultProps() {
|
|
|
|
return {
|
2015-10-09 16:21:26 +02:00
|
|
|
inline: false,
|
2015-10-08 20:26:29 +02:00
|
|
|
size: 'md',
|
2015-10-08 11:12:15 +02:00
|
|
|
color: 'loop'
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2015-10-09 16:21:26 +02:00
|
|
|
<div className={
|
|
|
|
classNames('spinner-wrapper-' + this.props.size,
|
|
|
|
'spinner-wrapper-' + this.props.color,
|
|
|
|
this.props.classNames)}>
|
2015-10-08 11:12:15 +02:00
|
|
|
<div className={classNames('spinner-circle')}></div>
|
|
|
|
<div className={classNames('spinner-inner')}>A</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default AscribeSpinner;
|