From df2dec662c4e57bbc1c7d3f600717bdd6d181ee5 Mon Sep 17 00:00:00 2001 From: Nikita Galaiko Date: Fri, 31 Mar 2023 13:00:15 +0200 Subject: [PATCH] separate button group component + stories --- .../components/ButtonGroup}/ButtonGroup.stories.ts | 2 +- src/lib/components/{ => ButtonGroup}/ButtonGroup.svelte | 0 src/lib/components/ButtonGroup/index.ts | 2 ++ src/lib/components/Dialog.svelte | 2 +- src/lib/components/index.ts | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) rename src/{stories => lib/components/ButtonGroup}/ButtonGroup.stories.ts (93%) rename src/lib/components/{ => ButtonGroup}/ButtonGroup.svelte (100%) create mode 100644 src/lib/components/ButtonGroup/index.ts diff --git a/src/stories/ButtonGroup.stories.ts b/src/lib/components/ButtonGroup/ButtonGroup.stories.ts similarity index 93% rename from src/stories/ButtonGroup.stories.ts rename to src/lib/components/ButtonGroup/ButtonGroup.stories.ts index cb1c67729..0995529ad 100644 --- a/src/stories/ButtonGroup.stories.ts +++ b/src/lib/components/ButtonGroup/ButtonGroup.stories.ts @@ -1,6 +1,6 @@ import type { Meta, StoryObj } from '@storybook/svelte'; -import ButtonGroup from '$lib/components/ButtonGroup.svelte'; +import ButtonGroup from './ButtonGroup.svelte'; // More on how to set up stories at: https://storybook.js.org/docs/7.0/svelte/writing-stories/introduction const meta: Meta = { diff --git a/src/lib/components/ButtonGroup.svelte b/src/lib/components/ButtonGroup/ButtonGroup.svelte similarity index 100% rename from src/lib/components/ButtonGroup.svelte rename to src/lib/components/ButtonGroup/ButtonGroup.svelte diff --git a/src/lib/components/ButtonGroup/index.ts b/src/lib/components/ButtonGroup/index.ts new file mode 100644 index 000000000..9f89ee01d --- /dev/null +++ b/src/lib/components/ButtonGroup/index.ts @@ -0,0 +1,2 @@ +import ButtonGroup from './ButtonGroup.svelte'; +export default ButtonGroup; diff --git a/src/lib/components/Dialog.svelte b/src/lib/components/Dialog.svelte index 1e88505e9..d2b86152d 100644 --- a/src/lib/components/Dialog.svelte +++ b/src/lib/components/Dialog.svelte @@ -1,5 +1,5 @@