Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-react-ripple

Package Overview
Dependencies
Maintainers
1
Versions
1245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-react-ripple - npm Package Compare versions

Comparing version 0.6.0-dev.201804101746 to 0.6.0-dev.201804241055

2

dist/cdn/js/kendo-react-ripple.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react")):"function"==typeof define&&define.amd?define(["prop-types","react"],t):"object"==typeof exports?exports.KendoReactRipple=t(require("prop-types"),require("react")):e.KendoReactRipple=t(e["prop-types"],e.React)}(window,function(e,t){return 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,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=4)}([function(e,t,n){"use strict";n.r(t);var r=function(e,t,n){var r=function(){n(),e.removeEventListener(t,r,!1)},o=function(){return e.addEventListener(t,r,!1)};return o(),{remove:o}},o=function(e){e.animated=!0,c(e)},i=function(e){e.released=!0,c(e)},c=function(e){if(e.released&&e.animated){var t=e.blob,n=e.ripple,o=e.container;o&&r(o,"blur",function(){return o.classList.remove("k-ripple-target")}),t&&(r(t,"transitionend",function(){n&&n.parentNode&&n.parentNode.removeChild(n)}),t.style.transition="opacity 200ms linear",t.style.opacity="0")}},s=function(e,t){var n,c=(n=t.map(function(t){var n={events:["mousedown","touchdown"],global:!1},c=t.selector,s=t.options,u=void 0===s?n:s,a=function(e,t){return function(n){var c,s=n.target,u=s.document||s.ownerDocument;if((c=t.container?t.container(s):function(e,t){if(e.closest)return e.closest(t);var n=(e.document||e.ownerDocument).querySelectorAll(t),r=e,o=0;do{for(o=n.length-1;o>=0&&n.item(o)!==r;)o-=1;if(o<0)break;r=r.parentElement}while(r);return r}(s,e))&&(!/focus/i.test(n.type)||!c.classList.contains("k-ripple-target"))){c.classList.add("k-ripple-target");var a=function(e){var t=e.createElement("div");t.className="k-ripple";var n=e.createElement("div");return n.className="k-ripple-blob",t.appendChild(n),[t,n]}(u),p=a[0],l=a[1],f={animated:!1,released:!1,blob:l,container:c,ripple:p},d={focusin:"focusout",keydown:"keyup",mousedown:"mouseup",pointerdown:"pointerup",touchdown:"touchup"}[n.type];r(n.currentTarget,d,function(){return i(f)}),c.appendChild(p),window.getComputedStyle(p).getPropertyValue("opacity");var m=c.getBoundingClientRect(),v=0,h=0;/mouse|pointer|touch/.test(n.type)?(v=n.clientX-m.left,h=n.clientY-m.top):(v=m.width/2,h=m.height/2);var y=v-(v<m.width/2?m.width:0),b=h-(h<m.height/2?m.height:0),g=2*Math.sqrt(y*y+b*b);l.style.cssText="\n transform: translate(-50%, -50%) scale(1);\n width: "+g+"px;\n height: "+g+"px;\n left: "+v+"px;\n top: "+h+"px;\n ",setTimeout(function(){return o(f)},500)}}}(c,u),p=u.events||n.events,l=u.global?document.body:e;return p.forEach(function(e){return l.addEventListener(e,a,!1)}),{events:p,activator:a}}),[].concat.apply([],n));return function(){e&&(c.forEach(function(t){var n=t.events,r=t.activator;return n.forEach(function(t){return e.removeEventListener(t,r,!1)})}),e=null)}};n.d(t,"register",function(){return s})},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),c=n(1),s=n(0),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t.removeListeners=function(){},t.registerListeners=function(){var e=t._element;t.removeListeners();var n=s.register(e,[{selector:".k-button:not(li)"},{selector:".k-list>.k-item",options:{global:!0}},{selector:".k-checkbox-label,.k-radio-label"},{selector:".k-checkbox,.k-radio",options:{events:["focusin"],container:function(e){if(/\b(k-checkbox|k-radio)\b/.test(e.className))return e.nextElementSibling}}}]);t.removeListeners=n},t}return o(t,e),t.prototype.componentDidMount=function(){this.registerListeners()},t.prototype.componentWillReceiveProps=function(e){e.disabled?this.removeListeners():this.registerListeners()},t.prototype.componentWillUnmount=function(){this.removeListeners()},t.prototype.render=function(){var e=this,t=this.props.className?"k-ripple-container "+this.props.className:"k-ripple-container";return i.createElement("span",{className:t,ref:function(t){e._element=t}},this.props.children)},t.propTypes={disabled:c.bool},t}(i.PureComponent);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.Ripple=r.default}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react")):"function"==typeof define&&define.amd?define(["prop-types","react"],t):"object"==typeof exports?exports.KendoReactRipple=t(require("prop-types"),require("react")):e.KendoReactRipple=t(e.PropTypes,e.React)}(window,function(e,t){return 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,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=4)}([function(e,t,n){"use strict";n.r(t);var r=function(e,t,n){var r=function(){n(),e.removeEventListener(t,r,!1)},o=function(){return e.addEventListener(t,r,!1)};return o(),{remove:o}},o=function(e){e.animated=!0,c(e)},i=function(e){e.released=!0,c(e)},c=function(e){if(e.released&&e.animated){var t=e.blob,n=e.ripple,o=e.container;o&&r(o,"blur",function(){return o.classList.remove("k-ripple-target")}),t&&(r(t,"transitionend",function(){n&&n.parentNode&&n.parentNode.removeChild(n)}),t.style.transition="opacity 200ms linear",t.style.opacity="0")}},s=function(e,t){var n,c=(n=t.map(function(t){var n={events:["mousedown","touchdown"],global:!1},c=t.selector,s=t.options,u=void 0===s?n:s,a=function(e,t){return function(n){var c,s=n.target,u=s.document||s.ownerDocument;if((c=t.container?t.container(s):function(e,t){if(e.closest)return e.closest(t);var n=(e.document||e.ownerDocument).querySelectorAll(t),r=e,o=0;do{for(o=n.length-1;o>=0&&n.item(o)!==r;)o-=1;if(o<0)break;r=r.parentElement}while(r);return r}(s,e))&&(!/focus/i.test(n.type)||!c.classList.contains("k-ripple-target"))){c.classList.add("k-ripple-target");var a=function(e){var t=e.createElement("div");t.className="k-ripple";var n=e.createElement("div");return n.className="k-ripple-blob",t.appendChild(n),[t,n]}(u),p=a[0],l=a[1],f={animated:!1,released:!1,blob:l,container:c,ripple:p},d={focusin:"focusout",keydown:"keyup",mousedown:"mouseup",pointerdown:"pointerup",touchdown:"touchup"}[n.type];r(n.currentTarget,d,function(){return i(f)}),c.appendChild(p),window.getComputedStyle(p).getPropertyValue("opacity");var m=c.getBoundingClientRect(),v=0,h=0;/mouse|pointer|touch/.test(n.type)?(v=n.clientX-m.left,h=n.clientY-m.top):(v=m.width/2,h=m.height/2);var y=v-(v<m.width/2?m.width:0),b=h-(h<m.height/2?m.height:0),g=2*Math.sqrt(y*y+b*b);l.style.cssText="\n transform: translate(-50%, -50%) scale(1);\n width: "+g+"px;\n height: "+g+"px;\n left: "+v+"px;\n top: "+h+"px;\n ",setTimeout(function(){return o(f)},500)}}}(c,u),p=u.events||n.events,l=u.global?document.body:e;return p.forEach(function(e){return l.addEventListener(e,a,!1)}),{events:p,activator:a}}),[].concat.apply([],n));return function(){e&&(c.forEach(function(t){var n=t.events,r=t.activator;return n.forEach(function(t){return e.removeEventListener(t,r,!1)})}),e=null)}};n.d(t,"register",function(){return s})},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),c=n(1),s=n(0),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t.removeListeners=function(){},t.registerListeners=function(){var e=t._element;t.removeListeners();var n=s.register(e,[{selector:".k-button:not(li)"},{selector:".k-list>.k-item",options:{global:!0}},{selector:".k-checkbox-label,.k-radio-label"},{selector:".k-checkbox,.k-radio",options:{events:["focusin"],container:function(e){if(/\b(k-checkbox|k-radio)\b/.test(e.className))return e.nextElementSibling}}}]);t.removeListeners=n},t}return o(t,e),t.prototype.componentDidMount=function(){this.registerListeners()},t.prototype.componentWillReceiveProps=function(e){e.disabled?this.removeListeners():this.registerListeners()},t.prototype.componentWillUnmount=function(){this.removeListeners()},t.prototype.render=function(){var e=this,t=this.props.className?"k-ripple-container "+this.props.className:"k-ripple-container";return i.createElement("span",{className:t,ref:function(t){e._element=t}},this.props.children)},t.propTypes={disabled:c.bool},t}(i.PureComponent);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.Ripple=r.default}])});
{
"name": "@progress/kendo-react-ripple",
"description": "Kendo UI for React Ripple package",
"version": "0.6.0-dev.201804101746",
"version": "0.6.0-dev.201804241055",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

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