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,33 +0,0 @@
<script>
export let page = 0;
import PaginationNav from "./PaginationNav.svelte";
import { Button } from "../Button";
</script>
<div style="width: 800px;">
<PaginationNav
{...$$props}
bind:page
on:change="{({ detail }) => {
console.log('on:change', detail);
}}"
on:click:button--previous="{({ detail }) => {
console.log('button--previous', detail);
}}"
on:click:button--next="{({ detail }) => {
console.log('button--next', detail);
}}"
/>
<div style="margin-top: 1.5rem">Bound page index: {page}</div>
<Button
kind="tertiary"
size="small"
style="margin-top: 1rem;"
on:click="{() => {
page = 3;
}}"
>
Set page to index 3
</Button>
</div>

View file

@ -1,17 +0,0 @@
import { withKnobs, number, boolean } from "@storybook/addon-knobs";
import Component from "./PaginationNav.Story.svelte";
export default { title: "PaginationNav", decorators: [withKnobs] };
export const Default = () => ({
Component,
props: {
page: number("Current page index (page)", 0),
total: number("Total number of items (total)", 10),
shown: number("Number of items to be shown (minimum 4) (shown)", 10),
loop: boolean(
"Allow user to loop through the items when reaching first / last (loop)",
false
),
},
});