"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. Chose from a submit, button, or link element. Defaults to a link.').usage("import { Button } from '@dragonchain-dev/dragon-kit'\n      \n<Button \n  blank \n  color=\"red\" \n  hover=\"red-on-white\" \n  to=\"https://dragonchain.com\n>\n  Dragonchain\n</Button>");
  DocumentedButton.propTypes = {
    tag: _reactDesc.PropTypes.string.description('HTML tag'),
    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').defaultValue('link'),
    outline: _reactDesc.PropTypes.bool.description('Remove solid fill and replace with an outline').defaultValue(false),
    url: _reactDesc.PropTypes.string.description('URL'),
    blank: _reactDesc.PropTypes.bool.description('Open url in new window').defaultValue(false),
    disabled: _reactDesc.PropTypes.bool.description('Disable the button').defaultValue(false),
    small: _reactDesc.PropTypes.bool.description('Make the button smaller').defaultValue(false),
    children: _reactDesc.PropTypes.node.description('Button body').isRequired
  };
  return DocumentedButton;
};

exports.doc = doc;