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

const meta: Meta = {
  title: 'React Native/atoms/Input',
  component: AtomInputPassword,
  argTypes: {
    errorCallback: {table: {disable: true}},
    readOnly: {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]+$',
};