diff --git a/cli/generator/templates/package.json b/cli/generator/templates/package.json index 8512e0b..5586f83 100644 --- a/cli/generator/templates/package.json +++ b/cli/generator/templates/package.json @@ -48,8 +48,8 @@ "babel-preset-es2015": "^6.3.13", "babel-preset-react": "^6.3.13", "babel-preset-stage-0": "^6.3.13", - "copy-webpack-plugin": "^0.3.3", - "eslint": "^1.10.3", + "copy-webpack-plugin": "^1.1.1", + "eslint": "^2.1.0", "eslint-loader": "^1.2.0", "eslint-plugin-babel": "^3.0.0", "eslint-plugin-react": "^3.14.0", diff --git a/cli/package.json b/cli/package.json index 25fcf41..c971677 100644 --- a/cli/package.json +++ b/cli/package.json @@ -23,7 +23,7 @@ "dependencies": { "chalk": "^1.1.1", "commander": "^2.9.0", - "prompt": "^0.2.14", + "prompt": "^1.0.0", "semver": "^5.1.0", "yeoman-environment": "^1.4.0", "yeoman-generator": "^0.22.2" diff --git a/lib/Dimensions/Dimensions.js b/lib/Dimensions/Dimensions.js index e643f17..b389c63 100644 --- a/lib/Dimensions/Dimensions.js +++ b/lib/Dimensions/Dimensions.js @@ -1,15 +1,15 @@ 'use strict'; +Object.defineProperty(exports, "__esModule", { + value: true +}); + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; 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; }; }(); -Object.defineProperty(exports, "__esModule", { - value: true -}); - var _react = require('react'); var _react2 = _interopRequireDefault(_react); @@ -83,6 +83,7 @@ var bindDimensions = function bindDimensions(ComposedComponent) { var _ref$getWidth = _ref.getWidth; var getWidth = _ref$getWidth === undefined ? defaultGetWidth : _ref$getWidth; + return _temp2 = _class = function (_Component) { _inherits(_class, _Component); @@ -168,6 +169,7 @@ var isWindow = function isWindow(element) { var Dimensions = function Dimensions(element) { var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; + switch (typeof element === 'undefined' ? 'undefined' : _typeof(element)) { case 'object': return getDimensions(element); diff --git a/lib/OffCanvas/OffCanvas.js b/lib/OffCanvas/OffCanvas.js index 1a7cc9f..f2dd721 100644 --- a/lib/OffCanvas/OffCanvas.js +++ b/lib/OffCanvas/OffCanvas.js @@ -1,14 +1,14 @@ 'use strict'; -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 _class, _class2, _temp; - Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; +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 _class, _class2, _temp; + var _react = require('react'); var _react2 = _interopRequireDefault(_react); @@ -63,6 +63,7 @@ var OffCanvas = (0, _radium2.default)(_class = (_temp = _class2 = function (_Com var openRight = _state.openRight; var expanded = _state.expanded; + var leftPushStyles = [leftType === 'push' && styles.push, { left: 0 }]; var rightPushStyles = [rightType === 'push' && styles.push, { right: 0 }]; @@ -105,6 +106,7 @@ var OffCanvas = (0, _radium2.default)(_class = (_temp = _class2 = function (_Com var leftType = _props2.leftType; var rightType = _props2.rightType; + if (leftType === 'push' && rightType === 'push') { this.setState({ openLeft: !this.state.openLeft, openRight: false }); } else { @@ -118,6 +120,7 @@ var OffCanvas = (0, _radium2.default)(_class = (_temp = _class2 = function (_Com var leftType = _props3.leftType; var rightType = _props3.rightType; + if (leftType === 'push' && rightType === 'push') { if (this.state.openRight) { @@ -180,6 +183,7 @@ var OffCanvas = (0, _radium2.default)(_class = (_temp = _class2 = function (_Com var openRight = _state2.openRight; var expanded = _state2.expanded; + if (openLeft && leftType === 'push') { return this.props.leftWidth; @@ -261,6 +265,7 @@ var OffCanvas = (0, _radium2.default)(_class = (_temp = _class2 = function (_Com exports.default = OffCanvas; + var styles = { container: { height: '100%', diff --git a/lib/RenderInBody/RenderInBody.js b/lib/RenderInBody/RenderInBody.js index 060c7fa..67e2cae 100644 --- a/lib/RenderInBody/RenderInBody.js +++ b/lib/RenderInBody/RenderInBody.js @@ -1,13 +1,13 @@ 'use strict'; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; - -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; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; + +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); @@ -68,6 +68,7 @@ var RenderInBody = function (_Component) { var decorateRenderInBody = function decorateRenderInBody(ComposedComponent) { var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; + return function (_Component2) { _inherits(_class2, _Component2); diff --git a/lib/RenderInWorker/Channel.js b/lib/RenderInWorker/Channel.js index 69c5974..4b81398 100644 --- a/lib/RenderInWorker/Channel.js +++ b/lib/RenderInWorker/Channel.js @@ -1,11 +1,11 @@ 'use strict'; -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; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); +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; }; }(); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** diff --git a/lib/RenderInWorker/ChildOperations.js b/lib/RenderInWorker/ChildOperations.js index 3daeb09..ad81a28 100644 --- a/lib/RenderInWorker/ChildOperations.js +++ b/lib/RenderInWorker/ChildOperations.js @@ -1,11 +1,12 @@ 'use strict'; -var _actions; - Object.defineProperty(exports, "__esModule", { value: true }); exports.actions = undefined; + +var _actions; + exports.processChildrenUpdates = processChildrenUpdates; exports.replaceNodeWithMarkupByID = replaceNodeWithMarkupByID; diff --git a/lib/RenderInWorker/DOMNodeStub.js b/lib/RenderInWorker/DOMNodeStub.js index a9d8cd4..1c352f2 100644 --- a/lib/RenderInWorker/DOMNodeStub.js +++ b/lib/RenderInWorker/DOMNodeStub.js @@ -1,12 +1,12 @@ 'use strict'; -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; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; +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 _WorkerBridge = require('./WorkerBridge'); var _WorkerBridge2 = _interopRequireDefault(_WorkerBridge); diff --git a/lib/RenderInWorker/IDOperations.js b/lib/RenderInWorker/IDOperations.js index d7418a4..9511ce4 100644 --- a/lib/RenderInWorker/IDOperations.js +++ b/lib/RenderInWorker/IDOperations.js @@ -1,11 +1,11 @@ 'use strict'; -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; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); +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 _DOMNodeStub = require('./DOMNodeStub'); var _DOMNodeStub2 = _interopRequireDefault(_DOMNodeStub); diff --git a/lib/RenderInWorker/RenderInWorker.js b/lib/RenderInWorker/RenderInWorker.js index d2bbfab..8d2d1d7 100644 --- a/lib/RenderInWorker/RenderInWorker.js +++ b/lib/RenderInWorker/RenderInWorker.js @@ -1,12 +1,12 @@ 'use strict'; -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; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; +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 _ReactMultiChild = require('react/lib/ReactMultiChild'); var _ReactMultiChild2 = _interopRequireDefault(_ReactMultiChild); @@ -152,6 +152,7 @@ var RenderInWorker = function () { var eventHandlers = _extractEventHandlers2.eventHandlers; var options = _extractEventHandlers2.options; + var node = _IDOperations2.default.get(this._rootNodeID); node.setAttributes(options); @@ -201,5 +202,6 @@ var RenderInWorker = function () { * Extending the component with the MultiChild mixin. */ + exports.default = RenderInWorker; Object.assign(RenderInWorker.prototype, _ReactMultiChild2.default.Mixin); \ No newline at end of file diff --git a/lib/RenderInWorker/TextComponent.js b/lib/RenderInWorker/TextComponent.js index aa0b38b..3461a4b 100644 --- a/lib/RenderInWorker/TextComponent.js +++ b/lib/RenderInWorker/TextComponent.js @@ -1,12 +1,12 @@ 'use strict'; -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; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; +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 _IDOperations = require('./IDOperations'); var _IDOperations2 = _interopRequireDefault(_IDOperations); diff --git a/lib/RenderInWorker/WorkerBridge.js b/lib/RenderInWorker/WorkerBridge.js index e125322..11d4062 100644 --- a/lib/RenderInWorker/WorkerBridge.js +++ b/lib/RenderInWorker/WorkerBridge.js @@ -1,11 +1,11 @@ 'use strict'; -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; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); +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 _channel = require('./channel'); var _channel2 = _interopRequireDefault(_channel); diff --git a/lib/ScrollView/ScrollView.js b/lib/ScrollView/ScrollView.js index 9e2db38..baee27b 100644 --- a/lib/ScrollView/ScrollView.js +++ b/lib/ScrollView/ScrollView.js @@ -1,5 +1,10 @@ 'use strict'; +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + 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 _class, _temp; /** @@ -9,12 +14,9 @@ var _class, _temp; /** // React + // Utils -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; var _react = require('react'); @@ -84,6 +86,7 @@ var ScrollView = (_temp = _class = function (_Component) { _this.loadingSpinnerHeight = 0; _this.deprecationWarned = false; + var nextInternalState = _this.recomputeInternalStateFromProps(_this.props); _this.computedProps = nextInternalState.computedProps; diff --git a/lib/ScrollView/computers/arrayInfiniteComputer.js b/lib/ScrollView/computers/arrayInfiniteComputer.js index 4ec427a..19eff9e 100755 --- a/lib/ScrollView/computers/arrayInfiniteComputer.js +++ b/lib/ScrollView/computers/arrayInfiniteComputer.js @@ -1,12 +1,12 @@ 'use strict'; -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; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; +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 _infiniteComputer = require('./infiniteComputer'); var _infiniteComputer2 = _interopRequireDefault(_infiniteComputer); diff --git a/lib/ScrollView/computers/constantInfiniteComputer.js b/lib/ScrollView/computers/constantInfiniteComputer.js index afc0585..3103d11 100755 --- a/lib/ScrollView/computers/constantInfiniteComputer.js +++ b/lib/ScrollView/computers/constantInfiniteComputer.js @@ -1,12 +1,12 @@ 'use strict'; -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; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; +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 _infiniteComputer = require('./infiniteComputer'); var _infiniteComputer2 = _interopRequireDefault(_infiniteComputer); diff --git a/lib/ScrollView/computers/infiniteComputer.js b/lib/ScrollView/computers/infiniteComputer.js index cf3f239..2dbe374 100755 --- a/lib/ScrollView/computers/infiniteComputer.js +++ b/lib/ScrollView/computers/infiniteComputer.js @@ -1,11 +1,11 @@ 'use strict'; -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; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); +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; }; }(); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } // An infinite computer must be able to do the following things: diff --git a/lib/View/View.js b/lib/View/View.js index 5c6321e..9be2ff7 100644 --- a/lib/View/View.js +++ b/lib/View/View.js @@ -1,16 +1,16 @@ 'use strict'; +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + 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 _class, _class2, _temp; -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - var _react = require('react'); var _react2 = _interopRequireDefault(_react); @@ -91,6 +91,7 @@ var View = (0, _radium2.default)(_class = (_temp = _class2 = function (_Componen exports.default = View; + var styles = { flex: { boxSizing: 'border-box',