react-rating-tooltip
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -1,2 +0,2 @@ | ||
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){var r=n(8);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(10)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),i=l(o);n(1);var a=l(n(12)),u=l(n(13));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setSelected=function(e){var t=n.props,r=t.clearRating,o=t.ratingValue,i=t.onChange,a=n.state.current;r&&a===e+1?(n.setState({current:0,hover:-1}),i(0,"-")):(n.setState({current:e+1}),i(e+1,o?o[e]:""))},n.onHover=function(e){n.setState({hover:e+1})},n.onMouseLeave=function(){n.setState({hover:-1})},n.state={current:n.props.defaultRating,hover:-1},n}return 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)}(t,o.Component),r(t,[{key:"render",value:function(){for(var e=this.props,t=e.max,n=e.counterPosition,r=e.textPosition,o=e.tooltipContent,u=e.ratingValue,l=e.styleConfig,s=e.disabled,c=this.state,f=c.current,p=c.hover,d=new Array(t),y=p>=0?p:f,h=0;h<d.length;h++)d[h]=i.default.createElement(a.default,{tooltipStyle:l&&l.tooltipStyle?l.tooltipStyle:{},tpText:o&&o[h]?o[h]:null,selected:h<y,key:h,onMouseLeave:s?function(){}:this.onMouseLeave,onHover:s?function(){}:this.onHover,index:h,selectStar:s?function(){}:this.setSelected,InActiveComponent:this.props.InActiveComponent,ActiveComponent:this.props.ActiveComponent});return n&&("left"===n?d.unshift(i.default.createElement("div",{key:d.length+1,style:l&&l.counterStyle?l.counterStyle:{}},f)):d.push(i.default.createElement("div",{key:d.length+1,style:l&&l.counterStyle?l.counterStyle:{}},f))),r&&("left"===r?d.unshift(i.default.createElement("div",{key:d.length+1,style:l&&l.statusStyle?l.statusStyle:{}},u&&u[f-1]?u[f-1]:"-")):d.push(i.default.createElement("div",{key:d.length+1,style:l&&l.statusStyle?l.statusStyle:{}},u&&u[f-1]?u[f-1]:"-"))),i.default.createElement("div",null,i.default.createElement("div",{className:"wrap-container"},i.default.createElement("div",{className:"rating-container",style:l&&l.starContainer?l.starContainer:{}},d)))}}]),t}();s.propTypes={max:u.default.number.isRequired,defaultRating:u.default.number,counterPosition:u.default.oneOf(["left","right"]),clearRating:u.default.bool,disabled:u.default.bool,textPosition:u.default.oneOf(["left","right"]),tooltipContent:u.default.array,ratingValue:u.default.array,styleConfig:u.default.shape({counterStyle:u.default.object,starContainer:u.default.object,statusStyle:u.default.object,tooltipStyle:u.default.object}),onChange:u.default.func.isRequired,ActiveComponent:u.default.oneOfType([u.default.node,u.default.element]).isRequired,InActiveComponent:u.default.oneOfType([u.default.node,u.default.element]).isRequired},s.defaultProps={clearRating:!0,disabled:!1,defaultRating:0,styleConfig:{counterStyle:{height:"28px",backgroundColor:"#F58220",paddingLeft:"12px",paddingRight:"12px",color:"#FFF",lineHeight:"28px"},starContainer:{fontSize:"24px",backgroundColor:"#F2F2F2",height:"28px"},statusStyle:{height:"28px",backgroundColor:"#F58220",paddingLeft:"12px",paddingRight:"12px",color:"#FFF",lineHeight:"28px",minWidth:"100px",fontSize:"18px",textAlign:"center"},tooltipStyle:{fontSize:"14px",padding:"5px"}}},t.default=s},function(e,t,n){"use strict"; | ||
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){var r=n(8);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(10)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),i=l(o);n(1);var a=l(n(12)),u=l(n(13));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setSelected=function(e){var t=n.props,r=t.clearRating,o=t.ratingValue,i=t.onChange,a=n.state.current;r&&a===e+1?(n.setState({current:0,hover:-1}),i(0,"-")):(n.setState({current:e+1}),i(e+1,o?o[e]:""))},n.onHover=function(e){n.setState({hover:e+1})},n.onMouseLeave=function(){n.setState({hover:-1})},n.state={current:n.props.defaultRating,hover:-1},n}return 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)}(t,o.Component),r(t,[{key:"componentDidUpdate",value:function(e,t,n){e.defaultRating!==this.props.defaultRating&&this.setState({current:this.props.defaultRating})}},{key:"render",value:function(){for(var e=this.props,t=e.max,n=e.counterPosition,r=e.textPosition,o=e.tooltipContent,u=e.ratingValue,l=e.styleConfig,s=e.disabled,c=this.state,f=c.current,p=c.hover,d=new Array(t),y=p>=0?p:f,h=0;h<d.length;h++)d[h]=i.default.createElement(a.default,{tooltipStyle:l&&l.tooltipStyle?l.tooltipStyle:{},tpText:o&&o[h]?o[h]:null,selected:h<y,key:h,onMouseLeave:s?function(){}:this.onMouseLeave,onHover:s?function(){}:this.onHover,index:h,selectStar:s?function(){}:this.setSelected,InActiveComponent:this.props.InActiveComponent,ActiveComponent:this.props.ActiveComponent});return n&&("left"===n?d.unshift(i.default.createElement("div",{key:d.length+1,style:l&&l.counterStyle?l.counterStyle:{}},f)):d.push(i.default.createElement("div",{key:d.length+1,style:l&&l.counterStyle?l.counterStyle:{}},f))),r&&("left"===r?d.unshift(i.default.createElement("div",{key:d.length+1,style:l&&l.statusStyle?l.statusStyle:{}},u&&u[f-1]?u[f-1]:"-")):d.push(i.default.createElement("div",{key:d.length+1,style:l&&l.statusStyle?l.statusStyle:{}},u&&u[f-1]?u[f-1]:"-"))),i.default.createElement("div",null,i.default.createElement("div",{className:"wrap-container"},i.default.createElement("div",{className:"rating-container",style:l&&l.starContainer?l.starContainer:{}},d)))}}]),t}();s.propTypes={max:u.default.number.isRequired,defaultRating:u.default.number,counterPosition:u.default.oneOf(["left","right"]),clearRating:u.default.bool,disabled:u.default.bool,textPosition:u.default.oneOf(["left","right"]),tooltipContent:u.default.array,ratingValue:u.default.array,styleConfig:u.default.shape({counterStyle:u.default.object,starContainer:u.default.object,statusStyle:u.default.object,tooltipStyle:u.default.object}),onChange:u.default.func.isRequired,ActiveComponent:u.default.oneOfType([u.default.node,u.default.element]).isRequired,InActiveComponent:u.default.oneOfType([u.default.node,u.default.element]).isRequired},s.defaultProps={clearRating:!0,disabled:!1,defaultRating:0,styleConfig:{counterStyle:{height:"28px",backgroundColor:"#F58220",paddingLeft:"12px",paddingRight:"12px",color:"#FFF",lineHeight:"28px"},starContainer:{fontSize:"24px",backgroundColor:"#F2F2F2",height:"28px"},statusStyle:{height:"28px",backgroundColor:"#F58220",paddingLeft:"12px",paddingRight:"12px",color:"#FFF",lineHeight:"28px",minWidth:"100px",fontSize:"18px",textAlign:"center"},tooltipStyle:{fontSize:"14px",padding:"5px"}}},t.default=s},function(e,t,n){"use strict"; | ||
/** @license React v16.4.2 | ||
@@ -9,3 +9,3 @@ * react.production.min.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var r=n(4),o=n(5),i=n(6),a=n(7),u="function"==typeof Symbol&&Symbol.for,l=u?Symbol.for("react.element"):60103,s=u?Symbol.for("react.portal"):60106,c=u?Symbol.for("react.fragment"):60107,f=u?Symbol.for("react.strict_mode"):60108,p=u?Symbol.for("react.profiler"):60114,d=u?Symbol.for("react.provider"):60109,y=u?Symbol.for("react.context"):60110,h=u?Symbol.for("react.async_mode"):60111,v=u?Symbol.for("react.forward_ref"):60112;u&&Symbol.for("react.timeout");var b="function"==typeof Symbol&&Symbol.iterator;function m(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);o(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function S(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||g}function x(){}function w(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||g}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&m("85"),this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=S.prototype;var O=w.prototype=new x;O.constructor=w,r(O,S.prototype),O.isPureReactComponent=!0;var j={current:null},_=Object.prototype.hasOwnProperty,R={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r=void 0,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)_.call(t,r)&&!R.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:l,type:e,key:i,ref:a,props:o,_owner:j.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var E=/\/+/g,P=[];function T(e,t,n,r){if(P.length){var o=P.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function M(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case l:case s:i=!0}}if(i)return n(r,e,""===t?"."+U(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){var u=t+U(o=e[a],a);i+=M(o,u,n,r)}else if(null===e||void 0===e?u=null:u="function"==typeof(u=b&&e[b]||e["@@iterator"])?u:null,"function"==typeof u)for(e=u.call(e),a=0;!(o=e.next()).done;)i+=M(o=o.value,u=t+U(o,a++),n,r);else"object"===o&&m("31","[object Object]"===(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return i}function U(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function I(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?$(e,r,n,a.thatReturnsArgument):null!=e&&(k(e)&&(t=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(E,"$&/")+"/")+n,e={$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function $(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(E,"$&/")+"/"),t=T(t,i,r,o),null==e||M(e,"",I,t),A(t)}var F={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return $(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=T(null,null,t,n),null==e||M(e,"",L,t),A(t)},count:function(e){return null==e?0:M(e,"",a.thatReturnsNull,null)},toArray:function(e){var t=[];return $(e,t,null,a.thatReturnsArgument),t},only:function(e){return k(e)||m("143"),e}},createRef:function(){return{current:null}},Component:S,PureComponent:w,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:y,_calculateChangedBits:t,_defaultValue:e,_currentValue:e,_currentValue2:e,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null}).Provider={$$typeof:d,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:v,render:e}},Fragment:c,StrictMode:f,unstable_AsyncMode:h,unstable_Profiler:p,createElement:C,cloneElement:function(e,t,n){(null===e||void 0===e)&&m("267",e);var o=void 0,i=r({},e.props),a=e.key,u=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,s=j.current),void 0!==t.key&&(a=""+t.key);var c=void 0;for(o in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)_.call(t,o)&&!R.hasOwnProperty(o)&&(i[o]=void 0===t[o]&&void 0!==c?c[o]:t[o])}if(1===(o=arguments.length-2))i.children=n;else if(1<o){c=Array(o);for(var f=0;f<o;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:l,type:e.type,key:a,ref:u,props:i,_owner:s}},createFactory:function(e){var t=C.bind(null,e);return t.type=e,t},isValidElement:k,version:"16.4.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:j,assign:r}},N={default:F},q=N&&F||N;e.exports=q.default?q.default:q},function(e,t,n){"use strict"; | ||
*/var r=n(4),o=n(5),i=n(6),a=n(7),u="function"==typeof Symbol&&Symbol.for,l=u?Symbol.for("react.element"):60103,s=u?Symbol.for("react.portal"):60106,c=u?Symbol.for("react.fragment"):60107,f=u?Symbol.for("react.strict_mode"):60108,p=u?Symbol.for("react.profiler"):60114,d=u?Symbol.for("react.provider"):60109,y=u?Symbol.for("react.context"):60110,h=u?Symbol.for("react.async_mode"):60111,v=u?Symbol.for("react.forward_ref"):60112;u&&Symbol.for("react.timeout");var b="function"==typeof Symbol&&Symbol.iterator;function m(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);o(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function S(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||g}function x(){}function w(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||g}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&m("85"),this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=S.prototype;var O=w.prototype=new x;O.constructor=w,r(O,S.prototype),O.isPureReactComponent=!0;var j={current:null},_=Object.prototype.hasOwnProperty,R={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r=void 0,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)_.call(t,r)&&!R.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:l,type:e,key:i,ref:a,props:o,_owner:j.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var E=/\/+/g,P=[];function T(e,t,n,r){if(P.length){var o=P.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function U(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case l:case s:i=!0}}if(i)return n(r,e,""===t?"."+M(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){var u=t+M(o=e[a],a);i+=U(o,u,n,r)}else if(null===e||void 0===e?u=null:u="function"==typeof(u=b&&e[b]||e["@@iterator"])?u:null,"function"==typeof u)for(e=u.call(e),a=0;!(o=e.next()).done;)i+=U(o=o.value,u=t+M(o,a++),n,r);else"object"===o&&m("31","[object Object]"===(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return i}function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function I(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?$(e,r,n,a.thatReturnsArgument):null!=e&&(k(e)&&(t=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(E,"$&/")+"/")+n,e={$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function $(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(E,"$&/")+"/"),t=T(t,i,r,o),null==e||U(e,"",I,t),A(t)}var F={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return $(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=T(null,null,t,n),null==e||U(e,"",L,t),A(t)},count:function(e){return null==e?0:U(e,"",a.thatReturnsNull,null)},toArray:function(e){var t=[];return $(e,t,null,a.thatReturnsArgument),t},only:function(e){return k(e)||m("143"),e}},createRef:function(){return{current:null}},Component:S,PureComponent:w,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:y,_calculateChangedBits:t,_defaultValue:e,_currentValue:e,_currentValue2:e,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null}).Provider={$$typeof:d,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:v,render:e}},Fragment:c,StrictMode:f,unstable_AsyncMode:h,unstable_Profiler:p,createElement:C,cloneElement:function(e,t,n){(null===e||void 0===e)&&m("267",e);var o=void 0,i=r({},e.props),a=e.key,u=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,s=j.current),void 0!==t.key&&(a=""+t.key);var c=void 0;for(o in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)_.call(t,o)&&!R.hasOwnProperty(o)&&(i[o]=void 0===t[o]&&void 0!==c?c[o]:t[o])}if(1===(o=arguments.length-2))i.children=n;else if(1<o){c=Array(o);for(var f=0;f<o;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:l,type:e.type,key:a,ref:u,props:i,_owner:s}},createFactory:function(e){var t=C.bind(null,e);return t.type=e,t},isValidElement:k,version:"16.4.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:j,assign:r}},N={default:F},q=N&&F||N;e.exports=q.default?q.default:q},function(e,t,n){"use strict"; | ||
/* | ||
@@ -12,0 +12,0 @@ object-assign |
{ | ||
"name": "react-rating-tooltip", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "React Star Rating/Review Component with tooltip support", | ||
@@ -5,0 +5,0 @@ "main": "./lib/Rating.js", |
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
30304
53