/**
 * @file MaterialFieldSeparator component
 * @author liangxiaojun(liangxiaojun@derbysoft.com)
 */

import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';

import Theme from '../Theme';

import PureRender from '../_vendors/PureRender';
import Util from '../_vendors/Util';

@PureRender
class MaterialFieldSeparator extends Component {

    static Theme = Theme;

    constructor(props, ...restArgs) {
        super(props, ...restArgs);
    }

    render() {

        const {theme, isHover, isFocus, disabled} = this.props,

            className = classNames('material-field-separator', {
                hover: isHover,
                focused: isFocus,
                [`theme-${theme}`]: theme
            });

        return (
            <div className={className}
                 disabled={disabled}>
                <div className="material-field-separator-hover"></div>
                <div className="material-field-separator-focus"></div>
            </div>
        );
    }
};

process.env.NODE_ENV !== 'production' && (MaterialFieldSeparator.propTypes = {

    className: PropTypes.string,
    style: PropTypes.object,
    theme: PropTypes.oneOf(Util.enumerateValue(Theme)),

    isHover: PropTypes.bool,
    isFocus: PropTypes.bool,
    disabled: PropTypes.bool

});

MaterialFieldSeparator.defaultProps = {

    theme: Theme.DEFAULT,

    isHover: false,
    isFocus: false,
    disabled: false

};

export default MaterialFieldSeparator;
@@ -140,44 +140,8 @@
 t';%0A
-import PropTypes from 'prop-types';%0A
 impo
@@ -1008,16 +1008,20 @@
   %7D%0A%7D;%0A%0A
+if (
 process.
@@ -1037,29 +1037,80 @@
 ENV 
-!
+=
 == '
-production' && (
+development') %7B%0A%0A    const PropTypes = require('prop-types');%0A%0A    
 Mate
@@ -1139,24 +1139,28 @@
 pTypes = %7B%0A%0A
+    
     classNam
@@ -1184,16 +1184,20 @@
 ng,%0A    
+   
+ 
 style: P
@@ -1213,16 +1213,20 @@
 object,%0A
+    
     them
@@ -1274,24 +1274,28 @@
 eme)),%0A%0A    
+  
+  
 isHover: Pro
@@ -1303,24 +1303,28 @@
 Types.bool,%0A
+    
     isFocus:
@@ -1336,24 +1336,28 @@
 Types.bool,%0A
+    
     disabled
@@ -1374,19 +1374,25 @@
 s.bool%0A%0A
-%7D);
+    %7D;%0A%0A%7D
 %0A%0AMateri

update MaterialFieldSeparator