'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _shape = require('@vx/shape');

var _gradient = require('@vx/gradient');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _jsxFileName = '/Users/hshoff/code/vx/packages/vx-demo/components/tiles/gradients.js';

exports.default = function (_ref) {
  var width = _ref.width,
      height = _ref.height,
      _ref$margin = _ref.margin,
      margin = _ref$margin === undefined ? {
    top: 0,
    left: 0,
    right: 0,
    bottom: 80
  } : _ref$margin;

  var w = width / 4;
  var h = (height - margin.bottom) / 2;
  w = w < 0 ? 0 : w;
  h = h < 0 ? 0 : h;
  return _react2.default.createElement('svg', { width: width, height: height, __source: {
      fileName: _jsxFileName,
      lineNumber: 32
    }
  }, _react2.default.createElement(_gradient.GradientDarkgreenGreen, { id: 'DarkgreenGreen', __source: {
      fileName: _jsxFileName,
      lineNumber: 33
    }
  }), _react2.default.createElement(_gradient.GradientLightgreenGreen, { id: 'LightgreenGreen', __source: {
      fileName: _jsxFileName,
      lineNumber: 34
    }
  }), _react2.default.createElement(_gradient.GradientOrangeRed, { id: 'OrangeRed', __source: {
      fileName: _jsxFileName,
      lineNumber: 35
    }
  }), _react2.default.createElement(_gradient.GradientPinkBlue, { id: 'PinkBlue', __source: {
      fileName: _jsxFileName,
      lineNumber: 36
    }
  }), _react2.default.createElement(_gradient.GradientPinkRed, { id: 'PinkRed', vertical: false, __source: {
      fileName: _jsxFileName,
      lineNumber: 37
    }
  }), _react2.default.createElement(_gradient.GradientPurpleOrange, { id: 'PurpleOrange', vertical: false, __source: {
      fileName: _jsxFileName,
      lineNumber: 38
    }
  }), _react2.default.createElement(_gradient.GradientPurpleRed, { id: 'PurpleRed', vertical: false, __source: {
      fileName: _jsxFileName,
      lineNumber: 39
    }
  }), _react2.default.createElement(_gradient.RadialGradient, { from: '#55bdd5', to: '#4f3681', id: 'Radial', r: '80%', __source: {
      fileName: _jsxFileName,
      lineNumber: 40
    }
  }), _react2.default.createElement(_gradient.GradientSteelPurple, { id: 'SteelPurple', vertical: false, __source: {
      fileName: _jsxFileName,
      lineNumber: 41
    }
  }), _react2.default.createElement(_gradient.GradientTealBlue, { id: 'TealBlue', vertical: false, __source: {
      fileName: _jsxFileName,
      lineNumber: 42
    }
  }), _react2.default.createElement(_shape.Bar, {
    x: 0,
    y: 0,
    width: w,
    height: h,
    fill: 'url(#LightgreenGreen)',
    stroke: '#ffffff',
    strokeWidth: 8,
    rx: 14,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 43
    }
  }), _react2.default.createElement(_shape.Bar, {
    x: w,
    y: 0,
    width: w,
    height: h,
    fill: 'url(#OrangeRed)',
    rx: 14,
    stroke: '#ffffff',
    strokeWidth: 8,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 53
    }
  }), _react2.default.createElement(_shape.Bar, {
    x: w * 2,
    y: 0,
    width: w,
    height: h,
    fill: 'url(#PinkBlue)',
    rx: 14,
    stroke: '#ffffff',
    strokeWidth: 8,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 63
    }
  }), _react2.default.createElement(_shape.Bar, {
    x: w * 3,
    y: 0,
    width: w,
    height: h,
    fill: 'url(#DarkgreenGreen)',
    rx: 14,
    stroke: '#ffffff',
    strokeWidth: 8,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 73
    }
  }), _react2.default.createElement(_shape.Bar, {
    x: 0,
    y: h,
    width: w,
    height: h,
    fill: 'url(#PinkRed)',
    rx: 14,
    stroke: '#ffffff',
    strokeWidth: 8,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 83
    }
  }), _react2.default.createElement(_shape.Bar, {
    x: w,
    y: h,
    width: w,
    height: h,
    fill: 'url(#TealBlue)',
    rx: 14,
    stroke: '#ffffff',
    strokeWidth: 8,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 93
    }
  }), _react2.default.createElement(_shape.Bar, {
    x: w * 2,
    y: h,
    width: w,
    height: h,
    fill: 'url(#PurpleOrange)',
    rx: 14,
    stroke: '#ffffff',
    strokeWidth: 8,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 103
    }
  }), _react2.default.createElement(_shape.Bar, {
    x: w * 3,
    y: h,
    width: w,
    height: h,
    fill: 'url(#Radial)',
    rx: 14,
    stroke: '#ffffff',
    strokeWidth: 8,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 113
    }
  }));
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvdGlsZXMvZ3JhZGllbnRzLmpzIl0sIm5hbWVzIjpbIlJlYWN0IiwiQmFyIiwiR3JhZGllbnREYXJrZ3JlZW5HcmVlbiIsIkdyYWRpZW50TGlnaHRncmVlbkdyZWVuIiwiR3JhZGllbnRPcmFuZ2VSZWQiLCJHcmFkaWVudFBpbmtCbHVlIiwiR3JhZGllbnRQaW5rUmVkIiwiR3JhZGllbnRQdXJwbGVPcmFuZ2UiLCJHcmFkaWVudFB1cnBsZVJlZCIsIkdyYWRpZW50UHVycGxlVGVhbCIsIkdyYWRpZW50U3RlZWxQdXJwbGUiLCJHcmFkaWVudFRlYWxCbHVlIiwiUmFkaWFsR3JhZGllbnQiLCJ3aWR0aCIsImhlaWdodCIsIm1hcmdpbiIsInRvcCIsImxlZnQiLCJyaWdodCIsImJvdHRvbSIsInciLCJoIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxBQUFPOzs7O0FBQ1AsQUFBUzs7QUFDVCxBQUNFLEFBQ0EsQUFDQSxBQUNBLEFBQ0EsQUFDQSxBQUNBLEFBQ0EsQUFDQSxBQUNBLEFBQ0EsQUFHRjs7Ozs7O2tCQUFlLGdCQVNUO01BUkosQUFRSSxhQVJKLEFBUUk7TUFQSixBQU9JLGNBUEosQUFPSTt5QkFOSixBQU1JO01BTkosQUFNSTtTQU5LLEFBQ0YsQUFDTDtVQUZPLEFBRUQsQUFDTjtXQUhPLEFBR0EsQUFDU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