@patternfly/pfe-button
Advanced tools
Comparing version 2.0.0-next.5 to 2.0.0-next.6
@@ -673,3 +673,3 @@ { | ||
"static": true, | ||
"default": "2.0.0-next.5", | ||
"default": "2.0.0-next.6", | ||
"readonly": true | ||
@@ -676,0 +676,0 @@ }, |
{ | ||
"name": "@patternfly/pfe-button", | ||
"version": "2.0.0-next.5", | ||
"version": "2.0.0-next.6", | ||
"license": "MIT", | ||
@@ -72,7 +72,7 @@ "description": "Button element for PatternFly Elements", | ||
"dependencies": { | ||
"@patternfly/pfe-core": "^2.0.0-next.8", | ||
"@patternfly/pfe-core": "^2.0.0-next.9", | ||
"@patternfly/pfe-icon": "^2.0.0-next.4", | ||
"@patternfly/pfe-progress-indicator": "^2.0.0-next.4", | ||
"@patternfly/pfe-spinner": "^2.0.0-next.5", | ||
"lit": "2.3.0" | ||
} | ||
} |
import { BaseButton } from './BaseButton.js'; | ||
import '@patternfly/pfe-icon'; | ||
import '@patternfly/pfe-progress-indicator'; | ||
import '@patternfly/pfe-spinner'; | ||
/** | ||
@@ -5,0 +5,0 @@ * Buttons allow users to perform an action when triggered. They feature a text |
@@ -1,2 +0,2 @@ | ||
var g=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var a=(l,r,i,n)=>{for(var t=n>1?void 0:n?b(r,i):r,e=l.length-1,p;e>=0;e--)(p=l[e])&&(t=(n?p(r,i,t):p(t))||t);return n&&t&&g(r,i,t),t};import{html as m}from"lit";import{customElement as v,property as c}from"lit/decorators.js";import{BaseButton as d}from"./BaseButton.js";import"@patternfly/pfe-icon";import"@patternfly/pfe-progress-indicator";import{css as f}from"lit";var u=f`:host([warning]) ::slotted(button){color:var(--pf-c-button--m-warning--Color,var(--pf-global--Color--dark-100,#151515))!important;background-color:var(--pf-c-button--m-warning--BackgroundColor,var(--pf-global--warning-color--100,#f0ab00))!important}:host([warning]) ::slotted(button:active){--pf-c-button--m-warning--Color:var(--pf-c-button--m-warning--active--Color, | ||
var g=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var a=(l,r,i,n)=>{for(var t=n>1?void 0:n?b(r,i):r,e=l.length-1,p;e>=0;e--)(p=l[e])&&(t=(n?p(r,i,t):p(t))||t);return n&&t&&g(r,i,t),t};import{html as m}from"lit";import{customElement as v,property as c}from"lit/decorators.js";import{BaseButton as d}from"./BaseButton.js";import"@patternfly/pfe-icon";import"@patternfly/pfe-spinner";import{css as f}from"lit";var u=f`:host([warning]) ::slotted(button){color:var(--pf-c-button--m-warning--Color,var(--pf-global--Color--dark-100,#151515))!important;background-color:var(--pf-c-button--m-warning--BackgroundColor,var(--pf-global--warning-color--100,#f0ab00))!important}:host([warning]) ::slotted(button:active){--pf-c-button--m-warning--Color:var(--pf-c-button--m-warning--active--Color, | ||
var(--pf-global--Color--dark-100, #151515));--pf-c-button--m-warning--BackgroundColor:var(--pf-c-button--m-warning--active--BackgroundColor, | ||
@@ -19,3 +19,3 @@ var(--pf-global--palette--gold-500, #c58c00))}:host([warning]) ::slotted(button:focus){--pf-c-button--m-warning--Color:var(--pf-c-button--m-warning--focus--Color, | ||
var(--pf-global--spacer--md, 1rem) + var(--pf-c-button__progress--width, | ||
calc(var(--pf-global--icon--FontSize--md, 1.125rem) + var(--pf-global--spacer--sm, 0.5rem))) / 2))}:host([loading]:not([plain])) ::slotted(button){padding-left:calc(12px + var(--pf-c-button--PaddingLeft,var(--pf-global--spacer--md,1rem)))!important}`,s=u;var o=class extends d{constructor(){super(...arguments);this.loading=!1;this.plain=!1;this.warning=!1}renderDefaultIcon(){return m`<pfe-icon ?hidden="${!this.icon}" icon="${this.icon}" size="sm"></pfe-icon><pfe-progress-indicator ?hidden="${!this.loading}" indeterminate aria-label="${this.getAttribute("progress-label")??"loading"}"></pfe-progress-indicator>`}};o.version="{{version}}",o.styles=[...d.styles,s],a([c({type:Boolean,reflect:!0})],o.prototype,"loading",2),a([c({type:Boolean,reflect:!0})],o.prototype,"plain",2),a([c({type:Boolean,reflect:!0})],o.prototype,"warning",2),o=a([v("pfe-button")],o);export{o as PfeButton}; | ||
calc(var(--pf-global--icon--FontSize--md, 1.125rem) + var(--pf-global--spacer--sm, 0.5rem))) / 2))}:host([loading]:not([plain])) ::slotted(button){padding-left:calc(12px + var(--pf-c-button--PaddingLeft,var(--pf-global--spacer--md,1rem)))!important}`,s=u;var o=class extends d{constructor(){super(...arguments);this.loading=!1;this.plain=!1;this.warning=!1}renderDefaultIcon(){return m`<pfe-icon ?hidden="${!this.icon}" icon="${this.icon}" size="sm"></pfe-icon><pfe-spinner ?hidden="${!this.loading}" aria-label="${this.getAttribute("progress-label")??"loading"}"></pfe-spinner>`}};o.version="{{version}}",o.styles=[...d.styles,s],a([c({type:Boolean,reflect:!0})],o.prototype,"loading",2),a([c({type:Boolean,reflect:!0})],o.prototype,"plain",2),a([c({type:Boolean,reflect:!0})],o.prototype,"warning",2),o=a([v("pfe-button")],o);export{o as PfeButton}; | ||
//# sourceMappingURL=pfe-button.js.map |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144508
+ Added@patternfly/pfe-spinner@2.0.0-next.6(transitive)
- Removed@patternfly/pfe-progress-indicator@2.0.0-next.4(transitive)