import _extends from "@babel/runtime/helpers/extends";
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/esm/TimeTable/test/TimeTable.visual.jsx",
  _this = this;
import React from 'react';
import { storiesOf } from '@storybook/react';
import Box from '../../Box';
import TimeTable from '../TimeTable';
var commonProps = {
  addItemButtonLabel: 'Add Task',
  columns: [{
    title: '1',
    subtitle: 'DAY',
    items: [{
      content: 'Task 1'
    }],
    disabled: true
  }, {
    title: '2',
    subtitle: 'DAY',
    items: [{
      content: /*#__PURE__*/React.createElement(Box, {
        height: 100,
        __self: this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 21,
          columnNumber: 20
        }
      }, "Task 2")
    }, {
      content: 'Task 3',
      disabled: false
    }],
    disabled: true
  }, {
    title: '3',
    subtitle: 'DAY',
    items: [{
      content: 'Task 4'
    }],
    disabled: true
  }, {
    title: '4',
    subtitle: 'DAY',
    items: [{
      content: 'Task 5'
    }],
    active: true
  }, {
    title: '5',
    subtitle: 'DAY',
    items: [{
      content: 'Task 6'
    }]
  }, {
    title: '6',
    subtitle: 'DAY',
    items: [{
      content: 'Task 7',
      disabled: true,
      draggable: true
    }]
  }, {
    title: '7',
    subtitle: 'DAY',
    items: [{
      content: 'Task 8'
    }]
  }]
};
var tests = [{
  it: 'basic'
}, {
  it: 'height = 150',
  props: {
    height: 150
  }
}, {
  it: 'onAdd',
  props: {
    onAdd: function onAdd() {}
  }
}];
tests.forEach(function (_ref) {
  var it = _ref.it,
    props = _ref.props;
  storiesOf('TimeTable', module).add(it, function () {
    return /*#__PURE__*/React.createElement(TimeTable, _extends({}, commonProps, props, {
      __self: _this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 86,
        columnNumber: 5
      }
    }));
  });
});