'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _react3 = require('@storybook/react');

var _addonActions = require('@storybook/addon-actions');

var _addonKnobs = require('@storybook/addon-knobs');

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

var _index2 = _interopRequireDefault(_index);

var _ButtonAlert = require('./ButtonAlert.md');

var _ButtonAlert2 = _interopRequireDefault(_ButtonAlert);

var _ButtonWithIconKnobs = require('../ButtonWithIcon/ButtonWithIcon.knobs.options');

var _ButtonWithIconKnobs2 = _interopRequireDefault(_ButtonWithIconKnobs);

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

(0, _react3.storiesOf)('atoms/buttons', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('ButtonAlert', function () {
  var props = {
    onClick: (0, _addonActions.action)('ButtonAlert clicked'),
    text: (0, _addonKnobs.text)('text', ' Updates'),
    showText: (0, _addonKnobs.text)('showText', 'Show'),
    hideText: (0, _addonKnobs.text)('hideText', 'Hide'),
    classes: (0, _addonKnobs.text)('classes', ''),
    isOpen: (0, _addonKnobs.boolean)('isOpen', false),
    theme: (0, _addonKnobs.select)('theme', _ButtonWithIconKnobs2.default.theme)
  };
  return _react2.default.createElement(_index2.default, props);
}, { info: _ButtonAlert2.default });