import type { Meta } from '@storybook/svelte'

import BasicExample from './examples/basic.svelte'
import MultipleTriggersExample from './examples/multiple-triggers.svelte'
import SnapPointsExample from './examples/snap-points.svelte'
import ControlledExample from './examples/controlled.svelte'
import ModalExample from './examples/modal.svelte'
import RootProviderExample from './examples/root-provider.svelte'
import ScrollableExample from './examples/scrollable.svelte'
import NoDragAreaExample from './examples/no-drag-area.svelte'
import NonDraggableExample from './examples/non-draggable.svelte'
import IndentBackgroundExample from './examples/indent-background.svelte'
import SwipeDirectionExample from './examples/swipe-direction.svelte'
import NestedExample from './examples/nested.svelte'

const meta: Meta = {
  title: 'Components / Drawer',
}

export default meta

export const Basic = {
  render: () => ({
    Component: BasicExample,
  }),
}

export const SnapPoints = {
  render: () => ({
    Component: SnapPointsExample,
  }),
}

export const Controlled = {
  render: () => ({
    Component: ControlledExample,
  }),
}

export const MultipleTriggers = {
  render: () => ({
    Component: MultipleTriggersExample,
  }),
}

export const Modal = {
  render: () => ({
    Component: ModalExample,
  }),
}

export const RootProvider = {
  render: () => ({
    Component: RootProviderExample,
  }),
}

export const Scrollable = {
  render: () => ({
    Component: ScrollableExample,
  }),
}

export const NoDragArea = {
  render: () => ({
    Component: NoDragAreaExample,
  }),
}

export const NonDraggable = {
  render: () => ({
    Component: NonDraggableExample,
  }),
}

export const IndentBackground = {
  render: () => ({
    Component: IndentBackgroundExample,
  }),
}

export const SwipeDirection = {
  render: () => ({
    Component: SwipeDirectionExample,
  }),
}

export const Nested = {
  render: () => ({
    Component: NestedExample,
  }),
}
