import { html, unsafeCSS } from 'lit'; import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement'; import { RtlMixin, safeCustomElement } from '@justeattakeaway/pie-webc-core'; import styles from './list.scss?inline'; import { type ListProps } from './defs'; // Valid values available to consumers export * from './defs'; const componentSelector = 'pie-list'; /** * @tagname pie-list */ @safeCustomElement('pie-list') export class PieList extends RtlMixin(PieElement) implements ListProps { connectedCallback (): void { super.connectedCallback(); if (!this.hasAttribute('role')) { this.setAttribute('role', 'list'); } } render () { return html``; } // Renders a `CSSResult` generated from SCSS by Vite static styles = unsafeCSS(styles); } declare global { interface HTMLElementTagNameMap { [componentSelector]: PieList; } }