UNPKG

@reown/appkit-ui

Version:

#### 🔗 [Website](https://reown.com/appkit)

47 lines • 1.86 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; import { LitElement, html } from 'lit'; import { property } from 'lit/decorators.js'; import { ifDefined } from 'lit/directives/if-defined.js'; import '../../components/wui-text/index.js'; import { elementStyles, resetStyles } from '../../utils/ThemeUtil.js'; import { customElement } from '../../utils/WebComponentsUtil.js'; import styles from './styles.js'; let WuiLink = class WuiLink extends LitElement { constructor() { super(...arguments); this.tabIdx = undefined; this.disabled = false; this.color = 'inherit'; } render() { return html ` <button ?disabled=${this.disabled} tabindex=${ifDefined(this.tabIdx)}> <slot name="iconLeft"></slot> <wui-text variant="small-600" color=${this.color}> <slot></slot> </wui-text> <slot name="iconRight"></slot> </button> `; } }; WuiLink.styles = [resetStyles, elementStyles, styles]; __decorate([ property() ], WuiLink.prototype, "tabIdx", void 0); __decorate([ property({ type: Boolean }) ], WuiLink.prototype, "disabled", void 0); __decorate([ property() ], WuiLink.prototype, "color", void 0); WuiLink = __decorate([ customElement('wui-link') ], WuiLink); export { WuiLink }; //# sourceMappingURL=index.js.map