diff --git a/dist/Components/Card/Card.js b/dist/Components/Card/Card.js index e97d86d0..20d501ee 100644 --- a/dist/Components/Card/Card.js +++ b/dist/Components/Card/Card.js @@ -1 +1 @@ -var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _propTypes=_interopRequireDefault(require("prop-types"));var _withTheme=_interopRequireDefault(require("../../Theme/withTheme"));var _=require("../..");var _Ripple=_interopRequireDefault(require("../Ripple/Ripple"));var _jsxFileName="/Users/cody/projects/material-bread/src/Components/Card/Card.js";var Card=function(_Component){(0,_inherits2.default)(Card,_Component);function Card(){(0,_classCallCheck2.default)(this,Card);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Card).apply(this,arguments));}(0,_createClass2.default)(Card,[{key:"_renderRipple",value:function _renderRipple(){var _this$props=this.props,children=_this$props.children,onPress=_this$props.onPress,rippleProps=_this$props.rippleProps;return _react.default.createElement(_Ripple.default,(0,_extends2.default)({style:[{flex:1}],onPress:onPress},rippleProps,{__source:{fileName:_jsxFileName,lineNumber:28}}),children);}},{key:"render",value:function render(){var _this$props2=this.props,style=_this$props2.style,outlined=_this$props2.outlined,radius=_this$props2.radius,onPress=_this$props2.onPress,shadow=_this$props2.shadow,children=_this$props2.children,testID=_this$props2.testID;return _react.default.createElement(_.Paper,{shadow:shadow,radius:radius,style:[style,{borderWidth:outlined?_reactNative.StyleSheet.hairlineWidth:0,borderBottomColor:'rgba(0,0,0,.4)'}],testID:testID,__source:{fileName:_jsxFileName,lineNumber:46}},onPress?this._renderRipple():children);}}]);return Card;}(_react.Component);(0,_defineProperty2.default)(Card,"propTypes",{children:_propTypes.default.node,style:_propTypes.default.oneOfType([_propTypes.default.object,_propTypes.default.array]),outlined:_propTypes.default.bool,shadow:_propTypes.default.number,radius:_propTypes.default.number,onPress:_propTypes.default.func,rippleProps:_propTypes.default.object,testID:_propTypes.default.string});(0,_defineProperty2.default)(Card,"defaultProps",{radius:4,shadow:1});var _default=(0,_withTheme.default)(Card);exports.default=_default; \ No newline at end of file +var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _propTypes=_interopRequireDefault(require("prop-types"));var _withTheme=_interopRequireDefault(require("../../Theme/withTheme"));var _=require("../..");var _Ripple=_interopRequireDefault(require("../Ripple/Ripple"));var _jsxFileName="/Users/cody/projects/material-bread/src/Components/Card/Card.js";var Card=function(_Component){(0,_inherits2.default)(Card,_Component);function Card(){(0,_classCallCheck2.default)(this,Card);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Card).apply(this,arguments));}(0,_createClass2.default)(Card,[{key:"_renderRipple",value:function _renderRipple(){var _this$props=this.props,children=_this$props.children,onPress=_this$props.onPress,rippleProps=_this$props.rippleProps;return _react.default.createElement(_Ripple.default,(0,_extends2.default)({style:[{flex:1}],onPress:onPress},rippleProps,{__source:{fileName:_jsxFileName,lineNumber:28}}),children);}},{key:"render",value:function render(){var _this$props2=this.props,style=_this$props2.style,outlined=_this$props2.outlined,radius=_this$props2.radius,onPress=_this$props2.onPress,shadow=_this$props2.shadow,children=_this$props2.children,testID=_this$props2.testID;return _react.default.createElement(_.Paper,{shadow:shadow,radius:radius,style:[style,{borderWidth:outlined?_reactNative.StyleSheet.hairlineWidth:0,borderBottomColor:'rgba(0,0,0,.4)',maxWidth:500}],testID:testID,__source:{fileName:_jsxFileName,lineNumber:46}},onPress?this._renderRipple():children);}}]);return Card;}(_react.Component);(0,_defineProperty2.default)(Card,"propTypes",{children:_propTypes.default.node,style:_propTypes.default.oneOfType([_propTypes.default.object,_propTypes.default.array]),outlined:_propTypes.default.bool,shadow:_propTypes.default.number,radius:_propTypes.default.number,onPress:_propTypes.default.func,rippleProps:_propTypes.default.object,testID:_propTypes.default.string});(0,_defineProperty2.default)(Card,"defaultProps",{radius:4,shadow:1});var _default=(0,_withTheme.default)(Card);exports.default=_default; \ No newline at end of file diff --git a/dist/Components/Card/Card.stories.js b/dist/Components/Card/Card.stories.js index d5d85bf8..b493f404 100644 --- a/dist/Components/Card/Card.stories.js +++ b/dist/Components/Card/Card.stories.js @@ -1 +1 @@ -var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _react=_interopRequireDefault(require("react"));var _storiesOf=require("../../storybook/helpers/storiesOf");var _reactNative=require("react-native");var _=require("../../");var _Header=_interopRequireDefault(require("../../storybook/components/Header"));var _Container=_interopRequireDefault(require("../../storybook/components/Container"));var _jsxFileName="/Users/cody/projects/material-bread/src/Components/Card/Card.stories.js";var _default=(0,_storiesOf.storiesOf)('Components|Card',module).addParameters({jest:['Card']}).add('simple',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:24}},_react.default.createElement(_Header.default,{title:'Simple Card',__source:{fileName:_jsxFileName,lineNumber:25}}),_react.default.createElement(_.Card,{style:{flex:1,marginBottom:20,padding:16,maxWidth:400},__source:{fileName:_jsxFileName,lineNumber:27}},_react.default.createElement(_reactNative.Text,{style:{fontSize:14,textAlign:'center',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:28}},"This is a simple card with a button"),_react.default.createElement(_.Button,{type:'flat',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:31}})),_react.default.createElement(_.Card,{style:{flex:1,marginBottom:20,padding:16,maxWidth:400},shadow:5,__source:{fileName:_jsxFileName,lineNumber:34}},_react.default.createElement(_reactNative.Text,{style:{fontSize:14,textAlign:'center',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:37}},"This one has more shadow"),_react.default.createElement(_.Button,{type:'flat',text:"Card button",style:{marginBottom:20},__source:{fileName:_jsxFileName,lineNumber:40}}),_react.default.createElement(_.Button,{type:'flat',color:'#E91E63',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:41}})),_react.default.createElement(_.Card,{style:{flex:1,marginBottom:20,padding:16,maxWidth:400},shadow:8,__source:{fileName:_jsxFileName,lineNumber:44}},_react.default.createElement(_reactNative.Text,{style:{fontSize:14,textAlign:'center',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:47}},"This one has more shadow"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:20},__source:{fileName:_jsxFileName,lineNumber:50}},_react.default.createElement(_.Button,{type:'flat',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:56}}),_react.default.createElement(_.Button,{type:'flat',color:'#E91E63',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:57}}))),_react.default.createElement(_.Card,{style:{flex:1,marginBottom:20,padding:16,maxWidth:400},radius:20,shadow:5,__source:{fileName:_jsxFileName,lineNumber:60}},_react.default.createElement(_reactNative.Text,{style:{fontSize:14,textAlign:'center',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:64}},"This one has more radius"),_react.default.createElement(_.Button,{type:'flat',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:67}})),_react.default.createElement(_.Card,{style:{flex:1,marginBottom:20,padding:16,maxWidth:400,maxHeight:400},radius:200,shadow:5,__source:{fileName:_jsxFileName,lineNumber:69}},_react.default.createElement(_reactNative.Text,{style:{fontSize:14,textAlign:'center',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:79}},"This one has more radius"),_react.default.createElement(_.Button,{type:'flat',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:82}})),_react.default.createElement(_.Card,{style:{flex:1,marginBottom:20,padding:16},__source:{fileName:_jsxFileName,lineNumber:84}},_react.default.createElement(_reactNative.Text,{style:{fontSize:14,textAlign:'center',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:85}},"This is one takes up the full width"),_react.default.createElement(_.Button,{type:'flat',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:88}})));}).add('full card',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:93}},_react.default.createElement(_Header.default,{title:'Full Card',__source:{fileName:_jsxFileName,lineNumber:94}}),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%',marginBottom:50},__source:{fileName:_jsxFileName,lineNumber:96}},_react.default.createElement(_.CardHeader,{thumbnail:_react.default.createElement(_.Avatar,{type:"image",image:_react.default.createElement(_reactNative.Image,{source:{uri:'https://www.hbo.com/content/dam/hbodata/series/game-of-thrones/character/s5/john-snow-1920.jpg/_jcr_content/renditions/cq5dam.web.1200.675.jpeg'},__source:{fileName:_jsxFileName,lineNumber:102}}),size:40,__source:{fileName:_jsxFileName,lineNumber:99}}),title:'Jon Snow',subtitle:'Knows Nothing, KingofDaNorth',action:_react.default.createElement(_.IconButton,{name:"more-vert",size:24,__source:{fileName:_jsxFileName,lineNumber:114}}),__source:{fileName:_jsxFileName,lineNumber:97}}),_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://i.redd.it/zj9vfr7uuljz.png'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:118}}),__source:{fileName:_jsxFileName,lineNumber:116}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:125}},_react.default.createElement(_reactNative.Text,{style:{fontSize:18,fontWeight:'500',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:126}},"Prince of Dragonstone"),_react.default.createElement(_reactNative.Text,{style:{fontSize:14,marginBottom:16},__source:{fileName:_jsxFileName,lineNumber:134}},"You've got the North in you"),_react.default.createElement(_reactNative.Text,{style:{fontSize:16},__source:{fileName:_jsxFileName,lineNumber:137}},"Ran out of bleach for beard, but Daenerys says it looks cool.")),_react.default.createElement(_.CardActions,{rightActionItems:[{name:'thumb-up'},{name:'share'}],__source:{fileName:_jsxFileName,lineNumber:141}})),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%',marginBottom:50},__source:{fileName:_jsxFileName,lineNumber:146}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/1451360/pexels-photo-1451360.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:149}}),__source:{fileName:_jsxFileName,lineNumber:147}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:159}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:160}},_react.default.createElement(_.Avatar,{type:"image",image:_react.default.createElement(_reactNative.Image,{source:{uri:'https://upload.wikimedia.org/wikipedia/en/thumb/7/74/Anakin-Jedi.jpg/220px-Anakin-Jedi.jpg'},__source:{fileName:_jsxFileName,lineNumber:164}}),size:40,__source:{fileName:_jsxFileName,lineNumber:161}}),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14,marginLeft:16},__source:{fileName:_jsxFileName,lineNumber:173}},"I don't like sand. It's coarse and rough and irritating and it gets everywhere.")))));}).add('clickable',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:184}},_react.default.createElement(_Header.default,{title:'Clickable Card',__source:{fileName:_jsxFileName,lineNumber:185}}),_react.default.createElement(_reactNative.ScrollView,{horizontal:true,scrollEnabled:true,__source:{fileName:_jsxFileName,lineNumber:186}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:187}},_react.default.createElement(_.Card,{style:{maxWidth:150,width:'100%',marginBottom:50,marginRight:4},shadow:4,onPress:function onPress(){return console.log('clicked dog');},__source:{fileName:_jsxFileName,lineNumber:188}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/86405/penguin-funny-blue-water-86405.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:199}}),__source:{fileName:_jsxFileName,lineNumber:197}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:209}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600',marginBottom:6},__source:{fileName:_jsxFileName,lineNumber:210}},"Penguin"))),_react.default.createElement(_.Card,{style:{maxWidth:150,width:'100%',marginBottom:50,marginRight:4},shadow:4,onPress:function onPress(){return console.log('clicked dog');},__source:{fileName:_jsxFileName,lineNumber:221}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/460823/pexels-photo-460823.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:232}}),__source:{fileName:_jsxFileName,lineNumber:230}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:242}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600',marginBottom:6},__source:{fileName:_jsxFileName,lineNumber:243}},"Pup"))),_react.default.createElement(_.Card,{style:{maxWidth:150,width:'100%',marginBottom:50},shadow:4,onPress:function onPress(){return console.log('clicked dog');},__source:{fileName:_jsxFileName,lineNumber:254}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/1661535/pexels-photo-1661535.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:260}}),__source:{fileName:_jsxFileName,lineNumber:258}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:270}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600',marginBottom:6},__source:{fileName:_jsxFileName,lineNumber:271}},"Panda"))))),_react.default.createElement(_.Card,{style:{maxWidth:300,width:'100%',marginBottom:50},shadow:4,onPress:function onPress(){return console.log('clicked dog');},__source:{fileName:_jsxFileName,lineNumber:285}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/1124002/pexels-photo-1124002.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:291}}),__source:{fileName:_jsxFileName,lineNumber:289}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:301}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600',marginBottom:6},__source:{fileName:_jsxFileName,lineNumber:302}},"Dog"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:311}},"The domestic dog is a member of the genus Canis (canines), which forms part of the wolf-like canids, and is the most widely abundant terrestrial carnivore."))),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%',marginBottom:50},__source:{fileName:_jsxFileName,lineNumber:319}},_react.default.createElement(_.Ripple,{onPress:function onPress(){return console.log('pressed action');},__source:{fileName:_jsxFileName,lineNumber:320}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/39571/gorilla-silverback-animal-silvery-grey-39571.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:323}}),__source:{fileName:_jsxFileName,lineNumber:321}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:333}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600',marginBottom:6},__source:{fileName:_jsxFileName,lineNumber:334}},"Gorilla"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:343}},"Gorillas are ground-dwelling, predominantly herbivorous apes that inhabit the forests of central Sub-Saharan Africa."))),_react.default.createElement(_.CardActions,{leftActionItems:[{name:'share'},{name:'learn more'}],__source:{fileName:_jsxFileName,lineNumber:349}})));}).add('CardActions',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:356}},_react.default.createElement(_Header.default,{title:'Card Actions',__source:{fileName:_jsxFileName,lineNumber:357}}),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%'},__source:{fileName:_jsxFileName,lineNumber:359}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/1938123/pexels-photo-1938123.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:362}}),__source:{fileName:_jsxFileName,lineNumber:360}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:372}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:373}},"Fact: dogs make everything better")),_react.default.createElement(_.CardActions,{leftActionItems:[{name:'share'},{name:'learn more'}],rightActionItems:[{name:'favorite'},{name:'share'}],__source:{fileName:_jsxFileName,lineNumber:377}})));}).add('CardContent',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:385}},_react.default.createElement(_Header.default,{title:'Card Content',__source:{fileName:_jsxFileName,lineNumber:386}}),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%'},__source:{fileName:_jsxFileName,lineNumber:387}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/1124002/pexels-photo-1124002.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:390}}),__source:{fileName:_jsxFileName,lineNumber:388}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:400}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600',marginBottom:10},__source:{fileName:_jsxFileName,lineNumber:401}},"Reasons dogs are the best:"),_react.default.createElement(_reactNative.View,{style:{marginLeft:8},__source:{fileName:_jsxFileName,lineNumber:410}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:411}},"- Man's best friend"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:414}},"- Some have jobs"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:417}},"- See image"))),_react.default.createElement(_.CardActions,{rightActionItems:[_react.default.createElement(_.Badge,{key:2,content:99,__source:{fileName:_jsxFileName,lineNumber:424}},_react.default.createElement(_.IconButton,{name:"favorite",color:'#F44336',size:24,__source:{fileName:_jsxFileName,lineNumber:425}})),{name:'share'}],__source:{fileName:_jsxFileName,lineNumber:422}})),_react.default.createElement(_.Card,{style:{maxWidth:500,width:500,boxSizing:'borderbox',marginTop:40},__source:{fileName:_jsxFileName,lineNumber:432}},_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:439}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:440}},_react.default.createElement(_reactNative.View,{style:{flex:1,padding:8},__source:{fileName:_jsxFileName,lineNumber:441}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600'},__source:{fileName:_jsxFileName,lineNumber:442}},"Jon"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,1)',fontSize:20,fontWeight:'600',marginBottom:10},__source:{fileName:_jsxFileName,lineNumber:450}},"Stewart"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14,flexWrap:'wrap'},__source:{fileName:_jsxFileName,lineNumber:459}},"American comedian, writer, producer, director, activist, political commentator, actor, and television host.")),_react.default.createElement(_reactNative.View,{style:{flex:1,overflow:'hidden'},__source:{fileName:_jsxFileName,lineNumber:469}},_react.default.createElement(_reactNative.Image,{style:{width:250,height:200},source:{uri:'https://www.biography.com/.image/t_share/MTE5NTU2MzE2NDkyNjI5NTE1/jon-stewart-16242282-1-402.jpg'},__source:{fileName:_jsxFileName,lineNumber:470}}))))));}).add('CardHeader',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:485}},_react.default.createElement(_Header.default,{title:'Card Media',__source:{fileName:_jsxFileName,lineNumber:486}}),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%'},__source:{fileName:_jsxFileName,lineNumber:487}},_react.default.createElement(_.CardHeader,{thumbnail:_react.default.createElement(_.Avatar,{type:"image",image:_react.default.createElement(_reactNative.Image,{source:{uri:'http://assets1.ignimgs.com/2014/04/07/marioignpng-e324a5_1280w.png'},__source:{fileName:_jsxFileName,lineNumber:493}}),size:40,__source:{fileName:_jsxFileName,lineNumber:490}}),title:'Mario',subtitle:'Hero. Plumber. Brother.',action:_react.default.createElement(_.IconButton,{name:"more-vert",size:24,color:'rgba(0,0,0,.54)',__source:{fileName:_jsxFileName,lineNumber:506}}),__source:{fileName:_jsxFileName,lineNumber:488}}),_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://i.redd.it/tr8wgp1ysulz.png'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:511}}),__source:{fileName:_jsxFileName,lineNumber:509}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:518}},_react.default.createElement(_reactNative.Text,{__source:{fileName:_jsxFileName,lineNumber:519}},"Movember is over.")),_react.default.createElement(_.CardActions,{rightActionItems:[{name:'reply'},{name:'thumb-up'},{name:'share'}],__source:{fileName:_jsxFileName,lineNumber:521}})),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%',marginTop:60},radius:1,shadow:4,__source:{fileName:_jsxFileName,lineNumber:529}},_react.default.createElement(_.CardHeader,{subtitle:'Mario - 25 mins ago',style:{alignItems:'center',borderBottom:'none',paddingBottom:0},action:_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center'},__source:{fileName:_jsxFileName,lineNumber:541}},_react.default.createElement(_.IconButton,{name:"star",size:24,color:'rgba(0,0,0,.47)',__source:{fileName:_jsxFileName,lineNumber:546}}),_react.default.createElement(_.IconButton,{name:"delete",size:24,color:'rgba(0,0,0,.47)',__source:{fileName:_jsxFileName,lineNumber:547}}),_react.default.createElement(_.IconButton,{name:"more-vert",size:24,color:'rgba(0,0,0,.47)',__source:{fileName:_jsxFileName,lineNumber:548}}),_react.default.createElement(_.Avatar,{type:"image",image:_react.default.createElement(_reactNative.Image,{source:{uri:'http://assets1.ignimgs.com/2014/04/07/marioignpng-e324a5_1280w.png'},__source:{fileName:_jsxFileName,lineNumber:556}}),size:40,__source:{fileName:_jsxFileName,lineNumber:553}})),__source:{fileName:_jsxFileName,lineNumber:533}},_react.default.createElement(_reactNative.Text,{__source:{fileName:_jsxFileName,lineNumber:567}},"Mario - 25 mins ago")),_react.default.createElement(_.CardContent,{style:{paddingTop:4,paddingBottom:16},__source:{fileName:_jsxFileName,lineNumber:570}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,1)',fontSize:16,marginBottom:4},__source:{fileName:_jsxFileName,lineNumber:571}},"Where is the Princess?"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:575}},"I've defeated Bowser in 6 castles and still no Prin..."))));}).add('CardMedia',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:583}},_react.default.createElement(_Header.default,{title:'Card Media',__source:{fileName:_jsxFileName,lineNumber:584}}),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%'},__source:{fileName:_jsxFileName,lineNumber:586}},_react.default.createElement(_.CardMedia,{title:'Top ten books',subtitle:'by Cody',image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/34620/pexels-photo.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:591}}),__source:{fileName:_jsxFileName,lineNumber:587}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:601}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:602}},"Books ranked with arbitrary bias, inconsistent logic, and strong opinions.")),_react.default.createElement(_.CardActions,{leftActionItems:[{name:'Read'}],rightActionItems:[{name:'favorite'},{name:'share'}],__source:{fileName:_jsxFileName,lineNumber:607}})),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%',marginTop:40},__source:{fileName:_jsxFileName,lineNumber:613}},_react.default.createElement(_.CardMedia,{title:'Flights now 30% off',image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/59519/pexels-photo-59519.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:617}}),__source:{fileName:_jsxFileName,lineNumber:614}}),_react.default.createElement(_.CardActions,{rightActionItems:[_react.default.createElement(_.Button,{key:1,text:'Learn More',__source:{fileName:_jsxFileName,lineNumber:630}}),_react.default.createElement(_.Button,{key:2,text:'Buy Now',type:"contained",__source:{fileName:_jsxFileName,lineNumber:631}})],__source:{fileName:_jsxFileName,lineNumber:628}})));});exports.default=_default; \ No newline at end of file +var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _react=_interopRequireDefault(require("react"));var _storiesOf=require("../../storybook/helpers/storiesOf");var _reactNative=require("react-native");var _=require("../../");var _Header=_interopRequireDefault(require("../../storybook/components/Header"));var _Container=_interopRequireDefault(require("../../storybook/components/Container"));var _jsxFileName="/Users/cody/projects/material-bread/src/Components/Card/Card.stories.js";var _default=(0,_storiesOf.storiesOf)('Components|Card',module).addParameters({jest:['Card']}).add('simple',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:24}},_react.default.createElement(_Header.default,{title:'Simple Card',__source:{fileName:_jsxFileName,lineNumber:25}}),_react.default.createElement(_.Card,{style:{flex:1,marginBottom:20,padding:16,maxWidth:400},__source:{fileName:_jsxFileName,lineNumber:27}},_react.default.createElement(_reactNative.Text,{style:{fontSize:14,textAlign:'center',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:28}},"This is a simple card with a button"),_react.default.createElement(_.Button,{type:'flat',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:31}})),_react.default.createElement(_.Card,{style:{flex:1,marginBottom:20,padding:16,maxWidth:400},shadow:5,__source:{fileName:_jsxFileName,lineNumber:34}},_react.default.createElement(_reactNative.Text,{style:{fontSize:14,textAlign:'center',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:37}},"This one has more shadow"),_react.default.createElement(_.Button,{type:'flat',text:"Card button",style:{marginBottom:20},__source:{fileName:_jsxFileName,lineNumber:40}}),_react.default.createElement(_.Button,{type:'flat',color:'#E91E63',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:41}})),_react.default.createElement(_.Card,{style:{flex:1,marginBottom:20,padding:16,maxWidth:400},shadow:8,__source:{fileName:_jsxFileName,lineNumber:44}},_react.default.createElement(_reactNative.Text,{style:{fontSize:14,textAlign:'center',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:47}},"This one has more shadow"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:20},__source:{fileName:_jsxFileName,lineNumber:50}},_react.default.createElement(_.Button,{type:'flat',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:56}}),_react.default.createElement(_.Button,{type:'flat',color:'#E91E63',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:57}}))),_react.default.createElement(_.Card,{style:{flex:1,marginBottom:20,padding:16,maxWidth:400},radius:20,shadow:5,__source:{fileName:_jsxFileName,lineNumber:60}},_react.default.createElement(_reactNative.Text,{style:{fontSize:14,textAlign:'center',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:64}},"This one has more radius"),_react.default.createElement(_.Button,{type:'flat',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:67}})),_react.default.createElement(_.Card,{style:{flex:1,marginBottom:20,padding:16,maxWidth:400,maxHeight:400},radius:200,shadow:5,__source:{fileName:_jsxFileName,lineNumber:69}},_react.default.createElement(_reactNative.Text,{style:{fontSize:14,textAlign:'center',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:79}},"This one has more radius"),_react.default.createElement(_.Button,{type:'flat',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:82}})),_react.default.createElement(_.Card,{style:{flex:1,marginBottom:20,padding:16},__source:{fileName:_jsxFileName,lineNumber:84}},_react.default.createElement(_reactNative.Text,{style:{fontSize:14,textAlign:'center',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:85}},"This is one takes up the full width"),_react.default.createElement(_.Button,{type:'flat',text:"Card button",__source:{fileName:_jsxFileName,lineNumber:88}})));}).add('full card',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:93}},_react.default.createElement(_Header.default,{title:'Full Card',__source:{fileName:_jsxFileName,lineNumber:94}}),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%',marginBottom:50},__source:{fileName:_jsxFileName,lineNumber:96}},_react.default.createElement(_.CardHeader,{thumbnail:_react.default.createElement(_.Avatar,{type:"image",image:_react.default.createElement(_reactNative.Image,{source:{uri:'https://images.pexels.com/photos/2906664/pexels-photo-2906664.png?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},__source:{fileName:_jsxFileName,lineNumber:102}}),size:48,__source:{fileName:_jsxFileName,lineNumber:99}}),title:'Title',subtitle:'Metadata',action:_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center'},__source:{fileName:_jsxFileName,lineNumber:115}},_react.default.createElement(_.IconButton,{name:"favorite-border",size:24,color:'rgba(0,0,0,.47)',__source:{fileName:_jsxFileName,lineNumber:120}}),_react.default.createElement(_.IconButton,{style:{marginLeft:12},name:"share",size:24,color:'rgba(0,0,0,.47)',__source:{fileName:_jsxFileName,lineNumber:125}}),_react.default.createElement(_.IconButton,{style:{marginLeft:12},name:"more-vert",size:24,color:'rgba(0,0,0,.47)',__source:{fileName:_jsxFileName,lineNumber:131}})),__source:{fileName:_jsxFileName,lineNumber:97}}),_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/994605/pexels-photo-994605.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:142}}),__source:{fileName:_jsxFileName,lineNumber:140}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:152}},_react.default.createElement(_reactNative.Text,{style:{fontSize:18,fontWeight:'500',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:153}},"Title"),_react.default.createElement(_reactNative.Text,{style:{fontSize:14,marginBottom:16},__source:{fileName:_jsxFileName,lineNumber:161}},"Metadata"),_react.default.createElement(_reactNative.Text,{style:{fontSize:16},__source:{fileName:_jsxFileName,lineNumber:162}},"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce neque felis, eleifend in dolor eu, pellentesque finibus erat. Vestibulum eleifend sapien et felis pulvinar cursus.")),_react.default.createElement(_.CardActions,{rightActionItems:[{name:'favorite-border'},{name:'share'},{name:'more-vert'}],__source:{fileName:_jsxFileName,lineNumber:168}})),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%',marginBottom:50},__source:{fileName:_jsxFileName,lineNumber:177}},_react.default.createElement(_.CardHeader,{thumbnail:_react.default.createElement(_.Avatar,{type:"image",image:_react.default.createElement(_reactNative.Image,{source:{uri:'https://www.hbo.com/content/dam/hbodata/series/game-of-thrones/character/s5/john-snow-1920.jpg/_jcr_content/renditions/cq5dam.web.1200.675.jpeg'},__source:{fileName:_jsxFileName,lineNumber:183}}),size:40,__source:{fileName:_jsxFileName,lineNumber:180}}),title:'Jon Snow',subtitle:'Knows Nothing, KingofDaNorth',action:_react.default.createElement(_.IconButton,{name:"more-vert",size:24,__source:{fileName:_jsxFileName,lineNumber:195}}),__source:{fileName:_jsxFileName,lineNumber:178}}),_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://i.redd.it/zj9vfr7uuljz.png'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:199}}),__source:{fileName:_jsxFileName,lineNumber:197}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:206}},_react.default.createElement(_reactNative.Text,{style:{fontSize:18,fontWeight:'500',marginBottom:8},__source:{fileName:_jsxFileName,lineNumber:207}},"Prince of Dragonstone"),_react.default.createElement(_reactNative.Text,{style:{fontSize:14,marginBottom:16},__source:{fileName:_jsxFileName,lineNumber:215}},"You've got the North in you"),_react.default.createElement(_reactNative.Text,{style:{fontSize:16},__source:{fileName:_jsxFileName,lineNumber:218}},"Ran out of bleach for beard, but Daenerys says it looks cool.")),_react.default.createElement(_.CardActions,{rightActionItems:[{name:'thumb-up'},{name:'share'}],__source:{fileName:_jsxFileName,lineNumber:222}})),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%',marginBottom:50},__source:{fileName:_jsxFileName,lineNumber:227}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/1451360/pexels-photo-1451360.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:230}}),__source:{fileName:_jsxFileName,lineNumber:228}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:240}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:241}},_react.default.createElement(_.Avatar,{type:"image",image:_react.default.createElement(_reactNative.Image,{source:{uri:'https://upload.wikimedia.org/wikipedia/en/thumb/7/74/Anakin-Jedi.jpg/220px-Anakin-Jedi.jpg'},__source:{fileName:_jsxFileName,lineNumber:245}}),size:40,__source:{fileName:_jsxFileName,lineNumber:242}}),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14,marginLeft:16},__source:{fileName:_jsxFileName,lineNumber:254}},"I don't like sand. It's coarse and rough and irritating and it gets everywhere.")))));}).add('clickable',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:265}},_react.default.createElement(_Header.default,{title:'Clickable Card',__source:{fileName:_jsxFileName,lineNumber:266}}),_react.default.createElement(_reactNative.ScrollView,{horizontal:true,scrollEnabled:true,__source:{fileName:_jsxFileName,lineNumber:267}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:268}},_react.default.createElement(_.Card,{style:{maxWidth:150,width:'100%',marginBottom:50,marginRight:4},shadow:4,onPress:function onPress(){return console.log('clicked dog');},__source:{fileName:_jsxFileName,lineNumber:269}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/86405/penguin-funny-blue-water-86405.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:280}}),__source:{fileName:_jsxFileName,lineNumber:278}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:290}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600',marginBottom:6},__source:{fileName:_jsxFileName,lineNumber:291}},"Penguin"))),_react.default.createElement(_.Card,{style:{maxWidth:150,width:'100%',marginBottom:50,marginRight:4},shadow:4,onPress:function onPress(){return console.log('clicked dog');},__source:{fileName:_jsxFileName,lineNumber:302}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/460823/pexels-photo-460823.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:313}}),__source:{fileName:_jsxFileName,lineNumber:311}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:323}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600',marginBottom:6},__source:{fileName:_jsxFileName,lineNumber:324}},"Pup"))),_react.default.createElement(_.Card,{style:{maxWidth:150,width:'100%',marginBottom:50},shadow:4,onPress:function onPress(){return console.log('clicked dog');},__source:{fileName:_jsxFileName,lineNumber:335}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/1661535/pexels-photo-1661535.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:341}}),__source:{fileName:_jsxFileName,lineNumber:339}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:351}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600',marginBottom:6},__source:{fileName:_jsxFileName,lineNumber:352}},"Panda"))))),_react.default.createElement(_.Card,{style:{maxWidth:300,width:'100%',marginBottom:50},shadow:4,onPress:function onPress(){return console.log('clicked dog');},__source:{fileName:_jsxFileName,lineNumber:366}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/1124002/pexels-photo-1124002.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:372}}),__source:{fileName:_jsxFileName,lineNumber:370}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:382}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600',marginBottom:6},__source:{fileName:_jsxFileName,lineNumber:383}},"Dog"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:392}},"The domestic dog is a member of the genus Canis (canines), which forms part of the wolf-like canids, and is the most widely abundant terrestrial carnivore."))),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%',marginBottom:50},__source:{fileName:_jsxFileName,lineNumber:400}},_react.default.createElement(_.Ripple,{onPress:function onPress(){return console.log('pressed action');},__source:{fileName:_jsxFileName,lineNumber:401}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/39571/gorilla-silverback-animal-silvery-grey-39571.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:404}}),__source:{fileName:_jsxFileName,lineNumber:402}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:414}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600',marginBottom:6},__source:{fileName:_jsxFileName,lineNumber:415}},"Gorilla"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:424}},"Gorillas are ground-dwelling, predominantly herbivorous apes that inhabit the forests of central Sub-Saharan Africa."))),_react.default.createElement(_.CardActions,{leftActionItems:[{name:'share'},{name:'learn more'}],__source:{fileName:_jsxFileName,lineNumber:430}})));}).add('CardActions',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:437}},_react.default.createElement(_Header.default,{title:'Card Actions',__source:{fileName:_jsxFileName,lineNumber:438}}),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%'},__source:{fileName:_jsxFileName,lineNumber:440}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/1938123/pexels-photo-1938123.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:443}}),__source:{fileName:_jsxFileName,lineNumber:441}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:453}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:454}},"Fact: dogs make everything better")),_react.default.createElement(_.CardActions,{leftActionItems:[{name:'share'},{name:'learn more'}],rightActionItems:[{name:'favorite'},{name:'share'}],__source:{fileName:_jsxFileName,lineNumber:458}})));}).add('CardContent',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:466}},_react.default.createElement(_Header.default,{title:'Card Content',__source:{fileName:_jsxFileName,lineNumber:467}}),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%'},__source:{fileName:_jsxFileName,lineNumber:468}},_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/1124002/pexels-photo-1124002.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:471}}),__source:{fileName:_jsxFileName,lineNumber:469}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:481}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600',marginBottom:10},__source:{fileName:_jsxFileName,lineNumber:482}},"Reasons dogs are the best:"),_react.default.createElement(_reactNative.View,{style:{marginLeft:8},__source:{fileName:_jsxFileName,lineNumber:491}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:492}},"- Man's best friend"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:495}},"- Some have jobs"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:498}},"- See image"))),_react.default.createElement(_.CardActions,{rightActionItems:[_react.default.createElement(_.Badge,{key:2,content:99,__source:{fileName:_jsxFileName,lineNumber:505}},_react.default.createElement(_.IconButton,{name:"favorite",color:'#F44336',size:24,__source:{fileName:_jsxFileName,lineNumber:506}})),{name:'share'}],__source:{fileName:_jsxFileName,lineNumber:503}})),_react.default.createElement(_.Card,{style:{maxWidth:500,width:500,boxSizing:'borderbox',marginTop:40},__source:{fileName:_jsxFileName,lineNumber:513}},_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:520}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:521}},_react.default.createElement(_reactNative.View,{style:{flex:1,padding:8},__source:{fileName:_jsxFileName,lineNumber:522}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:16,fontWeight:'600'},__source:{fileName:_jsxFileName,lineNumber:523}},"Jon"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,1)',fontSize:20,fontWeight:'600',marginBottom:10},__source:{fileName:_jsxFileName,lineNumber:531}},"Stewart"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14,flexWrap:'wrap'},__source:{fileName:_jsxFileName,lineNumber:540}},"American comedian, writer, producer, director, activist, political commentator, actor, and television host.")),_react.default.createElement(_reactNative.View,{style:{flex:1,overflow:'hidden'},__source:{fileName:_jsxFileName,lineNumber:550}},_react.default.createElement(_reactNative.Image,{style:{width:250,height:200},source:{uri:'https://www.biography.com/.image/t_share/MTE5NTU2MzE2NDkyNjI5NTE1/jon-stewart-16242282-1-402.jpg'},__source:{fileName:_jsxFileName,lineNumber:551}}))))));}).add('CardHeader',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:566}},_react.default.createElement(_Header.default,{title:'Card Media',__source:{fileName:_jsxFileName,lineNumber:567}}),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%'},__source:{fileName:_jsxFileName,lineNumber:568}},_react.default.createElement(_.CardHeader,{thumbnail:_react.default.createElement(_.Avatar,{type:"image",image:_react.default.createElement(_reactNative.Image,{source:{uri:'http://assets1.ignimgs.com/2014/04/07/marioignpng-e324a5_1280w.png'},__source:{fileName:_jsxFileName,lineNumber:574}}),size:40,__source:{fileName:_jsxFileName,lineNumber:571}}),title:'Mario',subtitle:'Hero. Plumber. Brother.',action:_react.default.createElement(_.IconButton,{name:"more-vert",size:24,color:'rgba(0,0,0,.54)',__source:{fileName:_jsxFileName,lineNumber:587}}),__source:{fileName:_jsxFileName,lineNumber:569}}),_react.default.createElement(_.CardMedia,{image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://i.redd.it/tr8wgp1ysulz.png'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:592}}),__source:{fileName:_jsxFileName,lineNumber:590}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:599}},_react.default.createElement(_reactNative.Text,{__source:{fileName:_jsxFileName,lineNumber:600}},"Movember is over.")),_react.default.createElement(_.CardActions,{rightActionItems:[{name:'reply'},{name:'thumb-up'},{name:'share'}],__source:{fileName:_jsxFileName,lineNumber:602}})),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%',marginTop:60},radius:1,shadow:4,__source:{fileName:_jsxFileName,lineNumber:610}},_react.default.createElement(_.CardHeader,{subtitle:'Mario - 25 mins ago',style:{alignItems:'center',borderBottom:'none',paddingBottom:0},action:_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center'},__source:{fileName:_jsxFileName,lineNumber:622}},_react.default.createElement(_.IconButton,{name:"star",size:24,color:'rgba(0,0,0,.47)',__source:{fileName:_jsxFileName,lineNumber:627}}),_react.default.createElement(_.IconButton,{name:"delete",size:24,color:'rgba(0,0,0,.47)',__source:{fileName:_jsxFileName,lineNumber:628}}),_react.default.createElement(_.IconButton,{name:"more-vert",size:24,color:'rgba(0,0,0,.47)',__source:{fileName:_jsxFileName,lineNumber:629}}),_react.default.createElement(_.Avatar,{type:"image",image:_react.default.createElement(_reactNative.Image,{source:{uri:'http://assets1.ignimgs.com/2014/04/07/marioignpng-e324a5_1280w.png'},__source:{fileName:_jsxFileName,lineNumber:637}}),size:40,__source:{fileName:_jsxFileName,lineNumber:634}})),__source:{fileName:_jsxFileName,lineNumber:614}},_react.default.createElement(_reactNative.Text,{__source:{fileName:_jsxFileName,lineNumber:648}},"Mario - 25 mins ago")),_react.default.createElement(_.CardContent,{style:{paddingTop:4,paddingBottom:16},__source:{fileName:_jsxFileName,lineNumber:651}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,1)',fontSize:16,marginBottom:4},__source:{fileName:_jsxFileName,lineNumber:652}},"Where is the Princess?"),_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:656}},"I've defeated Bowser in 6 castles and still no Prin..."))));}).add('CardMedia',function(){return _react.default.createElement(_Container.default,{scroll:true,__source:{fileName:_jsxFileName,lineNumber:664}},_react.default.createElement(_Header.default,{title:'Card Media',__source:{fileName:_jsxFileName,lineNumber:665}}),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%'},__source:{fileName:_jsxFileName,lineNumber:667}},_react.default.createElement(_.CardMedia,{title:'Top ten books',subtitle:'by Cody',image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/34620/pexels-photo.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:672}}),__source:{fileName:_jsxFileName,lineNumber:668}}),_react.default.createElement(_.CardContent,{__source:{fileName:_jsxFileName,lineNumber:682}},_react.default.createElement(_reactNative.Text,{style:{color:'rgba(0,0,0,.6)',fontSize:14},__source:{fileName:_jsxFileName,lineNumber:683}},"Books ranked with arbitrary bias, inconsistent logic, and strong opinions.")),_react.default.createElement(_.CardActions,{leftActionItems:[{name:'Read'}],rightActionItems:[{name:'favorite'},{name:'share'}],__source:{fileName:_jsxFileName,lineNumber:688}})),_react.default.createElement(_.Card,{style:{maxWidth:400,width:'100%',marginTop:40},__source:{fileName:_jsxFileName,lineNumber:694}},_react.default.createElement(_.CardMedia,{title:'Flights now 30% off',image:_react.default.createElement(_reactNative.Image,{style:{flex:1,width:'100%'},source:{uri:'https://images.pexels.com/photos/59519/pexels-photo-59519.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'},resizeMode:"cover",__source:{fileName:_jsxFileName,lineNumber:698}}),__source:{fileName:_jsxFileName,lineNumber:695}}),_react.default.createElement(_.CardActions,{rightActionItems:[_react.default.createElement(_.Button,{key:1,text:'Learn More',__source:{fileName:_jsxFileName,lineNumber:711}}),_react.default.createElement(_.Button,{key:2,text:'Buy Now',type:"contained",__source:{fileName:_jsxFileName,lineNumber:712}})],__source:{fileName:_jsxFileName,lineNumber:709}})));});exports.default=_default; \ No newline at end of file diff --git a/dist/Components/Card/CardActions/CardActions.styles.js b/dist/Components/Card/CardActions/CardActions.styles.js index 94e89278..c5c1c65e 100644 --- a/dist/Components/Card/CardActions/CardActions.styles.js +++ b/dist/Components/Card/CardActions/CardActions.styles.js @@ -1 +1 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _reactNative=require("react-native");var styles=_reactNative.StyleSheet.create({container:{padding:24,flexDirection:'row',justifyContent:'space-between',alignItems:'center',flexWrap:'wrap'},actions:{flexDirection:'row',alignItems:'center'},moreActions:{flexDirection:'row',alignItems:'center'}});var _default=styles;exports.default=_default; \ No newline at end of file +Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _reactNative=require("react-native");var styles=_reactNative.StyleSheet.create({container:{padding:24,paddingTop:16,flexDirection:'row',justifyContent:'space-between',alignItems:'center',flexWrap:'wrap'},actions:{flexDirection:'row',alignItems:'center'},moreActions:{flexDirection:'row',alignItems:'center'}});var _default=styles;exports.default=_default; \ No newline at end of file diff --git a/dist/Components/Dialog/Dialog.js b/dist/Components/Dialog/Dialog.js index 9316f35f..78762858 100644 --- a/dist/Components/Dialog/Dialog.js +++ b/dist/Components/Dialog/Dialog.js @@ -1 +1 @@ -var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _propTypes=_interopRequireDefault(require("prop-types"));var _Modal=_interopRequireDefault(require("../Modal/Modal"));var _withTheme=_interopRequireDefault(require("../../Theme/withTheme"));var _Dialog=_interopRequireDefault(require("./Dialog.styles"));var _Button=_interopRequireDefault(require("../Button/Button.js"));var _BodyText=_interopRequireDefault(require("../Typography/BodyText/BodyText.js"));var _jsxFileName="/Users/cody/projects/material-bread/src/Components/Dialog/Dialog.js";var Dialog=function(_Component){(0,_inherits2.default)(Dialog,_Component);function Dialog(){(0,_classCallCheck2.default)(this,Dialog);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Dialog).apply(this,arguments));}(0,_createClass2.default)(Dialog,[{key:"_renderActionItems",value:function _renderActionItems(){var _this$props=this.props,actionItems=_this$props.actionItems,actionItemsContainerStyle=_this$props.actionItemsContainerStyle;return _react.default.createElement(_reactNative.View,{style:[_Dialog.default.actionItems,actionItemsContainerStyle],__source:{fileName:_jsxFileName,lineNumber:39}},actionItems.map(function(item,index){if(_react.default.isValidElement(item))return item;return _react.default.createElement(_Button.default,(0,_extends2.default)({key:index},item,{__source:{fileName:_jsxFileName,lineNumber:42}}));}));}},{key:"_renderContent",value:function _renderContent(){var _this$props2=this.props,style=_this$props2.style,title=_this$props2.title,titleStyle=_this$props2.titleStyle,supportingText=_this$props2.supportingText,supportingTextStyle=_this$props2.supportingTextStyle,children=_this$props2.children,actionItems=_this$props2.actionItems,contentStyle=_this$props2.contentStyle;return _react.default.createElement(_reactNative.View,{style:[_Dialog.default.container,style],__source:{fileName:_jsxFileName,lineNumber:60}},_react.default.createElement(_reactNative.View,{style:[_Dialog.default.contentContainer,contentStyle],__source:{fileName:_jsxFileName,lineNumber:61}},title?_react.default.createElement(_BodyText.default,{style:[_Dialog.default.title,titleStyle],__source:{fileName:_jsxFileName,lineNumber:63}},title):null,supportingText?_react.default.createElement(_BodyText.default,{style:[_Dialog.default.supportingText,supportingTextStyle],__source:{fileName:_jsxFileName,lineNumber:66}},supportingText):null,children,actionItems?this._renderActionItems():null));}},{key:"render",value:function render(){var _this$props3=this.props,visible=_this$props3.visible,onRequestClose=_this$props3.onRequestClose,onShow=_this$props3.onShow,onTouchOutside=_this$props3.onTouchOutside,testID=_this$props3.testID;return _react.default.createElement(_Modal.default,{visible:visible,onRequestClose:onRequestClose,onShow:onShow,onTouchOutside:onTouchOutside,testID:testID,__source:{fileName:_jsxFileName,lineNumber:87}},this._renderContent());}}]);return Dialog;}(_react.Component);(0,_defineProperty2.default)(Dialog,"propTypes",{style:_propTypes.default.oneOfType([_propTypes.default.object,_propTypes.default.array]),children:_propTypes.default.node,visible:_propTypes.default.bool,onRequestClose:_propTypes.default.func,onShow:_propTypes.default.func,onTouchOutside:_propTypes.default.func,actionItems:_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.node,_propTypes.default.object])),actionItemsContainerStyle:_propTypes.default.oneOfType([_propTypes.default.object,_propTypes.default.array]),title:_propTypes.default.string,titleStyle:_propTypes.default.oneOfType([_propTypes.default.object,_propTypes.default.array]),supportingText:_propTypes.default.string,supportingTextStyle:_propTypes.default.oneOfType([_propTypes.default.object,_propTypes.default.array]),contentStyle:_propTypes.default.oneOfType([_propTypes.default.object,_propTypes.default.array]),testID:_propTypes.default.string});var _default=(0,_withTheme.default)(Dialog);exports.default=_default; \ No newline at end of file +var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _propTypes=_interopRequireDefault(require("prop-types"));var _Modal=_interopRequireDefault(require("../Modal/Modal"));var _withTheme=_interopRequireDefault(require("../../Theme/withTheme"));var _Dialog=_interopRequireDefault(require("./Dialog.styles"));var _Button=_interopRequireDefault(require("../Button/Button.js"));var _BodyText=_interopRequireDefault(require("../Typography/BodyText/BodyText.js"));var _jsxFileName="/Users/cody/projects/material-bread/src/Components/Dialog/Dialog.js";var Dialog=function(_Component){(0,_inherits2.default)(Dialog,_Component);function Dialog(){(0,_classCallCheck2.default)(this,Dialog);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Dialog).apply(this,arguments));}(0,_createClass2.default)(Dialog,[{key:"_renderActionItems",value:function _renderActionItems(){var _this$props=this.props,actionItems=_this$props.actionItems,actionItemsContainerStyle=_this$props.actionItemsContainerStyle;return _react.default.createElement(_reactNative.View,{style:[_Dialog.default.actionItems,actionItemsContainerStyle],__source:{fileName:_jsxFileName,lineNumber:39}},actionItems.map(function(item,index){if(_react.default.isValidElement(item))return item;return _react.default.createElement(_Button.default,(0,_extends2.default)({key:index,density:-1},item,{__source:{fileName:_jsxFileName,lineNumber:42}}));}));}},{key:"_renderContent",value:function _renderContent(){var _this$props2=this.props,style=_this$props2.style,title=_this$props2.title,titleStyle=_this$props2.titleStyle,supportingText=_this$props2.supportingText,supportingTextStyle=_this$props2.supportingTextStyle,children=_this$props2.children,actionItems=_this$props2.actionItems,contentStyle=_this$props2.contentStyle;return _react.default.createElement(_reactNative.View,{style:[_Dialog.default.container,style],__source:{fileName:_jsxFileName,lineNumber:60}},_react.default.createElement(_reactNative.View,{style:[_Dialog.default.contentContainer,contentStyle],__source:{fileName:_jsxFileName,lineNumber:61}},title?_react.default.createElement(_BodyText.default,{style:[_Dialog.default.title,titleStyle],__source:{fileName:_jsxFileName,lineNumber:63}},title):null,supportingText?_react.default.createElement(_BodyText.default,{style:[_Dialog.default.supportingText,supportingTextStyle],__source:{fileName:_jsxFileName,lineNumber:66}},supportingText):null,children,actionItems?this._renderActionItems():null));}},{key:"render",value:function render(){var _this$props3=this.props,visible=_this$props3.visible,onRequestClose=_this$props3.onRequestClose,onShow=_this$props3.onShow,onTouchOutside=_this$props3.onTouchOutside,testID=_this$props3.testID;return _react.default.createElement(_Modal.default,{visible:visible,onRequestClose:onRequestClose,onShow:onShow,onTouchOutside:onTouchOutside,testID:testID,__source:{fileName:_jsxFileName,lineNumber:87}},this._renderContent());}}]);return Dialog;}(_react.Component);(0,_defineProperty2.default)(Dialog,"propTypes",{style:_propTypes.default.oneOfType([_propTypes.default.object,_propTypes.default.array]),children:_propTypes.default.node,visible:_propTypes.default.bool,onRequestClose:_propTypes.default.func,onShow:_propTypes.default.func,onTouchOutside:_propTypes.default.func,actionItems:_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.node,_propTypes.default.object])),actionItemsContainerStyle:_propTypes.default.oneOfType([_propTypes.default.object,_propTypes.default.array]),title:_propTypes.default.string,titleStyle:_propTypes.default.oneOfType([_propTypes.default.object,_propTypes.default.array]),supportingText:_propTypes.default.string,supportingTextStyle:_propTypes.default.oneOfType([_propTypes.default.object,_propTypes.default.array]),contentStyle:_propTypes.default.oneOfType([_propTypes.default.object,_propTypes.default.array]),testID:_propTypes.default.string});var _default=(0,_withTheme.default)(Dialog);exports.default=_default; \ No newline at end of file diff --git a/dist/Components/Dialog/Dialog.stories.js b/dist/Components/Dialog/Dialog.stories.js index 27103bcf..2313a316 100644 --- a/dist/Components/Dialog/Dialog.stories.js +++ b/dist/Components/Dialog/Dialog.stories.js @@ -1 +1 @@ -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 _storybookState=require("@sambego/storybook-state");var _Header=_interopRequireDefault(require("../../storybook/components/Header"));var _Container=_interopRequireDefault(require("../../storybook/components/Container"));var _storiesOf=require("../../storybook/helpers/storiesOf");var _jsxFileName="/Users/cody/projects/material-bread/src/Components/Dialog/Dialog.stories.js";var store=new _storybookState.Store({visible:false});var _default=(0,_storiesOf.storiesOf)('Components|Dialog',module).addParameters({jest:['Dialog']}).add('Alert',function(){return _react.default.createElement(_Container.default,{__source:{fileName:_jsxFileName,lineNumber:17}},_react.default.createElement(_Header.default,{title:'Alert Dialog',__source:{fileName:_jsxFileName,lineNumber:18}}),_react.default.createElement(_storybookState.State,{store:store,style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:20}},function(state){return _react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:22}},_react.default.createElement(_.Button,{text:'Open',onPress:function onPress(){return store.set({visible:!state.visible});},__source:{fileName:_jsxFileName,lineNumber:23}}),_react.default.createElement(_.Dialog,{visible:state.visible,onTouchOutside:function onTouchOutside(){return store.set({visible:false});},supportingText:'Discard draft?',style:{width:280},actionItems:[{text:'Cancel',onPress:function onPress(){return store.set({visible:false});}},{text:'Discard',type:'contained',onPress:function onPress(){return store.set({visible:false});}}],__source:{fileName:_jsxFileName,lineNumber:27}}));}));}).add('Confirmation',function(){return _react.default.createElement(_Container.default,{__source:{fileName:_jsxFileName,lineNumber:50}},_react.default.createElement(_Header.default,{title:'Confirmation Dialog',__source:{fileName:_jsxFileName,lineNumber:51}}),_react.default.createElement(_storybookState.State,{store:store,style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:53}},function(state){return _react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:55}},_react.default.createElement(_.Button,{text:'Open',onPress:function onPress(){return store.set({visible:!state.visible});},__source:{fileName:_jsxFileName,lineNumber:56}}),_react.default.createElement(_.Dialog,{visible:state.visible,onTouchOutside:function onTouchOutside(){return store.set({visible:false});},title:'Use Googles location service?',supportingText:'Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.',actionItems:[{text:'Cancel',onPress:function onPress(){return store.set({visible:false});}},{text:'OK',onPress:function onPress(){return store.set({visible:false});}}],__source:{fileName:_jsxFileName,lineNumber:60}}));}));}).add('Simple',function(){return _react.default.createElement(_Container.default,{__source:{fileName:_jsxFileName,lineNumber:84}},_react.default.createElement(_Header.default,{title:'Simple Dialog',__source:{fileName:_jsxFileName,lineNumber:85}}),_react.default.createElement(_storybookState.State,{store:store,style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:87}},function(state){return _react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:89}},_react.default.createElement(_.Button,{text:'Open',onPress:function onPress(){return store.set({visible:!state.visible});},__source:{fileName:_jsxFileName,lineNumber:90}}),_react.default.createElement(_.Dialog,{visible:state.visible,onTouchOutside:function onTouchOutside(){return store.set({visible:false});},title:'Set up backup account',__source:{fileName:_jsxFileName,lineNumber:94}},_react.default.createElement(_.Ripple,{style:{flexDirection:'row',alignItems:'center',padding:10},__source:{fileName:_jsxFileName,lineNumber:98}},_react.default.createElement(_.Avatar,{type:"image",image:_react.default.createElement(_reactNative.Image,{source:{uri:'https://avatars1.githubusercontent.com/u/12564956?s=460&v=4'},__source:{fileName:_jsxFileName,lineNumber:107}}),size:40,__source:{fileName:_jsxFileName,lineNumber:104}}),_react.default.createElement(_.BodyText,{style:{fontSize:14,fontWeight:'400',color:'rgba(0, 0, 0, 0.54)',marginLeft:20},__source:{fileName:_jsxFileName,lineNumber:116}},"user1@gmail.com")),_react.default.createElement(_.Ripple,{style:{flexDirection:'row',alignItems:'center',padding:10},__source:{fileName:_jsxFileName,lineNumber:127}},_react.default.createElement(_.Avatar,{type:"image",image:_react.default.createElement(_reactNative.Image,{source:{uri:'https://avatars1.githubusercontent.com/u/12564956?s=460&v=4'},__source:{fileName:_jsxFileName,lineNumber:136}}),size:40,__source:{fileName:_jsxFileName,lineNumber:133}}),_react.default.createElement(_.BodyText,{style:{fontSize:14,fontWeight:'400',color:'rgba(0, 0, 0, 0.54)',marginLeft:20},__source:{fileName:_jsxFileName,lineNumber:145}},"user2@gmail.com")),_react.default.createElement(_.Ripple,{style:{flexDirection:'row',alignItems:'center',padding:10},__source:{fileName:_jsxFileName,lineNumber:156}},_react.default.createElement(_.Avatar,{type:"icon",content:"add",color:"#ccc",contentColor:'white',size:40,__source:{fileName:_jsxFileName,lineNumber:162}}),_react.default.createElement(_.BodyText,{style:{fontSize:14,fontWeight:'400',color:'rgba(0, 0, 0, 0.54)',marginLeft:20},__source:{fileName:_jsxFileName,lineNumber:169}},"Add account"))));}));}).add('Scrolling',function(){return _react.default.createElement(_Container.default,{__source:{fileName:_jsxFileName,lineNumber:186}},_react.default.createElement(_Header.default,{title:'Scrolling Dialog',__source:{fileName:_jsxFileName,lineNumber:187}}),_react.default.createElement(_storybookState.State,{store:store,style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:189}},function(state){return _react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:191}},_react.default.createElement(_.Button,{text:'Open',onPress:function onPress(){return store.set({visible:!state.visible});},__source:{fileName:_jsxFileName,lineNumber:192}}),_react.default.createElement(_.Dialog,{visible:state.visible,onTouchOutside:function onTouchOutside(){return store.set({visible:false});},title:'Terms of Service',contentStyle:{paddingRight:0},actionItems:[{text:'Cancel',onPress:function onPress(){return store.set({visible:false});}},{text:'OK',onPress:function onPress(){return store.set({visible:false});}}],__source:{fileName:_jsxFileName,lineNumber:196}},_react.default.createElement(_reactNative.ScrollView,{scrollEnabled:true,contentContainerStyle:{paddingRight:24},__source:{fileName:_jsxFileName,lineNumber:211}},_react.default.createElement(_.BodyText,{style:{fontSize:14,fontWeight:'400',color:'rgba(0, 0, 0, 0.54)',marginBottom:10},__source:{fileName:_jsxFileName,lineNumber:214}},"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."),_react.default.createElement(_.BodyText,{style:{fontSize:14,fontWeight:'400',color:'rgba(0, 0, 0, 0.54)',marginBottom:10},__source:{fileName:_jsxFileName,lineNumber:230}},"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"),_react.default.createElement(_.BodyText,{style:{fontSize:14,fontWeight:'400',color:'rgba(0, 0, 0, 0.54)',marginBottom:10},__source:{fileName:_jsxFileName,lineNumber:253}},"At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat."))));}));});exports.default=_default; \ No newline at end of file +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 _storybookState=require("@sambego/storybook-state");var _Header=_interopRequireDefault(require("../../storybook/components/Header"));var _Container=_interopRequireDefault(require("../../storybook/components/Container"));var _storiesOf=require("../../storybook/helpers/storiesOf");var _jsxFileName="/Users/cody/projects/material-bread/src/Components/Dialog/Dialog.stories.js";var store=new _storybookState.Store({visible:false,checkedOne:false,checkedTwo:false,checkedThree:false,checkedFour:false,checkedFive:false});var _default=(0,_storiesOf.storiesOf)('Components|Dialog',module).addParameters({jest:['Dialog']}).add('Alert',function(){return _react.default.createElement(_Container.default,{__source:{fileName:_jsxFileName,lineNumber:30}},_react.default.createElement(_Header.default,{title:'Alert Dialog',__source:{fileName:_jsxFileName,lineNumber:31}}),_react.default.createElement(_storybookState.State,{store:store,style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:33}},function(state){return _react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:35}},_react.default.createElement(_.Button,{textColor:'#6E2CFA',text:'Open',onPress:function onPress(){return store.set({visible:!state.visible});},__source:{fileName:_jsxFileName,lineNumber:36}}),_react.default.createElement(_.Dialog,{visible:state.visible,onTouchOutside:function onTouchOutside(){return store.set({visible:false});},supportingText:'Discard draft?',style:{width:280},actionItems:[{textColor:'#6E2CFA',text:'Cancel',onPress:function onPress(){return store.set({visible:false});}},{color:'#6E2CFA',text:'Discard',type:'contained',onPress:function onPress(){return store.set({visible:false});}}],__source:{fileName:_jsxFileName,lineNumber:41}}));}));}).add('Confirmation',function(){return _react.default.createElement(_Container.default,{__source:{fileName:_jsxFileName,lineNumber:66}},_react.default.createElement(_Header.default,{title:'Confirmation Dialog',__source:{fileName:_jsxFileName,lineNumber:67}}),_react.default.createElement(_storybookState.State,{store:store,style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:69}},function(state){return _react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:71}},_react.default.createElement(_.Button,{textColor:'#6E2CFA',text:'Open',onPress:function onPress(){return store.set({visible:!state.visible});},__source:{fileName:_jsxFileName,lineNumber:72}}),_react.default.createElement(_.Dialog,{visible:state.visible,onTouchOutside:function onTouchOutside(){return store.set({visible:false});},title:'Use Googles location service?',supportingText:'Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.',actionItems:[{textColor:'#6E2CFA',text:'Cancel',onPress:function onPress(){return store.set({visible:false});}},{textColor:'#6E2CFA',text:'OK',onPress:function onPress(){return store.set({visible:false});}}],__source:{fileName:_jsxFileName,lineNumber:77}}));}));}).add('Simple',function(){return _react.default.createElement(_Container.default,{__source:{fileName:_jsxFileName,lineNumber:103}},_react.default.createElement(_Header.default,{title:'Simple Dialog',__source:{fileName:_jsxFileName,lineNumber:104}}),_react.default.createElement(_storybookState.State,{store:store,style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:106}},function(state){return _react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:108}},_react.default.createElement(_.Button,{textColor:'#6E2CFA',text:'Open',onPress:function onPress(){return store.set({visible:!state.visible});},__source:{fileName:_jsxFileName,lineNumber:109}}),_react.default.createElement(_.Dialog,{visible:state.visible,onTouchOutside:function onTouchOutside(){return store.set({visible:false});},title:'Set up backup account',style:{paddingRight:24},__source:{fileName:_jsxFileName,lineNumber:114}},_react.default.createElement(_.Ripple,{style:{flexDirection:'row',alignItems:'center',padding:10},__source:{fileName:_jsxFileName,lineNumber:119}},_react.default.createElement(_.Avatar,{type:"image",image:_react.default.createElement(_reactNative.Image,{source:{uri:'https://avatars1.githubusercontent.com/u/12564956?s=460&v=4'},__source:{fileName:_jsxFileName,lineNumber:128}}),size:40,__source:{fileName:_jsxFileName,lineNumber:125}}),_react.default.createElement(_.BodyText,{style:{fontSize:14,fontWeight:'400',color:'rgba(0, 0, 0, 0.54)',marginLeft:20},__source:{fileName:_jsxFileName,lineNumber:137}},"user1@gmail.com")),_react.default.createElement(_.Ripple,{style:{flexDirection:'row',alignItems:'center',padding:10},__source:{fileName:_jsxFileName,lineNumber:148}},_react.default.createElement(_.Avatar,{type:"image",image:_react.default.createElement(_reactNative.Image,{source:{uri:'https://avatars1.githubusercontent.com/u/12564956?s=460&v=4'},__source:{fileName:_jsxFileName,lineNumber:157}}),size:40,__source:{fileName:_jsxFileName,lineNumber:154}}),_react.default.createElement(_.BodyText,{style:{fontSize:14,fontWeight:'400',color:'rgba(0, 0, 0, 0.54)',marginLeft:20},__source:{fileName:_jsxFileName,lineNumber:166}},"user2@gmail.com")),_react.default.createElement(_.Ripple,{style:{flexDirection:'row',alignItems:'center',padding:10,paddingBottom:24},__source:{fileName:_jsxFileName,lineNumber:177}},_react.default.createElement(_.Avatar,{type:"icon",content:"add",color:"#ccc",contentColor:'white',size:40,__source:{fileName:_jsxFileName,lineNumber:184}}),_react.default.createElement(_.BodyText,{style:{fontSize:14,fontWeight:'400',color:'rgba(0, 0, 0, 0.54)',marginLeft:20},__source:{fileName:_jsxFileName,lineNumber:191}},"Add account"))));}));}).add('Scrolling',function(){return _react.default.createElement(_Container.default,{__source:{fileName:_jsxFileName,lineNumber:208}},_react.default.createElement(_Header.default,{title:'Scrolling Dialog',__source:{fileName:_jsxFileName,lineNumber:209}}),_react.default.createElement(_storybookState.State,{store:store,style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:211}},function(state){return _react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__source:{fileName:_jsxFileName,lineNumber:213}},_react.default.createElement(_.Button,{textColor:'#6E2CFA',text:'Open',onPress:function onPress(){return store.set({visible:!state.visible});},__source:{fileName:_jsxFileName,lineNumber:214}}),_react.default.createElement(_.Dialog,{visible:state.visible,onTouchOutside:function onTouchOutside(){return store.set({visible:false});},title:'Get this party started?',titleStyle:{marginLeft:24},contentStyle:{paddingLeft:0,paddingBottom:0,height:360},actionItems:[{textColor:'#6E2CFA',text:'Second',onPress:function onPress(){return store.set({visible:false});}},{textColor:'#6E2CFA',text:'First',onPress:function onPress(){return store.set({visible:false});}}],__source:{fileName:_jsxFileName,lineNumber:219}},_react.default.createElement(_reactNative.View,{style:{borderBottomColor:'rgba(0, 0, 0, 0.08)',borderBottomWidth:1},__source:{fileName:_jsxFileName,lineNumber:237}}),_react.default.createElement(_reactNative.ScrollView,{scrollEnabled:true,contentContainerStyle:{padding:16},__source:{fileName:_jsxFileName,lineNumber:243}},_react.default.createElement(_reactNative.View,{style:{flex:1,flexDirection:'row',alignItems:'center'},__source:{fileName:_jsxFileName,lineNumber:244}},_react.default.createElement(_.Icon,{name:"insert-chart",size:24,color:'rgba(0, 0, 0, 0.54)',__source:{fileName:_jsxFileName,lineNumber:250}}),_react.default.createElement(_.BodyText,{text:"option 1",style:{marginLeft:32,width:100},__source:{fileName:_jsxFileName,lineNumber:255}}),_react.default.createElement(_.Checkbox,{rippleMatchesCheckbox:true,checkboxColor:'rgba(0, 0, 0, 0.54)',checked:state.checkedOne,style:{paddingVertical:16},label:'01',labelStyle:{marginLeft:130},labelPos:'left',onPress:function onPress(){return store.set({checkedOne:!state.checkedOne});},__source:{fileName:_jsxFileName,lineNumber:259}})),_react.default.createElement(_reactNative.View,{style:{flex:1,flexDirection:'row',alignItems:'center'},__source:{fileName:_jsxFileName,lineNumber:271}},_react.default.createElement(_.Icon,{name:"insert-chart",size:24,color:'rgba(0, 0, 0, 0.54)',__source:{fileName:_jsxFileName,lineNumber:277}}),_react.default.createElement(_.BodyText,{text:"option 2",style:{marginLeft:32,width:100},__source:{fileName:_jsxFileName,lineNumber:282}}),_react.default.createElement(_.Checkbox,{rippleMatchesCheckbox:true,checkboxColor:'rgba(0, 0, 0, 0.54)',checked:state.checkedTwo,style:{paddingVertical:16},label:'02',labelStyle:{marginLeft:130},labelPos:'left',onPress:function onPress(){return store.set({checkedTwo:!state.checkedTwo});},__source:{fileName:_jsxFileName,lineNumber:286}})),_react.default.createElement(_reactNative.View,{style:{flex:1,flexDirection:'row',alignItems:'center'},__source:{fileName:_jsxFileName,lineNumber:298}},_react.default.createElement(_.Icon,{name:"insert-chart",size:24,color:'rgba(0, 0, 0, 0.54)',__source:{fileName:_jsxFileName,lineNumber:304}}),_react.default.createElement(_.BodyText,{text:"option 3",style:{marginLeft:32,width:100},__source:{fileName:_jsxFileName,lineNumber:309}}),_react.default.createElement(_.Checkbox,{rippleMatchesCheckbox:true,checkboxColor:'rgba(0, 0, 0, 0.54)',checked:state.checkedThree,style:{paddingVertical:16},label:'03',labelStyle:{marginLeft:130},labelPos:'left',onPress:function onPress(){return store.set({checkedThree:!state.checkedThree});},__source:{fileName:_jsxFileName,lineNumber:313}})),_react.default.createElement(_reactNative.View,{style:{flex:1,flexDirection:'row',alignItems:'center'},__source:{fileName:_jsxFileName,lineNumber:327}},_react.default.createElement(_.Icon,{name:"insert-chart",size:24,color:'rgba(0, 0, 0, 0.54)',__source:{fileName:_jsxFileName,lineNumber:333}}),_react.default.createElement(_.BodyText,{text:"option 4",style:{marginLeft:32,width:100},__source:{fileName:_jsxFileName,lineNumber:338}}),_react.default.createElement(_.Checkbox,{rippleMatchesCheckbox:true,checkboxColor:'rgba(0, 0, 0, 0.54)',checked:state.checkedFour,style:{paddingVertical:16,marginLeft:0},label:'04',labelStyle:{marginLeft:130,width:20},labelPos:'left',onPress:function onPress(){return store.set({checkedFour:!state.checkedFour});},__source:{fileName:_jsxFileName,lineNumber:342}})),_react.default.createElement(_reactNative.View,{style:{flex:1,flexDirection:'row',alignItems:'center'},__source:{fileName:_jsxFileName,lineNumber:356}},_react.default.createElement(_.Icon,{name:"insert-chart",size:24,color:'rgba(0, 0, 0, 0.54)',__source:{fileName:_jsxFileName,lineNumber:362}}),_react.default.createElement(_.BodyText,{text:"option 5",style:{marginLeft:32,width:100},__source:{fileName:_jsxFileName,lineNumber:367}}),_react.default.createElement(_.Checkbox,{rippleMatchesCheckbox:true,checkboxColor:'rgba(0, 0, 0, 0.54)',checked:state.checkedFive,style:{paddingVertical:16},label:'05',labelStyle:{marginLeft:130},labelPos:'left',onPress:function onPress(){return store.set({checkedFive:!state.checkedFive});},__source:{fileName:_jsxFileName,lineNumber:371}})))));}));});exports.default=_default; \ No newline at end of file diff --git a/dist/Components/Dialog/Dialog.styles.js b/dist/Components/Dialog/Dialog.styles.js index a17a6bbe..13e1af7b 100644 --- a/dist/Components/Dialog/Dialog.styles.js +++ b/dist/Components/Dialog/Dialog.styles.js @@ -1 +1 @@ -var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _reactNative=require("react-native");var _shadow=_interopRequireDefault(require("../../Utils/Shadow/shadow"));function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly)symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;});keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i - action?: React.ReactNode + onButtonPress?: (e: GestureResponderEvent) => void + buttonLabel?: string + buttonTextColor?: Color testID?: string } diff --git a/docs/src/components/Drawer/DrawerHeader.js b/docs/src/components/Drawer/DrawerHeader.js index 2c616b31..e1efc7de 100644 --- a/docs/src/components/Drawer/DrawerHeader.js +++ b/docs/src/components/Drawer/DrawerHeader.js @@ -9,7 +9,7 @@ export default class DrawerContent extends React.PureComponent {
Material Bread - v0.2.8 + v0.2.9
); } diff --git a/package.json b/package.json index 19234401..fa0e5761 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "material-bread", - "version": "0.2.8", + "version": "0.2.9", "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest -w 1 --forceExit", @@ -118,4 +118,4 @@ "pre-commit": "npm run lint" } } -} \ No newline at end of file +}