import type { Meta, StoryObj } from '@storybook/vue3-vite' import { ref } from 'vue' import { Dialog as NychDialog, DialogTrigger as NychDialogTrigger, DialogContent as NychDialogContent, DialogHeader as NychDialogHeader, DialogTitle as NychDialogTitle, DialogFooter as NychDialogFooter, Button as NychButton, } from '@nychthemeron/library' const meta = { title: 'Components/Dialog', component: NychDialog, parameters: { layout: 'centered', }, tags: ['autodocs'], } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { render: () => ({ components: { NychDialog, NychDialogTrigger, NychDialogContent, NychDialogHeader, NychDialogTitle, NychDialogFooter, NychButton }, template: ` Summon the Oracle Oracle of Delphi

Seekers travelled from across the Aegean to hear the Pythia speak the will of Apollo in riddling verse. Approach, and ask your question.

Withdraw Ask
`, }), } export const Open: Story = { render: () => ({ components: { NychDialog, NychDialogContent, NychDialogHeader, NychDialogTitle, NychDialogFooter, NychButton }, setup() { const open = ref(true) return { open } }, template: ` Passage of the Styx

Charon ferries the souls of the dead across the river that divides the world of the living from the world of the dead. One obol is required.

Turn back Pay the toll
`, }), } export const WithoutFooter: Story = { render: () => ({ components: { NychDialog, NychDialogContent, NychDialogHeader, NychDialogTitle }, setup() { const open = ref(true) return { open } }, template: ` An Omen

A crow has settled upon the western gate. Interpret it as you will.

`, }), }