"use strict";

exports.__esModule = true;
exports.doc = void 0;

var _reactDesc = require("react-desc");

var _propTypes = require("../../utils/propTypes");

var doc = function doc(Button) {
  var DocumentedButton = (0, _reactDesc.describe)(Button).description('A Button component').usage("import { Button } from '@dragonchain-dev/dragon-kit'\n      \n<Button color=\"red\" hover=\"red-on-white\" url=\"https://dragonchain.com>Dragonchain</Button>");
  DocumentedButton.propTypes = {
    tag: _reactDesc.PropTypes.string.description('HTML tag').defaultValue('a'),
    className: _reactDesc.PropTypes.string.description('Override all button styles'),
    color: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('Button').colors).description('Button color').defaultValue('blue'),
    hover: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('Button').hover).description('Button hover color').defaultValue('blue-dark'),
    type: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('Button').type).description('The type of button'),
    url: _reactDesc.PropTypes.string.description('URL'),
    blank: _reactDesc.PropTypes.bool.description('Open url in new window'),
    disabled: _reactDesc.PropTypes.bool.description('Disable the button'),
    small: _reactDesc.PropTypes.bool.description('Make the button smaller'),
    children: _reactDesc.PropTypes.node.description('Button body').isRequired
  };
  return DocumentedButton;
};

exports.doc = doc;