"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 _FilePicker = _interopRequireDefault(require("../FilePicker"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/FilePicker/test/FilePicker.visual.jsx",
  _this = void 0;
var defaultProps = {
  mainLabel: 'Choose File'
};
var tests = [{
  its: [{
    it: 'default',
    props: {}
  }, {
    it: 'header',
    props: {
      header: 'Header'
    }
  }, {
    it: 'error',
    props: {
      error: true,
      errorMessage: 'ERROR'
    }
  }, {
    it: 'long error',
    props: {
      error: true,
      errorMessage: 'ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR'
    }
  }]
}];
tests.forEach(function (_ref) {
  var its = _ref.its;
  its.forEach(function (_ref2) {
    var it = _ref2.it,
      props = _ref2.props;
    (0, _react2.storiesOf)("FilePicker", module).add(it, function () {
      return /*#__PURE__*/_react["default"].createElement("div", {
        style: {
          width: '300px'
        },
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 45,
          columnNumber: 7
        }
      }, /*#__PURE__*/_react["default"].createElement(_FilePicker["default"], (0, _extends2["default"])({}, defaultProps, props, {
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 46,
          columnNumber: 9
        }
      })));
    });
  });
});