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