"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.suite = void 0;

var React = _interopRequireWildcard(require("react"));

var _index = require("./index.js");

var _examplesList = _interopRequireDefault(require("./examples-list.js"));

var _tests$AS_SIMPLE_SLID;

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

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var suite = 'Slider Test Suite';
exports.suite = suite;

var _default = (_tests$AS_SIMPLE_SLID = {}, _defineProperty(_tests$AS_SIMPLE_SLID, _examplesList.default.AS_SIMPLE_SLIDER, function () {
  return React.createElement("div", {
    style: {
      maxWidth: '500px'
    }
  }, React.createElement(_index.StatefulSlider, null));
}), _defineProperty(_tests$AS_SIMPLE_SLID, _examplesList.default.AS_SIMPLE_RANGE_SLIDER, function () {
  return React.createElement("div", {
    style: {
      maxWidth: '500px'
    }
  }, React.createElement(_index.StatefulSlider, {
    initialState: {
      value: [25, 60]
    }
  }));
}), _defineProperty(_tests$AS_SIMPLE_SLID, _examplesList.default.AS_DISABLED, function () {
  return React.createElement("div", {
    style: {
      maxWidth: '500px'
    }
  }, React.createElement(_index.StatefulSlider, {
    initialState: {
      value: [50]
    },
    disabled: true
  }));
}), _defineProperty(_tests$AS_SIMPLE_SLID, _examplesList.default.AS_CUSTOM_RANGE_AND_STEP, function () {
  return React.createElement("div", {
    style: {
      maxWidth: '500px'
    }
  }, React.createElement(_index.StatefulSlider, {
    initialState: {
      value: [0]
    },
    step: 5,
    min: -300,
    max: 300
  }));
}), _defineProperty(_tests$AS_SIMPLE_SLID, _examplesList.default.AS_SLIDER_WITH_OVERRIDES, function () {
  return React.createElement("div", {
    style: {
      maxWidth: '500px'
    }
  }, React.createElement(_index.StatefulSlider, {
    initialState: {
      value: [50]
    },
    overrides: {
      InnerThumb: function InnerThumb(_ref) {
        var $value = _ref.$value,
            $thumbIndex = _ref.$thumbIndex;
        return $value[$thumbIndex];
      },
      ThumbValue: function ThumbValue() {
        return null;
      },
      Thumb: {
        style: function style(_ref2) {
          var $value = _ref2.$value,
              $thumbIndex = _ref2.$thumbIndex,
              $min = _ref2.$min,
              $max = _ref2.$max;
          return {
            height: '36px',
            width: '36px',
            display: 'flex',
            alignItems: 'center',
            justifyContent: 'center',
            borderRadius: '36px',
            border: '3px solid #ccc',
            backgroundColor: '#fff'
          };
        }
      }
    }
  }));
}), _tests$AS_SIMPLE_SLID);

exports.default = _default;