mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
chore: remove storybook
This commit is contained in:
parent
856086dc71
commit
378fe06e03
116 changed files with 103 additions and 14249 deletions
|
@ -1,24 +0,0 @@
|
|||
<script>
|
||||
export let story = undefined;
|
||||
|
||||
import Search from "./Search.svelte";
|
||||
import SearchSkeleton from "./Search.Skeleton.svelte";
|
||||
|
||||
let value = "";
|
||||
|
||||
$: {
|
||||
if (!value.length) {
|
||||
console.log("cleared");
|
||||
} else {
|
||||
console.log("value", value);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div>
|
||||
{#if story === 'skeleton'}
|
||||
<SearchSkeleton />
|
||||
{:else}
|
||||
<Search {...$$props} bind:value />
|
||||
{/if}
|
||||
</div>
|
|
@ -1,27 +0,0 @@
|
|||
import { withKnobs, select, boolean, text } from "@storybook/addon-knobs";
|
||||
import Component from "./Search.Story.svelte";
|
||||
|
||||
export default { title: "Search", decorators: [withKnobs] };
|
||||
|
||||
const sizes = {
|
||||
"Regular size (xl)": "xl",
|
||||
"Large size (lg)": "lg",
|
||||
"Small size (sm)": "sm",
|
||||
};
|
||||
|
||||
export const Default = () => ({
|
||||
Component,
|
||||
props: {
|
||||
size: select("Size (size)", sizes, "xl"),
|
||||
light: boolean("Light variant (light)", false),
|
||||
name: text("Form item name (name)", ""),
|
||||
labelText: text("Label text (labelText)", "Search"),
|
||||
closeButtonLabelText: text(
|
||||
"The label text for the close button (closeButtonLabelText)",
|
||||
"Clear search input"
|
||||
),
|
||||
placeholder: text("Placeholder text (placeholder)", "Search"),
|
||||
},
|
||||
});
|
||||
|
||||
export const Skeleton = () => ({ Component, props: { story: "skeleton" } });
|
Loading…
Add table
Add a link
Reference in a new issue