import React from 'react';
import { IconAddMediumOutline, IconAddSmallOutline } from '@teamleader/ui-icons';
import Button from './Button';
export default {
  component: Button,
  title: Button.displayName
};

var Wrapper = function Wrapper(_ref) {
  var children = _ref.children,
      _ref$inverse = _ref.inverse,
      inverse = _ref$inverse === void 0 ? false : _ref$inverse;
  return /*#__PURE__*/React.createElement("div", {
    style: {
      minHeight: '50px',
      padding: '6px',
      display: 'flex',
      backgroundColor: inverse ? 'black' : 'transparent'
    }
  }, children);
};

var Spacer = function Spacer() {
  return /*#__PURE__*/React.createElement("div", {
    style: {
      width: '12px'
    }
  });
};

export var ButtonLevels = function ButtonLevels() {
  return /*#__PURE__*/React.createElement("div", null, ['primary', 'secondary', 'destructive', 'timer'].map(function (level) {
    return /*#__PURE__*/React.createElement(Wrapper, {
      key: level
    }, /*#__PURE__*/React.createElement(Button, {
      level: level
    }, level), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
      level: level,
      disabled: true
    }, level, " disabled"), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
      level: level,
      active: true
    }, level, " active"));
  }), /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(Button, {
    level: "link"
  }, "link"), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
    level: "link",
    disabled: true
  }, "link disabled"), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
    level: "link",
    active: true
  }, "link active")), ['teal', 'neutral', 'mint', 'violet', 'ruby', 'gold', 'aqua', 'white'].map(function (color) {
    return /*#__PURE__*/React.createElement(Wrapper, {
      key: color,
      inverse: color === 'white'
    }, /*#__PURE__*/React.createElement(Button, {
      level: "outline",
      color: color
    }, "outline ", color), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
      level: "outline",
      color: color,
      disabled: true
    }, "outline ", color, " disabled"), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
      level: "outline",
      color: color,
      active: true
    }, "outline ", color, " active"));
  }));
};
export var ButtonSizes = function ButtonSizes() {
  return /*#__PURE__*/React.createElement("div", null, ['primary', 'secondary', 'destructive', 'link', 'timer'].map(function (level) {
    return /*#__PURE__*/React.createElement(React.Fragment, {
      key: level
    }, /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "tiny"
    }, level, " tiny"), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "small"
    }, level, " small"), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "medium"
    }, level, " medium"), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "large"
    }, level, " large")), /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "tiny",
      fullWidth: true
    }, level, " tiny")), /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "small",
      fullWidth: true
    }, level, " small")), /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "medium",
      fullWidth: true
    }, level, " medium")), /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "large",
      fullWidth: true
    }, level, " large")));
  }));
};
export var ButtonWithIcons = function ButtonWithIcons() {
  return /*#__PURE__*/React.createElement("div", null, ['primary', 'secondary', 'destructive', 'link', 'timer'].map(function (level) {
    return /*#__PURE__*/React.createElement(React.Fragment, {
      key: level
    }, /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "tiny",
      icon: /*#__PURE__*/React.createElement(IconAddSmallOutline, null)
    }, level, " tiny"), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "small",
      icon: /*#__PURE__*/React.createElement(IconAddSmallOutline, null)
    }, level, " small"), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "medium",
      icon: /*#__PURE__*/React.createElement(IconAddMediumOutline, null)
    }, level, " medium"), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "large",
      icon: /*#__PURE__*/React.createElement(IconAddMediumOutline, null)
    }, level, " large")), /*#__PURE__*/React.createElement(Wrapper, {
      key: level
    }, /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "tiny",
      icon: /*#__PURE__*/React.createElement(IconAddSmallOutline, null),
      iconPlacement: "right"
    }, level, " tiny"), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "small",
      icon: /*#__PURE__*/React.createElement(IconAddSmallOutline, null),
      iconPlacement: "right"
    }, level, " small"), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "medium",
      icon: /*#__PURE__*/React.createElement(IconAddMediumOutline, null),
      iconPlacement: "right"
    }, level, " medium"), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Button, {
      level: level,
      size: "large",
      icon: /*#__PURE__*/React.createElement(IconAddMediumOutline, null),
      iconPlacement: "right"
    }, level, " large")));
  }));
};