UNPKG

@universal-material/web

Version:
35 lines 1.13 kB
import { __decorate } from "tslib"; import { html } from 'lit'; import { customElement, property } from 'lit/decorators.js'; import { styles } from './icon-button.styles.js'; import { UmToggleButton } from './toggle-button.js'; let UmIconButton = class UmIconButton extends UmToggleButton { constructor() { super(...arguments); this.variant = 'standard'; } static { this.styles = [UmToggleButton.styles, styles]; } renderContent() { return html ` <span class="icon-container" aria-hidden="true"> <span class="icon icon-default"> <slot></slot> </span> <span class="icon icon-selected"> <slot name="selected" @slotchange="${this.handleSelectedIconSlotChange}"></slot> </span> </span> `; } }; __decorate([ property({ reflect: true }) ], UmIconButton.prototype, "variant", void 0); __decorate([ property({ reflect: true }) ], UmIconButton.prototype, "width", void 0); UmIconButton = __decorate([ customElement('u-icon-button') ], UmIconButton); export { UmIconButton }; //# sourceMappingURL=icon-button.js.map