Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bringing library to current react version #25

Merged
merged 5 commits into from
Jun 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions lib/components/AppBar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');
var _uranium=require('uranium');var _uranium2=_interopRequireDefault(_uranium);
var _omit=require('lodash/omit');var _omit2=_interopRequireDefault(_omit);
Expand Down Expand Up @@ -89,28 +90,28 @@ AppBar.propTypes={



title:_react.PropTypes.node,
title:_propTypes2.default.node,



navIcon:_react.PropTypes.string,
navIcon:_propTypes2.default.string,



onNavIconPress:_react.PropTypes.func,
onNavIconPress:_propTypes2.default.func,



elevated:_react.PropTypes.bool,
elevated:_propTypes2.default.bool,




children:_react.PropTypes.node,
css:_react.PropTypes.object,
children:_propTypes2.default.node,
css:_propTypes2.default.object,


theme:_react.PropTypes.object};
theme:_propTypes2.default.object};


AppBar.defaultProps={
Expand Down
3 changes: 2 additions & 1 deletion lib/components/BottomNavigation.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');
var _index=require('../index');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var

Expand Down Expand Up @@ -62,7 +63,7 @@ BottomNavigation.propTypes={



children:_react.PropTypes.node};exports.default=
children:_propTypes2.default.node};exports.default=


BottomNavigation;
Expand Down
9 changes: 5 additions & 4 deletions lib/components/BottomNavigationIcon.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');
var _uranium=require('uranium');

Expand Down Expand Up @@ -58,18 +59,18 @@ BottomNavigationIcon.propTypes={



name:_react.PropTypes.string.isRequired,
name:_propTypes2.default.string.isRequired,



text:_react.PropTypes.string.isRequired,
text:_propTypes2.default.string.isRequired,



active:_react.PropTypes.bool,
active:_propTypes2.default.bool,


theme:_react.PropTypes.object.isRequired};exports.default=
theme:_propTypes2.default.object.isRequired};exports.default=



Expand Down
11 changes: 6 additions & 5 deletions lib/components/Card/Card.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');
var _uranium=require('uranium');var _uranium2=_interopRequireDefault(_uranium);
var _index=require('../../index');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}
Expand Down Expand Up @@ -44,16 +45,16 @@ Card.propTypes={



style:_react.PropTypes.oneOfType([
_react.PropTypes.object,
_react.PropTypes.array]),
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array]),




children:_react.PropTypes.node,
children:_propTypes2.default.node,

theme:_react.PropTypes.object.isRequired};exports.default=
theme:_propTypes2.default.object.isRequired};exports.default=



Expand Down
9 changes: 5 additions & 4 deletions lib/components/Card/CardActions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');
var _uranium=require('uranium');var _uranium2=_interopRequireDefault(_uranium);
var _index=require('../../index');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
Expand All @@ -12,13 +13,13 @@ CardActions.propTypes={



children:_react.PropTypes.node,
children:_propTypes2.default.node,



style:_react.PropTypes.oneOfType([
_react.PropTypes.object,
_react.PropTypes.array])};exports.default=
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array])};exports.default=



Expand Down
27 changes: 14 additions & 13 deletions lib/components/Card/CardText.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');
var _uranium=require('uranium');var _uranium2=_interopRequireDefault(_uranium);
var _index=require('../../index');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}
Expand All @@ -14,30 +15,30 @@ CardText.propTypes={



textStyle:_react.PropTypes.oneOfType([
_react.PropTypes.object,
_react.PropTypes.array]),
textStyle:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array]),




style:_react.PropTypes.oneOfType([
_react.PropTypes.object,
_react.PropTypes.array]),
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array]),







children:_react.PropTypes.oneOfType([
_react2.default.PropTypes.instanceOf(_reactNative.Text),
_react.PropTypes.string,
_react.PropTypes.arrayOf(
_react.PropTypes.oneOfType([
_react2.default.PropTypes.instanceOf(_reactNative.Text),
_react.PropTypes.string]))]).
children:_propTypes2.default.oneOfType([
_propTypes2.default.instanceOf(_reactNative.Text),
_propTypes2.default.string,
_propTypes2.default.arrayOf(
_propTypes2.default.oneOfType([
_propTypes2.default.instanceOf(_reactNative.Text),
_propTypes2.default.string]))]).
isRequired};exports.default=


Expand Down
19 changes: 10 additions & 9 deletions lib/components/Card/CardTitle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');
var _uranium=require('uranium');var _uranium2=_interopRequireDefault(_uranium);
var _index=require('../../index');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}
Expand Down Expand Up @@ -26,32 +27,32 @@ CardTitle.propTypes={



title:_react.PropTypes.node,
title:_propTypes2.default.node,



titleStyle:_react.PropTypes.object,
titleStyle:_propTypes2.default.object,



subtitle:_react.PropTypes.node,
subtitle:_propTypes2.default.node,



subtitleStyle:_react.PropTypes.object,
subtitleStyle:_propTypes2.default.object,



style:_react.PropTypes.oneOfType([
_react.PropTypes.object,
_react.PropTypes.array]),
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array]),




children:_react.PropTypes.node,
children:_propTypes2.default.node,

theme:_react.PropTypes.object.isRequired};exports.default=
theme:_propTypes2.default.object.isRequired};exports.default=



Expand Down
5 changes: 3 additions & 2 deletions lib/components/DataTable/Cell.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');

var _index=require('../../index');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}
Expand All @@ -15,8 +16,8 @@ defaultedChildren));
};

Cell.propTypes={
children:_react.PropTypes.node,
style:_react.PropTypes.oneOfType([_react.PropTypes.object,_react.PropTypes.array])};exports.default=
children:_propTypes2.default.node,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.array])};exports.default=


Cell;
Expand Down
5 changes: 3 additions & 2 deletions lib/components/DataTable/HeaderCell.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');

var _index=require('../../index');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}
Expand All @@ -15,8 +16,8 @@ defaultedChildren));
};

HeaderCell.propTypes={
children:_react.PropTypes.node,
style:_react.PropTypes.oneOfType([_react.PropTypes.object,_react.PropTypes.array])};exports.default=
children:_propTypes2.default.node,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.array])};exports.default=


HeaderCell;
Expand Down
9 changes: 5 additions & 4 deletions lib/components/DataTable/HeaderRow.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');

var _index=require('../../index');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}
Expand All @@ -20,10 +21,10 @@ HeaderRow.propTypes={



children:_react.PropTypes.node.isRequired,
style:_react.PropTypes.oneOfType([
_react.PropTypes.object,
_react.PropTypes.array])};exports.default=
children:_propTypes2.default.node.isRequired,
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array])};exports.default=



Expand Down
9 changes: 5 additions & 4 deletions lib/components/DataTable/Row.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');

var _index=require('../../index');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}
Expand All @@ -20,10 +21,10 @@ HeaderRow.propTypes={



children:_react.PropTypes.node.isRequired,
style:_react.PropTypes.oneOfType([
_react.PropTypes.object,
_react.PropTypes.array])};exports.default=
children:_propTypes2.default.node.isRequired,
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array])};exports.default=



Expand Down
9 changes: 5 additions & 4 deletions lib/components/DataTable/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');

var _HeaderRow=require('./HeaderRow');var _HeaderRow2=_interopRequireDefault(_HeaderRow);
Expand Down Expand Up @@ -53,10 +54,10 @@ DataTable.propTypes={



children:_react.PropTypes.node.isRequired,
style:_react.PropTypes.oneOfType([
_react.PropTypes.object,
_react.PropTypes.array])};exports.default=
children:_propTypes2.default.node.isRequired,
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array])};exports.default=



Expand Down
13 changes: 7 additions & 6 deletions lib/components/Dialog.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');
var _uranium=require('uranium');

Expand Down Expand Up @@ -86,24 +87,24 @@ Dialog.propTypes={



title:_react.PropTypes.string,
title:_propTypes2.default.string,



actions:_react.PropTypes.node,
actions:_propTypes2.default.node,



active:_react.PropTypes.bool,
active:_propTypes2.default.bool,



onOverlayPress:_react.PropTypes.func,
onOverlayPress:_propTypes2.default.func,



children:_react.PropTypes.node.isRequired,
style:_react.PropTypes.oneOfType([_react.PropTypes.object,_react.PropTypes.array])};
children:_propTypes2.default.node.isRequired,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.array])};


Dialog.defaultProps={
Expand Down
7 changes: 4 additions & 3 deletions lib/components/Divider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _react=require('react');var _react2=_interopRequireDefault(_react);
var _propTypes=require('prop-types');var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require('react-native');

var _index=require('../index');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}
Expand Down Expand Up @@ -34,11 +35,11 @@ Divider.propTypes={



color:_react.PropTypes.string,
style:_react.PropTypes.object,
color:_propTypes2.default.string,
style:_propTypes2.default.object,


theme:_react.PropTypes.object.isRequired};
theme:_propTypes2.default.object.isRequired};


var tStyles=function tStyles(theme){return{
Expand Down
Loading