"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _react2 = require("@storybook/react");
var _Box = _interopRequireDefault(require("../../Box"));
var _TimeTable = _interopRequireDefault(require("../TimeTable"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/TimeTable/test/TimeTable.visual.jsx",
  _this = void 0;
var commonProps = {
  addItemButtonLabel: 'Add Task',
  columns: [{
    title: '1',
    subtitle: 'DAY',
    items: [{
      content: 'Task 1'
    }],
    disabled: true
  }, {
    title: '2',
    subtitle: 'DAY',
    items: [{
      content: /*#__PURE__*/_react["default"].createElement(_Box["default"], {
        height: 100,
        __self: void 0,
        __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;
  (0, _react2.storiesOf)('TimeTable', module).add(it, function () {
    return /*#__PURE__*/_react["default"].createElement(_TimeTable["default"], (0, _extends2["default"])({}, commonProps, props, {
      __self: _this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 86,
        columnNumber: 5
      }
    }));
  });
});