"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MixinsStackee = exports.MixinsMarginOnlySpacing = exports.Error = exports.Complete = exports.Incomplete = exports["default"] = void 0;

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

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _progressBar = require("./progress-bar.component");

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

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

var _progressBar2 = _interopRequireDefault(require("./progress-bar.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: _progressBar.ProgressBar,
  title: 'Components/Feedback/Progress Bar',
  parameters: {
    docs: {
      page: _progressBar2["default"]
    }
  }
};
exports["default"] = _default;
var DEFAULT_PROPS = {
  totalSteps: 10,
  currentStep: 2
};

var Incomplete = function Incomplete() {
  return /*#__PURE__*/_react["default"].createElement(_progressBar.ProgressBar, DEFAULT_PROPS);
};

exports.Incomplete = Incomplete;

var Complete = function Complete() {
  return /*#__PURE__*/_react["default"].createElement(_progressBar.ProgressBar, _extends({}, DEFAULT_PROPS, {
    currentStep: 10
  }));
};

exports.Complete = Complete;

var Error = function Error() {
  return /*#__PURE__*/_react["default"].createElement(_progressBar.ProgressBar, _extends({}, DEFAULT_PROPS, {
    error: true
  }));
};

exports.Error = Error;
var MinWidthProgressBar = (0, _styledComponents["default"])(_progressBar.ProgressBar).withConfig({
  displayName: "MinWidthProgressBar",
  componentId: "ulldlj-0"
})(["min-width:100px;"]);

var MixinsMarginOnlySpacing = function MixinsMarginOnlySpacing() {
  return /*#__PURE__*/_react["default"].createElement(_marginChecker.MarginChecker, _extends({
    Component: MinWidthProgressBar
  }, DEFAULT_PROPS));
};

exports.MixinsMarginOnlySpacing = MixinsMarginOnlySpacing;

var MixinsStackee = function MixinsStackee() {
  return /*#__PURE__*/_react["default"].createElement(_stackeeChecker.StackeeChecker, _extends({
    Component: _progressBar.ProgressBar
  }, DEFAULT_PROPS));
};

exports.MixinsStackee = MixinsStackee;