Smart UI

                
                    sui.alert('This is alert.');
                
            
                
                    sui.prompt('Please enter your phone number').then((rs)=>{
                        sui.alert(rs);
                    }, ()=>{
                        sui.alert('cancel');
                    });
                
            
                
                    sui.prompt({
                        message: 'Please enter your phone number',
                        pattern:'\\d',
                        maxLength: 12,
                        theme: 'default',
                        action: function(val){
                            let deferred = jQuery.Deferred();
                            setTimeout(deferred.resolve, 4000);
                            return deferred.promise();
                        }
                    }).then((rs)=>{
                        sui.alert(rs);
                    }, ()=>{
                        sui.alert('cancel');
                    });
                
            
                
                sui.masterPassword({
                    title:'ENTER YOUR MASTER PASSWORD',
                    theme: 'default',
                    autoSubmit: false,
                    button: { type:'primary', text: 'OK'},
                    action: function(val){
                        let deferred = jQuery.Deferred();
                        setTimeout(deferred.resolve, 3000);
                        return deferred.promise();
                    },
                    message:'The passwords of your connections will be stored encrypted in our database, a master password will be used to access the passwords.'
                }).then((rs, dialog)=>{
                    sui.alert(rs);
                }, ()=>{
                    sui.alert('cancel');
                });
                
            
                
                sui.masterPassword({
                    title:'ENTER YOUR MASTER PASSWORD',
                    theme: 'default',
                    autoSubmit: false,
                    button: { type:'primary', text: 'OK'},
                    action: function(val){
                        let deferred = jQuery.Deferred();
                        setTimeout(deferred.resolve, 3000);
                        return deferred.promise();
                    },
                    message:'The passwords of your connections will be stored encrypted in our database, a master password will be used to access the passwords.'
                }).then((rs, dialog)=>{
                    sui.alert(rs);
                }, ()=>{
                    sui.alert('cancel');
                });
                
            

                
                    sui.alert({message: 'This is alert.', theme:'warning', button: { type:'warning', text: 'OK'},});
                
            
                
                    sui.alert({message: 'This is alert.', theme:'success'});
                
            
                
                        sui.alert({message: 'This is alert.', theme:'danger', type:'warning'});