"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Default = exports.default = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _react = _interopRequireDefault(require("react"));

var _reactSelect = _interopRequireDefault(require("react-select"));

var _README = _interopRequireDefault(require("./README.mdx"));

var _default = {
  title: 'Components/Forms/Dropdown/react-select',
  component: _reactSelect.default,
  markdown: 'hello',
  parameters: {
    componentSubtitle: 'Component',
    status: 'released',
    introText: "[React Select](https://react-select.com) is recommended for multiselect, autocomplete or dynamic inputs.",
    mdx: _README.default,
    code: false,
    html: false
  }
};
exports.default = _default;
var options = [{
  value: 'chocolate',
  label: 'Chocolate'
}, {
  value: 'strawberry',
  label: 'Strawberry'
}, {
  value: 'vanilla',
  label: 'Vanilla'
}];

var Default = function Default(args) {
  return /*#__PURE__*/_react.default.createElement("div", {
    className: "wfp--form-item",
    style: {
      minWidth: '400px'
    }
  }, /*#__PURE__*/_react.default.createElement("label", {
    htmlFor: "abc",
    className: "wfp--label"
  }, "The Label"), /*#__PURE__*/_react.default.createElement(_reactSelect.default, (0, _extends2.default)({
    className: "wfp--react-select-container",
    classNamePrefix: "wfp--react-select",
    isMulti: true,
    id: "abc",
    options: options
  }, args)));
};

exports.Default = Default;
Default.args = {
  placeholder: 'Placeholder',
  isSearchable: false,
  isMulti: true,
  isDisabled: false
};
Default.story = {
  name: 'Default',
  parameters: {
    info: {
      source: false,
      propTables: false
    }
  }
};