@reown/appkit-ui
Version:
The full stack toolkit to build onchain app UX.
49 lines • 2.07 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 '../../layout/wui-flex/index.js';
import { elementStyles, resetStyles } from '../../utils/ThemeUtil.js';
import { customElement } from '../../utils/WebComponentsUtil.js';
import '../wui-button/index.js';
import styles from './styles.js';
let WuiCtaButton = class WuiCtaButton extends LitElement {
constructor() {
super(...arguments);
this.disabled = false;
this.label = '';
this.buttonLabel = '';
}
render() {
return html `
<wui-flex justifyContent="space-between" alignItems="center">
<wui-text variant="lg-regular" color="inherit">${this.label}</wui-text>
<wui-button variant="accent-secondary" size="sm">
${this.buttonLabel}
<wui-icon name="chevronRight" color="inherit" size="inherit" slot="iconRight"></wui-icon>
</wui-button>
</wui-flex>
`;
}
};
WuiCtaButton.styles = [resetStyles, elementStyles, styles];
__decorate([
property({ type: Boolean })
], WuiCtaButton.prototype, "disabled", void 0);
__decorate([
property()
], WuiCtaButton.prototype, "label", void 0);
__decorate([
property()
], WuiCtaButton.prototype, "buttonLabel", void 0);
WuiCtaButton = __decorate([
customElement('wui-cta-button')
], WuiCtaButton);
export { WuiCtaButton };
//# sourceMappingURL=index.js.map