import _extends from "@babel/runtime/helpers/extends";
import _defineProperty from "@babel/runtime/helpers/defineProperty";
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/esm/BadgeSelect/test/BadgeSelect.visual.jsx",
  _this = this;
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
import React from 'react';
import { storiesOf } from '@storybook/react';
import BadgeSelect from '..';
import Box from '../../Box';
var baseProps = {
  options: [{
    id: '0',
    skin: 'general',
    text: 'general'
  }, {
    id: '1',
    skin: 'standard',
    text: 'standard'
  }, {
    id: '2',
    skin: 'danger',
    text: 'danger'
  }, {
    id: '3',
    skin: 'success',
    text: 'success'
  }, {
    id: '4',
    skin: 'neutral',
    text: 'neutral'
  }, {
    id: '5',
    skin: 'neutralLight',
    text: 'neutralLight'
  }, {
    id: '6',
    skin: 'warning',
    text: 'warning'
  }, {
    id: '7',
    skin: 'warningLight',
    text: 'warningLight'
  }, {
    id: '8',
    skin: 'urgent',
    text: 'urgent'
  }, {
    id: '9',
    skin: 'neutralStandard',
    text: 'neutralStandard'
  }, {
    id: '10',
    skin: 'neutralSuccess',
    text: 'neutralSuccess'
  }, {
    id: '11',
    skin: 'neutralDanger',
    text: 'neutralDanger'
  }, {
    id: '12',
    skin: 'premium',
    text: 'premium'
  }]
};
var tests = [{
  describe: 'Basic',
  its: [{
    it: "Should render the selected id",
    props: _objectSpread(_objectSpread({}, baseProps), {}, {
      selectedId: '3'
    })
  }]
}];
tests.forEach(function (_ref) {
  var describe = _ref.describe,
    its = _ref.its;
  its.forEach(function (_ref2) {
    var it = _ref2.it,
      props = _ref2.props;
    storiesOf("BadgeSelect".concat(describe ? '/' + describe : ''), module).add(it, function () {
      return /*#__PURE__*/React.createElement(Box, {
        margin: 3,
        align: "center",
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 44,
          columnNumber: 9
        }
      }, /*#__PURE__*/React.createElement(BadgeSelect, _extends({}, props, {
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 45,
          columnNumber: 11
        }
      })));
    });
  });
});