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

import React from 'react';

import { storiesOf } from '@storybook/react';
import { withKnobs, text, boolean } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';

import InputRadio from './index';
import InputRadioDocs from './InputRadio.md';

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