import type { Meta, StoryObj } from '@storybook/vue3-vite'; import Button from '@/components/button/button.vue'; import LinkButton from '@/components/button/link-button.vue'; import Label from '@/components/label/label.vue'; import TextInput from '@/components/text-input/text-input.vue'; import ModalBody from '../modal-body.vue'; import ModalClose from '../modal-close.vue'; import ModalContent from '../modal-content.vue'; import ModalFooter from '../modal-footer.vue'; import ModalHeader from '../modal-header.vue'; import ModalTrigger from '../modal-trigger.vue'; import Modal from '../modal.vue'; const meta: Meta = { title: 'Components/Modal', component: Modal, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { }, render: args => ({ components: { Modal, ModalTrigger, ModalContent, ModalHeader, ModalBody, ModalFooter, ModalClose, TextInput, Label, Button }, setup() { return { args }; }, template: `
`, }), }; export const WithoutDescription: Story = { args: { }, render: args => ({ components: { Modal, ModalTrigger, ModalContent, ModalHeader, ModalBody, ModalFooter, ModalClose, TextInput, Label, Button }, setup() { return { args }; }, template: `
`, }), }; export const WithoutIcon: Story = { args: { }, render: args => ({ components: { Modal, ModalTrigger, ModalContent, ModalHeader, ModalBody, ModalFooter, ModalClose, TextInput, Label, Button }, setup() { return { args }; }, template: `
`, }), }; export const Alignment: Story = { args: { }, render: args => ({ components: { Modal, ModalTrigger, ModalContent, ModalHeader, ModalFooter, ModalClose, TextInput, Label, LinkButton, Button }, setup() { return { args }; }, template: `
`, }), }; export const Status: Story = { args: { }, render: args => ({ components: { Modal, ModalTrigger, ModalContent, ModalHeader, ModalFooter, ModalClose, TextInput, Label, LinkButton, Button }, setup() { return { args }; }, template: `
I'm not interested
Don't show it again
`, }), };