-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
127 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<script context="module"> | ||
import { Story } from "@storybook/addon-svelte-csf"; | ||
import SearchTipsDialog from "../SearchTipsDialog.svelte"; | ||
import Modal from "../../Modal.svelte"; | ||
export const meta = { | ||
title: "Common / Dialog / Search Tips Dialog", | ||
component: SearchTipsDialog, | ||
}; | ||
</script> | ||
|
||
<Story name="default"> | ||
<Modal component={SearchTipsDialog} /> | ||
</Story> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script context="module"> | ||
import { Story } from "@storybook/addon-svelte-csf"; | ||
import ErrorData from "../ErrorData.svelte"; | ||
export const meta = { | ||
title: "Common / Error Data", | ||
component: ErrorData, | ||
}; | ||
const error = { | ||
errorData: {}, | ||
}; | ||
</script> | ||
|
||
<Story name="default"> | ||
<ErrorData {error} /> | ||
</Story> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<script context="module"> | ||
import { Story } from "@storybook/addon-svelte-csf"; | ||
import HtmlField from "../HtmlField.svelte"; | ||
export const meta = { | ||
title: "Common / HTML Field", | ||
component: HtmlField, | ||
}; | ||
</script> | ||
|
||
<!-- this will not render without mocking the router --> | ||
<Story name="default"> | ||
<HtmlField /> | ||
</Story> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<script context="module"> | ||
import { Story, Template } from "@storybook/addon-svelte-csf"; | ||
import Logo from "../Logo.svelte"; | ||
export const meta = { | ||
title: "Common / Logo", | ||
component: Logo, | ||
}; | ||
const args = { | ||
newPage: false, | ||
nopadding: false, | ||
homeLink: false, | ||
}; | ||
</script> | ||
|
||
<Template let:args> | ||
<Logo {...args} /> | ||
</Template> | ||
|
||
<Story name="default" {args} /> | ||
|
||
<Story name="new page" args={{ ...args, newPage: true }} /> | ||
|
||
<Story name="no padding" args={{ ...args, nopadding: true }} /> | ||
|
||
<Story name="home link" args={{ ...args, homeLink: true }} /> |