mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51: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,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}
|
|
@ -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" } });
|
Loading…
Add table
Add a link
Reference in a new issue