"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

var _react = require("@storybook/react");

var _react2 = _interopRequireDefault(require("react"));

var _ = require(".");

var _Box = require("../Box");

var _RadioGroup = require("../RadioGroup");

var __jsx = _react2["default"].createElement;
var stories = (0, _react.storiesOf)('Radio', module);
stories.addDecorator(function (story) {
  return __jsx(_Box.Box, {
    maxWidth: "lg",
    mx: "auto",
    mt: 6,
    p: 6
  }, story());
});
stories.add('Default', function () {
  return __jsx(_RadioGroup.RadioGroup, null, __jsx(_.Radio, {
    value: "male",
    name: "bee"
  }, "Male"), __jsx(_.Radio, {
    value: "female",
    name: "bee"
  }, "Female"));
});
stories.add('Inline Radio ', function () {
  return __jsx(_RadioGroup.RadioGroup, {
    isInline: true,
    defaultValue: "male",
    onChange: function onChange(event, value) {
      return console.log(value);
    }
  }, __jsx(_.Radio, {
    value: "male"
  }, "Male"), __jsx(_.Radio, {
    value: "female"
  }, "Female"));
});
stories.add('Disabled', function () {
  return __jsx(_RadioGroup.RadioGroup, null, __jsx(_.Radio, {
    value: "male",
    name: "bee",
    isDisabled: true
  }, "Male"), __jsx(_.Radio, {
    value: "female",
    name: "bee"
  }, "Female"));
});
//# sourceMappingURL=examples.js.map