function vars() {
  var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

  return function (Target) {
    var _class, _temp;

    return _temp = _class = function (_React$Component) {
      _inherits(Vars, _React$Component);

      function Vars() {
        _classCallCheck(this, Vars);

        return _possibleConstructorReturn(this, (Vars.__proto__ || Object.getPrototypeOf(Vars)).apply(this, arguments));
      }

      _createClass(Vars, [{
        key: 'getChildContext',
        value: function getChildContext() {
          return {
            glamorCssVars: _extends({}, this.context.glamorCssVars, typeof value === 'function' ? value(this.props) : value)
          };
        }
      }, {
        key: 'render',
        value: function render() {
          return React.createElement(Target, _extends({}, this.props, { vars: this.context.glamorCssVars || (typeof value === 'function' ? value(this.props) : value) }), this.props.children);
        }
      }]);

      return Vars;
    }(React.Component), _class.childContextTypes = {
      glamorCssVars: PropTypes.object
    }, _class.contextTypes = {
      glamorCssVars: PropTypes.object
    }, _temp;
  };
}
// see examples/vars for usage
see examples/vars for usage
see examples / vars for usage
function vars() {
  var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return function (Target) {
    var _class, _temp;
    return _temp = _class = function (_React$Component) {
      _inherits(Vars, _React$Component);
      function Vars() {
        _classCallCheck(this, Vars);
        return _possibleConstructorReturn(this, (Vars.__proto__ || Object.getPrototypeOf(Vars)).apply(this, arguments));
      }
      _createClass(Vars, [{
        key: 'getChildContext',
        value: function getChildContext() {
          return {
            glamorCssVars: _extends({}, this.context.glamorCssVars, typeof value === 'function' ? value(this.props) : value)
          };
        }
      }, {
        key: 'render',
        value: function render() {
          return React.createElement(Target, _extends({}, this.props, { vars: this.context.glamorCssVars || (typeof value === 'function' ? value(this.props) : value) }), this.props.children);
        }
      }]);
      return Vars;
    }(React.Component), _class.childContextTypes = {
      glamorCssVars: PropTypes.object
    }, _class.contextTypes = {
      glamorCssVars: PropTypes.object
    }, _temp;
  };
}
function vars ( ) { var value = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : { } ; return function ( Target ) { var _class , _temp ; return _temp = _class = function ( _React$Component ) { _inherits ( Vars , _React$Component ) ; function Vars ( ) { _classCallCheck ( this , Vars ) ; return _possibleConstructorReturn ( this , ( Vars . __proto__ || Object . getPrototypeOf ( Vars ) ) . apply ( this , arguments ) ) ; } _createClass ( Vars , [ { key : 'getChildContext' , value : function getChildContext ( ) { return { glamorCssVars : _extends ( { } , this . context . glamorCssVars , typeof value === 'function' ? value ( this . props ) : value ) } ; } } , { key : 'render' , value : function render ( ) { return React . createElement ( Target , _extends ( { } , this . props , { vars : this . context . glamorCssVars || ( typeof value === 'function' ? value ( this . props ) : value ) } ) , this . props . children ) ; } } ] ) ; return Vars ; } ( React . Component ) , _class . childContextTypes = { glamorCssVars : PropTypes . object } , _class . contextTypes = { glamorCssVars : PropTypes . object } , _temp ; } ; }
see examples/vars for usage
see examples / vars for usage