content: import React from 'react';
  import classNames from 'classnames';
  import styleMaps from './styleMaps';
  
  const Col = React.createClass({
    propTypes: {
      xs: React.PropTypes.number,
      sm: React.PropTypes.number,
      md: React.PropTypes.number,
      lg: React.PropTypes.number,
      xsOffset: React.PropTypes.number,
      smOffset: React.PropTypes.number,
      mdOffset: React.PropTypes.number,
      lgOffset: React.PropTypes.number,
      xsPush: React.PropTypes.number,
      smPush: React.PropTypes.number,
      mdPush: React.PropTypes.number,
      lgPush: React.PropTypes.number,
      xsPull: React.PropTypes.number,
      smPull: React.PropTypes.number,
      mdPull: React.PropTypes.number,
      lgPull: React.PropTypes.number,
      componentClass: React.PropTypes.node.isRequired
    },
  
    getDefaultProps() {
      return {
        componentClass: 'div'
      };
    },
  
    render() {
      let ComponentClass = this.props.componentClass;
      let classes = {};
  
      Object.keys(styleMaps.SIZES).forEach(function (key) {
        let size = styleMaps.SIZES[key];
        let prop = size;
        let classPart = size + '-';
  
        if (this.props[prop]) {
          classes['col-' + classPart + this.props[prop]] = true;
        }
  
        prop = size + 'Offset';
        classPart = size + '-offset-';
        if (this.props[prop] >= 0) {
          classes['col-' + classPart + this.props[prop]] = true;
        }
  
        prop = size + 'Push';
        classPart = size + '-push-';
        if (this.props[prop] >= 0) {
          classes['col-' + classPart + this.props[prop]] = true;
        }
  
        prop = size + 'Pull';
        classPart = size + '-pull-';
        if (this.props[prop] >= 0) {
          classes['col-' + classPart + this.props[prop]] = true;
        }
      }, this);
  
      return (
        <ComponentClass {...this.props} className={classNames(this.props.className, classes)}>
          {this.props.children}
        </ComponentClass>
      );
    }
  });
  
  export default Col;
  