"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault"),_react=_interopRequireDefault(require("react")),_react2=require("@storybook/react"),_addonInfo=require("@storybook/addon-info"),_formik=require("formik"),_index=_interopRequireDefault(require("./index")),_FormikCheckbox=_interopRequireDefault(require("./FormikCheckbox"));(0,_react2.storiesOf)("CheckBox",module).add("Default",(0,_addonInfo.withInfo)("Default")(function(){return _react.default.createElement("div",{style:{margin:10}},_react.default.createElement("h4",null,"Default"),_react.default.createElement(_index.default,{label:"Text"}),_react.default.createElement("h4",null,"Disabled"),_react.default.createElement(_index.default,{disabled:!0,label:"Text"}),_react.default.createElement("h4",null,"Predefined checked"),_react.default.createElement(_index.default,{value:!0,label:"Text"}),_react.default.createElement("h4",null,"Custom color"),_react.default.createElement(_index.default,{value:!0,color:"green",label:"Text"}),_react.default.createElement("h4",null,"With Error"),_react.default.createElement(_index.default,{value:!0,label:"Text",error:"Error Message"}))})).add("Formik",(0,_addonInfo.withInfo)("Formik Checkbox")(function(){return _react.default.createElement("div",{style:{margin:10}},_react.default.createElement(_formik.Formik,{initialValues:{checkbox1:!0,checkbox2:!1},onSubmit:function onSubmit(){}},_react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_FormikCheckbox.default,{name:"checkbox1",label:"Checkbox 1"}),_react.default.createElement("br",null),_react.default.createElement(_FormikCheckbox.default,{name:"checkbox2",label:"Checkbox 2"}))))}));