"use strict";

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

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

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

var _uiIcons = require("@teamleader/ui-icons");

var _Badge = _interopRequireDefault(require("./Badge"));

var _default = {
  component: _Badge.default,
  title: 'Badge'
};
exports.default = _default;

var Wrapper = function Wrapper(_ref) {
  var children = _ref.children;
  return /*#__PURE__*/_react.default.createElement("div", {
    style: {
      minHeight: '50px',
      padding: '6px',
      display: 'flex'
    }
  }, children);
};

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

var Main = function Main() {
  return /*#__PURE__*/_react.default.createElement("div", null, ['small', 'medium', 'large'].map(function (size) {
    return /*#__PURE__*/_react.default.createElement(Wrapper, {
      key: size
    }, /*#__PURE__*/_react.default.createElement(_Badge.default, {
      size: size
    }, size), /*#__PURE__*/_react.default.createElement(Spacer, null), /*#__PURE__*/_react.default.createElement(_Badge.default, {
      size: size,
      selected: true
    }, size, " selected"), /*#__PURE__*/_react.default.createElement(Spacer, null), /*#__PURE__*/_react.default.createElement(_Badge.default, {
      size: size,
      disabled: true
    }, size, " disabled"), /*#__PURE__*/_react.default.createElement(Spacer, null), /*#__PURE__*/_react.default.createElement(_Badge.default, {
      size: size,
      icon: size === 'large' ? /*#__PURE__*/_react.default.createElement(_uiIcons.IconBuildingMediumOutline, null) : /*#__PURE__*/_react.default.createElement(_uiIcons.IconBuildingSmallOutline, null),
      style: {
        marginRight: '12px'
      }
    }, size, " icon left"), /*#__PURE__*/_react.default.createElement(Spacer, null), /*#__PURE__*/_react.default.createElement(_Badge.default, {
      size: size,
      icon: size === 'large' ? /*#__PURE__*/_react.default.createElement(_uiIcons.IconBuildingMediumOutline, null) : /*#__PURE__*/_react.default.createElement(_uiIcons.IconBuildingSmallOutline, null),
      iconPlacement: "right",
      style: {
        marginRight: '12px'
      }
    }, size, " icon right"));
  }));
};

exports.Main = Main;