Skip to content

Commit

Permalink
chore: align docs to new build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dobrinyonkov committed Feb 5, 2024
1 parent c672749 commit cfbd2c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
import { html } from "lit";
import { ifDefined } from "lit/directives/if-defined.js";
import { unsafeHTML } from "lit/directives/unsafe-html.js";
import type { Meta, StoryFn } from "@storybook/web-components";
import type { Meta } from "@storybook/web-components";
import type { PartialStoryFn } from "@storybook/types";

import argTypes, { componentInfo } from "./argTypes.js";
import argTypes from "./argTypes.js";
import type { StoryArgsSlots } from "./argTypes.js";
import type { UI5StoryArgs } from "../../../types.js";

import { DocsPage } from "../../../.storybook/docs.js";

import type DynamicPage from "@ui5/webcomponents-fiori/dist/DynamicPage.js";

import DynamicPageTitleTemplate from "./DynamicPageTitleTemplate.js"
import DynamicPageHeaderTemplate from "./DynamicPageHeaderTemplate.js"



const component = "ui5-dynamic-page";

const stylesDecorator = (storyFn: PartialStoryFn) => html`
<style>
#root-inner,
Expand All @@ -35,11 +29,6 @@ const stylesDecorator = (storyFn: PartialStoryFn) => html`
export default {
title: "Fiori/Dynamic page",
component: "DynamicPage",
parameters: {
docs: {
page: DocsPage({ ...componentInfo, component })
},
},
decorators: [stylesDecorator],
argTypes,
} as Meta<DynamicPage>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,16 @@ import { html } from "lit";
import type { Meta } from "@storybook/web-components";
import type { PartialStoryFn } from "@storybook/types";

import argTypes, { componentInfo } from "./argTypes.js";
import argTypes from "./argTypes.js";
import type { StoryArgsSlots } from "../argTypes.js";
import type { UI5StoryArgs } from "../../../../types.js";

import { DocsPage } from "../../../../.storybook/docs.js";

import type DynamicPageHeader from "@ui5/webcomponents-fiori/dist/DynamicPageHeader.js";
import DynamicPageHeaderTemplate from "../DynamicPageHeaderTemplate.js";

const component = "ui5-dynamic-page-header";

export default {
title: "Fiori/Dynamic Page/ Dynamic Page Header",
component: "DynamicPageHeader",
parameters: {
docs: {
page: DocsPage({ ...componentInfo, component, showDefaultStoryOnly: true })
},
},
argTypes,
} as Meta<DynamicPageHeader>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
import { html } from "lit";
import { ifDefined } from "lit/directives/if-defined.js";
import { unsafeHTML } from "lit/directives/unsafe-html.js";
import type { Meta } from "@storybook/web-components";
import type { PartialStoryFn } from "@storybook/types";

import argTypes, { componentInfo } from "./argTypes.js";
import argTypes from "./argTypes.js";
import type { StoryArgsSlots } from "../argTypes.js";
import type { UI5StoryArgs } from "../../../../types.js";

import { DocsPage } from "../../../../.storybook/docs.js";

import type DynamicPageTitle from "@ui5/webcomponents-fiori/dist/DynamicPageTitle.js";
import DynamicPageTitleTemplate from "../DynamicPageTitleTemplate.js";

const component = "ui5-dynamic-page-title";

export default {
title: "Fiori/Dynamic Page/ Dynamic Page Title",
component: "DynamicPageTitle",
parameters: {
docs: {
page: DocsPage({ ...componentInfo, component, showDefaultStoryOnly: true })
},
},
argTypes,
} as Meta<DynamicPageTitle>;

Expand Down

0 comments on commit cfbd2c9

Please sign in to comment.