"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MixinsMarginOnlySpacing = exports.ErrorColors = exports.NoAnimation = exports.Large = exports.Complete = exports.Default = exports["default"] = void 0;

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

var _index = require("./index");

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

var _circularProgressBar = _interopRequireDefault(require("./circular-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: _index.CircularProgressBar,
  title: 'Components/Feedback/Circular Progress Bar',
  parameters: {
    docs: {
      page: _circularProgressBar["default"]
    }
  }
};
exports["default"] = _default;
var DEFAULT_PROPS = {
  initialAnimation: true,
  percentage: 50
};

var Default = function Default() {
  return /*#__PURE__*/_react["default"].createElement(_index.CircularProgressBar, DEFAULT_PROPS);
};

exports.Default = Default;

var Complete = function Complete() {
  return /*#__PURE__*/_react["default"].createElement(_index.CircularProgressBar, _extends({}, DEFAULT_PROPS, {
    percentage: 100
  }));
};

exports.Complete = Complete;

var Large = function Large() {
  return /*#__PURE__*/_react["default"].createElement(_index.CircularProgressBar, _extends({}, DEFAULT_PROPS, {
    size: "60px"
  }));
};

exports.Large = Large;

var NoAnimation = function NoAnimation() {
  return /*#__PURE__*/_react["default"].createElement(_index.CircularProgressBar, _extends({}, DEFAULT_PROPS, {
    initialAnimation: false
  }));
};

exports.NoAnimation = NoAnimation;

var ErrorColors = function ErrorColors() {
  return /*#__PURE__*/_react["default"].createElement(_index.CircularProgressBar, _extends({}, DEFAULT_PROPS, {
    percentage: 100,
    color: "error-fg",
    bgColor: "error-bg"
  }));
};

exports.ErrorColors = ErrorColors;

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

exports.MixinsMarginOnlySpacing = MixinsMarginOnlySpacing;