chore: remove storybook

This commit is contained in:
Eric Liu 2020-10-14 16:23:44 -07:00
commit 378fe06e03
116 changed files with 103 additions and 14249 deletions

View file

@ -1,21 +0,0 @@
<script>
export let story = undefined;
import ChevronDown16 from "carbon-icons-svelte/lib/ChevronDown16";
import ArrowLeft20 from "carbon-icons-svelte/lib/ArrowLeft20";
import Add24 from "carbon-icons-svelte/lib/Add24";
import Icon from "./Icon.svelte";
import IconSkeleton from "./Icon.Skeleton.svelte";
const icons = { ChevronDown16, ArrowLeft20, Add24 };
</script>
{#if story === 'skeleton'}
<div>
<IconSkeleton size="{16}" style="margin: 2rem;" />
<IconSkeleton size="{32}" style="margin: 2rem" />
</div>
{:else}
<Icon {...$$props} render="{icons[$$props.icon]}" />
{/if}

View file

@ -1,24 +0,0 @@
import { withKnobs, select, boolean } from "@storybook/addon-knobs";
import Component from "./Icon.Story.svelte";
export default { title: "Icon", decorators: [withKnobs] };
const icons = {
ChevronDown16: "ChevronDown16",
ArrowLeft20: "ArrowLeft20",
Add24: "Add24",
};
export const Default = () => ({
Component,
props: {
icon: select(
"Render icon from `carbon-icons-svelte` (render)",
icons,
"ChevronDown16"
),
skeleton: boolean("Display icon skeleton (skeleton)", false),
},
});
export const Skeleton = () => ({ Component, props: { story: "skeleton" } });