@patternfly/pfe-progress-indicator
Advanced tools
Comparing version 2.0.0-next.0 to 2.0.0-next.1
{ | ||
"name": "@patternfly/pfe-progress-indicator", | ||
"license": "MIT", | ||
"version": "2.0.0-next.0", | ||
"version": "2.0.0-next.1", | ||
"description": "Progress element for PatternFly Elements", | ||
@@ -12,10 +12,4 @@ "customElements": "custom-elements.json", | ||
"exports": { | ||
".": { | ||
"esbuild": "./pfe-progress-indicator.ts", | ||
"default": "./pfe-progress-indicator.js" | ||
}, | ||
"./*": { | ||
"esbuild": "./*.ts", | ||
"default": "./*.js" | ||
} | ||
".": "./pfe-progress-indicator.js", | ||
"./*": "./*.js" | ||
}, | ||
@@ -77,5 +71,5 @@ "publishConfig": { | ||
"dependencies": { | ||
"@patternfly/pfe-core": "^2.0.0-next.0", | ||
"@patternfly/pfe-core": "^2.0.0-next.3", | ||
"lit": "^2.1.2" | ||
} | ||
} |
@@ -1,72 +0,2 @@ | ||
var h=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var r=(a,i,n,o)=>{for(var t=o>1?void 0:o?m(i,n):i,s=a.length-1,d;s>=0;s--)(d=a[s])&&(t=(o?d(i,n,t):d(t))||t);return o&&t&&h(i,n,t),t};import{LitElement as g,html as b}from"lit";import{customElement as v,property as l}from"lit/decorators.js";import{pfelement as x,initializer as w}from"@patternfly/pfe-core/decorators.js";import{css as c}from"lit";var f=c`:host([indeterminate]) span { | ||
position: absolute; | ||
overflow: hidden; | ||
clip: rect(0, 0, 0, 0); | ||
height: 1px; | ||
width: 1px; | ||
margin: -1px; | ||
padding: 0; | ||
border: 0; | ||
} | ||
:host([indeterminate]) span { | ||
position: absolute; | ||
overflow: hidden; | ||
clip: rect(0, 0, 0, 0); | ||
height: 1px; | ||
width: 1px; | ||
margin: -1px; | ||
padding: 0; | ||
border: 0; | ||
} | ||
:host([hidden]) { | ||
display: none; | ||
} | ||
:host([indeterminate]) { | ||
animation: spin 1s linear infinite; | ||
-webkit-animation: spin 1s linear infinite; | ||
-moz-animation: spin 1s linear infinite; | ||
border-style: var(--pfe-theme--surface--border-style, solid); | ||
border-width: var(--pfe-theme--surface--border-width--heavy, 4px); | ||
border-color: var(--pfe-progress-indicator--background-color, rgba(0, 0, 0, 0.25)); | ||
border-top-color: var(--pfe-progress-indicator--foreground-color, rgba(0, 0, 0, 0.75)); | ||
border-radius: 100%; | ||
display: inline-block; | ||
height: var(--pfe-progress-indicator--Height, 2rem); | ||
margin: 0 auto; | ||
position: relative; | ||
width: var(--pfe-progress-indicator--Width, 2rem); | ||
vertical-align: middle; | ||
visibility: visible; | ||
} | ||
:host([size=sm]) { | ||
height: 1rem; | ||
width: 1rem; | ||
border-width: calc(var(--pfe-theme--surface--border-width--heavy, 4px) * .75); | ||
} | ||
:host([size=md]) { | ||
height: 2rem; | ||
width: 2rem; | ||
border-width: calc(var(--pfe-theme--surface--border-width--heavy, 4px) * 1); | ||
} | ||
:host([size=xl]) { | ||
height: 4rem; | ||
width: 4rem; | ||
border-width: calc(var(--pfe-theme--surface--border-width--heavy, 4px) * 1.5); | ||
} | ||
@keyframes spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
}`,p=f;import{Logger as u}from"@patternfly/pfe-core/controllers/logger.js";var e=class extends g{constructor(){super(...arguments);this.logger=new u(this);this.indeterminate=!1;this.size="md"}render(){return b` | ||
<span><slot @slotchange="${this._init}"></slot></span> | ||
`}_init(){if(this.isConnected){let[i]=this.children;!i&&!this.textContent?.trim()&&this.logger.warn("You do not have a backup loading message.")}}};e.version="2.0.0-next.0",e.styles=[p],r([l({type:Boolean,reflect:!0})],e.prototype,"indeterminate",2),r([l({reflect:!0})],e.prototype,"size",2),r([w({observe:!1})],e.prototype,"_init",1),e=r([v("pfe-progress-indicator"),x()],e);export{e as PfeProgressIndicator}; | ||
var h=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var r=(a,t,n,o)=>{for(var i=o>1?void 0:o?m(t,n):t,s=a.length-1,d;s>=0;s--)(d=a[s])&&(i=(o?d(t,n,i):d(i))||i);return o&&i&&h(t,n,i),i};import{LitElement as g,html as b}from"lit";import{customElement as v,property as l}from"lit/decorators.js";import{pfelement as w,initializer as x}from"@patternfly/pfe-core/decorators.js";import{css as c}from"lit";var f=c`:host([indeterminate]) span{position:absolute;overflow:hidden;clip:rect(0,0,0,0);height:1px;width:1px;margin:-1px;padding:0;border:0}:host([indeterminate]) span{position:absolute;overflow:hidden;clip:rect(0,0,0,0);height:1px;width:1px;margin:-1px;padding:0;border:0}:host([hidden]){display:none}:host([indeterminate]){animation:spin 1s linear infinite;-webkit-animation:spin 1s linear infinite;-moz-animation:spin 1s linear infinite;border-style:var(--pfe-theme--surface--border-style,solid);border-width:var(--pfe-theme--surface--border-width--heavy,4px);border-color:var(--pfe-progress-indicator--background-color,rgba(0,0,0,.25));border-top-color:var(--pfe-progress-indicator--foreground-color,rgba(0,0,0,.75));border-radius:100%;display:inline-block;height:var(--pfe-progress-indicator--Height,2rem);margin:0 auto;position:relative;width:var(--pfe-progress-indicator--Width,2rem);vertical-align:middle;visibility:visible}:host([size=sm]){height:1rem;width:1rem;border-width:calc(var(--pfe-theme--surface--border-width--heavy,4px) * .75)}:host([size=md]){height:2rem;width:2rem;border-width:calc(var(--pfe-theme--surface--border-width--heavy,4px) * 1)}:host([size=xl]){height:4rem;width:4rem;border-width:calc(var(--pfe-theme--surface--border-width--heavy,4px) * 1.5)}@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}`,p=f;import{Logger as u}from"@patternfly/pfe-core/controllers/logger.js";var e=class extends g{constructor(){super(...arguments);this.logger=new u(this);this.indeterminate=!1;this.size="md"}render(){return b`<span><slot @slotchange="${this._init}"></slot></span>`}_init(){if(this.isConnected){let[t]=this.children;!t&&!this.textContent?.trim()&&this.logger.warn("You do not have a backup loading message.")}}};e.version="{{version}}",e.styles=[p],r([l({type:Boolean,reflect:!0})],e.prototype,"indeterminate",2),r([l({reflect:!0})],e.prototype,"size",2),r([x({observe:!1})],e.prototype,"_init",1),e=r([v("pfe-progress-indicator"),w()],e);export{e as PfeProgressIndicator}; | ||
//# sourceMappingURL=pfe-progress-indicator.js.map |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
15445
186