import _extends from "@babel/runtime/helpers/extends";
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/esm/CalendarPanel/test/CalendarPanel.visual.jsx",
  _this = this;
import React from 'react';
import { storiesOf } from '@storybook/react';
import CalendarPanel from '../CalendarPanel';
var tests = [{
  describe: 'CalendarPanel',
  its: [{
    it: 'no presets',
    props: {
      presets: [],
      value: new Date(1990, 3, 29),
      footer: false
    }
  }, {
    it: 'with presets',
    props: {
      presets: [{
        id: 1,
        value: 'a day',
        selectedDays: new Date(2018, 1, 1)
      }, {
        id: 2,
        value: 'a range',
        selectedDays: {
          from: new Date(2018, 1, 1),
          to: new Date(2018, 2, 1)
        }
      }],
      value: new Date(1990, 3, 29),
      footer: false
    }
  }]
}];
tests.forEach(function (_ref) {
  var describe = _ref.describe,
    its = _ref.its;
  its.forEach(function (_ref2) {
    var it = _ref2.it,
      props = _ref2.props;
    storiesOf("CalendarPanel".concat(describe ? '/' + describe : ''), module).add(it, function () {
      return /*#__PURE__*/React.createElement(CalendarPanel, _extends({}, props, {
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 44,
          columnNumber: 13
        }
      }));
    });
  });
});