'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

var _addonInfo = require('@storybook/addon-info');

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

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

var _simpleUploader = require('./simple-uploader');

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

(0, _react3.storiesOf)('Uploaders/SimpleUploader', module).addDecorator(_react4.withKnobs).add('default', (0, _addonInfo.withInfo)('common info')(function () {
  return _react2.default.createElement(_simpleUploader.SimpleUploader, {
    fileName: (0, _react4.text)('Filename', 'Filename'),
    disabled: (0, _react4.boolean)('Disabled', false),
    deletable: (0, _react4.boolean)('Deletable', true),
    buttonLabel: (0, _react4.text)('Button Label', 'Choose a file'),
    acceptedFiles: (0, _react4.text)('Accepted files', '.jpg,.jpeg,.gif,.png'),
    maxSize: (0, _react4.number)('Max size', 5 * 1024 * 1024),
    base64: (0, _react4.boolean)('base64', false),
    onSuccess: (0, _addonActions.action)('success'),
    onError: (0, _addonActions.action)('error')
  });
}));