"use strict";

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

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.States = exports.Arrows = exports.Intents = exports.Ghost = exports.Basic = void 0;

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

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

var _Button = _interopRequireDefault(require("./Button"));

// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
const Basic = args => /*#__PURE__*/_react.default.createElement(_Button.default, args);

exports.Basic = Basic;
Basic.args = {
  children: 'Click me'
};

const Ghost = args => /*#__PURE__*/_react.default.createElement(_Button.default, (0, _extends2.default)({
  ghost: true
}, args));

exports.Ghost = Ghost;
Ghost.args = {
  icon: 'gear'
};

const Intents = () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  intent: "info"
}, Basic.args)), " ", /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  intent: "success"
}, Basic.args)), " ", /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  intent: "warning"
}, Basic.args)), " ", /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  intent: "danger"
}, Basic.args)));

exports.Intents = Intents;

const Arrows = () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  arrow: "forward"
}, Basic.args)), " ", /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  arrow: "forward",
  size: "lg"
}, Basic.args)), " ", /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  arrow: "forward",
  icon: "cpu"
}, Basic.args)), " ", /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  arrow: "forward",
  intent: "danger"
}, Basic.args))), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  arrow: "backward"
}, Basic.args)), " ", /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  arrow: "backward",
  size: "lg"
}, Basic.args)), " ", /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  arrow: "backward",
  icon: "cpu"
}, Basic.args)), " ", /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  arrow: "backward",
  intent: "danger"
}, Basic.args))));

exports.Arrows = Arrows;

const States = () => [{
  intent: 'primary'
}, {
  disabled: true
}, {
  ghost: true
}].map((props, index) => /*#__PURE__*/_react.default.createElement("p", {
  key: index.toString()
}, /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  state: "hovered"
}, Basic.args, props)), " ", /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  state: "active"
}, Basic.args, props)), " ", /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  state: "loading"
}, Basic.args, props)), " ", /*#__PURE__*/_react.default.createElement(Basic, (0, _extends2.default)({
  state: "focused"
}, Basic.args, props))));

exports.States = States;