import { ErrorMessage, Field, Form, Formik, FormikHelpers, FormikValues } from 'formik' import type { Meta, StoryObj } from '@storybook/react' import CheckRadioField from './CheckRadioField' import Flex from '../Flex' import FormField from './FormField.component' import { IFormField } from './FormField.interface' import Icon from '../Icon' import React from 'react' // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export export default { title: 'Components/FormField', component: FormField, tags: ['autodocs'], args: { name: 'nome', type: 'text', as: 'input' }, argTypes: { as: { defaultValue: 'input', description: 'Overwritten description', options: ['input', 'textarea', 'select'] }, name: { defaultValue: 'texto', description: 'Required name property' }, type: { defaultValue: 'text', control: 'select', description: 'Type of input element if as is input', options: [ 'button', 'checkbox', 'color', 'date', 'datetime-local', 'email', 'hidden', 'image', 'month', 'number', 'password', 'radio', 'range', 'reset', 'search', 'submit', 'tel', 'text', 'time', 'url', 'week' ] } } } as Meta export const Simple: StoryObj = { render: args => ( ): void | Promise { throw new Error('Function not implemented.') }} >
), args: {} } export const WithIcon: StoryObj = { render: args => ( ): void | Promise { throw new Error('Function not implemented.') }} >
} >
), args: {} } export const FilterWithInputs: StoryObj = { render: args => ( ): void | Promise { throw new Error('Function not implemented.') }} >
} > console.log(e)} > } > console.log(e)} > } > console.log(e)} >
), args: {} } export const DarkStyle: StoryObj = { render: args => (
): void | Promise { throw new Error('Function not implemented.') }} >
} > console.log(e)} > } > console.log(e)} > } > console.log(e)} > console.log(e)} > console.log(e)} >
), args: {} } export const All: StoryObj = { render: args => ( ): void | Promise { throw new Error('Function not implemented.') }} >
} > console.log(e)} > } > console.log(e)} > } > console.log(e)} > console.log(e)} > console.log(e)} >
), args: {} }