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

react-loader-display

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-loader-display - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

2

package.json
{
"name": "react-loader-display",
"version": "2.1.0",
"version": "2.2.0",
"description": "A simple customizable ReactJS component that allows a developer to display a loading modal.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,5 +17,51 @@ 'use strict';

ForeGroundColor:'white',
TextColor:'black'
TextColor:'black',
DisplayType:'Show'
};
},
componentWillReceiveProps: function(nextProps) {
var DisplayType=nextProps.DisplayType;
var IsLoading=nextProps.IsLoading;
var LoaderRef=$('#LoaderModal');
if(IsLoading)
{
if(DisplayType==="Show")
{
LoaderRef.animate({
'margin-top':'150px'
},1,'swing',function(){
LoaderRef.show(1);
})
}
if(DisplayType==="FadeIn")
{
LoaderRef.animate({
'margin-top':'150px'
},1,'swing',function(){
LoaderRef.fadeIn(300);
})
}
if(DisplayType==="SlideDown")
{
LoaderRef.show(1,function(){
LoaderRef.animate({
'margin-top':'150px'
},300)
});
}
}
if(!IsLoading)
{
LoaderRef.hide(1,function(){
LoaderRef.animate({
'margin-top':'0px'
},1)
})
}
},
propTypes:{

@@ -28,3 +74,4 @@ IsLoading: PropTypes.bool.isRequired,

ForeGroundColor: PropTypes.string,
TextColor: PropTypes.string
TextColor: PropTypes.string,
DisplayType:PropTypes.string
},

@@ -42,3 +89,3 @@ render: function() {

this.props.IsLoading?Style.BackdropVisible:Style.LoaderHidden},[
h('div',{style:Style.Modal},[
h('div',{style:Style.Modal,id:'LoaderModal'},[
h('img',{src:this.props.LoadingImage,style:Style.LoadingImage}),

@@ -45,0 +92,0 @@ h('div',{style:Style.LoadingText},this.props.LoaderMessage)

@@ -22,6 +22,6 @@ var StylesObj={

borderRadius:'5px',
marginTop:150,
paddingTop:30,
paddingBottom:30,
textAlign:'center'
textAlign:'center',
wordBreak:'break-all'
},

@@ -28,0 +28,0 @@ LoadingImage:{

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