import * as React from 'react' import type { StoryObj, Meta } from '@storybook/react-webpack5' import { DatePicker } from '.' import { Comment } from '@planview/pv-icons' export default { title: 'pv-form/Components/DatePicker', tags: ['autodocs'], component: DatePicker, args: { label: 'Choose date', }, argTypes: { error: { control: { type: 'text' }, }, warning: { control: { type: 'text' }, }, }, parameters: { badges: ['intl'], }, } satisfies Meta type Story = StoryObj export const Default: Story = {} export const WithError: Story = { args: { error: 'Some error description here...', }, } export const WithWarning: Story = { args: { warning: 'Some warning message here...', }, } export const WithAsterisk: Story = { args: { label: 'Field is required', withAsterisk: true, }, } export const NotClearable: Story = { args: { clearable: false, }, } export const WithAsteriskAndIcon: Story = { args: { label: { text: 'Field is required with icon', required: true, requiredTooltip: 'This is required', iconTooltip: 'You may want to provide additional information using this mechanism', }, }, } export const WithCustomIcon: Story = { args: { label: 'Sample label', icon: , }, }