"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MixinsStackee = exports.MixinsSpacing = exports.AsLink = exports.Disabled = exports.Default = exports["default"] = void 0;

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

var _addonActions = require("@storybook/addon-actions");

var _secondaryButton = require("./secondary-button.component");

var _marginChecker = require("../../../mixins/spacing/story-support/margin-checker");

var _paddingChecker = require("../../../mixins/spacing/story-support/padding-checker");

var _stackeeChecker = require("../../../mixins/stackee/story-support/stackee-checker");

var _secondaryButton2 = _interopRequireDefault(require("./secondary-button.mdx"));

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

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

var _default = {
  component: _secondaryButton.SecondaryButton,
  title: 'Buttons/Secondary',
  parameters: {
    docs: {
      page: _secondaryButton2["default"]
    }
  }
};
exports["default"] = _default;
var DEFAULT_PROPS_CLICK = {
  onClick: (0, _addonActions.action)('clicked')
};
var DEFAULT_PROPS_HREF = {
  href: 'https://google.com'
};

var Default = function Default() {
  return /*#__PURE__*/_react["default"].createElement(_secondaryButton.SecondaryButton, DEFAULT_PROPS_CLICK, "Button Action");
};

exports.Default = Default;

var Disabled = function Disabled() {
  return /*#__PURE__*/_react["default"].createElement(_secondaryButton.SecondaryButton, _extends({}, DEFAULT_PROPS_CLICK, {
    disabled: true
  }), "Button Action");
};

exports.Disabled = Disabled;

var AsLink = function AsLink() {
  return /*#__PURE__*/_react["default"].createElement(_secondaryButton.SecondaryButton, DEFAULT_PROPS_HREF, "Button Link");
};

exports.AsLink = AsLink;

var MixinsSpacing = function MixinsSpacing() {
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_marginChecker.MarginChecker, _extends({
    Component: _secondaryButton.SecondaryButton
  }, DEFAULT_PROPS_CLICK), "Click me"), /*#__PURE__*/_react["default"].createElement(_paddingChecker.PaddingChecker, _extends({
    Component: _secondaryButton.SecondaryButton
  }, DEFAULT_PROPS_CLICK), "Click me"));
};

exports.MixinsSpacing = MixinsSpacing;

var MixinsStackee = function MixinsStackee() {
  return /*#__PURE__*/_react["default"].createElement(_stackeeChecker.StackeeChecker, _extends({
    Component: _secondaryButton.SecondaryButton
  }, DEFAULT_PROPS_CLICK), "Click me");
};

exports.MixinsStackee = MixinsStackee;