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,17 +0,0 @@
<script>
export let story = undefined;
import TextArea from "./TextArea.svelte";
import TextAreaSkeleton from "./TextArea.Skeleton.svelte";
$: ref = null;
$: console.log(ref);
$: value = "";
$: console.log("bound value:", value);
</script>
{#if story === 'skeleton'}
<TextAreaSkeleton {...$$props} />
{:else}
<TextArea {...$$props} bind:value bind:ref />
{/if}

View file

@ -1,27 +0,0 @@
import { withKnobs, boolean, text, number } from "@storybook/addon-knobs";
import Component from "./TextArea.Story.svelte";
export default { title: "TextArea", decorators: [withKnobs] };
export const Default = () => ({
Component,
props: {
id: text("TextArea id", "text-area-id"),
name: text("TextArea name", "text-area-name"),
disabled: boolean("Disabled (disabled)", false),
light: boolean("Light variant (light)", false),
hideLabel: boolean("No label (hideLabel)", false),
labelText: text("Label text (labelText)", "Text Area label"),
invalid: boolean("Show form validation UI (invalid)", false),
helperText: text("Helper text (helperText)", "Optional helper text here"),
invalidText: text(
"Content of form validation UI (invalidText)",
"A valid value is required"
),
placeholder: text("Placeholder text (placeholder)", "Placeholder text."),
cols: number("Columns (columns)", 50),
rows: number("Rows (rows)", 4),
},
});
export const Skeleton = () => ({ Component, props: { story: "skeleton" } });