"use strict";

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

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

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

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

var _Stack = require("../Stack");

var _Switch = require("./Switch");

var __jsx = _react2["default"].createElement;
var stories = (0, _react.storiesOf)('Switch', module);
stories.addDecorator(function (story) {
  return __jsx(_Box.Box, {
    maxWidth: "lg",
    mx: "auto",
    mt: 6,
    p: 6
  }, story());
});
stories.add('Default', function () {
  return __jsx(_Stack.Stack, {
    isInline: true
  }, __jsx(_Switch.Switch, {
    size: "sm",
    onChange: function onChange(e) {
      return console.log(e);
    },
    color: "green"
  }), __jsx(_Switch.Switch, {
    size: "md",
    onChange: function onChange(e) {
      return console.log(e);
    },
    color: "blue"
  }), __jsx(_Switch.Switch, {
    size: "lg",
    isDisabled: true,
    onChange: function onChange(e) {
      return console.log(e);
    },
    color: "cyan"
  }));
});
//# sourceMappingURL=examples.js.map