"use strict";

var _react = require("react");

var _react2 = _interopRequireDefault(_react);

var _react3 = require("@storybook/react");

var _md = require("react-icons/md");

var _ = require("./");

var _storybook = require("../../../utils/storybook");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

(0, _react3.storiesOf)("core/SettingsCard", module).add("default usage", function () {
  return _react2["default"].createElement(_storybook.StoryUtils.Container, {
    secondaryBg: true
  }, _react2["default"].createElement(_storybook.StoryUtils.Stack, {
    width: "35em"
  }, _react2["default"].createElement(_.SettingsCard, null, _react2["default"].createElement(_.SettingsCard.Title, null, "Card's title"), _react2["default"].createElement(_.SettingsCard.EditButton, {
    hiddenIf: "OPEN"
  }), _react2["default"].createElement(_.SettingsCard.Content, null, _react2["default"].createElement(_.SettingsCard.Description, null, "Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.")), _react2["default"].createElement(_.SettingsCard.Content, {
    variant: "SECONDARY"
  }, _react2["default"].createElement(_.SettingsCard.Description, null, "Celery quandong swiss chard chicory earthnut pea potato. Salsify taro catsear garlic gram celery bitterleaf wattle seed collard greens nori. Grape wattle seed kombu beetroot horseradish carrot squash brussels sprout chard."), _react2["default"].createElement(_storybook.StoryUtils.Content, {
    hint: "This is a Secondary Content"
  }), _react2["default"].createElement(_.SettingsCard.Actions, null, _react2["default"].createElement(_.SettingsCard.CancelButton, null), _react2["default"].createElement(_.SettingsCard.SubmitButton, null))))));
}).add("no secondary conent", function () {
  return _react2["default"].createElement(_storybook.StoryUtils.Container, {
    secondaryBg: true
  }, _react2["default"].createElement(_storybook.StoryUtils.Stack, {
    width: "35em"
  }, _react2["default"].createElement(_.SettingsCard, null, _react2["default"].createElement(_.SettingsCard.Title, null, "Card's title"), _react2["default"].createElement(_.SettingsCard.EditButton, {
    onClick: function onClick() {
      return alert("onClick on SettingsCard.EdituButton override the defaul toggle behaviour");
    }
  }), _react2["default"].createElement(_.SettingsCard.Content, null, _react2["default"].createElement(_.SettingsCard.Description, null, "Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic."))), _react2["default"].createElement(_.SettingsCard, null, _react2["default"].createElement(_.SettingsCard.Title, null, "Card's title"), _react2["default"].createElement(_.SettingsCard.EditButton, {
    onClick: function onClick() {
      return alert("onClick on SettingsCard.EdituButton override the defaul toggle behaviour");
    }
  }), _react2["default"].createElement(_.SettingsCard.Content, null, _react2["default"].createElement(_.SettingsCard.Description, null, "Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic."), _react2["default"].createElement(_.SettingsCard.Description, null, "Amaranth tatsoi tomatillo melon azuki bean garlic."), _react2["default"].createElement(_storybook.StoryUtils.Content, {
    hint: "PRIMARY CONTENT"
  })))), " ");
}).add("custom EditButton", function () {
  return _react2["default"].createElement(_storybook.StoryUtils.Container, {
    secondaryBg: true
  }, _react2["default"].createElement(_storybook.StoryUtils.Stack, {
    width: "35em"
  }, _react2["default"].createElement(_.SettingsCard, null, _react2["default"].createElement(_.SettingsCard.Title, null, "Card's title"), _react2["default"].createElement(_.SettingsCard.EditButton, {
    label: "Change",
    onClick: function onClick() {
      return alert("onClick on SettingsCard.EdituButton override the defaul toggle behaviour");
    }
  }), _react2["default"].createElement(_.SettingsCard.Content, null, _react2["default"].createElement(_.SettingsCard.Description, null, "Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic."))), _react2["default"].createElement(_.SettingsCard, null, _react2["default"].createElement(_.SettingsCard.Title, null, "Card's title"), _react2["default"].createElement(_.SettingsCard.EditButton, {
    onClick: function onClick() {
      return alert("onClick on SettingsCard.EdituButton override the defaul toggle behaviour");
    }
  }, "Add ", _react2["default"].createElement(_md.MdAdd, null)), _react2["default"].createElement(_.SettingsCard.Content, null, _react2["default"].createElement(_.SettingsCard.Description, null, "Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.")))), " ");
}).add("with custom tone", function () {
  return _react2["default"].createElement(_storybook.StoryUtils.Container, {
    secondaryBg: true
  }, _react2["default"].createElement(_storybook.StoryUtils.Stack, {
    width: "35em"
  }, _react2["default"].createElement(_.SettingsCard, {
    tone: "DANGER"
  }, _react2["default"].createElement(_.SettingsCard.Title, null, "Delete ite"), _react2["default"].createElement(_.SettingsCard.EditButton, {
    onClick: function onClick() {
      return alert("onClick on SettingsCard.EdituButton override the defaul toggle behaviour");
    }
  }, "Delete site ", _react2["default"].createElement(_md.MdDelete, null)), _react2["default"].createElement(_.SettingsCard.Content, null, _react2["default"].createElement(_.SettingsCard.Description, null, "Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.")))));
});