22 lines
549 B
TypeScript
22 lines
549 B
TypeScript
import { FlowExecutor } from "@goauthentik/flow/FlowExecutor";
|
|
|
|
import { customElement, property } from "lit/decorators.js";
|
|
|
|
import { UiThemeEnum } from "@goauthentik/api";
|
|
|
|
@customElement("ak-storybook-interface-flow")
|
|
export class StoryFlowInterface extends FlowExecutor {
|
|
@property()
|
|
storyTheme: UiThemeEnum = UiThemeEnum.Dark;
|
|
|
|
async getTheme(): Promise<UiThemeEnum> {
|
|
return this.storyTheme;
|
|
}
|
|
}
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
"ak-storybook-interface-flow": StoryFlowInterface;
|
|
}
|
|
}
|