"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.SmallSpinner = exports.InverseFilledSpinner = exports.FilledSpinner = exports.DefaultSpinner = exports.BigSpinner = void 0;

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

var _Spinner = _interopRequireDefault(require("./Spinner"));

var _excluded = ["data"];

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

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

var _default = {
  title: 'Components/Spinner',
  component: _Spinner.default,
  argTypes: {
    size: {
      control: 'radio',
      options: ['small', 'big']
    },
    inversed: {
      defaultValue: false,
      control: 'radio',
      options: [true, false]
    },
    filled: {
      defaultValue: false,
      control: 'radio',
      options: [true, false]
    }
  }
};
exports.default = _default;

var Template = function Template(_ref) {
  var data = _ref.data,
      args = _objectWithoutProperties(_ref, _excluded);

  return /*#__PURE__*/_react.default.createElement(_Spinner.default, args);
};

var DefaultSpinner = Template.bind({});
exports.DefaultSpinner = DefaultSpinner;
var SmallSpinner = Template.bind({});
exports.SmallSpinner = SmallSpinner;
SmallSpinner.args = {
  size: 'small'
};
var BigSpinner = Template.bind({});
exports.BigSpinner = BigSpinner;
BigSpinner.args = {
  size: 'big'
};
var FilledSpinner = Template.bind({});
exports.FilledSpinner = FilledSpinner;
FilledSpinner.args = {
  filled: true
};
FilledSpinner.parameters = {
  backgrounds: {
    default: process.env.STORYBOOK_DS === 'medicare' ? 'Mgov dark' : 'Hcgov dark'
  }
};
var InverseFilledSpinner = Template.bind({});
exports.InverseFilledSpinner = InverseFilledSpinner;
InverseFilledSpinner.args = {
  inversed: true,
  filled: true
};