@reuters-graphics/graphics-components 1.1.6 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/cssVariables/cssVariables.mdx +0 -2
- package/dist/actions/resizeObserver/resizeObserver.mdx +0 -2
- package/dist/components/AdSlot/InlineAd.stories.svelte +7 -5
- package/dist/components/AdSlot/InlineAd.stories.svelte.d.ts +7 -0
- package/dist/components/AdSlot/InlineAd.svelte +1 -1
- package/dist/components/AdSlot/InlineAd.svelte.d.ts +1 -1
- package/dist/components/AdSlot/LeaderboardAd.stories.svelte +11 -14
- package/dist/components/AdSlot/LeaderboardAd.stories.svelte.d.ts +15 -17
- package/dist/components/AdSlot/LeaderboardAd.svelte +1 -1
- package/dist/components/AdSlot/LeaderboardAd.svelte.d.ts +1 -1
- package/dist/components/AdSlot/SponsorshipAd.stories.svelte +11 -13
- package/dist/components/AdSlot/SponsorshipAd.stories.svelte.d.ts +15 -17
- package/dist/components/AdSlot/SponsorshipAd.svelte +1 -1
- package/dist/components/AdSlot/SponsorshipAd.svelte.d.ts +1 -1
- package/dist/components/Analytics/Analytics.stories.svelte +13 -18
- package/dist/components/Analytics/Analytics.stories.svelte.d.ts +15 -17
- package/dist/components/Analytics/Analytics.svelte +1 -1
- package/dist/components/Analytics/Analytics.svelte.d.ts +1 -1
- package/dist/components/Article/Article.stories.svelte +10 -12
- package/dist/components/Article/Article.stories.svelte.d.ts +7 -0
- package/dist/components/Article/Article.svelte +1 -1
- package/dist/components/Article/Article.svelte.d.ts +1 -1
- package/dist/components/BeforeAfter/BeforeAfter.stories.svelte +20 -28
- package/dist/components/BeforeAfter/BeforeAfter.stories.svelte.d.ts +24 -17
- package/dist/components/BeforeAfter/BeforeAfter.svelte +1 -1
- package/dist/components/BeforeAfter/BeforeAfter.svelte.d.ts +1 -1
- package/dist/components/Block/Block.stories.svelte +27 -35
- package/dist/components/Block/Block.stories.svelte.d.ts +21 -17
- package/dist/components/Block/Block.svelte +1 -1
- package/dist/components/Block/Block.svelte.d.ts +1 -1
- package/dist/components/Block/stories/docs/snapWidths.md +2 -2
- package/dist/components/BodyText/BodyText.stories.svelte +11 -14
- package/dist/components/BodyText/BodyText.stories.svelte.d.ts +15 -17
- package/dist/components/BodyText/BodyText.svelte +1 -1
- package/dist/components/BodyText/BodyText.svelte.d.ts +1 -1
- package/dist/components/BodyText/stories/docs/component.md +16 -3
- package/dist/components/Byline/Byline.stories.svelte +17 -21
- package/dist/components/Byline/Byline.stories.svelte.d.ts +21 -17
- package/dist/components/Byline/Byline.svelte +1 -0
- package/dist/components/Byline/Byline.svelte.d.ts +1 -0
- package/dist/components/DatawrapperChart/DatawrapperChart.stories.svelte +21 -29
- package/dist/components/DatawrapperChart/DatawrapperChart.stories.svelte.d.ts +21 -17
- package/dist/components/DatawrapperChart/DatawrapperChart.svelte +1 -1
- package/dist/components/DatawrapperChart/DatawrapperChart.svelte.d.ts +1 -1
- package/dist/components/DocumentCloud/DocumentCloud.stories.svelte +17 -24
- package/dist/components/DocumentCloud/DocumentCloud.stories.svelte.d.ts +21 -17
- package/dist/components/DocumentCloud/DocumentCloud.svelte +1 -1
- package/dist/components/DocumentCloud/DocumentCloud.svelte.d.ts +1 -1
- package/dist/components/EmbedPreviewerLink/EmbedPreviewerLink.stories.svelte +11 -14
- package/dist/components/EmbedPreviewerLink/EmbedPreviewerLink.stories.svelte.d.ts +15 -17
- package/dist/components/EndNotes/EndNotes.stories.svelte +18 -21
- package/dist/components/EndNotes/EndNotes.stories.svelte.d.ts +15 -17
- package/dist/components/EndNotes/EndNotes.svelte +2 -1
- package/dist/components/EndNotes/EndNotes.svelte.d.ts +1 -1
- package/dist/components/FeaturePhoto/FeaturePhoto.stories.svelte +28 -37
- package/dist/components/FeaturePhoto/FeaturePhoto.stories.svelte.d.ts +25 -17
- package/dist/components/FeaturePhoto/FeaturePhoto.svelte +1 -1
- package/dist/components/FeaturePhoto/FeaturePhoto.svelte.d.ts +1 -1
- package/dist/components/Framer/Framer.stories.svelte +11 -14
- package/dist/components/Framer/Framer.stories.svelte.d.ts +15 -17
- package/dist/components/Framer/Typeahead/index.svelte +13 -0
- package/dist/components/GraphicBlock/GraphicBlock.stories.svelte +26 -37
- package/dist/components/GraphicBlock/GraphicBlock.stories.svelte.d.ts +25 -17
- package/dist/components/GraphicBlock/GraphicBlock.svelte +1 -1
- package/dist/components/GraphicBlock/GraphicBlock.svelte.d.ts +1 -1
- package/dist/components/Headline/Headline.stories.svelte +29 -38
- package/dist/components/Headline/Headline.stories.svelte.d.ts +25 -17
- package/dist/components/Headline/Headline.svelte +1 -1
- package/dist/components/Headline/Headline.svelte.d.ts +1 -1
- package/dist/components/HeroHeadline/Hero.stories.svelte +38 -51
- package/dist/components/HeroHeadline/Hero.stories.svelte.d.ts +34 -17
- package/dist/components/HeroHeadline/Hero.svelte +3 -1
- package/dist/components/HeroHeadline/Hero.svelte.d.ts +1 -1
- package/dist/components/InfoBox/InfoBox.stories.svelte +21 -22
- package/dist/components/InfoBox/InfoBox.stories.svelte.d.ts +25 -17
- package/dist/components/InfoBox/InfoBox.svelte +1 -1
- package/dist/components/InfoBox/InfoBox.svelte.d.ts +1 -1
- package/dist/components/Markdown/Markdown.stories.svelte +11 -14
- package/dist/components/Markdown/Markdown.stories.svelte.d.ts +15 -17
- package/dist/components/Markdown/Markdown.svelte +1 -1
- package/dist/components/Markdown/Markdown.svelte.d.ts +1 -1
- package/dist/components/PaddingReset/PaddingReset.stories.svelte +11 -14
- package/dist/components/PaddingReset/PaddingReset.stories.svelte.d.ts +15 -17
- package/dist/components/PaddingReset/PaddingReset.svelte +1 -0
- package/dist/components/PaddingReset/PaddingReset.svelte.d.ts +1 -0
- package/dist/components/PhotoCarousel/PhotoCarousel.stories.svelte +18 -26
- package/dist/components/PhotoCarousel/PhotoCarousel.stories.svelte.d.ts +21 -17
- package/dist/components/PhotoCarousel/PhotoCarousel.svelte +1 -1
- package/dist/components/PhotoCarousel/PhotoCarousel.svelte.d.ts +1 -1
- package/dist/components/PhotoPack/PhotoPack.stories.svelte +52 -58
- package/dist/components/PhotoPack/PhotoPack.stories.svelte.d.ts +25 -17
- package/dist/components/PhotoPack/PhotoPack.svelte +2 -1
- package/dist/components/PhotoPack/PhotoPack.svelte.d.ts +1 -1
- package/dist/components/PymChild/PymChild.stories.svelte +11 -14
- package/dist/components/PymChild/PymChild.stories.svelte.d.ts +15 -17
- package/dist/components/PymChild/PymChild.svelte +1 -1
- package/dist/components/PymChild/PymChild.svelte.d.ts +1 -1
- package/dist/components/ReferralBlock/ReferralBlock.stories.svelte +33 -41
- package/dist/components/ReferralBlock/ReferralBlock.stories.svelte.d.ts +29 -17
- package/dist/components/ReferralBlock/ReferralBlock.svelte +75 -54
- package/dist/components/ReferralBlock/ReferralBlock.svelte.d.ts +1 -1
- package/dist/components/ReutersGraphicsLogo/ReutersGraphicsLogo.stories.svelte +11 -14
- package/dist/components/ReutersGraphicsLogo/ReutersGraphicsLogo.stories.svelte.d.ts +15 -17
- package/dist/components/ReutersGraphicsLogo/ReutersGraphicsLogo.svelte +193 -45
- package/dist/components/ReutersGraphicsLogo/ReutersGraphicsLogo.svelte.d.ts +2 -3
- package/dist/components/ReutersGraphicsLogo/stories/docs/component.md +2 -2
- package/dist/components/ReutersLogo/ReutersLogo.stories.svelte +15 -18
- package/dist/components/ReutersLogo/ReutersLogo.stories.svelte.d.ts +23 -17
- package/dist/components/ReutersLogo/ReutersLogo.svelte +3 -3
- package/dist/components/ReutersLogo/ReutersLogo.svelte.d.ts +1 -1
- package/dist/components/ReutersLogo/stories/docs/component.md +1 -1
- package/dist/components/SEO/SEO.stories.svelte +17 -21
- package/dist/components/SEO/SEO.stories.svelte.d.ts +16 -17
- package/dist/components/SEO/SEO.svelte +1 -1
- package/dist/components/SEO/SEO.svelte.d.ts +1 -1
- package/dist/components/Scroller/Scroller.stories.svelte +48 -60
- package/dist/components/Scroller/Scroller.stories.svelte.d.ts +32 -17
- package/dist/components/Scroller/Scroller.svelte +1 -1
- package/dist/components/Scroller/Scroller.svelte.d.ts +1 -1
- package/dist/components/Scroller/stories/docs/ai2svelte.md +1 -1
- package/dist/components/SearchInput/SearchInput.stories.svelte +11 -14
- package/dist/components/SearchInput/SearchInput.stories.svelte.d.ts +15 -17
- package/dist/components/SearchInput/SearchInput.svelte +1 -1
- package/dist/components/SearchInput/SearchInput.svelte.d.ts +1 -1
- package/dist/components/SimpleTimeline/SimpleTimeline.stories.svelte +15 -22
- package/dist/components/SimpleTimeline/SimpleTimeline.stories.svelte.d.ts +23 -17
- package/dist/components/SimpleTimeline/SimpleTimeline.svelte +1 -1
- package/dist/components/SimpleTimeline/SimpleTimeline.svelte.d.ts +1 -1
- package/dist/components/SiteFooter/SiteFooter.stories.svelte +16 -47
- package/dist/components/SiteFooter/SiteFooter.stories.svelte.d.ts +15 -17
- package/dist/components/SiteFooter/SiteFooter.svelte +10 -4
- package/dist/components/SiteFooter/SiteFooter.svelte.d.ts +1 -9
- package/dist/components/SiteFooter/svgs/Twitter.svelte +6 -4
- package/dist/components/SiteHeader/SiteHeader.stories.svelte +18 -21
- package/dist/components/SiteHeader/SiteHeader.stories.svelte.d.ts +22 -17
- package/dist/components/SiteHeader/SiteHeader.svelte +1 -1
- package/dist/components/SiteHeader/SiteHeader.svelte.d.ts +1 -1
- package/dist/components/SiteHeadline/SiteHeadline.stories.svelte +3 -3
- package/dist/components/SiteHeadline/SiteHeadline.svelte +1 -0
- package/dist/components/SiteHeadline/SiteHeadline.svelte.d.ts +1 -0
- package/dist/components/Spinner/Spinner.stories.svelte +20 -23
- package/dist/components/Spinner/Spinner.stories.svelte.d.ts +52 -17
- package/dist/components/Spinner/Spinner.svelte +1 -1
- package/dist/components/Spinner/Spinner.svelte.d.ts +1 -1
- package/dist/components/Table/Select.svelte +1 -8
- package/dist/components/Table/Table.stories.svelte +30 -44
- package/dist/components/Table/Table.stories.svelte.d.ts +21 -17
- package/dist/components/Table/Table.svelte +5 -1
- package/dist/components/Table/Table.svelte.d.ts +1 -1
- package/dist/components/Theme/Theme.stories.svelte +9 -7
- package/dist/components/Theme/Theme.stories.svelte.d.ts +16 -0
- package/dist/components/Theme/Theme.svelte +1 -1
- package/dist/components/Theme/Theme.svelte.d.ts +1 -1
- package/dist/components/ToolsHeader/ToolsHeader.stories.svelte +11 -14
- package/dist/components/ToolsHeader/ToolsHeader.stories.svelte.d.ts +15 -17
- package/dist/components/ToolsHeader/ToolsHeader.svelte +1 -1
- package/dist/components/ToolsHeader/ToolsHeader.svelte.d.ts +2 -3
- package/dist/components/Video/Video.stories.svelte +16 -23
- package/dist/components/Video/Video.stories.svelte.d.ts +15 -17
- package/dist/components/Video/Video.svelte +1 -1
- package/dist/components/Video/Video.svelte.d.ts +1 -1
- package/dist/components/Video/stories/videos/silent-video.mp4 +0 -0
- package/dist/components/Video/stories/videos/sound-video.mp4 +0 -0
- package/dist/components/Visible/Visible.stories.svelte +12 -16
- package/dist/components/Visible/Visible.stories.svelte.d.ts +15 -17
- package/dist/components/Visible/Visible.svelte +1 -1
- package/dist/components/Visible/Visible.svelte.d.ts +1 -1
- package/dist/docs/actions/intro.mdx +0 -2
- package/dist/docs/contributing/component-guidelines.mdx +0 -2
- package/dist/docs/contributing/quickstart.mdx +2 -4
- package/dist/docs/contributing/story-recipes/basic-story.mdx +0 -2
- package/dist/docs/contributing/story-recipes/story-with-custom-controls.mdx +0 -2
- package/dist/docs/contributing/story-recipes/story-with-custom-docs.mdx +0 -2
- package/dist/docs/contributing/story-recipes/story-with-media.mdx +0 -2
- package/dist/docs/contributing/writing-component-stories.mdx +0 -2
- package/dist/docs/contributing/writing-docs-stories.mdx +0 -4
- package/dist/docs/docs-components/CopyColourTable/ImportSnippet.jsx +4 -4
- package/dist/docs/docs-components/CopyColourTable/styles.module.scss +2 -0
- package/dist/docs/docs-components/ThemeBuilder/NewTheme/NewTheme.jsx +3 -3
- package/dist/docs/docs-components/ThemeBuilder/NewTheme/styles.module.scss +6 -0
- package/dist/docs/guides/customising-with-scss.mdx +10 -9
- package/dist/docs/guides/getting-help.mdx +3 -5
- package/dist/docs/guides/graphics-kit.mdx +8 -30
- package/dist/docs/guides/imgs/intro.png +0 -0
- package/dist/docs/guides/imgs/more-stories.png +0 -0
- package/dist/docs/guides/using-docs.mdx +12 -12
- package/dist/docs/intro.mdx +1 -3
- package/dist/docs/layout/intro.mdx +1 -3
- package/dist/docs/styles/colours/intro.mdx +1 -3
- package/dist/docs/styles/colours/primary.mdx +0 -2
- package/dist/docs/styles/colours/thematic.mdx +0 -2
- package/dist/docs/styles/intro.mdx +0 -2
- package/dist/docs/styles/tokens/accessibility/main.mdx +1 -3
- package/dist/docs/styles/tokens/backgrounds/main.mdx +1 -3
- package/dist/docs/styles/tokens/borders/main.mdx +0 -2
- package/dist/docs/styles/tokens/flexbox/main.mdx +0 -2
- package/dist/docs/styles/tokens/interactivity/_main.mdx +0 -2
- package/dist/docs/styles/tokens/intro.mdx +6 -10
- package/dist/docs/styles/tokens/layout/main.mdx +0 -2
- package/dist/docs/styles/tokens/sizing/main.mdx +0 -2
- package/dist/docs/styles/tokens/spacers/main.mdx +2 -4
- package/dist/docs/styles/tokens/typography/main.mdx +7 -9
- package/dist/docs/styles/tokens/variables/main.mdx +0 -2
- package/dist/docs/theme-builder/theme-builder.mdx +1 -3
- package/dist/docs/theming/css-variables.mdx +1 -3
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -5
- package/dist/scss/reset/_main.scss +2 -2
- package/package.json +41 -38
- package/dist/components/EndNotes/docProps.d.ts +0 -10
- package/dist/components/EndNotes/docProps.js +0 -8
- package/dist/components/FeaturePhoto/stories/docs/quickit.md +0 -38
- package/dist/components/GraphicBlock/stories/docs/quickit.md +0 -35
- package/dist/components/PhotoPack/docProps.d.ts +0 -38
- package/dist/components/PhotoPack/docProps.js +0 -26
- package/dist/components/PhotoPack/stories/docs/quickit.md +0 -67
- package/dist/components/SEO/stories/docs/quickit.md +0 -29
- package/dist/components/Scroller/docProps.d.ts +0 -36
- package/dist/components/Scroller/docProps.js +0 -16
- package/dist/components/Scroller/stories/docs/quickit.md +0 -60
- package/dist/components/SiteFooter/Referrals/IntersectionObserver.svelte +0 -45
- package/dist/components/SiteFooter/Referrals/IntersectionObserver.svelte.d.ts +0 -41
- package/dist/components/SiteFooter/Referrals/Link.svelte +0 -80
- package/dist/components/SiteFooter/Referrals/Link.svelte.d.ts +0 -31
- package/dist/components/SiteFooter/Referrals/Referrals.svelte +0 -56
- package/dist/components/SiteFooter/Referrals/Referrals.svelte.d.ts +0 -25
- package/dist/components/SiteFooter/Referrals/index.svelte +0 -49
- package/dist/components/SiteFooter/Referrals/index.svelte.d.ts +0 -25
- package/dist/components/SiteFooter/stories/docs/customReferrals.md +0 -26
- package/dist/components/SiteHeadline/stories/docs/quickit.md +0 -30
- package/dist/docs/guides/google-docs.mdx +0 -74
- package/dist/docs/guides/imgs/copy-code.png +0 -0
|
@@ -1,37 +1,34 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<script context="module">import EndNotes from "./EndNotes.svelte";
|
|
2
|
+
import componentDocs from "./stories/docs/component.md?raw";
|
|
3
|
+
import { withComponentDocs } from "../../lib/docs/utils/withParams.js";
|
|
4
|
+
export const meta = {
|
|
5
|
+
title: "Components/Text elements/EndNotes",
|
|
6
|
+
component: EndNotes,
|
|
7
|
+
...withComponentDocs(componentDocs)
|
|
8
|
+
};
|
|
9
|
+
</script>
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
import { withComponentDocs } from '../../lib/docs/utils/withParams.js';
|
|
11
|
+
<script>
|
|
12
|
+
import { Template, Story } from '@storybook/addon-svelte-csf';
|
|
10
13
|
|
|
11
14
|
const notes = [
|
|
12
15
|
{
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
title: 'Note',
|
|
17
|
+
text: 'Data is current as of today.',
|
|
15
18
|
},
|
|
16
19
|
{
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
title: 'Sources',
|
|
21
|
+
text: 'Data, Inc.',
|
|
19
22
|
},
|
|
20
23
|
{
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
title: 'Edited by',
|
|
25
|
+
text: '<a href="https://www.reuters.com/graphics/">Editor</a>, Copyeditor',
|
|
23
26
|
},
|
|
24
27
|
];
|
|
25
28
|
</script>
|
|
26
29
|
|
|
27
|
-
<Meta
|
|
28
|
-
title="Components/EndNotes"
|
|
29
|
-
component="{EndNotes}"
|
|
30
|
-
{...withComponentDocs(componentDocs)}
|
|
31
|
-
/>
|
|
32
|
-
|
|
33
30
|
<Template let:args>
|
|
34
31
|
<EndNotes {...args} />
|
|
35
32
|
</Template>
|
|
36
33
|
|
|
37
|
-
<Story name="Default" args="{{ notes
|
|
34
|
+
<Story name="Default" args="{{ notes }}" />
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} EndNotesProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} EndNotesEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} EndNotesSlots */
|
|
4
|
-
export default class EndNotes extends SvelteComponent<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type EndNotesProps = typeof __propDef.props;
|
|
11
|
-
export type EndNotesEvents = typeof __propDef.events;
|
|
12
|
-
export type EndNotesSlots = typeof __propDef.slots;
|
|
13
1
|
import { SvelteComponent } from "svelte";
|
|
14
|
-
declare const
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
export declare const meta: {
|
|
3
|
+
parameters: {
|
|
4
|
+
docs: any;
|
|
17
5
|
};
|
|
6
|
+
title: string;
|
|
7
|
+
component: typeof EndNotes;
|
|
8
|
+
};
|
|
9
|
+
declare const __propDef: {
|
|
10
|
+
props: Record<string, never>;
|
|
18
11
|
events: {
|
|
19
12
|
[evt: string]: CustomEvent<any>;
|
|
20
13
|
};
|
|
21
14
|
slots: {};
|
|
22
|
-
exports?: undefined;
|
|
23
|
-
bindings?: undefined;
|
|
15
|
+
exports?: {} | undefined;
|
|
16
|
+
bindings?: string | undefined;
|
|
24
17
|
};
|
|
18
|
+
export type EndNotesProps = typeof __propDef.props;
|
|
19
|
+
export type EndNotesEvents = typeof __propDef.events;
|
|
20
|
+
export type EndNotesSlots = typeof __propDef.slots;
|
|
21
|
+
export default class EndNotes extends SvelteComponent<EndNotesProps, EndNotesEvents, EndNotesSlots> {
|
|
22
|
+
}
|
|
25
23
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- @component `EndNotes` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-
|
|
1
|
+
<!-- @component `EndNotes` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-text-elements-endnotes--docs) -->
|
|
2
2
|
<script>export let notes = [];
|
|
3
3
|
import Block from "../Block/Block.svelte";
|
|
4
4
|
import Markdown from "../Markdown/Markdown.svelte";
|
|
@@ -40,6 +40,7 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
|
|
|
40
40
|
margin-bottom: 0.125rem;
|
|
41
41
|
text-transform: none;
|
|
42
42
|
}
|
|
43
|
+
|
|
43
44
|
.note-content :global(p) {
|
|
44
45
|
font-family: var(--theme-font-family-note);
|
|
45
46
|
color: var(--theme-colour-text-secondary);
|
|
@@ -26,7 +26,7 @@ declare const __propDef: {
|
|
|
26
26
|
export type EndNotesProps = typeof __propDef.props;
|
|
27
27
|
export type EndNotesEvents = typeof __propDef.events;
|
|
28
28
|
export type EndNotesSlots = typeof __propDef.slots;
|
|
29
|
-
/** `EndNotes` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-
|
|
29
|
+
/** `EndNotes` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-text-elements-endnotes--docs) */
|
|
30
30
|
export default class EndNotes extends SvelteComponent<EndNotesProps, EndNotesEvents, EndNotesSlots> {
|
|
31
31
|
}
|
|
32
32
|
export {};
|
|
@@ -1,44 +1,35 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
<script context="module">import componentDocs from "./stories/docs/component.md?raw";
|
|
2
|
+
import archieMLDocs from "./stories/docs/archieML.md?raw";
|
|
3
|
+
import missingAltTextDocs from "./stories/docs/missingAltText.md?raw";
|
|
4
|
+
import FeaturePhoto from "./FeaturePhoto.svelte";
|
|
5
|
+
import {
|
|
6
|
+
withComponentDocs,
|
|
7
|
+
withStoryDocs
|
|
8
|
+
} from "../../lib/docs/utils/withParams.js";
|
|
9
|
+
export const meta = {
|
|
10
|
+
title: "Components/Multimedia/FeaturePhoto",
|
|
11
|
+
component: FeaturePhoto,
|
|
12
|
+
...withComponentDocs(componentDocs),
|
|
13
|
+
argTypes: {
|
|
14
|
+
width: {
|
|
15
|
+
control: "select",
|
|
16
|
+
options: ["normal", "wide", "wider", "widest", "fluid"]
|
|
17
|
+
},
|
|
18
|
+
textWidth: {
|
|
19
|
+
control: "select",
|
|
20
|
+
options: ["normal", "wide", "wider", "widest", "fluid"]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
</script>
|
|
10
25
|
|
|
11
|
-
|
|
26
|
+
<script>
|
|
27
|
+
import { Template, Story } from '@storybook/addon-svelte-csf';
|
|
12
28
|
|
|
13
29
|
// @ts-ignore jpg
|
|
14
30
|
import sharkSrc from './stories/shark.jpg';
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
withComponentDocs,
|
|
18
|
-
withStoryDocs,
|
|
19
|
-
} from '../../lib/docs/utils/withParams.js';
|
|
20
|
-
|
|
21
|
-
const metaProps = {
|
|
22
|
-
...withComponentDocs(componentDocs),
|
|
23
|
-
argTypes: {
|
|
24
|
-
width: {
|
|
25
|
-
control: 'select',
|
|
26
|
-
options: ['normal', 'wide', 'wider', 'widest', 'fluid'],
|
|
27
|
-
},
|
|
28
|
-
textWidth: {
|
|
29
|
-
control: 'select',
|
|
30
|
-
options: ['normal', 'wide', 'wider', 'widest', 'fluid'],
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
31
|
</script>
|
|
35
32
|
|
|
36
|
-
<Meta
|
|
37
|
-
title="Components/FeaturePhoto"
|
|
38
|
-
component="{FeaturePhoto}"
|
|
39
|
-
{...metaProps}
|
|
40
|
-
/>
|
|
41
|
-
|
|
42
33
|
<Template let:args>
|
|
43
34
|
<FeaturePhoto {...args} />
|
|
44
35
|
</Template>
|
|
@@ -54,14 +45,14 @@
|
|
|
54
45
|
/>
|
|
55
46
|
|
|
56
47
|
<Story
|
|
57
|
-
name="
|
|
48
|
+
name="ArchieML"
|
|
58
49
|
args="{{
|
|
59
50
|
src: sharkSrc,
|
|
60
51
|
altText: 'A shark!',
|
|
61
52
|
width: 'normal',
|
|
62
53
|
caption: 'Carcharodon carcharias - REUTERS',
|
|
63
54
|
}}"
|
|
64
|
-
{...withStoryDocs(
|
|
55
|
+
{...withStoryDocs(archieMLDocs)}
|
|
65
56
|
/>
|
|
66
57
|
|
|
67
58
|
<Story
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} FeaturePhotoProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} FeaturePhotoEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} FeaturePhotoSlots */
|
|
4
|
-
export default class FeaturePhoto extends SvelteComponent<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type FeaturePhotoProps = typeof __propDef.props;
|
|
11
|
-
export type FeaturePhotoEvents = typeof __propDef.events;
|
|
12
|
-
export type FeaturePhotoSlots = typeof __propDef.slots;
|
|
13
1
|
import { SvelteComponent } from "svelte";
|
|
14
|
-
declare const
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
export declare const meta: {
|
|
3
|
+
argTypes: {
|
|
4
|
+
width: {
|
|
5
|
+
control: string;
|
|
6
|
+
options: string[];
|
|
7
|
+
};
|
|
8
|
+
textWidth: {
|
|
9
|
+
control: string;
|
|
10
|
+
options: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: any;
|
|
17
15
|
};
|
|
16
|
+
title: string;
|
|
17
|
+
component: typeof FeaturePhoto;
|
|
18
|
+
};
|
|
19
|
+
declare const __propDef: {
|
|
20
|
+
props: Record<string, never>;
|
|
18
21
|
events: {
|
|
19
22
|
[evt: string]: CustomEvent<any>;
|
|
20
23
|
};
|
|
21
24
|
slots: {};
|
|
22
|
-
exports?: undefined;
|
|
23
|
-
bindings?: undefined;
|
|
25
|
+
exports?: {} | undefined;
|
|
26
|
+
bindings?: string | undefined;
|
|
24
27
|
};
|
|
28
|
+
export type FeaturePhotoProps = typeof __propDef.props;
|
|
29
|
+
export type FeaturePhotoEvents = typeof __propDef.events;
|
|
30
|
+
export type FeaturePhotoSlots = typeof __propDef.slots;
|
|
31
|
+
export default class FeaturePhoto extends SvelteComponent<FeaturePhotoProps, FeaturePhotoEvents, FeaturePhotoSlots> {
|
|
32
|
+
}
|
|
25
33
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- @component `FeaturePhoto` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-
|
|
1
|
+
<!-- @component `FeaturePhoto` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-multimedia-featurephoto--docs) -->
|
|
2
2
|
<script>import { onMount } from "svelte";
|
|
3
3
|
import Block from "../Block/Block.svelte";
|
|
4
4
|
import PaddingReset from "../PaddingReset/PaddingReset.svelte";
|
|
@@ -54,7 +54,7 @@ declare const __propDef: {
|
|
|
54
54
|
export type FeaturePhotoProps = typeof __propDef.props;
|
|
55
55
|
export type FeaturePhotoEvents = typeof __propDef.events;
|
|
56
56
|
export type FeaturePhotoSlots = typeof __propDef.slots;
|
|
57
|
-
/** `FeaturePhoto` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-
|
|
57
|
+
/** `FeaturePhoto` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-multimedia-featurephoto--docs) */
|
|
58
58
|
export default class FeaturePhoto extends SvelteComponent<FeaturePhotoProps, FeaturePhotoEvents, FeaturePhotoSlots> {
|
|
59
59
|
}
|
|
60
60
|
export {};
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { withComponentDocs } from '../../lib/docs/utils/withParams.js';
|
|
1
|
+
<script context="module">import componentDocs from "./stories/docs/component.md?raw";
|
|
2
|
+
import Framer from "./Framer.svelte";
|
|
3
|
+
import { withComponentDocs } from "../../lib/docs/utils/withParams.js";
|
|
4
|
+
export const meta = {
|
|
5
|
+
title: "Components/Utilities/Framer",
|
|
6
|
+
component: Framer,
|
|
7
|
+
...withComponentDocs(componentDocs)
|
|
8
|
+
};
|
|
10
9
|
</script>
|
|
11
10
|
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
{...withComponentDocs(componentDocs)}
|
|
16
|
-
/>
|
|
11
|
+
<script>
|
|
12
|
+
import { Template, Story } from '@storybook/addon-svelte-csf';
|
|
13
|
+
</script>
|
|
17
14
|
|
|
18
15
|
<Template let:args>
|
|
19
16
|
<Framer {...args} />
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} FramerProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} FramerEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} FramerSlots */
|
|
4
|
-
export default class Framer extends SvelteComponent<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type FramerProps = typeof __propDef.props;
|
|
11
|
-
export type FramerEvents = typeof __propDef.events;
|
|
12
|
-
export type FramerSlots = typeof __propDef.slots;
|
|
13
1
|
import { SvelteComponent } from "svelte";
|
|
14
|
-
declare const
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
export declare const meta: {
|
|
3
|
+
parameters: {
|
|
4
|
+
docs: any;
|
|
17
5
|
};
|
|
6
|
+
title: string;
|
|
7
|
+
component: typeof Framer;
|
|
8
|
+
};
|
|
9
|
+
declare const __propDef: {
|
|
10
|
+
props: Record<string, never>;
|
|
18
11
|
events: {
|
|
19
12
|
[evt: string]: CustomEvent<any>;
|
|
20
13
|
};
|
|
21
14
|
slots: {};
|
|
22
|
-
exports?: undefined;
|
|
23
|
-
bindings?: undefined;
|
|
15
|
+
exports?: {} | undefined;
|
|
16
|
+
bindings?: string | undefined;
|
|
24
17
|
};
|
|
18
|
+
export type FramerProps = typeof __propDef.props;
|
|
19
|
+
export type FramerEvents = typeof __propDef.events;
|
|
20
|
+
export type FramerSlots = typeof __propDef.slots;
|
|
21
|
+
export default class Framer extends SvelteComponent<FramerProps, FramerEvents, FramerSlots> {
|
|
22
|
+
}
|
|
25
23
|
export {};
|
|
@@ -281,6 +281,7 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
|
|
|
281
281
|
[data-svelte-typeahead] {
|
|
282
282
|
position: relative;
|
|
283
283
|
}
|
|
284
|
+
|
|
284
285
|
ul {
|
|
285
286
|
position: absolute;
|
|
286
287
|
top: 100%;
|
|
@@ -291,23 +292,27 @@ ul {
|
|
|
291
292
|
list-style: none;
|
|
292
293
|
background-color: #fff;
|
|
293
294
|
}
|
|
295
|
+
|
|
294
296
|
[aria-expanded=true] ul {
|
|
295
297
|
z-index: 1;
|
|
296
298
|
border: 1px solid #ddd;
|
|
297
299
|
max-height: 50vh;
|
|
298
300
|
overflow-y: scroll;
|
|
299
301
|
}
|
|
302
|
+
|
|
300
303
|
li,
|
|
301
304
|
li.no-results {
|
|
302
305
|
padding: 0.25rem 1rem;
|
|
303
306
|
font-family: var(--theme-font-family-sans-serif);
|
|
304
307
|
color: #333;
|
|
305
308
|
}
|
|
309
|
+
|
|
306
310
|
li.no-results {
|
|
307
311
|
color: #333;
|
|
308
312
|
font-size: 0.85rem;
|
|
309
313
|
font-style: italic;
|
|
310
314
|
}
|
|
315
|
+
|
|
311
316
|
li {
|
|
312
317
|
cursor: pointer;
|
|
313
318
|
}
|
|
@@ -315,22 +320,28 @@ li :global(mark) {
|
|
|
315
320
|
padding: 0;
|
|
316
321
|
background-color: #ffff9a;
|
|
317
322
|
}
|
|
323
|
+
|
|
318
324
|
li:not(:last-of-type) {
|
|
319
325
|
border-bottom: 1px solid #e0e0e0;
|
|
320
326
|
}
|
|
327
|
+
|
|
321
328
|
li:hover {
|
|
322
329
|
background-color: #efefef;
|
|
323
330
|
}
|
|
331
|
+
|
|
324
332
|
.selected {
|
|
325
333
|
background-color: #efefef;
|
|
326
334
|
}
|
|
335
|
+
|
|
327
336
|
.selected:hover {
|
|
328
337
|
background-color: #e5e5e5;
|
|
329
338
|
}
|
|
339
|
+
|
|
330
340
|
.disabled {
|
|
331
341
|
opacity: 0.4;
|
|
332
342
|
cursor: not-allowed;
|
|
333
343
|
}
|
|
344
|
+
|
|
334
345
|
:global([data-svelte-search] label) {
|
|
335
346
|
margin-bottom: 0.25rem;
|
|
336
347
|
display: inline-flex;
|
|
@@ -338,6 +349,7 @@ li:hover {
|
|
|
338
349
|
color: #aaa;
|
|
339
350
|
font-family: var(--theme-font-family-sans-serif);
|
|
340
351
|
}
|
|
352
|
+
|
|
341
353
|
:global([data-svelte-search] input) {
|
|
342
354
|
width: 100%;
|
|
343
355
|
padding: 0.5rem 0.75rem;
|
|
@@ -349,6 +361,7 @@ li:hover {
|
|
|
349
361
|
border: 1px solid #ddd;
|
|
350
362
|
font-family: var(--theme-font-family-sans-serif);
|
|
351
363
|
}
|
|
364
|
+
|
|
352
365
|
:global([data-svelte-search] input:focus) {
|
|
353
366
|
outline: none;
|
|
354
367
|
border: 1px solid #ccc;
|
|
@@ -1,47 +1,36 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
<script context="module">import componentDocs from "./stories/docs/component.md?raw";
|
|
2
|
+
import archieMLDocs from "./stories/docs/archieML.md?raw";
|
|
3
|
+
import customTextDocs from "./stories/docs/customText.md?raw";
|
|
4
|
+
import ai2svelteDocs from "./stories/docs/ai2svelte.md?raw";
|
|
5
|
+
import ariaDocs from "./stories/docs/aria.md?raw";
|
|
6
|
+
import GraphicBlock from "./GraphicBlock.svelte";
|
|
7
|
+
import { withComponentDocs, withStoryDocs } from "$docs/utils/withParams.js";
|
|
8
|
+
export const meta = {
|
|
9
|
+
title: "Components/Graphics/GraphicBlock",
|
|
10
|
+
component: GraphicBlock,
|
|
11
|
+
...withComponentDocs(componentDocs),
|
|
12
|
+
argTypes: {
|
|
13
|
+
width: {
|
|
14
|
+
control: "select",
|
|
15
|
+
options: ["normal", "wide", "wider", "widest", "fluid"]
|
|
16
|
+
},
|
|
17
|
+
textWidth: {
|
|
18
|
+
control: "select",
|
|
19
|
+
options: ["normal", "wide", "wider", "widest", "fluid"]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
</script>
|
|
14
24
|
|
|
15
|
-
|
|
25
|
+
<script>
|
|
26
|
+
import { Template, Story } from '@storybook/addon-svelte-csf';
|
|
16
27
|
|
|
17
28
|
import AiMap from './stories/ai2svelte/ai-chart.svelte';
|
|
18
29
|
|
|
19
|
-
import { withComponentDocs, withStoryDocs } from '$docs/utils/withParams.js';
|
|
20
|
-
|
|
21
30
|
// @ts-ignore img
|
|
22
31
|
import PlaceholderImg from './stories/placeholder.png';
|
|
23
|
-
|
|
24
|
-
const metaProps = {
|
|
25
|
-
...withComponentDocs(componentDocs),
|
|
26
|
-
argTypes: {
|
|
27
|
-
width: {
|
|
28
|
-
control: 'select',
|
|
29
|
-
options: ['normal', 'wide', 'wider', 'widest', 'fluid'],
|
|
30
|
-
},
|
|
31
|
-
textWidth: {
|
|
32
|
-
control: 'select',
|
|
33
|
-
options: ['normal', 'wide', 'wider', 'widest', 'fluid'],
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
32
|
</script>
|
|
38
33
|
|
|
39
|
-
<Meta
|
|
40
|
-
title="Components/GraphicBlock"
|
|
41
|
-
component="{GraphicBlock}"
|
|
42
|
-
{...metaProps}
|
|
43
|
-
/>
|
|
44
|
-
|
|
45
34
|
<Template let:args>
|
|
46
35
|
<GraphicBlock {...args}>
|
|
47
36
|
<div class="demo-graphic">
|
|
@@ -62,7 +51,7 @@
|
|
|
62
51
|
}}"
|
|
63
52
|
/>
|
|
64
53
|
|
|
65
|
-
<Story name="
|
|
54
|
+
<Story name="ArchieML" {...withStoryDocs(archieMLDocs)}>
|
|
66
55
|
<GraphicBlock
|
|
67
56
|
width="normal"
|
|
68
57
|
title="Earthquake in Haiti"
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} GraphicBlockProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} GraphicBlockEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} GraphicBlockSlots */
|
|
4
|
-
export default class GraphicBlock extends SvelteComponent<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type GraphicBlockProps = typeof __propDef.props;
|
|
11
|
-
export type GraphicBlockEvents = typeof __propDef.events;
|
|
12
|
-
export type GraphicBlockSlots = typeof __propDef.slots;
|
|
13
1
|
import { SvelteComponent } from "svelte";
|
|
14
|
-
declare const
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
export declare const meta: {
|
|
3
|
+
argTypes: {
|
|
4
|
+
width: {
|
|
5
|
+
control: string;
|
|
6
|
+
options: string[];
|
|
7
|
+
};
|
|
8
|
+
textWidth: {
|
|
9
|
+
control: string;
|
|
10
|
+
options: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: any;
|
|
17
15
|
};
|
|
16
|
+
title: string;
|
|
17
|
+
component: typeof GraphicBlock;
|
|
18
|
+
};
|
|
19
|
+
declare const __propDef: {
|
|
20
|
+
props: Record<string, never>;
|
|
18
21
|
events: {
|
|
19
22
|
[evt: string]: CustomEvent<any>;
|
|
20
23
|
};
|
|
21
24
|
slots: {};
|
|
22
|
-
exports?: undefined;
|
|
23
|
-
bindings?: undefined;
|
|
25
|
+
exports?: {} | undefined;
|
|
26
|
+
bindings?: string | undefined;
|
|
24
27
|
};
|
|
28
|
+
export type GraphicBlockProps = typeof __propDef.props;
|
|
29
|
+
export type GraphicBlockEvents = typeof __propDef.events;
|
|
30
|
+
export type GraphicBlockSlots = typeof __propDef.slots;
|
|
31
|
+
export default class GraphicBlock extends SvelteComponent<GraphicBlockProps, GraphicBlockEvents, GraphicBlockSlots> {
|
|
32
|
+
}
|
|
25
33
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- @component `GraphicBlock` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-
|
|
1
|
+
<!-- @component `GraphicBlock` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-graphics-graphicblock--docs) -->
|
|
2
2
|
<script>export let width = "normal";
|
|
3
3
|
export let id = "";
|
|
4
4
|
let cls = "";
|
|
@@ -61,7 +61,7 @@ declare const __propDef: {
|
|
|
61
61
|
export type GraphicBlockProps = typeof __propDef.props;
|
|
62
62
|
export type GraphicBlockEvents = typeof __propDef.events;
|
|
63
63
|
export type GraphicBlockSlots = typeof __propDef.slots;
|
|
64
|
-
/** `GraphicBlock` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-
|
|
64
|
+
/** `GraphicBlock` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-graphics-graphicblock--docs) */
|
|
65
65
|
export default class GraphicBlock extends SvelteComponent<GraphicBlockProps, GraphicBlockEvents, GraphicBlockSlots> {
|
|
66
66
|
}
|
|
67
67
|
export {};
|
|
@@ -1,48 +1,39 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
1
|
+
<script context="module">import componentDocs from "./stories/docs/component.md?raw";
|
|
2
|
+
import withBylineDocs from "./stories/docs/withByline.md?raw";
|
|
3
|
+
import withDekDocs from "./stories/docs/withDek.md?raw";
|
|
4
|
+
import customHedDocs from "./stories/docs/customHed.md?raw";
|
|
5
|
+
import withCrownImgDocs from "./stories/docs/withCrownImage.md?raw";
|
|
6
|
+
import withCrownGraphicDocs from "./stories/docs/withCrownGraphic.md?raw";
|
|
7
|
+
import Headline from "./Headline.svelte";
|
|
8
|
+
import {
|
|
9
|
+
withComponentDocs,
|
|
10
|
+
withStoryDocs
|
|
11
|
+
} from "../../lib/docs/utils/withParams.js";
|
|
12
|
+
export const meta = {
|
|
13
|
+
title: "Components/Text elements/Headline",
|
|
14
|
+
component: Headline,
|
|
15
|
+
...withComponentDocs(componentDocs),
|
|
16
|
+
argTypes: {
|
|
17
|
+
hedSize: {
|
|
18
|
+
control: "select",
|
|
19
|
+
options: ["small", "normal", "big", "bigger", "biggest"]
|
|
20
|
+
},
|
|
21
|
+
width: {
|
|
22
|
+
control: "select",
|
|
23
|
+
options: ["normal", "wide", "wider", "widest"]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
</script>
|
|
3
28
|
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
// @ts-ignore raw
|
|
7
|
-
import withBylineDocs from './stories/docs/withByline.md?raw';
|
|
8
|
-
// @ts-ignore raw
|
|
9
|
-
import withDekDocs from './stories/docs/withDek.md?raw';
|
|
10
|
-
// @ts-ignore raw
|
|
11
|
-
import customHedDocs from './stories/docs/customHed.md?raw';
|
|
12
|
-
// @ts-ignore raw
|
|
13
|
-
import withCrownImgDocs from './stories/docs/withCrownImage.md?raw';
|
|
14
|
-
// @ts-ignore raw
|
|
15
|
-
import withCrownGraphicDocs from './stories/docs/withCrownGraphic.md?raw';
|
|
29
|
+
<script>
|
|
30
|
+
import { Template, Story } from '@storybook/addon-svelte-csf';
|
|
16
31
|
|
|
17
32
|
// @ts-ignore img
|
|
18
33
|
import crownImgSrc from './stories/crown.png';
|
|
19
34
|
import Map from './stories/graphic.svelte';
|
|
20
|
-
|
|
21
|
-
import Headline from './Headline.svelte';
|
|
22
|
-
|
|
23
|
-
import {
|
|
24
|
-
withComponentDocs,
|
|
25
|
-
withStoryDocs,
|
|
26
|
-
} from '../../lib/docs/utils/withParams.js';
|
|
27
|
-
|
|
28
|
-
const metaProps = {
|
|
29
|
-
...withComponentDocs(componentDocs),
|
|
30
|
-
// https://storybook.js.org/docs/svelte/essentials/controls
|
|
31
|
-
argTypes: {
|
|
32
|
-
hedSize: {
|
|
33
|
-
control: 'select',
|
|
34
|
-
options: ['small', 'normal', 'big', 'bigger', 'biggest'],
|
|
35
|
-
},
|
|
36
|
-
width: {
|
|
37
|
-
control: 'select',
|
|
38
|
-
options: ['normal', 'wide', 'wider', 'widest'],
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
35
|
</script>
|
|
43
36
|
|
|
44
|
-
<Meta title="Components/Headline" component="{Headline}" {...metaProps} />
|
|
45
|
-
|
|
46
37
|
<Template let:args>
|
|
47
38
|
<Headline {...args} />
|
|
48
39
|
</Template>
|