"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MixinsSectionStacked = exports.MixinsStackee = exports.MixinsStacked = exports.MixinsSectionSpacing = exports.MixinsSpacing = exports.WithOnClick = exports.WithHref = exports.CardWithSections = exports.Default = exports["default"] = void 0;

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

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

var _card = require("./card.component");

var _section = require("./section/section.component");

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

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

var _stackedChecker = require("../../../mixins/stacking/story-support/stacked-checker");

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

var _card2 = _interopRequireDefault(require("./card.mdx"));

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

var _default = {
  component: _card.Card,
  title: 'Structures/Card',
  parameters: {
    docs: {
      page: _card2["default"]
    }
  }
};
exports["default"] = _default;

var Default = function Default() {
  return /*#__PURE__*/_react["default"].createElement(_card.Card, {
    spacing: "p2"
  }, "Hello I am a card");
};

exports.Default = Default;

var CardWithSections = function CardWithSections() {
  return /*#__PURE__*/_react["default"].createElement(_card.Card, null, /*#__PURE__*/_react["default"].createElement(_section.CardSection, {
    spacing: "p3"
  }, "Section one"), /*#__PURE__*/_react["default"].createElement(_section.CardSection, {
    spacing: "p3"
  }, "Section two"));
};

exports.CardWithSections = CardWithSections;

var WithHref = function WithHref() {
  return /*#__PURE__*/_react["default"].createElement(_card.Card, {
    spacing: "p2",
    href: "http://my.wealthsimple.com"
  }, "Hello I am a card with a HREF");
};

exports.WithHref = WithHref;

var WithOnClick = function WithOnClick() {
  return /*#__PURE__*/_react["default"].createElement(_card.Card, {
    spacing: "p2",
    onClick: (0, _addonActions.action)('onClick')
  }, "Hello I am a clickable card");
};

exports.WithOnClick = WithOnClick;

var MixinsSpacing = function MixinsSpacing() {
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_marginChecker.MarginChecker, {
    Component: _card.Card
  }, "Hello"), /*#__PURE__*/_react["default"].createElement(_paddingChecker.PaddingChecker, {
    Component: _card.Card
  }, "Hello"));
};

exports.MixinsSpacing = MixinsSpacing;

var MixinsSectionSpacing = function MixinsSectionSpacing() {
  return /*#__PURE__*/_react["default"].createElement(_card.Card, null, /*#__PURE__*/_react["default"].createElement(_section.CardSection, null, "The sections below are spaced"), /*#__PURE__*/_react["default"].createElement(_marginChecker.MarginChecker, {
    Component: _section.CardSection
  }, "Hello"), /*#__PURE__*/_react["default"].createElement(_paddingChecker.PaddingChecker, {
    Component: _section.CardSection
  }, "Hello"));
};

exports.MixinsSectionSpacing = MixinsSectionSpacing;

var MixinsStacked = function MixinsStacked() {
  return /*#__PURE__*/_react["default"].createElement(_stackedChecker.StackedChecker, {
    Component: _card.Card
  });
};

exports.MixinsStacked = MixinsStacked;

var MixinsStackee = function MixinsStackee() {
  return /*#__PURE__*/_react["default"].createElement(_stackeeChecker.StackeeChecker, {
    Component: _card.Card,
    spacing: "m0"
  }, "Hello");
};

exports.MixinsStackee = MixinsStackee;

var MixinsSectionStacked = function MixinsSectionStacked() {
  return /*#__PURE__*/_react["default"].createElement(_card.Card, null, /*#__PURE__*/_react["default"].createElement(_section.CardSection, null, "The sections below are stacked"), /*#__PURE__*/_react["default"].createElement(_stackedChecker.StackedChecker, {
    Component: _section.CardSection
  }));
};

exports.MixinsSectionStacked = MixinsSectionStacked;