add stories for dashboards

This commit is contained in:
Mads Rasmussen
2022-08-08 20:38:24 +02:00
parent 9f514eef57
commit b440b1599c
4 changed files with 34 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ import { css, html, LitElement } from 'lit';
import { customElement } from 'lit/decorators.js';
@customElement('umb-dashboard-redirect-management')
export class UmbDashboardRedirectManagement extends LitElement {
export class UmbDashboardRedirectManagementElement extends LitElement {
static styles = [UUITextStyles, css``];
render() {
@@ -17,6 +17,6 @@ export class UmbDashboardRedirectManagement extends LitElement {
declare global {
interface HTMLElementTagNameMap {
'umb-dashboard-redirect-management': UmbDashboardRedirectManagement;
'umb-dashboard-redirect-management': UmbDashboardRedirectManagementElement;
}
}

View File

@@ -0,0 +1,15 @@
import { Meta, Story } from '@storybook/web-components';
import { html } from 'lit-html';
import { UmbDashboardRedirectManagementElement } from './dashboard-redirect-management.element';
import './dashboard-redirect-management.element';
export default {
title: 'Dashboards/Redirect Management',
component: 'umb-dashboard-redirect-management',
id: 'umb-dashboard-redirect-management',
} as Meta;
export const AAAOverview: Story<UmbDashboardRedirectManagementElement> = () =>
html` <umb-dashboard-redirect-management></umb-dashboard-redirect-management>`;
AAAOverview.storyName = 'Overview';

View File

@@ -3,7 +3,7 @@ import { css, html, LitElement } from 'lit';
import { customElement } from 'lit/decorators.js';
@customElement('umb-dashboard-welcome')
export class UmbDashboardWelcome extends LitElement {
export class UmbDashboardWelcomeElement extends LitElement {
static styles = [UUITextStyles, css``];
render() {
@@ -18,6 +18,6 @@ export class UmbDashboardWelcome extends LitElement {
declare global {
interface HTMLElementTagNameMap {
'umb-dashboard-welcome': UmbDashboardWelcome;
'umb-dashboard-welcome': UmbDashboardWelcomeElement;
}
}

View File

@@ -0,0 +1,15 @@
import { Meta, Story } from '@storybook/web-components';
import { html } from 'lit-html';
import { UmbDashboardWelcomeElement } from './dashboard-welcome.element';
import './dashboard-welcome.element';
export default {
title: 'Dashboards/Welcome',
component: 'umb-dashboard-welcome',
id: 'umb-dashboard-welcome',
} as Meta;
export const AAAOverview: Story<UmbDashboardWelcomeElement> = () =>
html` <umb-dashboard-welcome></umb-dashboard-welcome>`;
AAAOverview.storyName = 'Overview';