import type { Meta, StoryObj } from '@storybook/vue3-vite' import VvInputText from '@/components/VvInputText/VvInputText.vue' import { argTypes, defaultArgs } from './InputText.settings' import { isoTest } from './InputText.test' const meta: Meta = { title: 'Components/InputText/Iso', component: VvInputText, args: defaultArgs, argTypes, } export default meta type Story = StoryObj export const TypeDate: Story = { args: { ...defaultArgs, type: 'date', }, render: args => ({ components: { VvInputText }, setup() { return { args } }, data: () => ({ inputValue: `2024-12-31T23:00:00.000Z`, }), template: /* html */ `
Value: {{ inputValue }}
`, }), play: isoTest, } export const TypeTime: Story = { ...TypeDate, args: { ...defaultArgs, type: 'time', }, } export const TypeTimeMinute: Story = { ...TypeDate, args: { ...defaultArgs, type: 'time', step: 60, }, } export const TypeMonth: Story = { ...TypeDate, args: { ...defaultArgs, type: 'month', }, } export const TypeDateTime: Story = { ...TypeDate, args: { ...defaultArgs, type: 'datetime-local', }, }