import _extends from "@babel/runtime/helpers/extends";
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/esm/MobilePreviewWidget/test/MobilePreviewWidget.visual.jsx",
  _this = this;
import React from 'react';
import { storiesOf } from '@storybook/react';
import MobilePreviewWidget from '../MobilePreviewWidget';
import Box from '../../Box';
import Text from '../../Text';
import { skins } from '../constants';
var commonProps = {
  children: /*#__PURE__*/React.createElement(Box, {
    align: "center",
    verticalAlign: "middle",
    height: "100%",
    padding: "20px",
    backgroundColor: "Y30",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 10,
      columnNumber: 5
    }
  }, /*#__PURE__*/React.createElement(Text, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 17,
      columnNumber: 7
    }
  }, "Content goes here"))
};
var tests = [{
  describe: 'Skins',
  its: [{
    it: skins.neutral,
    props: {
      skin: skins.neutral
    }
  }, {
    it: skins.gradient,
    props: {
      skin: skins.gradient
    }
  }, {
    it: skins.custom,
    props: {
      skin: skins.custom,
      backgroundColor: 'B10'
    }
  }]
}, {
  describe: 'Custom Size',
  its: [{
    it: 'height',
    props: {
      height: '750px'
    }
  }, {
    it: 'width',
    props: {
      width: '550px'
    }
  }]
}, {
  describe: 'Scroll',
  its: [{
    it: 'Large Content ',
    props: {
      children: /*#__PURE__*/React.createElement(Box, {
        align: "center",
        verticalAlign: "middle",
        height: "600px",
        backgroundColor: "Y30",
        __self: this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 71,
          columnNumber: 13
        }
      }, /*#__PURE__*/React.createElement(Text, {
        __self: this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 77,
          columnNumber: 15
        }
      }, "Content goes here"))
    }
  }]
}];
tests.forEach(function (_ref) {
  var describe = _ref.describe,
    its = _ref.its;
  its.forEach(function (_ref2) {
    var it = _ref2.it,
      props = _ref2.props;
    storiesOf("MobilePreviewWidget".concat(describe ? '/' + describe : ''), module).add(it, function () {
      return /*#__PURE__*/React.createElement(MobilePreviewWidget, _extends({}, commonProps, props, {
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 91,
          columnNumber: 21
        }
      }));
    });
  });
});