react-bem-grid
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -23,2 +23,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _reactPureRenderComponent = require('react-pure-render/component'); | ||
@@ -68,28 +72,28 @@ | ||
Col.propTypes = { | ||
className: _react2['default'].PropTypes.string, | ||
style: _react2['default'].PropTypes.object, | ||
children: _react2['default'].PropTypes.node, | ||
className: _propTypes2['default'].string, | ||
style: _propTypes2['default'].object, | ||
children: _propTypes2['default'].node, | ||
componentClass: _reactPropTypes.elementType, | ||
xs: _react2['default'].PropTypes.oneOfType([_react2['default'].PropTypes.number, _react2['default'].PropTypes.bool]), | ||
sm: _react2['default'].PropTypes.oneOfType([_react2['default'].PropTypes.number, _react2['default'].PropTypes.bool]), | ||
md: _react2['default'].PropTypes.oneOfType([_react2['default'].PropTypes.number, _react2['default'].PropTypes.bool]), | ||
lg: _react2['default'].PropTypes.oneOfType([_react2['default'].PropTypes.number, _react2['default'].PropTypes.bool]), | ||
xs: _propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].bool]), | ||
sm: _propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].bool]), | ||
md: _propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].bool]), | ||
lg: _propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].bool]), | ||
xsOffset: _react2['default'].PropTypes.number, | ||
smOffset: _react2['default'].PropTypes.number, | ||
mdOffset: _react2['default'].PropTypes.number, | ||
lgOffset: _react2['default'].PropTypes.number, | ||
xsOffset: _propTypes2['default'].number, | ||
smOffset: _propTypes2['default'].number, | ||
mdOffset: _propTypes2['default'].number, | ||
lgOffset: _propTypes2['default'].number, | ||
reverse: _react2['default'].PropTypes.bool, | ||
reverse: _propTypes2['default'].bool, | ||
xsFirst: _react2['default'].PropTypes.bool, | ||
smFirst: _react2['default'].PropTypes.bool, | ||
mdFirst: _react2['default'].PropTypes.bool, | ||
lgFirst: _react2['default'].PropTypes.bool, | ||
xsFirst: _propTypes2['default'].bool, | ||
smFirst: _propTypes2['default'].bool, | ||
mdFirst: _propTypes2['default'].bool, | ||
lgFirst: _propTypes2['default'].bool, | ||
xsLast: _react2['default'].PropTypes.bool, | ||
smLast: _react2['default'].PropTypes.bool, | ||
mdLast: _react2['default'].PropTypes.bool, | ||
lgLast: _react2['default'].PropTypes.bool | ||
xsLast: _propTypes2['default'].bool, | ||
smLast: _propTypes2['default'].bool, | ||
mdLast: _propTypes2['default'].bool, | ||
lgLast: _propTypes2['default'].bool | ||
}; | ||
@@ -96,0 +100,0 @@ |
@@ -21,2 +21,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _reactPureRenderComponent = require('react-pure-render/component'); | ||
@@ -63,6 +67,6 @@ | ||
Grid.propTypes = { | ||
fluid: _react2['default'].PropTypes.bool, | ||
className: _react2['default'].PropTypes.string, | ||
style: _react2['default'].PropTypes.object, | ||
children: _react2['default'].PropTypes.node, | ||
fluid: _propTypes2['default'].bool, | ||
className: _propTypes2['default'].string, | ||
style: _propTypes2['default'].object, | ||
children: _propTypes2['default'].node, | ||
componentClass: _reactPropTypes.elementType | ||
@@ -69,0 +73,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactBEMGrid=t(require("react")):e.ReactBEMGrid=t(e.React)}(this,function(e){return function(e){function t(o){if(r[o])return r[o].exports;var s=r[o]={exports:{},id:o,loaded:!1};return e[o].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=r(8),n=o(s),p=r(6),l=o(p),u=r(7),i=o(u);t.default={Row:n.default,Col:l.default,Grid:i.default},e.exports=t.default},function(t,r){t.exports=e},function(e,t){"use strict";function r(e,t,r,o){return"Invalid prop '"+t+"' of value '"+e[t]+"'"+(" supplied to '"+r+"'"+o)}function o(e){function t(t,r,o,s){return s=s||"<<anonymous>>",null!=r[o]?e(r,o,s):t?new Error("Required prop '"+o+"' was not specified in '"+s+"'."):void 0}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}t.__esModule=!0,t.errMsg=r,t.createChainableTypeChecker=o},function(e,t,r){var o,s;/*! | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactBEMGrid=t(require("react")):e.ReactBEMGrid=t(e.React)}(this,function(e){return function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return e[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),s=o(n),u=r(7),l=o(u),i=r(8),a=o(i);t.default={Row:s.default,Col:l.default,Grid:a.default},e.exports=t.default},function(t,r){t.exports=e},function(e,t){"use strict";function r(e,t,r,o){return"Invalid prop '"+t+"' of value '"+e[t]+"'"+(" supplied to '"+r+"'"+o)}function o(e){function t(t,r,o,n){return n=n||"<<anonymous>>",null!=r[o]?e(r,o,n):t?new Error("Required prop '"+o+"' was not specified in '"+n+"'."):void 0}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}t.__esModule=!0,t.errMsg=r,t.createChainableTypeChecker=o},function(e,t,r){var o,n;/*! | ||
Copyright (c) 2016 Jed Watson. | ||
@@ -6,2 +6,2 @@ Licensed under the MIT License (MIT), see | ||
*/ | ||
!function(){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var s=typeof o;if("string"===s||"number"===s)e.push(o);else if(Array.isArray(o))e.push(r.apply(null,o));else if("object"===s)for(var p in o)n.call(o,p)&&o[p]&&e.push(p)}}return e.join(" ")}var n={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=r:(o=[],s=function(){return r}.apply(t,o),!(void 0!==s&&(e.exports=s)))}()},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var s=r(13),n=o(s);t.isRequiredForA11y=n.default;var p=r(15),l=o(p);t.mountable=l.default;var u=r(12),i=o(u);t.elementType=i.default;var a=r(14),f=o(a);t.keyOf=f.default;var d=r(16),c=o(d);t.singlePropFrom=c.default;var y=r(10),_=o(y);t.all=_.default;var m=r(11),b=o(m);t.deprecated=b.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}t.__esModule=!0;var p=r(17),l=o(p),u=r(1),i=function(e){function t(){s(this,t),null!=e&&e.apply(this,arguments)}return n(t,e),t}(u.Component);t.default=i,i.prototype.shouldComponentUpdate=l.default,e.exports=t.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),u=function(e,t,r){for(var o=!0;o;){var s=e,n=t,p=r;o=!1,null===s&&(s=Function.prototype);var l=Object.getOwnPropertyDescriptor(s,n);if(void 0!==l){if("value"in l)return l.value;var u=l.get;if(void 0===u)return;return u.call(p)}var i=Object.getPrototypeOf(s);if(null===i)return;e=i,t=n,r=p,o=!0,l=i=void 0}},i=r(1),a=o(i),f=r(5),d=o(f),c=r(3),y=o(c),_=r(4),m=r(9),b=o(m),h=function(e){function t(){n(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return p(t,e),l(t,[{key:"render",value:function(){var e,t=this.props.componentClass,r=(0,y.default)((e={},s(e,"grid__col--xs"+((0,b.default)(this.props.xs)?"-"+this.props.xs:""),this.props.xs>=0),s(e,"grid__col--sm"+((0,b.default)(this.props.sm)?"-"+this.props.sm:""),this.props.sm>=0),s(e,"grid__col--md"+((0,b.default)(this.props.md)?"-"+this.props.md:""),this.props.md>=0),s(e,"grid__col--lg"+((0,b.default)(this.props.lg)?"-"+this.props.lg:""),this.props.lg>=0),s(e,"grid__col--xs-offset-"+this.props.xsOffset,this.props.xsOffset>=0),s(e,"grid__col--sm-offset-"+this.props.smOffset,this.props.smOffset>=0),s(e,"grid__col--md-offset-"+this.props.mdOffset,this.props.mdOffset>=0),s(e,"grid__col--lg-offset-"+this.props.lgOffset,this.props.lgOffset>=0),s(e,"grid__col--reverse",this.props.reverse),s(e,"grid__col--xs-first",this.props.xsFirst),s(e,"grid__col--sm-first",this.props.smFirst),s(e,"grid__col--md-first",this.props.mdFirst),s(e,"grid__col--lg-first",this.props.lgFirst),s(e,"grid__col--xs-last",this.props.xsLast),s(e,"grid__col--sm-last",this.props.smLast),s(e,"grid__col--md-last",this.props.mdLast),s(e,"grid__col--lg-last",this.props.lgLast),e),this.props.className);return a.default.createElement(t,{className:r,style:this.props.style},this.props.children)}}]),t}(d.default);h.propTypes={className:a.default.PropTypes.string,style:a.default.PropTypes.object,children:a.default.PropTypes.node,componentClass:_.elementType,xs:a.default.PropTypes.oneOfType([a.default.PropTypes.number,a.default.PropTypes.bool]),sm:a.default.PropTypes.oneOfType([a.default.PropTypes.number,a.default.PropTypes.bool]),md:a.default.PropTypes.oneOfType([a.default.PropTypes.number,a.default.PropTypes.bool]),lg:a.default.PropTypes.oneOfType([a.default.PropTypes.number,a.default.PropTypes.bool]),xsOffset:a.default.PropTypes.number,smOffset:a.default.PropTypes.number,mdOffset:a.default.PropTypes.number,lgOffset:a.default.PropTypes.number,reverse:a.default.PropTypes.bool,xsFirst:a.default.PropTypes.bool,smFirst:a.default.PropTypes.bool,mdFirst:a.default.PropTypes.bool,lgFirst:a.default.PropTypes.bool,xsLast:a.default.PropTypes.bool,smLast:a.default.PropTypes.bool,mdLast:a.default.PropTypes.bool,lgLast:a.default.PropTypes.bool},h.defaultProps={componentClass:"div"},t.default=h,e.exports=t.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),l=function(e,t,r){for(var o=!0;o;){var s=e,n=t,p=r;o=!1,null===s&&(s=Function.prototype);var l=Object.getOwnPropertyDescriptor(s,n);if(void 0!==l){if("value"in l)return l.value;var u=l.get;if(void 0===u)return;return u.call(p)}var i=Object.getPrototypeOf(s);if(null===i)return;e=i,t=n,r=p,o=!0,l=i=void 0}},u=r(1),i=o(u),a=r(5),f=o(a),d=r(3),c=o(d),y=r(4),_=function(e){function t(){s(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return n(t,e),p(t,[{key:"render",value:function(){var e=this.props.componentClass,t=(0,c.default)({grid:!this.props.fluid,"grid--fluid":this.props.fluid},this.props.className);return i.default.createElement(e,{className:t,style:this.props.style},this.props.children)}}]),t}(f.default);_.propTypes={fluid:i.default.PropTypes.bool,className:i.default.PropTypes.string,style:i.default.PropTypes.object,children:i.default.PropTypes.node,componentClass:y.elementType},_.defaultProps={componentClass:"div"},t.default=_,e.exports=t.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),l=function(e,t,r){for(var o=!0;o;){var s=e,n=t,p=r;o=!1,null===s&&(s=Function.prototype);var l=Object.getOwnPropertyDescriptor(s,n);if(void 0!==l){if("value"in l)return l.value;var u=l.get;if(void 0===u)return;return u.call(p)}var i=Object.getPrototypeOf(s);if(null===i)return;e=i,t=n,r=p,o=!0,l=i=void 0}},u=r(1),i=o(u),a=r(5),f=o(a),d=r(3),c=o(d),y=r(4),_=function(e){function t(){s(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return n(t,e),p(t,[{key:"render",value:function(){var e=this.props.componentClass,t=(0,c.default)({grid__row:!0,"grid__row--reverse":this.props.reverse,"grid__row--xs-start":this.props.xsStart,"grid__row--sm-start":this.props.smStart,"grid__row--md-start":this.props.mdStart,"grid__row--lg-start":this.props.lgStart,"grid__row--xs-center":this.props.xsCenter,"grid__row--sm-center":this.props.smCenter,"grid__row--md-center":this.props.mdCenter,"grid__row--lg-center":this.props.lgCenter,"grid__row--xs-end":this.props.xsEnd,"grid__row--sm-end":this.props.smEnd,"grid__row--md-end":this.props.mdEnd,"grid__row--lg-end":this.props.lgEnd,"grid__row--xs-top":this.props.xsTop,"grid__row--sm-top":this.props.smTop,"grid__row--md-top":this.props.mdTop,"grid__row--lg-top":this.props.lgTop,"grid__row--xs-middle":this.props.xsMiddle,"grid__row--sm-middle":this.props.smMiddle,"grid__row--md-middle":this.props.mdMiddle,"grid__row--lg-middle":this.props.lgMiddle,"grid__row--xs-bottom":this.props.xsBottom,"grid__row--sm-bottom":this.props.smBottom,"grid__row--md-bottom":this.props.mdBottom,"grid__row--lg-bottom":this.props.lgBottom,"grid__row--xs-around":this.props.xsAround,"grid__row--sm-around":this.props.smAround,"grid__row--md-around":this.props.mdAround,"grid__row--lg-around":this.props.lgAround,"grid__row--xs-between":this.props.xsBetween,"grid__row--sm-between":this.props.smBetween,"grid__row--md-between":this.props.mdBetween,"grid__row--lg-between":this.props.lgBetween},this.props.className);return i.default.createElement(e,{className:t,style:this.props.style},this.props.children)}}]),t}(f.default);_.propTypes={reverse:i.default.PropTypes.bool,className:i.default.PropTypes.string,style:i.default.PropTypes.object,children:i.default.PropTypes.node,componentClass:y.elementType,xsStart:i.default.PropTypes.bool,smStart:i.default.PropTypes.bool,mdStart:i.default.PropTypes.bool,lgStart:i.default.PropTypes.bool,xsCenter:i.default.PropTypes.bool,smCenter:i.default.PropTypes.bool,mdCenter:i.default.PropTypes.bool,lgCenter:i.default.PropTypes.bool,xsEnd:i.default.PropTypes.bool,smEnd:i.default.PropTypes.bool,mdEnd:i.default.PropTypes.bool,lgEnd:i.default.PropTypes.bool,xsTop:i.default.PropTypes.bool,smTop:i.default.PropTypes.bool,mdTop:i.default.PropTypes.bool,lgTop:i.default.PropTypes.bool,xsMiddle:i.default.PropTypes.bool,smMiddle:i.default.PropTypes.bool,mdMiddle:i.default.PropTypes.bool,lgMiddle:i.default.PropTypes.bool,xsBottom:i.default.PropTypes.bool,smBottom:i.default.PropTypes.bool,mdBottom:i.default.PropTypes.bool,lgBottom:i.default.PropTypes.bool,xsAround:i.default.PropTypes.bool,smAround:i.default.PropTypes.bool,mdAround:i.default.PropTypes.bool,lgAround:i.default.PropTypes.bool,xsBetween:i.default.PropTypes.bool,smBetween:i.default.PropTypes.bool,mdBetween:i.default.PropTypes.bool,lgBetween:i.default.PropTypes.bool},_.defaultProps={componentClass:"div"},t.default=_,e.exports=t.default},function(e,t){function r(e){return!!e&&"object"==typeof e}function o(e){return"number"==typeof e||r(e)&&p.call(e)==s}var s="[object Number]",n=Object.prototype,p=n.toString;e.exports=o},function(e,t,r){"use strict";function o(){function e(e,t,o){for(var s=0;s<r.length;s++){var n=r[s](e,t,o);if(void 0!==n&&null!==n)return n}}for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];if(void 0===r)throw new Error("No validations provided");if(r.some(function(e){return"function"!=typeof e}))throw new Error("Invalid arguments, must be functions");if(0===r.length)throw new Error("No validations provided");return s.createChainableTypeChecker(e)}t.__esModule=!0,t.default=o;var s=r(2);e.exports=t.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){return function(r,o,s){if(null!=r[o]){var n='"'+o+'" property of "'+s+'" has been deprecated.\n'+t;u[n]||(l.default(!1,n),u[n]=!0)}return e(r,o,s)}}function n(){u={}}t.__esModule=!0,t.default=s;var p=r(19),l=o(p),u={};s._resetWarned=n,e.exports=t.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,r){var o=l.errMsg(e,t,r,". Expected an Element `type`");if("function"!=typeof e[t]){if(p.default.isValidElement(e[t]))return new Error(o+", not an actual Element");if("string"!=typeof e[t])return new Error(o+" such as a tag name or return value of React.createClass(...)")}}t.__esModule=!0;var n=r(1),p=o(n),l=r(2);t.default=l.createChainableTypeChecker(s),e.exports=t.default},function(e,t){"use strict";function r(e){return function(t,r,o){return null==t[r]?new Error("The prop '"+r+"' is required to make '"+o+"' accessible for users using assistive technologies such as screen readers"):e(t,r,o)}}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,r){"use strict";function o(e){function t(t,r,o){var n=t[r];if(!e.hasOwnProperty(n)){var p=JSON.stringify(Object.keys(e));return new Error(s.errMsg(t,r,o,", expected one of "+p+"."))}}return s.createChainableTypeChecker(t)}t.__esModule=!0,t.default=o;var s=r(2);e.exports=t.default},function(e,t,r){"use strict";function o(e,t,r){if("object"!=typeof e[t]||"function"!=typeof e[t].render&&1!==e[t].nodeType)return new Error(s.errMsg(e,t,r,", expected a DOM element or an object that has a `render` method"))}t.__esModule=!0;var s=r(2);t.default=s.createChainableTypeChecker(o),e.exports=t.default},function(e,t){"use strict";function r(){function e(e,t){var o=r.map(function(t){return e[t]}).reduce(function(e,t){return e+(void 0!==t?1:0)},0);if(o>1){var s=r[0],n=r.slice(1),p=n.join(", ")+" and "+s;return new Error("Invalid prop '"+t+"', only one of the following may be provided: "+p)}}for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return e}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){return!(0,p.default)(this.props,e)||!(0,p.default)(this.state,t)}t.__esModule=!0,t.default=s;var n=r(18),p=o(n);e.exports=t.default},function(e,t){"use strict";function r(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),n=0;n<r.length;n++)if(!s(r[n])||e[r[n]]!==t[r[n]])return!1;return!0}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,r){"use strict";var o=function(){};e.exports=o}])}); | ||
!function(){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o))e.push(r.apply(null,o));else if("object"===n)for(var u in o)s.call(o,u)&&o[u]&&e.push(u)}}return e.join(" ")}var s={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=r:(o=[],n=function(){return r}.apply(t,o),!(void 0!==n&&(e.exports=n)))}()},function(e,t,r){e.exports=r(13)()},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r(18),s=o(n);t.isRequiredForA11y=s.default;var u=r(20),l=o(u);t.mountable=l.default;var i=r(17),a=o(i);t.elementType=a.default;var f=r(19),p=o(f);t.keyOf=p.default;var d=r(21),c=o(d);t.singlePropFrom=c.default;var m=r(15),_=o(m);t.all=_.default;var h=r(16),b=o(h);t.deprecated=b.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}t.__esModule=!0;var u=r(23),l=o(u),i=r(1),a=function(e){function t(){n(this,t),null!=e&&e.apply(this,arguments)}return s(t,e),t}(i.Component);t.default=a,a.prototype.shouldComponentUpdate=l.default,e.exports=t.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),i=function(e,t,r){for(var o=!0;o;){var n=e,s=t,u=r;o=!1,null===n&&(n=Function.prototype);var l=Object.getOwnPropertyDescriptor(n,s);if(void 0!==l){if("value"in l)return l.value;var i=l.get;if(void 0===i)return;return i.call(u)}var a=Object.getPrototypeOf(n);if(null===a)return;e=a,t=s,r=u,o=!0,l=a=void 0}},a=r(1),f=o(a),p=r(4),d=o(p),c=r(6),m=o(c),_=r(3),h=o(_),b=r(5),g=r(12),y=o(g),v=function(e){function t(){s(this,t),i(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return u(t,e),l(t,[{key:"render",value:function(){var e,t=this.props.componentClass,r=(0,h.default)((e={},n(e,"grid__col--xs"+((0,y.default)(this.props.xs)?"-"+this.props.xs:""),this.props.xs>=0),n(e,"grid__col--sm"+((0,y.default)(this.props.sm)?"-"+this.props.sm:""),this.props.sm>=0),n(e,"grid__col--md"+((0,y.default)(this.props.md)?"-"+this.props.md:""),this.props.md>=0),n(e,"grid__col--lg"+((0,y.default)(this.props.lg)?"-"+this.props.lg:""),this.props.lg>=0),n(e,"grid__col--xs-offset-"+this.props.xsOffset,this.props.xsOffset>=0),n(e,"grid__col--sm-offset-"+this.props.smOffset,this.props.smOffset>=0),n(e,"grid__col--md-offset-"+this.props.mdOffset,this.props.mdOffset>=0),n(e,"grid__col--lg-offset-"+this.props.lgOffset,this.props.lgOffset>=0),n(e,"grid__col--reverse",this.props.reverse),n(e,"grid__col--xs-first",this.props.xsFirst),n(e,"grid__col--sm-first",this.props.smFirst),n(e,"grid__col--md-first",this.props.mdFirst),n(e,"grid__col--lg-first",this.props.lgFirst),n(e,"grid__col--xs-last",this.props.xsLast),n(e,"grid__col--sm-last",this.props.smLast),n(e,"grid__col--md-last",this.props.mdLast),n(e,"grid__col--lg-last",this.props.lgLast),e),this.props.className);return f.default.createElement(t,{className:r,style:this.props.style},this.props.children)}}]),t}(m.default);v.propTypes={className:d.default.string,style:d.default.object,children:d.default.node,componentClass:b.elementType,xs:d.default.oneOfType([d.default.number,d.default.bool]),sm:d.default.oneOfType([d.default.number,d.default.bool]),md:d.default.oneOfType([d.default.number,d.default.bool]),lg:d.default.oneOfType([d.default.number,d.default.bool]),xsOffset:d.default.number,smOffset:d.default.number,mdOffset:d.default.number,lgOffset:d.default.number,reverse:d.default.bool,xsFirst:d.default.bool,smFirst:d.default.bool,mdFirst:d.default.bool,lgFirst:d.default.bool,xsLast:d.default.bool,smLast:d.default.bool,mdLast:d.default.bool,lgLast:d.default.bool},v.defaultProps={componentClass:"div"},t.default=v,e.exports=t.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),l=function(e,t,r){for(var o=!0;o;){var n=e,s=t,u=r;o=!1,null===n&&(n=Function.prototype);var l=Object.getOwnPropertyDescriptor(n,s);if(void 0!==l){if("value"in l)return l.value;var i=l.get;if(void 0===i)return;return i.call(u)}var a=Object.getPrototypeOf(n);if(null===a)return;e=a,t=s,r=u,o=!0,l=a=void 0}},i=r(1),a=o(i),f=r(4),p=o(f),d=r(6),c=o(d),m=r(3),_=o(m),h=r(5),b=function(e){function t(){n(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return s(t,e),u(t,[{key:"render",value:function(){var e=this.props.componentClass,t=(0,_.default)({grid:!this.props.fluid,"grid--fluid":this.props.fluid},this.props.className);return a.default.createElement(e,{className:t,style:this.props.style},this.props.children)}}]),t}(c.default);b.propTypes={fluid:p.default.bool,className:p.default.string,style:p.default.object,children:p.default.node,componentClass:h.elementType},b.defaultProps={componentClass:"div"},t.default=b,e.exports=t.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),l=function(e,t,r){for(var o=!0;o;){var n=e,s=t,u=r;o=!1,null===n&&(n=Function.prototype);var l=Object.getOwnPropertyDescriptor(n,s);if(void 0!==l){if("value"in l)return l.value;var i=l.get;if(void 0===i)return;return i.call(u)}var a=Object.getPrototypeOf(n);if(null===a)return;e=a,t=s,r=u,o=!0,l=a=void 0}},i=r(1),a=o(i),f=r(4),p=o(f),d=r(6),c=o(d),m=r(3),_=o(m),h=r(5),b=function(e){function t(){n(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return s(t,e),u(t,[{key:"render",value:function(){var e=this.props.componentClass,t=(0,_.default)({grid__row:!0,"grid__row--reverse":this.props.reverse,"grid__row--xs-start":this.props.xsStart,"grid__row--sm-start":this.props.smStart,"grid__row--md-start":this.props.mdStart,"grid__row--lg-start":this.props.lgStart,"grid__row--xs-center":this.props.xsCenter,"grid__row--sm-center":this.props.smCenter,"grid__row--md-center":this.props.mdCenter,"grid__row--lg-center":this.props.lgCenter,"grid__row--xs-end":this.props.xsEnd,"grid__row--sm-end":this.props.smEnd,"grid__row--md-end":this.props.mdEnd,"grid__row--lg-end":this.props.lgEnd,"grid__row--xs-top":this.props.xsTop,"grid__row--sm-top":this.props.smTop,"grid__row--md-top":this.props.mdTop,"grid__row--lg-top":this.props.lgTop,"grid__row--xs-middle":this.props.xsMiddle,"grid__row--sm-middle":this.props.smMiddle,"grid__row--md-middle":this.props.mdMiddle,"grid__row--lg-middle":this.props.lgMiddle,"grid__row--xs-bottom":this.props.xsBottom,"grid__row--sm-bottom":this.props.smBottom,"grid__row--md-bottom":this.props.mdBottom,"grid__row--lg-bottom":this.props.lgBottom,"grid__row--xs-around":this.props.xsAround,"grid__row--sm-around":this.props.smAround,"grid__row--md-around":this.props.mdAround,"grid__row--lg-around":this.props.lgAround,"grid__row--xs-between":this.props.xsBetween,"grid__row--sm-between":this.props.smBetween,"grid__row--md-between":this.props.mdBetween,"grid__row--lg-between":this.props.lgBetween},this.props.className);return a.default.createElement(e,{className:t,style:this.props.style},this.props.children)}}]),t}(c.default);b.propTypes={reverse:p.default.bool,className:p.default.string,style:p.default.object,children:p.default.node,componentClass:h.elementType,xsStart:p.default.bool,smStart:p.default.bool,mdStart:p.default.bool,lgStart:p.default.bool,xsCenter:p.default.bool,smCenter:p.default.bool,mdCenter:p.default.bool,lgCenter:p.default.bool,xsEnd:p.default.bool,smEnd:p.default.bool,mdEnd:p.default.bool,lgEnd:p.default.bool,xsTop:p.default.bool,smTop:p.default.bool,mdTop:p.default.bool,lgTop:p.default.bool,xsMiddle:p.default.bool,smMiddle:p.default.bool,mdMiddle:p.default.bool,lgMiddle:p.default.bool,xsBottom:p.default.bool,smBottom:p.default.bool,mdBottom:p.default.bool,lgBottom:p.default.bool,xsAround:p.default.bool,smAround:p.default.bool,mdAround:p.default.bool,lgAround:p.default.bool,xsBetween:p.default.bool,smBetween:p.default.bool,mdBetween:p.default.bool,lgBetween:p.default.bool},b.defaultProps={componentClass:"div"},t.default=b,e.exports=t.default},function(e,t){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,r){"use strict";function o(e,t,r,o,s,u,l,i){if(n(t),!e){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[r,o,s,u,l,i],p=0;a=new Error(t.replace(/%s/g,function(){return f[p++]})),a.name="Invariant Violation"}throw a.framesToPop=1,a}}var n=function(e){};e.exports=o},function(e,t){function r(e){return!!e&&"object"==typeof e}function o(e){return"number"==typeof e||r(e)&&u.call(e)==n}var n="[object Number]",s=Object.prototype,u=s.toString;e.exports=o},function(e,t,r){"use strict";var o=r(10),n=r(11),s=r(14);e.exports=function(){function e(e,t,r,o,u,l){l!==s&&n(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return r.checkPropTypes=o,r.PropTypes=r,r}},function(e,t){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},function(e,t,r){"use strict";function o(){function e(e,t,o){for(var n=0;n<r.length;n++){var s=r[n](e,t,o);if(void 0!==s&&null!==s)return s}}for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];if(void 0===r)throw new Error("No validations provided");if(r.some(function(e){return"function"!=typeof e}))throw new Error("Invalid arguments, must be functions");if(0===r.length)throw new Error("No validations provided");return n.createChainableTypeChecker(e)}t.__esModule=!0,t.default=o;var n=r(2);e.exports=t.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function n(e,t){return function(r,o,n){if(null!=r[o]){var s='"'+o+'" property of "'+n+'" has been deprecated.\n'+t;i[s]||(l.default(!1,s),i[s]=!0)}return e(r,o,n)}}function s(){i={}}t.__esModule=!0,t.default=n;var u=r(22),l=o(u),i={};n._resetWarned=s,e.exports=t.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function n(e,t,r){var o=l.errMsg(e,t,r,". Expected an Element `type`");if("function"!=typeof e[t]){if(u.default.isValidElement(e[t]))return new Error(o+", not an actual Element");if("string"!=typeof e[t])return new Error(o+" such as a tag name or return value of React.createClass(...)")}}t.__esModule=!0;var s=r(1),u=o(s),l=r(2);t.default=l.createChainableTypeChecker(n),e.exports=t.default},function(e,t){"use strict";function r(e){return function(t,r,o){return null==t[r]?new Error("The prop '"+r+"' is required to make '"+o+"' accessible for users using assistive technologies such as screen readers"):e(t,r,o)}}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,r){"use strict";function o(e){function t(t,r,o){var s=t[r];if(!e.hasOwnProperty(s)){var u=JSON.stringify(Object.keys(e));return new Error(n.errMsg(t,r,o,", expected one of "+u+"."))}}return n.createChainableTypeChecker(t)}t.__esModule=!0,t.default=o;var n=r(2);e.exports=t.default},function(e,t,r){"use strict";function o(e,t,r){if("object"!=typeof e[t]||"function"!=typeof e[t].render&&1!==e[t].nodeType)return new Error(n.errMsg(e,t,r,", expected a DOM element or an object that has a `render` method"))}t.__esModule=!0;var n=r(2);t.default=n.createChainableTypeChecker(o),e.exports=t.default},function(e,t){"use strict";function r(){function e(e,t){var o=r.map(function(t){return e[t]}).reduce(function(e,t){return e+(void 0!==t?1:0)},0);if(o>1){var n=r[0],s=r.slice(1),u=s.join(", ")+" and "+n;return new Error("Invalid prop '"+t+"', only one of the following may be provided: "+u)}}for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return e}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,r){"use strict";var o=function(){};e.exports=o},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function n(e,t){return!(0,u.default)(this.props,e)||!(0,u.default)(this.state,t)}t.__esModule=!0,t.default=n;var s=r(24),u=o(s);e.exports=t.default},function(e,t){"use strict";function r(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var n=Object.prototype.hasOwnProperty.bind(t),s=0;s<r.length;s++)if(!n(r[s])||e[r[s]]!==t[r[s]])return!1;return!0}t.__esModule=!0,t.default=r,e.exports=t.default}])}); |
@@ -21,2 +21,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _reactPureRenderComponent = require('react-pure-render/component'); | ||
@@ -103,47 +107,47 @@ | ||
Row.propTypes = { | ||
reverse: _react2['default'].PropTypes.bool, | ||
className: _react2['default'].PropTypes.string, | ||
style: _react2['default'].PropTypes.object, | ||
children: _react2['default'].PropTypes.node, | ||
reverse: _propTypes2['default'].bool, | ||
className: _propTypes2['default'].string, | ||
style: _propTypes2['default'].object, | ||
children: _propTypes2['default'].node, | ||
componentClass: _reactPropTypes.elementType, | ||
xsStart: _react2['default'].PropTypes.bool, | ||
smStart: _react2['default'].PropTypes.bool, | ||
mdStart: _react2['default'].PropTypes.bool, | ||
lgStart: _react2['default'].PropTypes.bool, | ||
xsStart: _propTypes2['default'].bool, | ||
smStart: _propTypes2['default'].bool, | ||
mdStart: _propTypes2['default'].bool, | ||
lgStart: _propTypes2['default'].bool, | ||
xsCenter: _react2['default'].PropTypes.bool, | ||
smCenter: _react2['default'].PropTypes.bool, | ||
mdCenter: _react2['default'].PropTypes.bool, | ||
lgCenter: _react2['default'].PropTypes.bool, | ||
xsCenter: _propTypes2['default'].bool, | ||
smCenter: _propTypes2['default'].bool, | ||
mdCenter: _propTypes2['default'].bool, | ||
lgCenter: _propTypes2['default'].bool, | ||
xsEnd: _react2['default'].PropTypes.bool, | ||
smEnd: _react2['default'].PropTypes.bool, | ||
mdEnd: _react2['default'].PropTypes.bool, | ||
lgEnd: _react2['default'].PropTypes.bool, | ||
xsEnd: _propTypes2['default'].bool, | ||
smEnd: _propTypes2['default'].bool, | ||
mdEnd: _propTypes2['default'].bool, | ||
lgEnd: _propTypes2['default'].bool, | ||
xsTop: _react2['default'].PropTypes.bool, | ||
smTop: _react2['default'].PropTypes.bool, | ||
mdTop: _react2['default'].PropTypes.bool, | ||
lgTop: _react2['default'].PropTypes.bool, | ||
xsTop: _propTypes2['default'].bool, | ||
smTop: _propTypes2['default'].bool, | ||
mdTop: _propTypes2['default'].bool, | ||
lgTop: _propTypes2['default'].bool, | ||
xsMiddle: _react2['default'].PropTypes.bool, | ||
smMiddle: _react2['default'].PropTypes.bool, | ||
mdMiddle: _react2['default'].PropTypes.bool, | ||
lgMiddle: _react2['default'].PropTypes.bool, | ||
xsMiddle: _propTypes2['default'].bool, | ||
smMiddle: _propTypes2['default'].bool, | ||
mdMiddle: _propTypes2['default'].bool, | ||
lgMiddle: _propTypes2['default'].bool, | ||
xsBottom: _react2['default'].PropTypes.bool, | ||
smBottom: _react2['default'].PropTypes.bool, | ||
mdBottom: _react2['default'].PropTypes.bool, | ||
lgBottom: _react2['default'].PropTypes.bool, | ||
xsBottom: _propTypes2['default'].bool, | ||
smBottom: _propTypes2['default'].bool, | ||
mdBottom: _propTypes2['default'].bool, | ||
lgBottom: _propTypes2['default'].bool, | ||
xsAround: _react2['default'].PropTypes.bool, | ||
smAround: _react2['default'].PropTypes.bool, | ||
mdAround: _react2['default'].PropTypes.bool, | ||
lgAround: _react2['default'].PropTypes.bool, | ||
xsAround: _propTypes2['default'].bool, | ||
smAround: _propTypes2['default'].bool, | ||
mdAround: _propTypes2['default'].bool, | ||
lgAround: _propTypes2['default'].bool, | ||
xsBetween: _react2['default'].PropTypes.bool, | ||
smBetween: _react2['default'].PropTypes.bool, | ||
mdBetween: _react2['default'].PropTypes.bool, | ||
lgBetween: _react2['default'].PropTypes.bool | ||
xsBetween: _propTypes2['default'].bool, | ||
smBetween: _propTypes2['default'].bool, | ||
mdBetween: _propTypes2['default'].bool, | ||
lgBetween: _propTypes2['default'].bool | ||
}; | ||
@@ -150,0 +154,0 @@ |
{ | ||
"name": "react-bem-grid", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "A BEM-ified port of Flexbox Grid to a simple, reusable React component.", | ||
@@ -47,3 +47,3 @@ "main": "dist/index.js", | ||
"lodash.isnumber": "^3.0.1", | ||
"react-prop-types": "^0.3.0", | ||
"prop-types": "^15.5.10", | ||
"react-pure-render": "^1.0.2" | ||
@@ -72,5 +72,6 @@ }, | ||
"postcss-cli": "^1.5.0", | ||
"react": "^15.0", | ||
"react-addons-test-utils": "^15.0", | ||
"react-dom": "^15.0", | ||
"react": "^15.5", | ||
"react-addons-test-utils": "^15.5", | ||
"react-dom": "^15.5", | ||
"react-prop-types": "^0.3.0", | ||
"rimraf": "^2.3.4", | ||
@@ -82,5 +83,5 @@ "sinon": "^1.15.4", | ||
"peerDependencies": { | ||
"react": "^0.14 || ^15.0", | ||
"react-dom": "^0.14 || ^15.0" | ||
"react": "^0.14 || ^15.5", | ||
"react-dom": "^0.14 || ^15.5" | ||
} | ||
} |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import PureComponent from 'react-pure-render/component'; | ||
@@ -44,40 +45,40 @@ import classNames from 'classnames'; | ||
Col.propTypes = { | ||
className: React.PropTypes.string, | ||
style: React.PropTypes.object, | ||
children: React.PropTypes.node, | ||
className: PropTypes.string, | ||
style: PropTypes.object, | ||
children: PropTypes.node, | ||
componentClass: elementType, | ||
xs: React.PropTypes.oneOfType([ | ||
React.PropTypes.number, | ||
React.PropTypes.bool, | ||
xs: PropTypes.oneOfType([ | ||
PropTypes.number, | ||
PropTypes.bool, | ||
]), | ||
sm: React.PropTypes.oneOfType([ | ||
React.PropTypes.number, | ||
React.PropTypes.bool, | ||
sm: PropTypes.oneOfType([ | ||
PropTypes.number, | ||
PropTypes.bool, | ||
]), | ||
md: React.PropTypes.oneOfType([ | ||
React.PropTypes.number, | ||
React.PropTypes.bool, | ||
md: PropTypes.oneOfType([ | ||
PropTypes.number, | ||
PropTypes.bool, | ||
]), | ||
lg: React.PropTypes.oneOfType([ | ||
React.PropTypes.number, | ||
React.PropTypes.bool, | ||
lg: PropTypes.oneOfType([ | ||
PropTypes.number, | ||
PropTypes.bool, | ||
]), | ||
xsOffset: React.PropTypes.number, | ||
smOffset: React.PropTypes.number, | ||
mdOffset: React.PropTypes.number, | ||
lgOffset: React.PropTypes.number, | ||
xsOffset: PropTypes.number, | ||
smOffset: PropTypes.number, | ||
mdOffset: PropTypes.number, | ||
lgOffset: PropTypes.number, | ||
reverse: React.PropTypes.bool, | ||
reverse: PropTypes.bool, | ||
xsFirst: React.PropTypes.bool, | ||
smFirst: React.PropTypes.bool, | ||
mdFirst: React.PropTypes.bool, | ||
lgFirst: React.PropTypes.bool, | ||
xsFirst: PropTypes.bool, | ||
smFirst: PropTypes.bool, | ||
mdFirst: PropTypes.bool, | ||
lgFirst: PropTypes.bool, | ||
xsLast: React.PropTypes.bool, | ||
smLast: React.PropTypes.bool, | ||
mdLast: React.PropTypes.bool, | ||
lgLast: React.PropTypes.bool, | ||
xsLast: PropTypes.bool, | ||
smLast: PropTypes.bool, | ||
mdLast: PropTypes.bool, | ||
lgLast: PropTypes.bool, | ||
}; | ||
@@ -84,0 +85,0 @@ |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import PureComponent from 'react-pure-render/component'; | ||
import classNames from 'classnames'; | ||
import { elementType } from 'react-prop-types'; | ||
@@ -24,6 +26,6 @@ | ||
Grid.propTypes = { | ||
fluid: React.PropTypes.bool, | ||
className: React.PropTypes.string, | ||
style: React.PropTypes.object, | ||
children: React.PropTypes.node, | ||
fluid: PropTypes.bool, | ||
className: PropTypes.string, | ||
style: PropTypes.object, | ||
children: PropTypes.node, | ||
componentClass: elementType, | ||
@@ -30,0 +32,0 @@ }; |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import PureComponent from 'react-pure-render/component'; | ||
@@ -64,47 +65,47 @@ import classNames from 'classnames'; | ||
Row.propTypes = { | ||
reverse: React.PropTypes.bool, | ||
className: React.PropTypes.string, | ||
style: React.PropTypes.object, | ||
children: React.PropTypes.node, | ||
reverse: PropTypes.bool, | ||
className: PropTypes.string, | ||
style: PropTypes.object, | ||
children: PropTypes.node, | ||
componentClass: elementType, | ||
xsStart: React.PropTypes.bool, | ||
smStart: React.PropTypes.bool, | ||
mdStart: React.PropTypes.bool, | ||
lgStart: React.PropTypes.bool, | ||
xsStart: PropTypes.bool, | ||
smStart: PropTypes.bool, | ||
mdStart: PropTypes.bool, | ||
lgStart: PropTypes.bool, | ||
xsCenter: React.PropTypes.bool, | ||
smCenter: React.PropTypes.bool, | ||
mdCenter: React.PropTypes.bool, | ||
lgCenter: React.PropTypes.bool, | ||
xsCenter: PropTypes.bool, | ||
smCenter: PropTypes.bool, | ||
mdCenter: PropTypes.bool, | ||
lgCenter: PropTypes.bool, | ||
xsEnd: React.PropTypes.bool, | ||
smEnd: React.PropTypes.bool, | ||
mdEnd: React.PropTypes.bool, | ||
lgEnd: React.PropTypes.bool, | ||
xsEnd: PropTypes.bool, | ||
smEnd: PropTypes.bool, | ||
mdEnd: PropTypes.bool, | ||
lgEnd: PropTypes.bool, | ||
xsTop: React.PropTypes.bool, | ||
smTop: React.PropTypes.bool, | ||
mdTop: React.PropTypes.bool, | ||
lgTop: React.PropTypes.bool, | ||
xsTop: PropTypes.bool, | ||
smTop: PropTypes.bool, | ||
mdTop: PropTypes.bool, | ||
lgTop: PropTypes.bool, | ||
xsMiddle: React.PropTypes.bool, | ||
smMiddle: React.PropTypes.bool, | ||
mdMiddle: React.PropTypes.bool, | ||
lgMiddle: React.PropTypes.bool, | ||
xsMiddle: PropTypes.bool, | ||
smMiddle: PropTypes.bool, | ||
mdMiddle: PropTypes.bool, | ||
lgMiddle: PropTypes.bool, | ||
xsBottom: React.PropTypes.bool, | ||
smBottom: React.PropTypes.bool, | ||
mdBottom: React.PropTypes.bool, | ||
lgBottom: React.PropTypes.bool, | ||
xsBottom: PropTypes.bool, | ||
smBottom: PropTypes.bool, | ||
mdBottom: PropTypes.bool, | ||
lgBottom: PropTypes.bool, | ||
xsAround: React.PropTypes.bool, | ||
smAround: React.PropTypes.bool, | ||
mdAround: React.PropTypes.bool, | ||
lgAround: React.PropTypes.bool, | ||
xsAround: PropTypes.bool, | ||
smAround: PropTypes.bool, | ||
mdAround: PropTypes.bool, | ||
lgAround: PropTypes.bool, | ||
xsBetween: React.PropTypes.bool, | ||
smBetween: React.PropTypes.bool, | ||
mdBetween: React.PropTypes.bool, | ||
lgBetween: React.PropTypes.bool, | ||
xsBetween: PropTypes.bool, | ||
smBetween: PropTypes.bool, | ||
mdBetween: PropTypes.bool, | ||
lgBetween: PropTypes.bool, | ||
}; | ||
@@ -111,0 +112,0 @@ |
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
204426
69
4931
28
1
+ Addedprop-types@^15.5.10
- Removedreact-prop-types@^0.3.0
- Removedreact-prop-types@0.3.2(transitive)
- Removedwarning@2.1.0(transitive)