text: var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _=require("../../");var _Header=_interopRequireDefault(require("../../storybook/components/Header"));var _Container=_interopRequireDefault(require("../../storybook/components/Container"));var _storiesOf=require("../../storybook/helpers/storiesOf");var _storybookState=require("@sambego/storybook-state");var _jsxFileName="/Users/ricbermo/development/material-bread/src/Components/Switch/Switch.stories.js";var store=new _storybookState.Store({checkedOne:true,checkedTwo:true,checkedThree:true,checkedFour:true,checkedFive:true,isLoading:true});var _default=(0,_storiesOf.storiesOf)('Components|Switch',module).addParameters({jest:['Switch']}).add('simple',function(){return _react.default.createElement(_Container.default,{__source:{fileName:_jsxFileName,lineNumber:22}},_react.default.createElement(_Header.default,{title:'Switch',__source:{fileName:_jsxFileName,lineNumber:23}}),_react.default.createElement(_storybookState.State,{store:store,style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:24}},function(state){return _react.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:26}},_react.default.createElement(_.Switch,{onPress:function onPress(){return store.set({checkedOne:!state.checkedOne});},checked:state.checkedOne,style:{marginBottom:16},__source:{fileName:_jsxFileName,lineNumber:27}}),_react.default.createElement(_.Switch,{color:'#E91E63',onPress:function onPress(){return store.set({checkedTwo:!state.checkedTwo});},checked:state.checkedTwo,style:{marginBottom:16},__source:{fileName:_jsxFileName,lineNumber:32}}),_react.default.createElement(_.Switch,{color:'#009688',onPress:function onPress(){return store.set({checkedThree:!state.checkedThree});},checked:state.checkedThree,__source:{fileName:_jsxFileName,lineNumber:38}}));}));}).add('loading',function(){return _react.default.createElement(_Container.default,{__source:{fileName:_jsxFileName,lineNumber:49}},_react.default.createElement(_Header.default,{title:'Switch',__source:{fileName:_jsxFileName,lineNumber:50}}),_react.default.createElement(_storybookState.State,{store:store,style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:51}},function(state){return _react.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:53}},_react.default.createElement(_.Switch,{onPress:function onPress(){return store.set({checkedOne:!state.checkedOne});},checked:state.checkedOne,loading:state.isLoading,style:{marginBottom:16},__source:{fileName:_jsxFileName,lineNumber:54}}),_react.default.createElement(_.Switch,{onPress:function onPress(){return store.set({checkedOne:!state.checkedOne});},checked:state.checkedOne,loading:state.isLoading,style:{marginBottom:16},color:'#E91E63',__source:{fileName:_jsxFileName,lineNumber:60}}),_react.default.createElement(_.Switch,{onPress:function onPress(){return store.set({checkedOne:!state.checkedOne});},checked:state.checkedOne,loading:state.isLoading,style:{marginBottom:16},color:'#9C27B0',__source:{fileName:_jsxFileName,lineNumber:67}}),_react.default.createElement(_.Button,{text:'Toggle Loading',type:"outlined",onPress:function onPress(){return store.set({isLoading:!state.isLoading});},__source:{fileName:_jsxFileName,lineNumber:74}}));}));}).add('label',function(){return _react.default.createElement(_Container.default,{__source:{fileName:_jsxFileName,lineNumber:85}},_react.default.createElement(_Header.default,{title:'Switch',__source:{fileName:_jsxFileName,lineNumber:86}}),_react.default.createElement(_storybookState.State,{store:store,style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:88}},function(state){return _react.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:90}},_react.default.createElement(_.Switch,{label:_react.default.createElement(_.BodyText,{type:2,text:'Label',__source:{fileName:_jsxFileName,lineNumber:92}}),style:{marginBottom:16},color:'#E91E63',onPress:function onPress(){return store.set({checkedOne:!state.checkedOne});},checked:state.checkedOne,__source:{fileName:_jsxFileName,lineNumber:91}}),_react.default.createElement(_.Switch,{label:_react.default.createElement(_.BodyText,{type:2,style:{color:'#E91E63'},text:'Label',__source:{fileName:_jsxFileName,lineNumber:100}}),style:{marginBottom:16},color:'#E91E63',onPress:function onPress(){return store.set({checkedTwo:!state.checkedTwo});},checked:state.checkedTwo,__source:{fileName:_jsxFileName,lineNumber:98}}),_react.default.createElement(_.Switch,{label:_react.default.createElement(_.BodyText,{type:2,text:'Label',__source:{fileName:_jsxFileName,lineNumber:112}}),labelPos:'left',color:'#9C27B0',style:{marginBottom:16},onPress:function onPress(){return store.set({checkedThree:!state.checkedThree});},checked:state.checkedThree,__source:{fileName:_jsxFileName,lineNumber:111}}),_react.default.createElement(_.Switch,{label:_react.default.createElement(_.BodyText,{type:2,text:'Label',__source:{fileName:_jsxFileName,lineNumber:120}}),labelPos:'left',color:'#3F51B5',style:{marginBottom:16},onPress:function onPress(){return store.set({checkedFour:!state.checkedFour});},checked:state.checkedFour,__source:{fileName:_jsxFileName,lineNumber:119}}));}));});exports.default=_default;