@digital-realty/ix-icon-button
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -10,3 +10,3 @@ import { LitElement } from 'lit'; | ||
type LinkTarget = '_blank' | '_parent' | '_self' | '_top'; | ||
export type Appearance = 'filled' | 'filled-tonal' | 'outlined' | 'default'; | ||
export type Appearance = 'filled' | 'filled-tonal' | 'outlined' | 'icon-filled' | 'default'; | ||
export declare class IxIconButton extends LitElement { | ||
@@ -13,0 +13,0 @@ readonly component: IconButton; |
@@ -78,2 +78,22 @@ import { __decorate } from "tslib"; | ||
} | ||
else if (this.appearance === 'icon-filled') { | ||
comp = html `<md-icon-button | ||
class="button" | ||
?disabled=${this.disabled} | ||
?flip-icon-in-rtl=${this.flipIconInRtl} | ||
href=${ifDefined(this.href)} | ||
target=${ifDefined(this.target)} | ||
aria-label-selected=${ifDefined(this.ariaLabelSelected)} | ||
aria-label=${ariaLabel || nothing} | ||
?toggle=${this.toggle} | ||
?selected=${this.selected} | ||
type=${this.type} | ||
name=${ifDefined(this.name)} | ||
value=${ifDefined(this.value)} | ||
><ix-icon filled>${this.icon}</ix-icon> | ||
${this.selectedIcon | ||
? html `<ix-icon filled slot="selected">${this.selectedIcon}</ix-icon>` | ||
: nothing} | ||
</md-icon-button>`; | ||
} | ||
else if (this.appearance === 'filled-tonal') { | ||
@@ -80,0 +100,0 @@ comp = html `<md-filled-tonal-icon-button |
@@ -6,3 +6,3 @@ { | ||
"author": "Digital Realty", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"type": "module", | ||
@@ -102,3 +102,3 @@ "main": "dist/index.js", | ||
], | ||
"gitHead": "4c05bb34f477436b17f983c79215dd52a7d4c898" | ||
"gitHead": "d81b5cbb198d58e6009cf47ff0b716a095444067" | ||
} |
Sorry, the diff of this file is not supported yet
26838
275