UNPKG

@rocketspark/domain-checker

Version:
13 lines 1.79 kB
/*! * * @rocketspark/domain-checker v1.0.12 * git+https://github.com/rocketspark/domain-checker.git * * Copyright (c) Lee Reichardt and project contributors. * * This source code is licensed under the no license license found in the * LICENSE file in the root directory of this source tree. * */ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[17],{2017:function(r,e,t){t.r(e),t.d(e,{rs_progress_bar:function(){return i}});var s=t(6919);const i=class{constructor(r){(0,s.r)(this,r),this.size="default",this.type="determinate",this.value=0,this.color="primary-700"}render(){return(0,s.h)(s.H,{key:"a4edc43166a5f05ab744d64b1eb92cae9a84f255",class:{"progress-determinate":"determinate"===this.type,"progress-indeterminate":"indeterminate"===this.type},style:{height:"large"===this.size?"8px":null,borderRadius:"large"===this.size?"8px":null}},(0,s.h)("div",{key:"f2cda8f7e441b07fc80882c4df689db479368f21",class:"progress-bar__loader",style:{width:`${this.value}%`,height:"large"===this.size?"8px":null,borderRadius:"large"===this.size?"8px":null,backgroundColor:`var(--rs-color-${this.color})`}}))}};i.style=":host{display:flex;align-items:center;justify-content:start;width:100%;height:4px;border-radius:4px;background-color:var(--rs-color-light)}:host .progress-bar__loader{height:4px;border-radius:4px;background-color:var(--rs-color-primary-700)}:host(.progress-determinate) .progress-bar__loader{transition:width 0.2s linear}:host(.progress-indeterminate) .progress-bar__loader{width:100%;animation:load 5s linear}@keyframes load{0%{width:0}10%{width:5%}20%{width:15%}30%{width:25%}40%{width:30%}50%{width:45%}60%{width:50%}70%{width:75%}80%{width:85%}90%{width:95%}100%{width:100%}}"}}]); //# sourceMappingURL=17.index.js.map