import { AKElement } from "@goauthentik/elements/Base"; import { t } from "@lingui/macro"; import { CSSResult, TemplateResult, html } from "lit"; import { customElement, property } from "lit/decorators.js"; import PFExpandableSection from "@patternfly/patternfly/components/ExpandableSection/expandable-section.css"; @customElement("ak-expand") export class Expand extends AKElement { @property({ type: Boolean }) expanded = false; @property() textOpen = t`Show less`; @property() textClosed = t`Show more`; static get styles(): CSSResult[] { return [PFExpandableSection]; } render(): TemplateResult { return html`
`; } }