'use strict';

var _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; };

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

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

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

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

var _index2 = _interopRequireDefault(_index);

var _InputRadio = require('./InputRadio.md');

var _InputRadio2 = _interopRequireDefault(_InputRadio);

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

(0, _react3.storiesOf)('forms|atoms', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('InputRadio', function () {
  var props = {
    name: (0, _addonKnobs.text)('name', 'plant'),
    id: (0, _addonKnobs.text)('id', 'fern123'),
    value: (0, _addonKnobs.text)('value', 'fern'),
    label: (0, _addonKnobs.text)('label', 'Fern'),
    required: (0, _addonKnobs.boolean)('required', true),
    outline: (0, _addonKnobs.boolean)('outline', true),
    checked: (0, _addonKnobs.boolean)('checked', null),
    disabled: (0, _addonKnobs.boolean)('disabled', false),
    error: (0, _addonKnobs.boolean)('error', false)
  };
  return _react2.default.createElement(_index2.default, _extends({}, props, { onChange: (0, _addonActions.action)('onChange') }));
}, { info: _InputRadio2.default });