From 6860fd38b07f7d84729716e45ef0966c86397714 Mon Sep 17 00:00:00 2001 From: Arthur Green Date: Sat, 14 Oct 2023 22:53:20 +0400 Subject: [PATCH] feat(Input): add multiple sizes --- src/components/input/Input.stories.ts | 15 ++--- src/components/input/Input.tsx | 4 +- src/components/input/input.module.scss | 23 +++++++ src/pages/index.tsx | 4 +- src/services/AuthBlob.tsx | 6 ++ src/services/auth.ts | 50 +++++++-------- src/services/hooks/useDataFetch.tsx | 87 ++++++++++++++------------ 7 files changed, 114 insertions(+), 75 deletions(-) create mode 100644 src/services/AuthBlob.tsx diff --git a/src/components/input/Input.stories.ts b/src/components/input/Input.stories.ts index 374ffc0..e0b5fc6 100644 --- a/src/components/input/Input.stories.ts +++ b/src/components/input/Input.stories.ts @@ -46,19 +46,20 @@ export const Large: Story = { }, }; -export const Small: Story = { +export const Medium: Story = { args: { - size: 'small', - label: 'Button', - placeholder: 'placeholder', + size: 'medium', + label: 'Delete now', id: 'button-label', + placeholder: 'placeholder', }, }; -export const Warning: Story = { +export const Small: Story = { args: { - label: 'Delete now', - id: 'button-label', + size: 'small', + label: 'Button', placeholder: 'placeholder', + id: 'button-label', }, }; diff --git a/src/components/input/Input.tsx b/src/components/input/Input.tsx index 1c3b123..ec52293 100644 --- a/src/components/input/Input.tsx +++ b/src/components/input/Input.tsx @@ -22,7 +22,7 @@ export const Input = ({ size = 'medium', }: InputProps) => ( <> -