-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #766 from danskernesdigitalebibliotek/DDFNEXT-220-…
…upgrade-storybook2 DDFNEXT-220: Upgrade Storybook and Prettier
- Loading branch information
Showing
194 changed files
with
6,981 additions
and
10,906 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,9 @@ | ||
// Set the viewport widths that Chromatic tests with globally. | ||
export const allModes = { | ||
xs: { | ||
viewport: "xs", | ||
}, | ||
xl: { | ||
viewport: "xl", | ||
}, | ||
}; |
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
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
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 |
---|---|---|
@@ -1,49 +1,35 @@ | ||
import { ComponentStory, ComponentMeta } from "@storybook/react"; | ||
import { withDesign } from "storybook-addon-designs"; | ||
import { StoryFn, Meta } from "@storybook/react"; | ||
|
||
import Article from "./Article"; | ||
|
||
export default { | ||
title: "Blocks / Article page", | ||
component: Article, | ||
decorators: [withDesign], | ||
argTypes: { | ||
title: { | ||
defaultValue: "Jesper Stein vinder Læsernes Bogpris for Rampen’", | ||
}, | ||
subtitle: { | ||
defaultValue: | ||
"Jesper Stein har begået en hudløst ærlig og tankevækkende skildring af en skilsmisseramt familie. En selvbiografisk roman, som har ramt læserne i hjertet.", | ||
}, | ||
category: { | ||
defaultValue: "Netmedier", | ||
}, | ||
author: { | ||
defaultValue: "Lene Kuhlmann Frandsen", | ||
}, | ||
date: { | ||
defaultValue: "08. April 21", | ||
}, | ||
tags: { | ||
defaultValue: [ | ||
"dans", | ||
"contemporary", | ||
"modern", | ||
"scenekunst", | ||
"digt", | ||
"3-8 årige", | ||
], | ||
}, | ||
title: { control: "text" }, | ||
subtitle: { control: "text" }, | ||
category: { control: "text" }, | ||
author: { control: "text" }, | ||
date: { control: "text" }, | ||
tags: { control: "object" }, | ||
}, | ||
args: { | ||
title: "Jesper Stein vinder Læsernes Bogpris for Rampen'", | ||
subtitle: | ||
"Jesper Stein har begået en hudløst ærlig og tankevækkende skildring af en skilsmisseramt familie. En selvbiografisk roman, som har ramt læserne i hjertet.", | ||
category: "Netmedier", | ||
author: "Lene Kuhlmann Frandsen", | ||
date: "08. April 21", | ||
tags: ["dans", "contemporary", "modern", "scenekunst", "digt", "3-8 årige"], | ||
}, | ||
parameters: { | ||
design: { | ||
type: "figma", | ||
url: "https://www.figma.com/file/Zx9GrkFA3l4ISvyZD2q0Qi/Designsystem?type=design&node-id=7477%3A39048&mode=dev", | ||
}, | ||
}, | ||
} as ComponentMeta<typeof Article>; | ||
} as Meta<typeof Article>; | ||
|
||
const Template: ComponentStory<typeof Article> = (args) => ( | ||
<Article {...args} /> | ||
); | ||
const Template: StoryFn<typeof Article> = (args) => <Article {...args} />; | ||
|
||
export const Default = Template.bind({}); |
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
Oops, something went wrong.