'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _radium = require('radium');

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

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

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

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

var _checkbox = require('./checkbox');

var _grid = require('kitten/components/grid/grid');

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

(0, _react3.storiesOf)('Form/Checkbox', module).addDecorator(_react4.withKnobs).add('default', (0, _addonInfo.withInfo)('common info')(function () {
  return _react2.default.createElement(
    _radium.StyleRoot,
    null,
    _react2.default.createElement(
      _grid.Grid,
      null,
      _react2.default.createElement(
        _grid.GridCol,
        { offset: '1', col: '8' },
        _react2.default.createElement(
          _checkbox.Checkbox,
          {
            id: (0, _react4.text)('id', 'checkbox_id'),
            onLabelClick: (0, _addonActions.action)('label-click')
          },
          (0, _react4.text)('text', 'Checkbox Label')
        )
      )
    )
  );
}));