"use strict";

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

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

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

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

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

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

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

var _MarketingButton = _interopRequireDefault(require("./MarketingButton"));

var _excluded = ["size"];
var _default = {
  component: _MarketingButton.default,
  title: (0, _utils.addStoryInGroup)(_utils.MARKETING, 'MarketingButton'),
  parameters: {
    design: {
      type: 'figma',
      url: 'https://www.figma.com/file/6nbw3mXc6VpIOYrbmUxn8C/Marketing-components?node-id=1%3A809'
    }
  }
};
exports.default = _default;

var Basic = function Basic(_ref) {
  var size = _ref.size,
      args = (0, _objectWithoutProperties2.default)(_ref, _excluded);
  return /*#__PURE__*/_react.default.createElement(_MarketingButton.default, (0, _extends2.default)({}, args, {
    size: size,
    icon: size === 'tiny' || size === 'small' ? /*#__PURE__*/_react.default.createElement(_uiIcons.IconAddSmallOutline, null) : /*#__PURE__*/_react.default.createElement(_uiIcons.IconAddMediumOutline, null)
  }));
};

exports.Basic = Basic;
Basic.args = {
  children: 'I am a button for marketing purposes',
  level: 'primary'
};

var Bold = function Bold() {
  return /*#__PURE__*/_react.default.createElement(_MarketingButton.default, null, "I am a button for ", /*#__PURE__*/_react.default.createElement("strong", null, "marketing"), " purposes");
};

exports.Bold = Bold;

var IconOnly = function IconOnly() {
  return /*#__PURE__*/_react.default.createElement(_MarketingButton.default, {
    icon: /*#__PURE__*/_react.default.createElement(_uiIcons.IconAddMediumOutline, null)
  });
};

exports.IconOnly = IconOnly;