@reown/appkit-ui
Version:
#### 🔗 [Website](https://reown.com/appkit)
34 lines • 1.51 kB
JavaScript
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 '../../components/wui-icon/index.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 WuiPromo = class WuiPromo extends LitElement {
constructor() {
super(...arguments);
this.text = '';
}
render() {
return html `<button>
<wui-text variant="small-600" color="bg-100">${this.text}</wui-text>
<wui-icon color="bg-100" size="xs" name="arrowRight"></wui-icon>
</button>`;
}
};
WuiPromo.styles = [resetStyles, elementStyles, styles];
__decorate([
property()
], WuiPromo.prototype, "text", void 0);
WuiPromo = __decorate([
customElement('wui-promo')
], WuiPromo);
export { WuiPromo };
//# sourceMappingURL=index.js.map