"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 _ = _interopRequireDefault(require(".."));
var _constants = require("../constants");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/EditableSelector/test/EditableSelector.visual.jsx",
  _this = void 0;
var types = Object.values(_constants.TOGGLE_TYPE);
var requiredProps = {
  options: [{
    title: 'title1',
    isSelected: true
  }, {
    title: 'title2'
  }, {
    title: 'title3'
  }],
  title: 'editable selector title'
};
var tests = [{
  describe: 'basic',
  its: [{
    it: 'basic',
    props: {}
  }]
}, {
  describe: 'newRowLabel',
  its: [{
    it: 'newRowLabel',
    props: {
      newRowLabel: 'New Row Label'
    }
  }]
}, {
  describe: 'type',
  its: types.map(function (toggleType) {
    return {
      it: toggleType,
      props: {
        toggleType: toggleType
      }
    };
  })
}];
tests.forEach(function (_ref) {
  var describe = _ref.describe,
    its = _ref.its;
  its.forEach(function (_ref2) {
    var it = _ref2.it,
      props = _ref2.props;
    (0, _react2.storiesOf)("EditableSelector".concat(describe ? '/' + describe : ''), module).add(it, function () {
      return /*#__PURE__*/_react["default"].createElement(_["default"], (0, _extends2["default"])({}, requiredProps, props, {
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 46,
          columnNumber: 13
        }
      }));
    });
  });
});