UNPKG

@reown/appkit-ui

Version:

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

47 lines • 1.83 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 '../../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-icon-box/index.js'; import styles from './styles.js'; let WuiBanner = class WuiBanner extends LitElement { constructor() { super(...arguments); this.icon = 'externalLink'; this.text = ''; } render() { return html ` <wui-flex gap="1xs" alignItems="center"> <wui-icon-box size="sm" iconcolor="fg-200" backgroundcolor="fg-200" icon=${this.icon} background="transparent" ></wui-icon-box> <wui-text variant="small-400" color="fg-200">${this.text}</wui-text> </wui-flex> `; } }; WuiBanner.styles = [resetStyles, elementStyles, styles]; __decorate([ property() ], WuiBanner.prototype, "icon", void 0); __decorate([ property() ], WuiBanner.prototype, "text", void 0); WuiBanner = __decorate([ customElement('wui-banner') ], WuiBanner); export { WuiBanner }; //# sourceMappingURL=index.js.map