react-page-layout
Advanced tools
Comparing version 0.9.6 to 0.9.7
@@ -11,2 +11,8 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
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"); } } | ||
@@ -50,9 +56,9 @@ | ||
LayoutContext.propTypes = { | ||
sections: _react.PropTypes.objectOf(_react.PropTypes.element).isRequired, | ||
children: _react.PropTypes.element.isRequired | ||
sections: _propTypes2.default.objectOf(_propTypes2.default.element).isRequired, | ||
children: _propTypes2.default.element.isRequired | ||
}; | ||
LayoutContext.childContextTypes = { | ||
getSection: _react.PropTypes.func.isRequired | ||
getSection: _propTypes2.default.func.isRequired | ||
}; | ||
exports.default = LayoutContext; | ||
//# sourceMappingURL=LayoutContext.js.map |
@@ -11,2 +11,8 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
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"); } } | ||
@@ -55,9 +61,9 @@ | ||
LayoutProvider.propTypes = { | ||
layouts: _react.PropTypes.objectOf(_react.PropTypes.any).isRequired, | ||
children: _react.PropTypes.element.isRequired | ||
layouts: _propTypes2.default.objectOf(_propTypes2.default.any).isRequired, | ||
children: _propTypes2.default.element.isRequired | ||
}; | ||
LayoutProvider.childContextTypes = { | ||
getLayout: _react.PropTypes.func.isRequired | ||
getLayout: _propTypes2.default.func.isRequired | ||
}; | ||
exports.default = LayoutProvider; | ||
//# sourceMappingURL=LayoutProvider.js.map |
@@ -15,2 +15,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _lodash = require('lodash.isplainobject'); | ||
@@ -101,9 +105,9 @@ | ||
Page.propTypes = { | ||
layout: _react.PropTypes.string.isRequired, | ||
children: _react.PropTypes.node.isRequired | ||
layout: _propTypes2.default.string.isRequired, | ||
children: _propTypes2.default.node.isRequired | ||
}; | ||
Page.contextTypes = { | ||
getLayout: _react.PropTypes.func.isRequired | ||
getLayout: _propTypes2.default.func.isRequired | ||
}; | ||
exports.default = Page; | ||
//# sourceMappingURL=Page.js.map |
@@ -13,2 +13,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -44,6 +48,6 @@ | ||
Section.propTypes = { | ||
slot: _react.PropTypes.string.isRequired, | ||
children: _react.PropTypes.node | ||
slot: _propTypes2.default.string.isRequired, | ||
children: _propTypes2.default.node | ||
}; | ||
exports.default = Section; | ||
//# sourceMappingURL=Section.js.map |
@@ -13,2 +13,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -60,11 +64,11 @@ | ||
Slot.contextTypes = { | ||
getSection: _react.PropTypes.func.isRequired | ||
getSection: _propTypes2.default.func.isRequired | ||
}; | ||
Slot.propTypes = { | ||
name: _react.PropTypes.string.isRequired, | ||
component: _react.PropTypes.any, // eslint-disable-line | ||
wrapper: _react.PropTypes.element, | ||
className: _react.PropTypes.string, | ||
style: _react.PropTypes.object, // eslint-disable-line | ||
children: _react.PropTypes.node | ||
name: _propTypes2.default.string.isRequired, | ||
component: _propTypes2.default.any, // eslint-disable-line | ||
wrapper: _propTypes2.default.element, | ||
className: _propTypes2.default.string, | ||
style: _propTypes2.default.object, // eslint-disable-line | ||
children: _propTypes2.default.node | ||
}; | ||
@@ -71,0 +75,0 @@ Slot.defaultProps = { |
@@ -1,2 +0,3 @@ | ||
import React, { PropTypes } from 'react'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Slot } from '../../src'; | ||
@@ -3,0 +4,0 @@ |
@@ -1,2 +0,3 @@ | ||
import React, { PropTypes } from 'react'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Slot } from '../../src'; | ||
@@ -3,0 +4,0 @@ |
@@ -1,2 +0,3 @@ | ||
import React, { PropTypes } from 'react'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
@@ -3,0 +4,0 @@ function Radios(props) { |
{ | ||
"name": "react-page-layout", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"description": "Layout system for react", | ||
@@ -18,3 +18,4 @@ "author": "Jose R Villalon Soler", | ||
"lodash.isarray": "^4.0.0", | ||
"lodash.isplainobject": "^4.0.6" | ||
"lodash.isplainobject": "^4.0.6", | ||
"prop-types": "^15.5.10" | ||
}, | ||
@@ -21,0 +22,0 @@ "peerDependencies": { |
@@ -1,2 +0,3 @@ | ||
import { PureComponent, PropTypes, Children } from 'react'; | ||
import { PureComponent, Children } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
@@ -3,0 +4,0 @@ class LayoutContext extends PureComponent { |
@@ -1,2 +0,3 @@ | ||
import { PureComponent, PropTypes, Children } from 'react'; | ||
import { PureComponent, Children } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
@@ -3,0 +4,0 @@ class LayoutProvider extends PureComponent { |
@@ -1,2 +0,3 @@ | ||
import React, { PureComponent, PropTypes } from 'react'; | ||
import React, { PureComponent } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import isPlainObject from 'lodash.isplainobject'; | ||
@@ -3,0 +4,0 @@ import isArray from 'lodash.isarray'; |
/* eslint no-unreachable: off, react/require-render-return: off */ | ||
import React, { PureComponent, PropTypes } from 'react'; | ||
import React, { PureComponent } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
@@ -4,0 +5,0 @@ class Section extends PureComponent { |
@@ -1,2 +0,3 @@ | ||
import React, { Component, PropTypes } from 'react'; | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
@@ -3,0 +4,0 @@ class Slot extends Component { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1221409
815
5
+ Addedprop-types@^15.5.10