mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore: remove storybook
This commit is contained in:
parent
856086dc71
commit
378fe06e03
116 changed files with 103 additions and 14249 deletions
|
@ -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>
|
|
@ -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
|
||||
),
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue