"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault"),_react=_interopRequireDefault(require("react")),_react2=require("@storybook/react"),_addonInfo=require("@storybook/addon-info"),_index=_interopRequireDefault(require("./index")),_formik=require("formik"),_FormikToggleSwitch=_interopRequireDefault(require("./FormikToggleSwitch"));(0,_react2.storiesOf)("ToggleSwitch",module).add("Default",(0,_addonInfo.withInfo)("Default")(function(){return/*#__PURE__*/_react["default"].createElement("div",{style:{margin:10}},/*#__PURE__*/_react["default"].createElement("h4",null,"Default"),/*#__PURE__*/_react["default"].createElement(_index["default"],null),/*#__PURE__*/_react["default"].createElement("h4",null,"Compact"),/*#__PURE__*/_react["default"].createElement(_index["default"],{compact:!0}),/*#__PURE__*/_react["default"].createElement("h4",null,"With Label"),/*#__PURE__*/_react["default"].createElement(_index["default"],{label:"Two step account authentication"}),/*#__PURE__*/_react["default"].createElement("h4",null,"Disabled"),/*#__PURE__*/_react["default"].createElement(_index["default"],{disabled:!0}),/*#__PURE__*/_react["default"].createElement("h4",null,"Predefined value"),/*#__PURE__*/_react["default"].createElement(_index["default"],{value:!0}),/*#__PURE__*/_react["default"].createElement("h4",null,"Custom label"),/*#__PURE__*/_react["default"].createElement(_index["default"],{value:!0,onLabel:"Yes",offLabel:"No"}),/*#__PURE__*/_react["default"].createElement("h4",null,"Custom color"),/*#__PURE__*/_react["default"].createElement(_index["default"],{value:!0,onLabel:"Yes",offLabel:"No",offColor:"red",onColor:"green"}))})).add("Formik",(0,_addonInfo.withInfo)("Formik Toggle Switch")(function(){return/*#__PURE__*/_react["default"].createElement("div",{style:{margin:10}},/*#__PURE__*/_react["default"].createElement(_formik.Formik,{initialValues:{switch1:!0,switch2:!1},onSubmit:function onSubmit(){}},/*#__PURE__*/_react["default"].createElement(_react["default"].Fragment,null,/*#__PURE__*/_react["default"].createElement(_FormikToggleSwitch["default"],{name:"switch1"}),/*#__PURE__*/_react["default"].createElement(_FormikToggleSwitch["default"],{name:"switch2"}))))}));