From c73f14c0c8c765b13a1c18ed84c51fff6b99a2cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVesta?= Date: Wed, 7 Apr 2021 10:00:51 +0200 Subject: [PATCH 01/41] Creates TextArea files. --- src/inputs/textArea/TextArea.tsx | 0 src/inputs/textArea/index.tsx | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/inputs/textArea/TextArea.tsx create mode 100644 src/inputs/textArea/index.tsx diff --git a/src/inputs/textArea/TextArea.tsx b/src/inputs/textArea/TextArea.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/inputs/textArea/index.tsx b/src/inputs/textArea/index.tsx new file mode 100644 index 0000000..e69de29 From bf0261d29bf3a06aeea050a95803aed30bc1a17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVesta?= Date: Wed, 7 Apr 2021 10:08:42 +0200 Subject: [PATCH 02/41] Exports the TextArea Component. --- src/index.tsx | 1 + src/inputs/index.tsx | 5 +++-- src/inputs/textArea/index.tsx | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index f55617e..be3ad0d 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2,6 +2,7 @@ export { default as Input } from './inputs/input/Input' export { default as Dropdown } from './inputs/dropdown/Dropdown' export { default as Option } from './inputs/dropdown/Dropdown' export {default as DatePickerAPI } from './inputs/datePicker/DatePickerAPI' +export {default as TextArea} from './inputs/textArea/TextArea' export { default as Typography } from './typography/Typography' export { default as HeadingOne } from './typography/HeadingOne' diff --git a/src/inputs/index.tsx b/src/inputs/index.tsx index 454961f..b59d082 100644 --- a/src/inputs/index.tsx +++ b/src/inputs/index.tsx @@ -1,8 +1,9 @@ import Input from './input/Input' import Dropdown, { Option } from './dropdown/Dropdown' import DatePickerAPI from './datePicker/DatePickerAPI' +import TextArea from './textArea/TextArea' -export { Input, Dropdown, Option, DatePickerAPI } +export { Input, Dropdown, Option, DatePickerAPI, TextArea } -export default { Input, Dropdown, Option, DatePickerAPI } +export default { Input, Dropdown, Option, DatePickerAPI, TextArea } diff --git a/src/inputs/textArea/index.tsx b/src/inputs/textArea/index.tsx index e69de29..a411c1a 100644 --- a/src/inputs/textArea/index.tsx +++ b/src/inputs/textArea/index.tsx @@ -0,0 +1,5 @@ +import TextArea from './TextArea' + +export { TextArea } + +export default { TextArea } From e445d2979b589559628bddce230435eaa80bbb2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVesta?= Date: Wed, 7 Apr 2021 10:10:49 +0200 Subject: [PATCH 03/41] Implements the TextArea component. --- src/inputs/textArea/TextArea.tsx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/inputs/textArea/TextArea.tsx b/src/inputs/textArea/TextArea.tsx index e69de29..4a3ed2d 100644 --- a/src/inputs/textArea/TextArea.tsx +++ b/src/inputs/textArea/TextArea.tsx @@ -0,0 +1,25 @@ +import React, { FC, InputHTMLAttributes } from 'react' +import '../../index.css' +export interface Props extends InputHTMLAttributes { + className?: string + placeholder?: string + value: string + onChange: any +} + +const TextArea: FC = ({ + className, + onChange, + value +}: Props) => { + return ( +