Skip to content

Commit

Permalink
Remove tablet stories + add plot story
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahblair committed Jan 31, 2024
1 parent 0091b50 commit e88429b
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 6 deletions.
1 change: 0 additions & 1 deletion js/audio/Audio.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
chromatic: {
modes: {
desktop: allModes["desktop"],
tablet: allModes["tablet"],
mobile: allModes["mobile"]
}
}
Expand Down
1 change: 0 additions & 1 deletion js/chatbot/Chatbot.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
chromatic: {
modes: {
desktop: allModes["desktop"],
tablet: allModes["tablet"],
mobile: allModes["mobile"]
}
}
Expand Down
1 change: 0 additions & 1 deletion js/gallery/Gallery.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
chromatic: {
modes: {
desktop: allModes["desktop"],
tablet: allModes["tablet"],
mobile: allModes["mobile"]
}
}
Expand Down
1 change: 0 additions & 1 deletion js/image/Image.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
chromatic: {
modes: {
desktop: allModes["desktop"],
tablet: allModes["tablet"],
mobile: allModes["mobile"]
}
}
Expand Down
1 change: 0 additions & 1 deletion js/imageeditor/ImageEditor.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
chromatic: {
modes: {
desktop: allModes["desktop"],
tablet: allModes["tablet"],
mobile: allModes["mobile"]
}
}
Expand Down
38 changes: 38 additions & 0 deletions js/plot/Plot.stories.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<script context="module">
import { Template, Story } from "@storybook/addon-svelte-csf";
import PlotComponent from "./Index.svelte";
import { allModes } from "../storybook/modes";
import { test_plot } from "./testplot";
export const meta = {
title: "Components/Plot",
component: PlotComponent,
parameters: {
chromatic: {
modes: {
desktop: allModes["desktop"],
mobile: allModes["mobile"]
}
}
}
};
</script>

<Template let:args>
<PlotComponent value="Plot" {...args} />
</Template>

<Story
name="with value"
args={{
value: test_plot,
label: "Plot"
}}
/>

<Story
name="with no value"
args={{
label: "Plot"
}}
/>
4 changes: 4 additions & 0 deletions js/plot/testplot.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion js/video/Video.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
chromatic: {
modes: {
desktop: allModes["desktop"],
tablet: allModes["tablet"],
mobile: allModes["mobile"]
}
}
Expand Down

0 comments on commit e88429b

Please sign in to comment.