UNPKG

renta-ng-lib

Version:

Renta Solutions Angular Component Library

2 lines 2.23 kB
!function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/common"),require("@angular/core")):"function"==typeof define&&define.amd?define("renta-ng-lib",["exports","@angular/common","@angular/core"],o):o(t["renta-ng-lib"]={},t.ng.common,t.ng.core)}(this,function(t,o,e){"use strict";var r=function(){function t(){this.backgroundColor="#5a5499",this.textColor="black"}return t.decorators=[{type:e.Component,args:[{selector:"renta-avatar",template:'<div class="profile-picture" role="button">\n <div class="avatar-circle" [ngStyle]="{\'backgroundColor\': backgroundColor}" style="background-image: none;">\n <span class="initials" [ngStyle]="{\'color\': textColor, \'fontWeight\': \'bold\'}">{{ initials }}</span>\n </div>\n</div>',styles:["@import url(https://fonts.googleapis.com/css?family=Montserrat);.profile-picture{cursor:pointer}.avatar-circle{width:50px;height:50px;background:linear-gradient(72deg,#385a8d,#545597);text-align:center;border-radius:50%}.initials{font-size:1em;font-family:Montserrat,sans-serif;position:relative;top:16px}"]}]}],t.propDecorators={initials:[{type:e.Input}],backgroundColor:[{type:e.Input}],textColor:[{type:e.Input}]},t}(),n=function(){function t(){this.disabled=!1,this.type="submit",this.color="#FFA173"}return t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"renta-button",template:'<button [disabled]=\'disabled\' [type]="type" [ngStyle]="{\'backgroundColor\': color}" class="btn">\n <ng-content></ng-content>\n</button>',styles:["button{border:none;padding:10px;background-color:orange;color:#fff;width:100%;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px}button:hover{box-shadow:0 1px 20px 0 rgba(98,105,115,.19);cursor:pointer}"]}]}],t.ctorParameters=function(){return[]},t.propDecorators={disabled:[{type:e.Input}],type:[{type:e.Input}],color:[{type:e.Input}]},t}(),a=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[r,n],imports:[o.CommonModule],exports:[r,n]}]}],t}();t.RentaNgLibModule=a,t.ɵa=r,t.ɵb=n,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=renta-ng-lib.umd.min.js.map