react-fela
Advanced tools
Comparing version 4.2.6 to 4.3.0
@@ -5,6 +5,4 @@ (function (global, factory) { | ||
(global.ReactFela = factory(global.React)); | ||
}(this, function (React) { 'use strict'; | ||
}(this, function (react) { 'use strict'; | ||
var React__default = 'default' in React ? React['default'] : React; | ||
var babelHelpers = {}; | ||
@@ -119,6 +117,4 @@ babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
var __commonjs_global = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : this; | ||
function __commonjs(fn, module) { return module = { exports: {} }, fn(module, module.exports, __commonjs_global), module.exports; } | ||
function __commonjs(fn, module) { return module = { exports: {} }, fn(module, module.exports), module.exports; } | ||
/* weak */ | ||
var RULE_TYPE = 1; | ||
@@ -136,3 +132,2 @@ | ||
/* weak */ | ||
/* eslint-disable import/no-mutable-exports */ | ||
@@ -214,10 +209,10 @@ var warning = function warning() { | ||
value: function render() { | ||
return React.Children.only(this.props.children); | ||
return react.Children.only(this.props.children); | ||
} | ||
}]); | ||
return Provider; | ||
}(React.Component); | ||
}(react.Component); | ||
Provider.propTypes = { renderer: React.PropTypes.object.isRequired }; | ||
Provider.childContextTypes = { renderer: React.PropTypes.object }; | ||
Provider.propTypes = { renderer: react.PropTypes.object.isRequired }; | ||
Provider.childContextTypes = { renderer: react.PropTypes.object }; | ||
@@ -233,2 +228,3 @@ var generateDisplayName = function generateDisplayName(Comp) { | ||
var createVNode = Inferno.createVNode; | ||
function connect(mapStylesToProps) { | ||
@@ -260,9 +256,11 @@ return function (Comp) { | ||
return React__default.createElement(Comp, babelHelpers.extends({}, this.props, { styles: styles })); | ||
return createVNode(16, Comp, babelHelpers.extends({}, this.props, { | ||
'styles': styles | ||
})); | ||
} | ||
}]); | ||
return EnhancedComponent; | ||
}(React.Component), _class.displayName = generateDisplayName(Comp), _class.contextTypes = babelHelpers.extends({}, Comp.contextTypes, { | ||
renderer: React.PropTypes.object, | ||
theme: React.PropTypes.object | ||
}(react.Component), _class.displayName = generateDisplayName(Comp), _class.contextTypes = babelHelpers.extends({}, Comp.contextTypes, { | ||
renderer: react.PropTypes.object, | ||
theme: react.PropTypes.object | ||
}), _temp; | ||
@@ -272,6 +270,13 @@ }; | ||
/* weak */ | ||
function arrayReduce(array, iterator, initialValue) { | ||
for (var i = 0, len = array.length; i < len; ++i) { | ||
initialValue = iterator(initialValue, array[i]); | ||
} | ||
return initialValue; | ||
} | ||
function extractPassThroughProps(passThrough, ruleProps) { | ||
return passThrough.reduce(function (output, prop) { | ||
output[prop] = ruleProps[prop]; | ||
return arrayReduce(passThrough, function (output, property) { | ||
output[property] = ruleProps[property]; | ||
return output; | ||
@@ -281,5 +286,4 @@ }, {}); | ||
/* weak */ | ||
function resolvePassThrough(passThrough, ruleProps) { | ||
if (passThrough instanceof Function) { | ||
if (typeof passThrough === 'function') { | ||
return Object.keys(passThrough(ruleProps)); | ||
@@ -291,4 +295,28 @@ } | ||
/* weak */ | ||
function assignStyles(base) { | ||
var assignStyle = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _typeof = typeof Symbol === "function" && babelHelpers.typeof(Symbol.iterator) === "symbol" ? function (obj) { | ||
return typeof obj === "undefined" ? "undefined" : babelHelpers.typeof(obj); | ||
} : function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj === "undefined" ? "undefined" : babelHelpers.typeof(obj); | ||
}; | ||
exports.default = assignStyle; | ||
function _toConsumableArray(arr) { | ||
if (Array.isArray(arr)) { | ||
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { | ||
arr2[i] = arr[i]; | ||
}return arr2; | ||
} else { | ||
return Array.from(arr); | ||
} | ||
} | ||
function assignStyle(base) { | ||
for (var _len = arguments.length, extendingStyles = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
@@ -305,8 +333,8 @@ extendingStyles[_key - 1] = arguments[_key]; | ||
if (baseValue instanceof Object) { | ||
if ((typeof baseValue === 'undefined' ? 'undefined' : _typeof(baseValue)) === 'object') { | ||
if (Array.isArray(baseValue)) { | ||
if (Array.isArray(value)) { | ||
base[property] = [].concat(babelHelpers.toConsumableArray(baseValue), babelHelpers.toConsumableArray(value)); | ||
base[property] = [].concat(_toConsumableArray(baseValue), _toConsumableArray(value)); | ||
} else { | ||
base[property] = [].concat(babelHelpers.toConsumableArray(baseValue), [value]); | ||
base[property] = [].concat(_toConsumableArray(baseValue), [value]); | ||
} | ||
@@ -316,4 +344,4 @@ continue; | ||
if (value instanceof Object && !Array.isArray(value)) { | ||
base[property] = assignStyles({}, baseValue, value); | ||
if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && !Array.isArray(value)) { | ||
base[property] = assignStyle({}, baseValue, value); | ||
continue; | ||
@@ -329,3 +357,7 @@ } | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
var assignStyle$1 = (assignStyle && typeof assignStyle === 'object' && 'default' in assignStyle ? assignStyle['default'] : assignStyle); | ||
function combineRules() { | ||
@@ -337,9 +369,5 @@ for (var _len = arguments.length, rules = Array(_len), _key = 0; _key < _len; _key++) { | ||
return function (props) { | ||
var style = {}; | ||
for (var i = 0, len = rules.length; i < len; ++i) { | ||
assignStyles(style, rules[i](props)); | ||
} | ||
return style; | ||
return arrayReduce(rules, function (style, rule) { | ||
return assignStyle$1(style, rule(props)); | ||
}, {}); | ||
}; | ||
@@ -361,2 +389,6 @@ } | ||
if (!renderer) { | ||
var componentName = type.displayName ? type.displayName : type; | ||
throw new Error('\n createComponent() can\'t render styles for the component \'' + componentName + '\' without\n Fela renderer in the context. Missing react-fela\'s <Provider /> at the app root?\n '); | ||
} | ||
var combinedRule = _felaRule ? combineRules(rule, _felaRule) : rule; | ||
@@ -370,3 +402,3 @@ | ||
if (type._isFelaComponent) { | ||
return React.createElement(type, babelHelpers.extends({ | ||
return react.createElement(type, babelHelpers.extends({ | ||
_felaRule: combinedRule, | ||
@@ -379,3 +411,14 @@ passThrough: resolvedPassThrough | ||
componentProps.style = ruleProps.style; | ||
ruleProps.theme = theme || {}; | ||
// fela-native support | ||
if (renderer.isNativeRenderer) { | ||
var felaStyle = renderer.renderRule(combinedRule, ruleProps); | ||
componentProps.style = ruleProps.style ? [ruleProps.style, felaStyle] : felaStyle; | ||
} else { | ||
componentProps.style = ruleProps.style; | ||
var cls = ruleProps.className ? ruleProps.className + ' ' : ''; | ||
componentProps.className = cls + renderer.renderRule(combinedRule, ruleProps); | ||
} | ||
componentProps.id = ruleProps.id; | ||
@@ -385,12 +428,8 @@ componentProps.ref = ruleProps.innerRef; | ||
var customType = ruleProps.is || type; | ||
var cls = ruleProps.className ? ruleProps.className + ' ' : ''; | ||
ruleProps.theme = theme || {}; | ||
componentProps.className = cls + renderer.renderRule(combinedRule, ruleProps); | ||
return React.createElement(customType, componentProps, children); | ||
return react.createElement(customType, componentProps, children); | ||
}; | ||
FelaComponent.contextTypes = { | ||
renderer: React.PropTypes.object, | ||
theme: React.PropTypes.object | ||
renderer: react.PropTypes.object, | ||
theme: react.PropTypes.object | ||
}; | ||
@@ -429,14 +468,14 @@ | ||
value: function render() { | ||
return React.Children.only(this.props.children); | ||
return react.Children.only(this.props.children); | ||
} | ||
}]); | ||
return ThemeProvider; | ||
}(React.Component); | ||
}(react.Component); | ||
ThemeProvider.propTypes = { | ||
theme: React.PropTypes.object.isRequired, | ||
overwrite: React.PropTypes.bool | ||
theme: react.PropTypes.object.isRequired, | ||
overwrite: react.PropTypes.bool | ||
}; | ||
ThemeProvider.childContextTypes = { theme: React.PropTypes.object }; | ||
ThemeProvider.contextTypes = { theme: React.PropTypes.object }; | ||
ThemeProvider.childContextTypes = { theme: react.PropTypes.object }; | ||
ThemeProvider.contextTypes = { theme: react.PropTypes.object }; | ||
ThemeProvider.defaultProps = { overwrite: false }; | ||
@@ -443,0 +482,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):e.ReactFela=t(e.React)}(this,function(e){"use strict";function t(e,t){return function(r){if(r.type!==f||r.media)t.textContent=e.renderToString();else try{t.sheet.insertRule(r.selector+"{"+r.declaration+"}",t.sheet.cssRules.length)}catch(e){}}}function r(e){return e&&1===e.nodeType}function n(e,n){if(!r(n))throw new Error("You need to specify a valid element node (nodeType = 1) to render into.");n.setAttribute("data-fela-stylesheet","");var o=t(e,n);e.subscribe(o);var i=e.renderToString();n.textContent!==i&&(n.textContent=i)}function o(t){return function(r){var n,o;return o=n=function(e){function n(){return p.classCallCheck(this,n),p.possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return p.inherits(n,e),p.createClass(n,[{key:"render",value:function(){var e=this.context,n=e.renderer,o=e.theme,i=t(p.extends({},this.props,{theme:o||{}}))(n);return l.createElement(r,p.extends({},this.props,{styles:i}))}}]),n}(e.Component),n.displayName=h(r),n.contextTypes=p.extends({},r.contextTypes,{renderer:e.PropTypes.object,theme:e.PropTypes.object}),o}}function i(e,t){return e.reduce(function(e,r){return e[r]=t[r],e},{})}function a(e,t){return e instanceof Function?Object.keys(e(t)):e}function s(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r.length;o<i;++o){var a=r[o];for(var c in a){var u=a[c],l=e[c];if(l instanceof Object){if(Array.isArray(l)){Array.isArray(u)?e[c]=[].concat(p.toConsumableArray(l),p.toConsumableArray(u)):e[c]=[].concat(p.toConsumableArray(l),[u]);continue}if(u instanceof Object&&!Array.isArray(u)){e[c]=s({},l,u);continue}}e[c]=u}}return e}function c(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r={},n=0,o=t.length;n<o;++n)s(r,t[n](e));return r}}function u(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=function(o,s){var u=s.renderer,l=s.theme,f=o.children,y=o._felaRule,h=o.passThrough,d=void 0===h?[]:h,b=p.objectWithoutProperties(o,["children","_felaRule","passThrough"]),m=y?c(t,y):t,v=[].concat(p.toConsumableArray(a(n,b)),p.toConsumableArray(a(d,b)));if(r._isFelaComponent)return e.createElement(r,p.extends({_felaRule:m,passThrough:v},b),f);var C=i(v,b);C.style=b.style,C.id=b.id,C.ref=b.innerRef;var T=b.is||r,g=b.className?b.className+" ":"";return b.theme=l||{},C.className=g+u.renderRule(m,b),e.createElement(T,C,f)};return o.contextTypes={renderer:e.PropTypes.object,theme:e.PropTypes.object},o.displayName=t.name?t.name:"FelaComponent",o._isFelaComponent=!0,o}var l="default"in e?e.default:e,p={};p.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},p.createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p.defineProperty=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},p.extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.inherits=function(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)},p.objectWithoutProperties=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},p.possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},p.toConsumableArray=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)};var f=("undefined"!=typeof window?window:"undefined"!=typeof global?global:this,1),y=function(t){function r(){return p.classCallCheck(this,r),p.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return p.inherits(r,t),p.createClass(r,[{key:"getChildContext",value:function(){return{renderer:this.props.renderer}}},{key:"componentDidMount",value:function(){var e=this.props,t=e.mountNode,r=e.renderer;t&&n(r,t)}},{key:"render",value:function(){return e.Children.only(this.props.children)}}]),r}(e.Component);y.propTypes={renderer:e.PropTypes.object.isRequired},y.childContextTypes={renderer:e.PropTypes.object};var h=function(e){var t=e.displayName||e.name;return t?"Fela"+t:"ConnectedFelaComponent"},d=function(t){function r(){return p.classCallCheck(this,r),p.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return p.inherits(r,t),p.createClass(r,[{key:"getChildContext",value:function(){var e=this.props,t=e.overwrite,r=e.theme,n=this.context.theme;return{theme:p.extends({},t?{}:n||{},r)}}},{key:"render",value:function(){return e.Children.only(this.props.children)}}]),r}(e.Component);d.propTypes={theme:e.PropTypes.object.isRequired,overwrite:e.PropTypes.bool},d.childContextTypes={theme:e.PropTypes.object},d.contextTypes={theme:e.PropTypes.object},d.defaultProps={overwrite:!1};var b={Provider:y,connect:o,createComponent:u,ThemeProvider:d};return b}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):e.ReactFela=t(e.React)}(this,function(e){"use strict";function t(e,t){return t={exports:{}},e(t,t.exports),t.exports}function r(e,t){return function(r){if(r.type!==p||r.media)t.textContent=e.renderToString();else try{t.sheet.insertRule(r.selector+"{"+r.declaration+"}",t.sheet.cssRules.length)}catch(e){}}}function n(e){return e&&1===e.nodeType}function o(e,t){if(!n(t))throw new Error("You need to specify a valid element node (nodeType = 1) to render into.");t.setAttribute("data-fela-stylesheet","");var o=r(e,t);e.subscribe(o);var i=e.renderToString();t.textContent!==i&&(t.textContent=i)}function i(t){return function(r){var n,o;return o=n=function(e){function n(){return l.classCallCheck(this,n),l.possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return l.inherits(n,e),l.createClass(n,[{key:"render",value:function(){var e=this.context,n=e.renderer,o=e.theme,i=t(l.extends({},this.props,{theme:o||{}}))(n);return h(16,r,l.extends({},this.props,{styles:i}))}}]),n}(e.Component),n.displayName=d(r),n.contextTypes=l.extends({},r.contextTypes,{renderer:e.PropTypes.object,theme:e.PropTypes.object}),o}}function a(e,t,r){for(var n=0,o=e.length;n<o;++n)r=t(r,e[n]);return r}function s(e,t){return a(e,function(e,r){return e[r]=t[r],e},{})}function u(e,t){return"function"==typeof e?Object.keys(e(t)):e}function c(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return a(t,function(t,r){return m(t,r(e))},{})}}function f(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=function(o,i){var a=i.renderer,f=i.theme,p=o.children,y=o._felaRule,d=o.passThrough,h=void 0===d?[]:d,b=l.objectWithoutProperties(o,["children","_felaRule","passThrough"]);if(!a){var m=r.displayName?r.displayName:r;throw new Error("\n createComponent() can't render styles for the component '"+m+"' without\n Fela renderer in the context. Missing react-fela's <Provider /> at the app root?\n ")}var v=y?c(t,y):t,C=[].concat(l.toConsumableArray(u(n,b)),l.toConsumableArray(u(h,b)));if(r._isFelaComponent)return e.createElement(r,l.extends({_felaRule:v,passThrough:C},b),p);var j=s(C,b);if(b.theme=f||{},a.isNativeRenderer){var g=a.renderRule(v,b);j.style=b.style?[b.style,g]:g}else{j.style=b.style;var x=b.className?b.className+" ":"";j.className=x+a.renderRule(v,b)}j.id=b.id,j.ref=b.innerRef;var T=b.is||r;return e.createElement(T,j,p)};return o.contextTypes={renderer:e.PropTypes.object,theme:e.PropTypes.object},o.displayName=t.name?t.name:"FelaComponent",o._isFelaComponent=!0,o}var l={};l.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},l.createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l.defineProperty=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},l.extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.inherits=function(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)},l.objectWithoutProperties=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},l.possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},l.toConsumableArray=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)};var p=1,y=function(t){function r(){return l.classCallCheck(this,r),l.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return l.inherits(r,t),l.createClass(r,[{key:"getChildContext",value:function(){return{renderer:this.props.renderer}}},{key:"componentDidMount",value:function(){var e=this.props,t=e.mountNode,r=e.renderer;t&&o(r,t)}},{key:"render",value:function(){return e.Children.only(this.props.children)}}]),r}(e.Component);y.propTypes={renderer:e.PropTypes.object.isRequired},y.childContextTypes={renderer:e.PropTypes.object};var d=function(e){var t=e.displayName||e.name;return t?"Fela"+t:"ConnectedFelaComponent"},h=Inferno.createVNode,b=t(function(e,t){function r(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function n(e){for(var t=arguments.length,i=Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];for(var s=0,u=i.length;s<u;++s){var c=i[s];for(var f in c){var l=c[f],p=e[f];if("object"===("undefined"==typeof p?"undefined":o(p))){if(Array.isArray(p)){Array.isArray(l)?e[f]=[].concat(r(p),r(l)):e[f]=[].concat(r(p),[l]);continue}if("object"===("undefined"==typeof l?"undefined":o(l))&&!Array.isArray(l)){e[f]=n({},p,l);continue}}e[f]=l}}return e}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===l.typeof(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":l.typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":"undefined"==typeof e?"undefined":l.typeof(e)};t.default=n,e.exports=t.default}),m=b&&"object"==typeof b&&"default"in b?b.default:b,v=function(t){function r(){return l.classCallCheck(this,r),l.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return l.inherits(r,t),l.createClass(r,[{key:"getChildContext",value:function(){var e=this.props,t=e.overwrite,r=e.theme,n=this.context.theme;return{theme:l.extends({},t?{}:n||{},r)}}},{key:"render",value:function(){return e.Children.only(this.props.children)}}]),r}(e.Component);v.propTypes={theme:e.PropTypes.object.isRequired,overwrite:e.PropTypes.bool},v.childContextTypes={theme:e.PropTypes.object},v.contextTypes={theme:e.PropTypes.object},v.defaultProps={overwrite:!1};var C={Provider:y,connect:i,createComponent:f,ThemeProvider:v};return C}); |
{ | ||
"name": "react-fela", | ||
"version": "4.2.6", | ||
"version": "4.3.0", | ||
"description": "React bindings for Fela", | ||
@@ -25,5 +25,5 @@ "module": "index.es2015.js", | ||
"peerDependencies": { | ||
"react": "^15.3.2", | ||
"fela": "4.2.6" | ||
"react": "*", | ||
"fela": "4.3.0" | ||
} | ||
} |
@@ -6,3 +6,3 @@ # React Fela | ||
<img alt="npm downloads" src="https://img.shields.io/npm/dm/react-fela.svg"> | ||
<img alt="gzipped size" src="https://img.shields.io/badge/gzipped-2.17kb-brightgreen.svg"> | ||
<img alt="gzipped size" src="https://img.shields.io/badge/gzipped-2.43kb-brightgreen.svg"> | ||
@@ -23,5 +23,5 @@ This package only includes React bindings for [Fela](http://github.com/rofrischmann/fela).<br> | ||
<!-- Development build (with warnings) --> | ||
<script src="https://unpkg.com/react-fela@4.2.6/dist/react-fela.js"></script> | ||
<script src="https://unpkg.com/react-fela@4.3.0/dist/react-fela.js"></script> | ||
<!-- Production build (minified) --> | ||
<script src="https://unpkg.com/react-fela@4.2.6/dist/react-fela.min.js"></script> | ||
<script src="https://unpkg.com/react-fela@4.3.0/dist/react-fela.min.js"></script> | ||
``` | ||
@@ -28,0 +28,0 @@ |
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
46974
384