Files
authentik/web/src/stories/flow-interface.ts
2025-04-24 14:00:29 -04:00

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;
}
}