From bb61371fb39d919b07105807a4fe1206473e0f2a Mon Sep 17 00:00:00 2001 From: sohee Date: Wed, 17 Apr 2024 15:50:44 +0900 Subject: [PATCH] =?UTF-8?q?[UI]=20feat:=20textarea=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A1=A4=20=EC=B6=94=EA=B0=80,=20=EC=97=94=ED=84=B0=ED=82=A4?= =?UTF-8?q?=EB=A1=9C=20submit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/ten-weeks-listen.md | 5 ++++ apps/docs/src/App.tsx | 9 ++++-- packages/ui/Input/SearchField.tsx | 13 ++++++-- packages/ui/Input/TextArea.tsx | 34 ++++++++++++++++----- packages/ui/Input/TextField.tsx | 4 +-- packages/ui/Input/style.css.ts | 49 +++++++++++++++++++------------ 6 files changed, 80 insertions(+), 34 deletions(-) create mode 100644 .changeset/ten-weeks-listen.md diff --git a/.changeset/ten-weeks-listen.md b/.changeset/ten-weeks-listen.md new file mode 100644 index 0000000..1f85e13 --- /dev/null +++ b/.changeset/ten-weeks-listen.md @@ -0,0 +1,5 @@ +--- +"@sopt-makers/ui": patch +--- + +Textarea custom scroll, add keypress, fix padding diff --git a/apps/docs/src/App.tsx b/apps/docs/src/App.tsx index 4ac131a..99d71ba 100644 --- a/apps/docs/src/App.tsx +++ b/apps/docs/src/App.tsx @@ -1,6 +1,9 @@ -import { Test, TextField, TextArea, SearchField } from '@sopt-makers/ui'; +import { Test } from '@sopt-makers/ui'; import './App.css'; import { useState, ChangeEvent } from 'react'; +import TextField from '../../../packages/ui/Input/TextField'; +import TextArea from '../../../packages/ui/Input/TextArea'; +import SearchField from '../../../packages/ui/Input/SearchField'; function App() { const [input, setInput] = useState(''); @@ -38,8 +41,8 @@ function App() { return ( <> - labelText="Label" placeholder="Placeholder..." required descriptionText="description" validationFn={inputValidation} value={input} onChange={handleInputChange} /> -