'use strict';

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

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _styledComponents = require('styled-components');

var _styledComponents2 = _interopRequireDefault(_styledComponents);

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

var BaseSlider = _styledComponents2.default.input.attrs({ type: 'range' }).withConfig({
  displayName: 'SimpleSlider__BaseSlider'
})(['-webkit-appearance:none;width:100%;background:transparent;&::-webkit-slider-thumb{-webkit-appearance:none;height:18px;width:18px;border-radius:9px;background:', ';cursor:pointer;margin-top:-8px;}&::-moz-range-thumb{height:18px;width:18px;border-radius:9px;background:', ';cursor:pointer;}&::-ms-thumb{height:18px;width:18px;border-radius:9px;background:', ';cursor:pointer;}&:focus{outline:none;}&::-webkit-slider-runnable-track{width:100%;height:3px;cursor:pointer;background:#FFFFFF;border-radius:1.3px;border:0.1px solid ', ';}&::-ms-track{width:100%;cursor:pointer;background:transparent;border-color:transparent;color:transparent;}'], function (props) {
  return props.theme['brand-secondary'];
}, function (props) {
  return props.theme['brand-secondary'];
}, function (props) {
  return props.theme['brand-secondary'];
}, function (props) {
  return props.theme['gray-2'];
});

var SimpleSlider = function SimpleSlider(props) {
  return _react2.default.createElement(BaseSlider, props);
};

SimpleSlider.propTypes = {
  value: _propTypes2.default.number.isRequired,
  min: _propTypes2.default.number.isRequired,
  max: _propTypes2.default.number.isRequired,
  onInput: _propTypes2.default.func.isRequired,
  step: _propTypes2.default.number.isRequired
};

exports.default = SimpleSlider;