Comparing version 0.1.9 to 0.1.10
@@ -23,2 +23,3 @@ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Halogen=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
'use strict'; | ||
var getVendorPropertyName = require('./getVendorPropertyName'); | ||
@@ -79,16 +80,16 @@ | ||
if (prop in div.style) return prop; | ||
if (prop in div.style) return prop; | ||
var prop = prop.charAt(0).toUpperCase() + prop.substr(1); | ||
if(domVendorPrefix){ | ||
return domVendorPrefix + prop; | ||
}else{ | ||
for (var i=0; i<prefixes.length; ++i) { | ||
var vendorProp = prefixes[i] + prop; | ||
if (vendorProp in div.style) { | ||
domVendorPrefix = prefixes[i]; | ||
return vendorProp; | ||
} | ||
} | ||
} | ||
var prop = prop.charAt(0).toUpperCase() + prop.substr(1); | ||
if(domVendorPrefix){ | ||
return domVendorPrefix + prop; | ||
}else{ | ||
for (var i=0; i<prefixes.length; ++i) { | ||
var vendorProp = prefixes[i] + prop; | ||
if (vendorProp in div.style) { | ||
domVendorPrefix = prefixes[i]; | ||
return vendorProp; | ||
} | ||
} | ||
} | ||
} | ||
@@ -95,0 +96,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.Halogen=e()}}(function(){return function e(t,r,i){function n(s,a){if(!r[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return n(r?r:e)},p,p.exports,e,t,r,i)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<i.length;s++)n(i[s]);return n}({1:[function(e,t){t.exports={PulseLoader:e("./PulseLoader"),RotateLoader:e("./RotateLoader"),BeatLoader:e("./BeatLoader"),RiseLoader:e("./RiseLoader"),SyncLoader:e("./SyncLoader"),GridLoader:e("./GridLoader"),ClipLoader:e("./ClipLoader"),SquareLoader:e("./SquareLoader"),DotLoader:e("./DotLoader"),PacmanLoader:e("./PacmanLoader"),MoonLoader:e("./MoonLoader"),RingLoader:e("./RingLoader"),BounceLoader:e("./BounceLoader"),SkewLoader:e("./SkewLoader"),FadeLoader:e("./FadeLoader"),ScaleLoader:e("./ScaleLoader")}},{"./BeatLoader":7,"./BounceLoader":8,"./ClipLoader":9,"./DotLoader":10,"./FadeLoader":11,"./GridLoader":12,"./MoonLoader":13,"./PacmanLoader":14,"./PulseLoader":15,"./RingLoader":16,"./RiseLoader":17,"./RotateLoader":18,"./ScaleLoader":19,"./SkewLoader":20,"./SquareLoader":21,"./SyncLoader":22}],2:[function(e,t){"use strict";var r=e("./getVendorPropertyName");t.exports=function(e){for(var t=Object(e),i=Object.prototype.hasOwnProperty,n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o){var s=Object(o);for(var a in s)i.call(s,a)&&(t[a]=s[a])}}var l={};for(var a in t)l[r(a)]=t[a];return l}},{"./getVendorPropertyName":4}],3:[function(e,t){"use strict";var r;t.exports=function(){if(r)return r;var e=window.getComputedStyle(document.documentElement,""),t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return r="-"+t+"-"}},{}],4:[function(e,t){"use strict";var r,i=document.createElement("div"),n=["Moz","Webkit","O","ms"];t.exports=function(e){if(e in i.style)return e;var e=e.charAt(0).toUpperCase()+e.substr(1);if(r)return r+e;for(var t=0;t<n.length;++t){var o=n[t]+e;if(o in i.style)return r=n[t],o}}},{}],5:[function(e,t){"use strict";var r=e("./insertRule"),i=e("./getVendorPrefix")(),n=0;t.exports=function(e){var t="anim_"+ ++n+ +new Date,o="@"+i+"keyframes "+t+" {";for(var s in e){o+=s+" {";for(var a in e[s]){var l=":"+e[s][a]+";";o+=i+a+l,o+=a+l}o+="}"}return o+="}",r(o),t}},{"./getVendorPrefix":3,"./insertRule":6}],6:[function(e,t){"use strict";var r;t.exports=function(e){r||(r=document.createElement("style"),document.getElementsByTagName("head")[0].appendChild(r),r=r.sheet||r.styleSheet);var t=(r.cssRules||r.rules).length;return r.insertRule(e,t),r}},{}],7:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"50%":{transform:"scale(0.75)",opacity:.2},"100%":{transform:"scale(1)",opacity:1}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"15px",margin:"2px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[a,"0.7s",e%2?"0s":"0.35s","infinite","linear"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return n(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],8:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"0%, 100%":{transform:"scale(0)"},"50%":{transform:"scale(1.0)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"60px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,borderRadius:"100%",opacity:.6,position:"absolute",top:0,left:0}},getAnimationStyle:function(e){var t=[a,"2s",1==e?"1s":"0s","infinite","ease-in-out"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return e?n(this.getBallStyle(e),this.getAnimationStyle(e)):n({width:this.props.size,height:this.props.size,position:"relative"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle()},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}))):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],9:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"0%":{transform:"rotate(0deg) scale(1)"},"50%":{transform:"rotate(180deg) scale(0.8)"},"100%":{transform:"rotate(360deg) scale(1)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"35px"}},getBallStyle:function(){return{width:this.props.size,height:this.props.size,border:"2px solid",borderColor:this.props.color,borderBottomColor:"transparent",borderRadius:"100%",background:"transparent !important"}},getAnimationStyle:function(){var e=[a,"0.75s","0s","infinite","linear"].join(" "),t="both";return{animation:e,animationFillMode:t}},getStyle:function(e){return n(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle()})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],10:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"100%":{transform:"rotate(360deg)"}},a={"0%, 100%":{transform:"scale(0)"},"50%":{transform:"scale(1.0)"}},l=o(s),d=o(a),p=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"60px"}},getBallStyle:function(e){return{backgroundColor:this.props.color,width:e,height:e,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[0==e?l:d,"2s",2==e?"-1s":"0s","infinite","linear"].join(" "),r="forwards";return{animation:t,animationFillMode:r}},getStyle:function(e){var t=parseInt(this.props.size),r=t/2;return e?n(this.getBallStyle(r),this.getAnimationStyle(e),{position:"absolute",top:e%2?0:"auto",bottom:e%2?"auto":0}):n(this.getAnimationStyle(e),{width:t,height:t,position:"relative"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(0)},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}))):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=p}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],11:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"50%":{opacity:.3},"100%":{opacity:1}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,height:i.PropTypes.string,width:i.PropTypes.string,margin:i.PropTypes.string,radius:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",height:"15px",width:"5px",margin:"2px",radius:"2px"}},getLineStyle:function(){return{backgroundColor:this.props.color,height:this.props.height,width:this.props.width,margin:this.props.margin,borderRadius:this.props.radius}},getAnimationStyle:function(e){var t=[a,"1.2s",.12*e+"s","infinite","ease-in-out"].join(" "),r="both";return{animation:t,animationFillMode:r}},getPosStyle:function(e){var t="20",r=t/2+t/5.5,i={l1:{top:t,left:0},l2:{top:r,left:r,transform:"rotate(-45deg)"},l3:{top:0,left:t,transform:"rotate(90deg)"},l4:{top:-r,left:r,transform:"rotate(45deg)"},l5:{top:-t,left:0},l6:{top:-r,left:-r,transform:"rotate(-45deg)"},l7:{top:0,left:-t,transform:"rotate(90deg)"},l8:{top:r,left:-r,transform:"rotate(45deg)"}};return i["l"+e]},getStyle:function(e){return n(this.getLineStyle(e),this.getPosStyle(e),this.getAnimationStyle(e),{position:"absolute"})},renderLoader:function(e){if(e){var t={position:"relative",fontSize:0};return i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:t},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)}),i.createElement("div",{style:this.getStyle(4)}),i.createElement("div",{style:this.getStyle(5)}),i.createElement("div",{style:this.getStyle(6)}),i.createElement("div",{style:this.getStyle(7)}),i.createElement("div",{style:this.getStyle(8)})))}return null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],12:[function(e,t){(function(r){function i(e){return Math.random()*e}var n="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,o=e("react-kit/appendVendorPrefix"),s=e("react-kit/insertKeyframesRule"),a={"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.5)",opacity:.7},"100%":{transform:"scale(1)",opacity:1}},l=s(a),d=n.createClass({displayName:"Loader",propTypes:{loading:n.PropTypes.bool,color:n.PropTypes.string,size:n.PropTypes.string,margin:n.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"15px",margin:"2px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(){var e=i(100)/100+.6+"s",t=i(100)/100-.2+"s",r=[l,e,t,"infinite","ease"].join(" "),n="both";return{animation:r,animationFillMode:n}},getStyle:function(e){return o(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){if(e){var t={width:3*parseFloat(this.props.size)+6*parseFloat(this.props.margin),fontSize:0};return n.createElement("div",{id:this.props.id,className:this.props.className},n.createElement("div",{style:t},n.createElement("div",{style:this.getStyle(1)}),n.createElement("div",{style:this.getStyle(2)}),n.createElement("div",{style:this.getStyle(3)}),n.createElement("div",{style:this.getStyle(4)}),n.createElement("div",{style:this.getStyle(5)}),n.createElement("div",{style:this.getStyle(6)}),n.createElement("div",{style:this.getStyle(7)}),n.createElement("div",{style:this.getStyle(8)}),n.createElement("div",{style:this.getStyle(9)})))}return null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],13:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"100%":{transform:"rotate(360deg)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"60px"}},getBallStyle:function(e){return{width:e,height:e,borderRadius:"100%"}},getAnimationStyle:function(){var e=[a,"0.6s","0s","infinite","linear"].join(" "),t="forwards";return{animation:e,animationFillMode:t}},getStyle:function(e){var t=parseInt(this.props.size),r=t/7;return 1==e?n(this.getBallStyle(r),this.getAnimationStyle(e),{backgroundColor:this.props.color,opacity:"0.8",position:"absolute",top:t/2-r/2}):2==e?n(this.getBallStyle(t),{border:r+"px solid "+this.props.color,opacity:.1}):n(this.getAnimationStyle(e),{position:"relative"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(0)},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}))):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],14:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={},a=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.number,margin:i.PropTypes.number},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:25,margin:2}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(e){var t=this.props.size,r=s[t];if(!r){var i={"75%":{opacity:.7},"100%":{transform:"translate("+-4*t+"px,"+-t/4+"px)"}};r=s[t]=o(i)}var n=[r,"1s",.25*e+"s","infinite","linear"].join(" "),a="both";return{animation:n,animationFillMode:a}},getStyle:function(e){if(1==e){var t=this.props.size+"px solid transparent",r=this.props.size+"px solid "+this.props.color;return{width:0,height:0,borderRight:t,borderTop:r,borderLeft:r,borderBottom:r,borderRadius:this.props.size}}return n(this.getBallStyle(e),this.getAnimationStyle(e),{width:10,height:10,transform:"translate(0, "+-this.props.size/4+"px)",position:"absolute",top:25,left:100})},renderLoader:function(e){if(e){var t={position:"relative",fontSize:0};return i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:t},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)}),i.createElement("div",{style:this.getStyle(4)}),i.createElement("div",{style:this.getStyle(5)})))}return null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],15:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"0%":{transform:"scale(1)",opacity:1},"45%":{transform:"scale(0.1)",opacity:.7},"80%":{transform:"scale(1)",opacity:1}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"15px",margin:"2px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[a,"0.75s",.12*e+"s","infinite","cubic-bezier(.2,.68,.18,1.08)"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return n(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],16:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"0%":{transform:"rotateX(0deg) rotateY(0deg) rotateZ(0deg)"},"100%":{transform:"rotateX(180deg) rotateY(360deg) rotateZ(360deg)"}},a={"0%":{transform:"rotateX(0deg) rotateY(0deg) rotateZ(0deg)"},"100%":{transform:"rotateX(360deg) rotateY(180deg) rotateZ(360deg)"}},l=o(s),d=o(a),p=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"60px"}},getCircleStyle:function(e){return{width:e,height:e,border:e/10+"px solid "+this.props.color,opacity:.4,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[1==e?l:d,"2s","0s","infinite","linear"].join(" "),r="forwards",i="800px";return{perspective:i,animation:t,animationFillMode:r}},getStyle:function(e){var t=parseInt(this.props.size);return e?n(this.getCircleStyle(t),this.getAnimationStyle(e),{position:"absolute",top:0,left:0}):{width:t,height:t,position:"relative"}},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(0)},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}))):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=p}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],17:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s=30,a={"0%":{transform:"scale(1.1)"},25:{transform:"translateY(-"+s+"px)"},"50%":{transform:"scale(0.4)"},"75%":{transform:"translateY("+s+"px)"},"100%":{transform:"translateY(0) scale(1.0)"}},l={"0%":{transform:"scale(0.4)"},25:{transform:"translateY("+s+"px)"},"50%":{transform:"scale(1.1)"},"75%":{transform:"translateY(-"+s+"px)"},"100%":{transform:"translateY(0) scale(0.75)"}},d=o(a),p=o(l),f=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"15px",margin:"2px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[e%2==0?d:p,"1s","0s","infinite","cubic-bezier(.15,.46,.9,.6)"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return n(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)}),i.createElement("div",{style:this.getStyle(4)}),i.createElement("div",{style:this.getStyle(5)})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],18:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"0%":{transform:"rotate(0deg)"},"50%":{transform:"rotate(180deg)"},"100%":{transform:"rotate(360deg)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"15px",margin:"2px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(){var e=[a,"1s","0s","infinite","cubic-bezier(.7,-.13,.22,.86)"].join(" "),t="both";return{animation:e,animationFillMode:t}},getStyle:function(e){return e?n(this.getBallStyle(e),{opacity:"0.8",position:"absolute",top:0,left:e%2?-28:25}):n(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block",position:"relative"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle()},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}))):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],19:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"0%":{transform:"scaley(1.0)"},"50%":{transform:"scaley(0.4)"},"100%":{transform:"scaley(1.0)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,height:i.PropTypes.string,width:i.PropTypes.string,margin:i.PropTypes.string,radius:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",height:"35px",width:"4px",margin:"2px",radius:"2px"}},getLineStyle:function(){return{backgroundColor:this.props.color,height:this.props.height,width:this.props.width,margin:this.props.margin,borderRadius:this.props.radius}},getAnimationStyle:function(e){var t=[a,"1s",.1*e+"s","infinite","cubic-bezier(.2,.68,.18,1.08)"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return n(this.getLineStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)}),i.createElement("div",{style:this.getStyle(4)}),i.createElement("div",{style:this.getStyle(5)})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],20:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"25%":{transform:"perspective(100px) rotateX(180deg) rotateY(0)"},"50%":{transform:"perspective(100px) rotateX(180deg) rotateY(180deg)"},"75%":{transform:"perspective(100px) rotateX(0) rotateY(180deg)"},"100%":{transform:"perspective(100px) rotateX(0) rotateY(0)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"20px"}},getSharpStyle:function(){return{width:0,height:0,borderLeft:this.props.size+" solid transparent",borderRight:this.props.size+" solid transparent",borderBottom:this.props.size+" solid "+this.props.color}},getAnimationStyle:function(){var e=[a,"3s","0s","infinite","cubic-bezier(.09,.57,.49,.9)"].join(" "),t="both";return{animation:e,animationFillMode:t}},getStyle:function(e){return n(this.getSharpStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle()})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],21:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"25%":{transform:"rotateX(180deg) rotateY(0)"},"50%":{transform:"rotateX(180deg) rotateY(180deg)"},"75%":{transform:"rotateX(0) rotateY(180deg)"},"100%":{transform:"rotateX(0) rotateY(0)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"50px"}},getSquareStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size}},getAnimationStyle:function(){var e=[a,"3s","0s","infinite","cubic-bezier(.09,.57,.49,.9)"].join(" "),t="both",r="100px";return{perspective:r,animation:e,animationFillMode:t}},getStyle:function(e){return n(this.getSquareStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle()})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],22:[function(e,t){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"33%":{transform:"translateY(10px)"},"66%":{transform:"translateY(-10px)"},"100%":{transform:"translateY(0)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"15px",margin:"2px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[a,"0.6s",.07*e+"s","infinite","ease-in-out"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return n(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}]},{},[1])(1)}); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.Halogen=e()}}(function(){return function e(t,r,i){function n(s,a){if(!r[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return n(r?r:e)},p,p.exports,e,t,r,i)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<i.length;s++)n(i[s]);return n}({1:[function(e,t,r){t.exports={PulseLoader:e("./PulseLoader"),RotateLoader:e("./RotateLoader"),BeatLoader:e("./BeatLoader"),RiseLoader:e("./RiseLoader"),SyncLoader:e("./SyncLoader"),GridLoader:e("./GridLoader"),ClipLoader:e("./ClipLoader"),SquareLoader:e("./SquareLoader"),DotLoader:e("./DotLoader"),PacmanLoader:e("./PacmanLoader"),MoonLoader:e("./MoonLoader"),RingLoader:e("./RingLoader"),BounceLoader:e("./BounceLoader"),SkewLoader:e("./SkewLoader"),FadeLoader:e("./FadeLoader"),ScaleLoader:e("./ScaleLoader")}},{"./BeatLoader":7,"./BounceLoader":8,"./ClipLoader":9,"./DotLoader":10,"./FadeLoader":11,"./GridLoader":12,"./MoonLoader":13,"./PacmanLoader":14,"./PulseLoader":15,"./RingLoader":16,"./RiseLoader":17,"./RotateLoader":18,"./ScaleLoader":19,"./SkewLoader":20,"./SquareLoader":21,"./SyncLoader":22}],2:[function(e,t,r){"use strict";var i=e("./getVendorPropertyName");t.exports=function(e,t){for(var r=Object(e),n=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var s=arguments[o];if(null!=s){var a=Object(s);for(var l in a)n.call(a,l)&&(r[l]=a[l])}}var d={};for(var l in r)d[i(l)]=r[l];return d}},{"./getVendorPropertyName":4}],3:[function(e,t,r){"use strict";var i;t.exports=function(){if(i)return i;var e=window.getComputedStyle(document.documentElement,""),t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return i="-"+t+"-"}},{}],4:[function(e,t,r){"use strict";var i,n=document.createElement("div"),o=["Moz","Webkit","O","ms"];t.exports=function(e){if(e in n.style)return e;var e=e.charAt(0).toUpperCase()+e.substr(1);if(i)return i+e;for(var t=0;t<o.length;++t){var r=o[t]+e;if(r in n.style)return i=o[t],r}}},{}],5:[function(e,t,r){"use strict";var i=e("./insertRule"),n=e("./getVendorPrefix")(),o=0;t.exports=function(e){var t="anim_"+ ++o+ +new Date,r="@"+n+"keyframes "+t+" {";for(var s in e){r+=s+" {";for(var a in e[s]){var l=":"+e[s][a]+";";r+=n+a+l,r+=a+l}r+="}"}return r+="}",i(r),t}},{"./getVendorPrefix":3,"./insertRule":6}],6:[function(e,t,r){"use strict";var i;t.exports=function(e){i||(i=document.createElement("style"),document.getElementsByTagName("head")[0].appendChild(i),i=i.sheet||i.styleSheet);var t=(i.cssRules||i.rules).length;return i.insertRule(e,t),i}},{}],7:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"50%":{transform:"scale(0.75)",opacity:.2},"100%":{transform:"scale(1)",opacity:1}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"15px",margin:"2px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[a,"0.7s",e%2?"0s":"0.35s","infinite","linear"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return n(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],8:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"0%, 100%":{transform:"scale(0)"},"50%":{transform:"scale(1.0)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"60px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,borderRadius:"100%",opacity:.6,position:"absolute",top:0,left:0}},getAnimationStyle:function(e){var t=[a,"2s",1==e?"1s":"0s","infinite","ease-in-out"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return e?n(this.getBallStyle(e),this.getAnimationStyle(e)):n({width:this.props.size,height:this.props.size,position:"relative"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle()},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}))):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],9:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"0%":{transform:"rotate(0deg) scale(1)"},"50%":{transform:"rotate(180deg) scale(0.8)"},"100%":{transform:"rotate(360deg) scale(1)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"35px"}},getBallStyle:function(){return{width:this.props.size,height:this.props.size,border:"2px solid",borderColor:this.props.color,borderBottomColor:"transparent",borderRadius:"100%",background:"transparent !important"}},getAnimationStyle:function(e){var t=[a,"0.75s","0s","infinite","linear"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return n(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle()})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],10:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"100%":{transform:"rotate(360deg)"}},a={"0%, 100%":{transform:"scale(0)"},"50%":{transform:"scale(1.0)"}},l=o(s),d=o(a),p=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"60px"}},getBallStyle:function(e){return{backgroundColor:this.props.color,width:e,height:e,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[0==e?l:d,"2s",2==e?"-1s":"0s","infinite","linear"].join(" "),r="forwards";return{animation:t,animationFillMode:r}},getStyle:function(e){var t=parseInt(this.props.size),r=t/2;return e?n(this.getBallStyle(r),this.getAnimationStyle(e),{position:"absolute",top:e%2?0:"auto",bottom:e%2?"auto":0}):n(this.getAnimationStyle(e),{width:t,height:t,position:"relative"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(0)},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}))):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=p}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],11:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"50%":{opacity:.3},"100%":{opacity:1}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,height:i.PropTypes.string,width:i.PropTypes.string,margin:i.PropTypes.string,radius:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",height:"15px",width:"5px",margin:"2px",radius:"2px"}},getLineStyle:function(e){return{backgroundColor:this.props.color,height:this.props.height,width:this.props.width,margin:this.props.margin,borderRadius:this.props.radius}},getAnimationStyle:function(e){var t=[a,"1.2s",.12*e+"s","infinite","ease-in-out"].join(" "),r="both";return{animation:t,animationFillMode:r}},getPosStyle:function(e){var t="20",r=t/2+t/5.5,i={l1:{top:t,left:0},l2:{top:r,left:r,transform:"rotate(-45deg)"},l3:{top:0,left:t,transform:"rotate(90deg)"},l4:{top:-r,left:r,transform:"rotate(45deg)"},l5:{top:-t,left:0},l6:{top:-r,left:-r,transform:"rotate(-45deg)"},l7:{top:0,left:-t,transform:"rotate(90deg)"},l8:{top:r,left:-r,transform:"rotate(45deg)"}};return i["l"+e]},getStyle:function(e){return n(this.getLineStyle(e),this.getPosStyle(e),this.getAnimationStyle(e),{position:"absolute"})},renderLoader:function(e){if(e){var t={position:"relative",fontSize:0};return i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:t},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)}),i.createElement("div",{style:this.getStyle(4)}),i.createElement("div",{style:this.getStyle(5)}),i.createElement("div",{style:this.getStyle(6)}),i.createElement("div",{style:this.getStyle(7)}),i.createElement("div",{style:this.getStyle(8)})))}return null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],12:[function(e,t,r){(function(r){function i(e){return Math.random()*e}var n="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,o=e("react-kit/appendVendorPrefix"),s=e("react-kit/insertKeyframesRule"),a={"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.5)",opacity:.7},"100%":{transform:"scale(1)",opacity:1}},l=s(a),d=n.createClass({displayName:"Loader",propTypes:{loading:n.PropTypes.bool,color:n.PropTypes.string,size:n.PropTypes.string,margin:n.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"15px",margin:"2px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(e){var t=i(100)/100+.6+"s",r=i(100)/100-.2+"s",n=[l,t,r,"infinite","ease"].join(" "),o="both";return{animation:n,animationFillMode:o}},getStyle:function(e){return o(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){if(e){var t={width:3*parseFloat(this.props.size)+6*parseFloat(this.props.margin),fontSize:0};return n.createElement("div",{id:this.props.id,className:this.props.className},n.createElement("div",{style:t},n.createElement("div",{style:this.getStyle(1)}),n.createElement("div",{style:this.getStyle(2)}),n.createElement("div",{style:this.getStyle(3)}),n.createElement("div",{style:this.getStyle(4)}),n.createElement("div",{style:this.getStyle(5)}),n.createElement("div",{style:this.getStyle(6)}),n.createElement("div",{style:this.getStyle(7)}),n.createElement("div",{style:this.getStyle(8)}),n.createElement("div",{style:this.getStyle(9)})))}return null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],13:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"100%":{transform:"rotate(360deg)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"60px"}},getBallStyle:function(e){return{width:e,height:e,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[a,"0.6s","0s","infinite","linear"].join(" "),r="forwards";return{animation:t,animationFillMode:r}},getStyle:function(e){var t=parseInt(this.props.size),r=t/7;return 1==e?n(this.getBallStyle(r),this.getAnimationStyle(e),{backgroundColor:this.props.color,opacity:"0.8",position:"absolute",top:t/2-r/2}):2==e?n(this.getBallStyle(t),{border:r+"px solid "+this.props.color,opacity:.1}):n(this.getAnimationStyle(e),{position:"relative"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(0)},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}))):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],14:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={},a=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.number,margin:i.PropTypes.number},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:25,margin:2}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(e){var t=this.props.size,r=s[t];if(!r){var i={"75%":{opacity:.7},"100%":{transform:"translate("+-4*t+"px,"+-t/4+"px)"}};r=s[t]=o(i)}var n=[r,"1s",.25*e+"s","infinite","linear"].join(" "),a="both";return{animation:n,animationFillMode:a}},getStyle:function(e){if(1==e){var t=this.props.size+"px solid transparent",r=this.props.size+"px solid "+this.props.color;return{width:0,height:0,borderRight:t,borderTop:r,borderLeft:r,borderBottom:r,borderRadius:this.props.size}}return n(this.getBallStyle(e),this.getAnimationStyle(e),{width:10,height:10,transform:"translate(0, "+-this.props.size/4+"px)",position:"absolute",top:25,left:100})},renderLoader:function(e){if(e){var t={position:"relative",fontSize:0};return i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:t},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)}),i.createElement("div",{style:this.getStyle(4)}),i.createElement("div",{style:this.getStyle(5)})))}return null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],15:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"0%":{transform:"scale(1)",opacity:1},"45%":{transform:"scale(0.1)",opacity:.7},"80%":{transform:"scale(1)",opacity:1}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"15px",margin:"2px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[a,"0.75s",.12*e+"s","infinite","cubic-bezier(.2,.68,.18,1.08)"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return n(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],16:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"0%":{transform:"rotateX(0deg) rotateY(0deg) rotateZ(0deg)"},"100%":{transform:"rotateX(180deg) rotateY(360deg) rotateZ(360deg)"}},a={"0%":{transform:"rotateX(0deg) rotateY(0deg) rotateZ(0deg)"},"100%":{transform:"rotateX(360deg) rotateY(180deg) rotateZ(360deg)"}},l=o(s),d=o(a),p=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"60px"}},getCircleStyle:function(e){return{width:e,height:e,border:e/10+"px solid "+this.props.color,opacity:.4,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[1==e?l:d,"2s","0s","infinite","linear"].join(" "),r="forwards",i="800px";return{perspective:i,animation:t,animationFillMode:r}},getStyle:function(e){var t=parseInt(this.props.size);return e?n(this.getCircleStyle(t),this.getAnimationStyle(e),{position:"absolute",top:0,left:0}):{width:t,height:t,position:"relative"}},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(0)},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}))):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=p}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],17:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s=30,a={"0%":{transform:"scale(1.1)"},25:{transform:"translateY(-"+s+"px)"},"50%":{transform:"scale(0.4)"},"75%":{transform:"translateY("+s+"px)"},"100%":{transform:"translateY(0) scale(1.0)"}},l={"0%":{transform:"scale(0.4)"},25:{transform:"translateY("+s+"px)"},"50%":{transform:"scale(1.1)"},"75%":{transform:"translateY(-"+s+"px)"},"100%":{transform:"translateY(0) scale(0.75)"}},d=o(a),p=o(l),f=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"15px",margin:"2px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[e%2==0?d:p,"1s","0s","infinite","cubic-bezier(.15,.46,.9,.6)"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return n(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)}),i.createElement("div",{style:this.getStyle(4)}),i.createElement("div",{style:this.getStyle(5)})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],18:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"0%":{transform:"rotate(0deg)"},"50%":{transform:"rotate(180deg)"},"100%":{transform:"rotate(360deg)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"15px",margin:"2px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[a,"1s","0s","infinite","cubic-bezier(.7,-.13,.22,.86)"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return e?n(this.getBallStyle(e),{opacity:"0.8",position:"absolute",top:0,left:e%2?-28:25}):n(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block",position:"relative"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle()},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}))):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],19:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"0%":{transform:"scaley(1.0)"},"50%":{transform:"scaley(0.4)"},"100%":{transform:"scaley(1.0)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,height:i.PropTypes.string,width:i.PropTypes.string,margin:i.PropTypes.string,radius:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",height:"35px",width:"4px",margin:"2px",radius:"2px"}},getLineStyle:function(){return{backgroundColor:this.props.color,height:this.props.height,width:this.props.width,margin:this.props.margin,borderRadius:this.props.radius}},getAnimationStyle:function(e){var t=[a,"1s",.1*e+"s","infinite","cubic-bezier(.2,.68,.18,1.08)"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return n(this.getLineStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)}),i.createElement("div",{style:this.getStyle(4)}),i.createElement("div",{style:this.getStyle(5)})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],20:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"25%":{transform:"perspective(100px) rotateX(180deg) rotateY(0)"},"50%":{transform:"perspective(100px) rotateX(180deg) rotateY(180deg)"},"75%":{transform:"perspective(100px) rotateX(0) rotateY(180deg)"},"100%":{transform:"perspective(100px) rotateX(0) rotateY(0)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"20px"}},getSharpStyle:function(){return{width:0,height:0,borderLeft:this.props.size+" solid transparent",borderRight:this.props.size+" solid transparent",borderBottom:this.props.size+" solid "+this.props.color}},getAnimationStyle:function(e){var t=[a,"3s","0s","infinite","cubic-bezier(.09,.57,.49,.9)"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return n(this.getSharpStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle()})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],21:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"25%":{transform:"rotateX(180deg) rotateY(0)"},"50%":{transform:"rotateX(180deg) rotateY(180deg)"},"75%":{transform:"rotateX(0) rotateY(180deg)"},"100%":{transform:"rotateX(0) rotateY(0)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"50px"}},getSquareStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size}},getAnimationStyle:function(e){var t=[a,"3s","0s","infinite","cubic-bezier(.09,.57,.49,.9)"].join(" "),r="both",i="100px";return{perspective:i,animation:t,animationFillMode:r}},getStyle:function(e){return n(this.getSquareStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle()})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}],22:[function(e,t,r){(function(r){var i="undefined"!=typeof window?window.React:"undefined"!=typeof r?r.React:null,n=e("react-kit/appendVendorPrefix"),o=e("react-kit/insertKeyframesRule"),s={"33%":{transform:"translateY(10px)"},"66%":{transform:"translateY(-10px)"},"100%":{transform:"translateY(0)"}},a=o(s),l=i.createClass({displayName:"Loader",propTypes:{loading:i.PropTypes.bool,color:i.PropTypes.string,size:i.PropTypes.string,margin:i.PropTypes.string},getDefaultProps:function(){return{loading:!0,color:"#ffffff",size:"15px",margin:"2px"}},getBallStyle:function(){return{backgroundColor:this.props.color,width:this.props.size,height:this.props.size,margin:this.props.margin,borderRadius:"100%"}},getAnimationStyle:function(e){var t=[a,"0.6s",.07*e+"s","infinite","ease-in-out"].join(" "),r="both";return{animation:t,animationFillMode:r}},getStyle:function(e){return n(this.getBallStyle(e),this.getAnimationStyle(e),{display:"inline-block"})},renderLoader:function(e){return e?i.createElement("div",{id:this.props.id,className:this.props.className},i.createElement("div",{style:this.getStyle(1)}),i.createElement("div",{style:this.getStyle(2)}),i.createElement("div",{style:this.getStyle(3)})):null},render:function(){return this.renderLoader(this.props.loading)}});t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"react-kit/appendVendorPrefix":2,"react-kit/insertKeyframesRule":5}]},{},[1])(1)}); |
{ | ||
"name": "halogen", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "A collection of loading spinners with React.js", | ||
@@ -50,3 +50,3 @@ "main": "Halogen.js", | ||
"scripts": { | ||
"test": "echo \"no tests yet\" && exit 0" | ||
"release": "gulp release" | ||
}, | ||
@@ -53,0 +53,0 @@ "keywords": [ |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
185184
3