import React from 'react';
import { Meta, Story } from '@storybook/react';
import { AtomInputPassword, IInputPasswordProps } from 'react/atoms/Input/InputPassword';

const meta: Meta = {
  title: 'React/atoms/Input',
  component: AtomInputPassword,
  argTypes: {
    readOnly: {table: {disable: true}},
    errorCallback: {table: {disable: true}},
  },
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateInputPassword: Story<IInputPasswordProps> = (props) => (
  <AtomInputPassword {...props} />
);

export const InputPassword = TemplateInputPassword.bind({});

InputPassword.args = {
  disabled: false,
  regex: '^[0-9]+$',
};
