New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

material-ui-pagination

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material-ui-pagination - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

dist/index.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("material-ui/FlatButton"),require("material-ui/svg-icons/navigation/first-page"),require("material-ui/svg-icons/navigation/last-page")):"function"==typeof define&&define.amd?define(["react","material-ui/FlatButton","material-ui/svg-icons/navigation/first-page","material-ui/svg-icons/navigation/last-page"],t):"object"==typeof exports?exports["react-component-dev"]=t(require("react"),require("material-ui/FlatButton"),require("material-ui/svg-icons/navigation/first-page"),require("material-ui/svg-icons/navigation/last-page")):e["react-component-dev"]=t(e.React,e["material-ui/FlatButton"],e["material-ui/svg-icons/navigation/first-page"],e["material-ui/svg-icons/navigation/last-page"])}(this,function(e,t,n,r){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=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}}(),c=n(2),l=r(c),f=n(3),p=r(f),y=n(12),d=r(y),v=n(13),m=r(v),h=n(14),g=r(h),b={minWidth:16},T=function(e){var t=e.total,n=e.current,r=e.display,o=t,a=1;if(r<o){var i=Math.round(r/2-.5),u=i;r%2===0&&(i-=1),n<=i+1?o=r:n>=t-u?a=t-r+1:(a=n-i,o=n+u)}return{end:o,start:a}},E=function(e){var t=e.total,n=e.current,r=e.display;return t=t>0?t:1,n=n>0?n:1,r=r>0?r:1,n=n<t?n:t,r=r<t?r:t,{current:n,display:r,total:t}},w=function(e){var t=e.value,n=e.isActive,r=e.onClick,o=e.styleButton,a=e.stylePrimary;return o?l.default.createElement("div",{style:n?a:o,label:t.toString(),onTouchTap:r},t):l.default.createElement(d.default,{style:b,label:t.toString(),primary:n,onTouchTap:r})};w.propTypes={value:p.default.number,isActive:p.default.bool,onClick:p.default.func,styleButton:p.default.object,stylePrimary:p.default.object};var O=function(e){var t=e.onClick,n=e.styleFirstPageLink;return n?l.default.createElement("div",{style:n,onTouchTap:t}):l.default.createElement(d.default,{style:b,icon:l.default.createElement(m.default,null),onTouchTap:t})};O.propTypes={onClick:p.default.func,styleFirstPageLink:p.default.object};var P=function(e){var t=e.onClick,n=e.styleLastPageLink;return n?l.default.createElement("div",{style:n,onTouchTap:t}):l.default.createElement(d.default,{style:b,icon:l.default.createElement(g.default,null),onTouchTap:t})};P.propTypes={onClick:p.default.func,styleLastPageLink:p.default.object};var x=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=E(e);return n.setCurrent=n.setCurrent.bind(n),n.state=u({},r,T(r)),n}return i(t,e),s(t,[{key:"componentWillReceiveProps",value:function(e){var t=E(e);this.setState(u({},t,T(t)))}},{key:"setCurrent",value:function(e){var t=u({},this.state,{current:e});this.props.onChange(e),this.setState(u({},t,T(t)))}},{key:"render",value:function(){for(var e=this,t=[],n=this.state.start;n<=this.state.end;n+=1)t.push(n);return l.default.createElement("div",{style:this.props.styleRoot},l.default.createElement(O,{onClick:function(){return e.setCurrent(1)},styleFirstPageLink:this.props.styleFirstPageLink}),t.map(function(t,n){return l.default.createElement(w,{key:n,value:t,isActive:e.state.current===t,onClick:function(){return e.setCurrent(t)},styleButton:e.props.styleButton,stylePrimary:e.props.stylePrimary})}),l.default.createElement(P,{onClick:function(){return e.setCurrent(e.state.total)},styleLastPageLink:this.props.styleLastPageLink}))}}]),t}(l.default.Component);x.propTypes={total:p.default.number,current:p.default.number,display:p.default.number,onChange:p.default.func,styleRoot:p.default.object,styleFirstPageLink:p.default.object,styleLastPageLink:p.default.object,styleButton:p.default.object,stylePrimary:p.default.object},x.defaultProps={styleRoot:null,styleFirstPageLink:null,styleLastPageLink:null,styleButton:null,stylePrimary:null},x.displayName="Pagination",t.default=x},function(t,n){t.exports=e},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},a=!0;e.exports=n(5)(o,a)}else e.exports=n(11)()}).call(t,n(4))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function i(){v&&y&&(v=!1,y.length?d=y.concat(d):m=-1,d.length&&u())}function u(){if(!v){var e=o(i);v=!0;for(var t=d.length;t;){for(y=d,d=[];++m<t;)y&&y[m].run();m=-1,t=d.length}y=null,v=!1,a(e)}}function s(e,t){this.fun=e,this.array=t}function c(){}var l,f,p=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var y,d=[],v=!1,m=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new s(e,t)),1!==d.length||v||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r=n(6),o=n(7),a=n(8),i=n(9),u=n(10);e.exports=function(e,n){function s(e){var t=e&&(R&&e[R]||e[_]);if("function"==typeof t)return t}function c(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function l(e){this.message=e,this.stack=""}function f(e){function r(r,c,f,p,y,d,v){if(p=p||N,d=d||f,v!==i)if(n)o(!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");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var m=p+":"+f;!u[m]&&s<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",d,p),u[m]=!0,s++)}return null==c[f]?r?new l(null===c[f]?"The "+y+" `"+d+"` is marked as required "+("in `"+p+"`, but its value is `null`."):"The "+y+" `"+d+"` is marked as required in "+("`"+p+"`, but its value is `undefined`.")):null:e(c,f,p,y,d)}if("production"!==t.env.NODE_ENV)var u={},s=0;var c=r.bind(null,!1);return c.isRequired=r.bind(null,!0),c}function p(e){function t(t,n,r,o,a,i){var u=t[n],s=P(u);if(s!==e){var c=x(u);return new l("Invalid "+o+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return f(t)}function y(){return f(r.thatReturnsNull)}function d(e){function t(t,n,r,o,a){if("function"!=typeof e)return new l("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=t[n];if(!Array.isArray(u)){var s=P(u);return new l("Invalid "+o+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<u.length;c++){var f=e(u,c,r,o,a+"["+c+"]",i);if(f instanceof Error)return f}return null}return f(t)}function v(){function t(t,n,r,o,a){var i=t[n];if(!e(i)){var u=P(i);return new l("Invalid "+o+" `"+a+"` of type "+("`"+u+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return f(t)}function m(e){function t(t,n,r,o,a){if(!(t[n]instanceof e)){var i=e.name||N,u=j(t[n]);return new l("Invalid "+o+" `"+a+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("instance of `"+i+"`."))}return null}return f(t)}function h(e){function n(t,n,r,o,a){for(var i=t[n],u=0;u<e.length;u++)if(c(i,e[u]))return null;var s=JSON.stringify(e);return new l("Invalid "+o+" `"+a+"` of value `"+i+"` "+("supplied to `"+r+"`, expected one of "+s+"."))}return Array.isArray(e)?f(n):("production"!==t.env.NODE_ENV?a(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,r.thatReturnsNull)}function g(e){function t(t,n,r,o,a){if("function"!=typeof e)return new l("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=t[n],s=P(u);if("object"!==s)return new l("Invalid "+o+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."));for(var c in u)if(u.hasOwnProperty(c)){var f=e(u,c,r,o,a+"."+c,i);if(f instanceof Error)return f}return null}return f(t)}function b(e){function n(t,n,r,o,a){for(var u=0;u<e.length;u++){var s=e[u];if(null==s(t,n,r,o,a,i))return null}return new l("Invalid "+o+" `"+a+"` supplied to "+("`"+r+"`."))}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV?a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,r.thatReturnsNull;for(var o=0;o<e.length;o++){var u=e[o];if("function"!=typeof u)return a(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",k(u),o),r.thatReturnsNull}return f(n)}function T(){function e(e,t,n,r,o){return w(e[t])?null:new l("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return f(e)}function E(e){function t(t,n,r,o,a){var u=t[n],s=P(u);if("object"!==s)return new l("Invalid "+o+" `"+a+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."));for(var c in e){var f=e[c];if(f){var p=f(u,c,r,o,a+"."+c,i);if(p)return p}}return null}return f(t)}function w(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(w);if(null===t||e(t))return!0;var n=s(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!w(r.value))return!1}else for(;!(r=o.next()).done;){var a=r.value;if(a&&!w(a[1]))return!1}return!0;default:return!1}}function O(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function P(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":O(t,e)?"symbol":t}function x(e){if("undefined"==typeof e||null===e)return""+e;var t=P(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function k(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function j(e){return e.constructor&&e.constructor.name?e.constructor.name:N}var R="function"==typeof Symbol&&Symbol.iterator,_="@@iterator",N="<<anonymous>>",C={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:y(),arrayOf:d,element:v(),instanceOf:m,node:T(),objectOf:g,oneOf:h,oneOfType:b,shape:E};return l.prototype=Error.prototype,C.checkPropTypes=u,C.PropTypes=C,C}}).call(t,n(4))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";function n(e,t,n,o,a,i,u,s){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,a,i,u,s],f=0;c=new Error(t.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(4))},function(e,t,n){(function(t){"use strict";var r=n(6),o=r;"production"!==t.env.NODE_ENV&&!function(){var e=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}};o=function(t,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!t){for(var r=arguments.length,o=Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];e.apply(void 0,[n].concat(o))}}}(),e.exports=o}).call(t,n(4))},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){(function(t){"use strict";function r(e,n,r,s,c){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var f;try{o("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",s||"React class",r,l),f=e[l](n,l,s,r,null,i)}catch(e){f=e}if(a(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",r,l,typeof f),f instanceof Error&&!(f.message in u)){u[f.message]=!0;var p=c?c():"";a(!1,"Failed %s type: %s%s",r,f.message,null!=p?p:"")}}}if("production"!==t.env.NODE_ENV)var o=n(7),a=n(8),i=n(9),u={};e.exports=r}).call(t,n(4))},function(e,t,n){"use strict";var r=n(6),o=n(7);e.exports=function(){function e(){o(!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 n={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 n.checkPropTypes=r,n.PropTypes=n,n}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("material-ui/FlatButton"),require("material-ui/svg-icons/navigation/first-page"),require("material-ui/svg-icons/navigation/last-page")):"function"==typeof define&&define.amd?define(["react","material-ui/FlatButton","material-ui/svg-icons/navigation/first-page","material-ui/svg-icons/navigation/last-page"],t):"object"==typeof exports?exports["react-component-dev"]=t(require("react"),require("material-ui/FlatButton"),require("material-ui/svg-icons/navigation/first-page"),require("material-ui/svg-icons/navigation/last-page")):e["react-component-dev"]=t(e.React,e["material-ui/FlatButton"],e["material-ui/svg-icons/navigation/first-page"],e["material-ui/svg-icons/navigation/last-page"])}(this,function(e,t,n,r){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=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}}(),s=n(2),c=r(s),f=n(3),p=r(f),y=n(12),d=r(y),v=n(13),m=r(v),h=n(14),g=r(h),b={minWidth:16},E=function(e){var t=e.total,n=e.current,r=e.display,o=t,i=1;if(r<o){var a=Math.round(r/2-.5),u=a;r%2===0&&(a-=1),n<=a+1?o=r:n>=t-u?i=t-r+1:(i=n-a,o=n+u)}return{end:o,start:i}},w=function(e){var t=e.total,n=e.current,r=e.display;return t=t>0?t:1,n=n>0?n:1,r=r>0?r:1,n=n<t?n:t,r=r<t?r:t,{current:n,display:r,total:t}},T=function(e){var t=e.value,n=e.isActive,r=e.onClick,o=e.styleButton,i=e.stylePrimary;return o?c.default.createElement("div",{style:n?i:o,label:t.toString(),onClick:r},t):c.default.createElement(d.default,{style:b,label:t.toString(),primary:n,onClick:r})};T.propTypes={value:p.default.number,isActive:p.default.bool,onClick:p.default.func,styleButton:p.default.object,stylePrimary:p.default.object};var k=function(e){var t=e.onClick,n=e.styleFirstPageLink;return n?c.default.createElement("div",{style:n,onClick:t}):c.default.createElement(d.default,{style:b,icon:c.default.createElement(m.default,null),onClick:t})};k.propTypes={onClick:p.default.func,styleFirstPageLink:p.default.object};var O=function(e){var t=e.onClick,n=e.styleLastPageLink;return n?c.default.createElement("div",{style:n,onClick:t}):c.default.createElement(d.default,{style:b,icon:c.default.createElement(g.default,null),onClick:t})};O.propTypes={onClick:p.default.func,styleLastPageLink:p.default.object};var P=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=w(e);return n.setCurrent=n.setCurrent.bind(n),n.state=u({},r,E(r)),n}return a(t,e),l(t,[{key:"componentWillReceiveProps",value:function(e){var t=w(e);this.setState(u({},t,E(t)))}},{key:"setCurrent",value:function(e){var t=u({},this.state,{current:e});this.props.onChange(e),this.setState(u({},t,E(t)))}},{key:"render",value:function(){for(var e=this,t=[],n=this.state.start;n<=this.state.end;n+=1)t.push(n);return c.default.createElement("div",{style:this.props.styleRoot},c.default.createElement(k,{onClick:function(){return e.setCurrent(1)},styleFirstPageLink:this.props.styleFirstPageLink}),t.map(function(t,n){return c.default.createElement(T,{key:n,value:t,isActive:e.state.current===t,onClick:function(){return e.setCurrent(t)},styleButton:e.props.styleButton,stylePrimary:e.props.stylePrimary})}),c.default.createElement(O,{onClick:function(){return e.setCurrent(e.state.total)},styleLastPageLink:this.props.styleLastPageLink}))}}]),t}(c.default.Component);P.propTypes={total:p.default.number,current:p.default.number,display:p.default.number,onChange:p.default.func,styleRoot:p.default.object,styleFirstPageLink:p.default.object,styleLastPageLink:p.default.object,styleButton:p.default.object,stylePrimary:p.default.object},P.defaultProps={styleRoot:null,styleFirstPageLink:null,styleLastPageLink:null,styleButton:null,stylePrimary:null},P.displayName="Pagination",t.default=P},function(t,n){t.exports=e},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},i=!0;e.exports=n(5)(o,i)}else e.exports=n(11)()}).call(t,n(4))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){v&&y&&(v=!1,y.length?d=y.concat(d):m=-1,d.length&&u())}function u(){if(!v){var e=o(a);v=!0;for(var t=d.length;t;){for(y=d,d=[];++m<t;)y&&y[m].run();m=-1,t=d.length}y=null,v=!1,i(e)}}function l(e,t){this.fun=e,this.array=t}function s(){}var c,f,p=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var y,d=[],v=!1,m=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new l(e,t)),1!==d.length||v||o(u)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=s,p.addListener=s,p.once=s,p.off=s,p.removeListener=s,p.removeAllListeners=s,p.emit=s,p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r=n(6),o=n(7),i=n(8),a=n(9),u=n(10);e.exports=function(e,n){function l(e){var t=e&&(R&&e[R]||e[_]);if("function"==typeof t)return t}function s(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function c(e){this.message=e,this.stack=""}function f(e){function r(r,s,f,p,y,d,v){if(p=p||C,d=d||f,v!==a)if(n)o(!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");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var m=p+":"+f;!u[m]&&l<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",d,p),u[m]=!0,l++)}return null==s[f]?r?new c(null===s[f]?"The "+y+" `"+d+"` is marked as required "+("in `"+p+"`, but its value is `null`."):"The "+y+" `"+d+"` is marked as required in "+("`"+p+"`, but its value is `undefined`.")):null:e(s,f,p,y,d)}if("production"!==t.env.NODE_ENV)var u={},l=0;var s=r.bind(null,!1);return s.isRequired=r.bind(null,!0),s}function p(e){function t(t,n,r,o,i,a){var u=t[n],l=O(u);if(l!==e){var s=P(u);return new c("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return f(t)}function y(){return f(r.thatReturnsNull)}function d(e){function t(t,n,r,o,i){if("function"!=typeof e)return new c("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=t[n];if(!Array.isArray(u)){var l=O(u);return new c("Invalid "+o+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an array."))}for(var s=0;s<u.length;s++){var f=e(u,s,r,o,i+"["+s+"]",a);if(f instanceof Error)return f}return null}return f(t)}function v(){function t(t,n,r,o,i){var a=t[n];if(!e(a)){var u=O(a);return new c("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return f(t)}function m(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||C,u=j(t[n]);return new c("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("instance of `"+a+"`."))}return null}return f(t)}function h(e){function n(t,n,r,o,i){for(var a=t[n],u=0;u<e.length;u++)if(s(a,e[u]))return null;var l=JSON.stringify(e);return new c("Invalid "+o+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+l+"."))}return Array.isArray(e)?f(n):("production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,r.thatReturnsNull)}function g(e){function t(t,n,r,o,i){if("function"!=typeof e)return new c("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=t[n],l=O(u);if("object"!==l)return new c("Invalid "+o+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an object."));for(var s in u)if(u.hasOwnProperty(s)){var f=e(u,s,r,o,i+"."+s,a);if(f instanceof Error)return f}return null}return f(t)}function b(e){function n(t,n,r,o,i){for(var u=0;u<e.length;u++){var l=e[u];if(null==l(t,n,r,o,i,a))return null}return new c("Invalid "+o+" `"+i+"` supplied to "+("`"+r+"`."))}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,r.thatReturnsNull;for(var o=0;o<e.length;o++){var u=e[o];if("function"!=typeof u)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",x(u),o),r.thatReturnsNull}return f(n)}function E(){function e(e,t,n,r,o){return T(e[t])?null:new c("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return f(e)}function w(e){function t(t,n,r,o,i){var u=t[n],l=O(u);if("object"!==l)return new c("Invalid "+o+" `"+i+"` of type `"+l+"` "+("supplied to `"+r+"`, expected `object`."));for(var s in e){var f=e[s];if(f){var p=f(u,s,r,o,i+"."+s,a);if(p)return p}}return null}return f(t)}function T(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(T);if(null===t||e(t))return!0;var n=l(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!T(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!T(i[1]))return!1}return!0;default:return!1}}function k(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function O(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":k(t,e)?"symbol":t}function P(e){if("undefined"==typeof e||null===e)return""+e;var t=O(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=P(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function j(e){return e.constructor&&e.constructor.name?e.constructor.name:C}var R="function"==typeof Symbol&&Symbol.iterator,_="@@iterator",C="<<anonymous>>",N={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:y(),arrayOf:d,element:v(),instanceOf:m,node:E(),objectOf:g,oneOf:h,oneOfType:b,shape:w};return c.prototype=Error.prototype,N.checkPropTypes=u,N.PropTypes=N,N}}).call(t,n(4))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";function n(e,t,n,o,i,a,u,l){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,i,a,u,l],f=0;s=new Error(t.replace(/%s/g,function(){return c[f++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(4))},function(e,t,n){(function(t){"use strict";var r=n(6),o=r;"production"!==t.env.NODE_ENV&&!function(){var e=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};o=function(t,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!t){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];e.apply(void 0,[n].concat(o))}}}(),e.exports=o}).call(t,n(4))},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){(function(t){"use strict";function r(e,n,r,l,s){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var f;try{o("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",l||"React class",r,c),f=e[c](n,c,l,r,null,a)}catch(e){f=e}if(i(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",r,c,typeof f),f instanceof Error&&!(f.message in u)){u[f.message]=!0;var p=s?s():"";i(!1,"Failed %s type: %s%s",r,f.message,null!=p?p:"")}}}if("production"!==t.env.NODE_ENV)var o=n(7),i=n(8),a=n(9),u={};e.exports=r}).call(t,n(4))},function(e,t,n){"use strict";var r=n(6),o=n(7);e.exports=function(){function e(){o(!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 n={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 n.checkPropTypes=r,n.PropTypes=n,n}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r}])});

@@ -15,3 +15,3 @@ {

"main": "dist/index.js",
"version": "1.1.3",
"version": "1.1.4",
"scripts": {

@@ -32,4 +32,3 @@ "prepublish": "better-npm-run build",

"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-tap-event-plugin": "^2.0.1"
"react-dom": "^15.5.4"
},

@@ -36,0 +35,0 @@ "jest": {

@@ -51,7 +51,7 @@ import React from 'react';

primary = { isActive }
onTouchTap = { onClick }
onClick = { onClick }
/>) : (<div
style = { isActive ? stylePrimary : styleButton }
label = { value.toString() }
onTouchTap = { onClick }
onClick = { onClick }
>

@@ -74,6 +74,6 @@ {value}

icon = { <NavigationFirstPage /> }
onTouchTap = { onClick }
onClick = { onClick }
/>) : (<div
style = { styleFirstPageLink }
onTouchTap = { onClick }
onClick = { onClick }
/>);

@@ -91,6 +91,6 @@ };

icon = { <NavigationLastPage /> }
onTouchTap = { onClick }
onClick = { onClick }
/>) : (<div
style = { styleLastPageLink }
onTouchTap = { onClick }
onClick = { onClick }
/>);

@@ -97,0 +97,0 @@ };

@@ -7,11 +7,8 @@ import React from 'react';

import getMuiTheme from 'material-ui/styles/getMuiTheme';
import injectTapEventPlugin from 'react-tap-event-plugin';
import FlatButton from 'material-ui/FlatButton';
import Index from '../dist/index';
injectTapEventPlugin();
const click = wrapper => {
// eslint-disable-next-line react/no-find-dom-node
TestUtils.Simulate.touchTap(ReactDOM.findDOMNode(wrapper.node));
TestUtils.Simulate.click(ReactDOM.findDOMNode(wrapper.node));
};

@@ -18,0 +15,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc