-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
2,168 additions
and
1,400 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { FormControl, MultilineTextField } from "seed-design/ui/text-field"; | ||
import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; | ||
|
||
export default function MultilineTextFieldConstraints() { | ||
return ( | ||
<FormControl label="라벨" description="설명을 써주세요"> | ||
<MultilineTextField | ||
<TextField label="라벨" description="설명을 써주세요"> | ||
<TextFieldTextarea | ||
placeholder="플레이스홀더" | ||
style={{ minHeight: "200px", maxHeight: "300px" }} | ||
/> | ||
</FormControl> | ||
</TextField> | ||
); | ||
} |
26 changes: 13 additions & 13 deletions
26
docs/components/example/multiline-text-field-disabled.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
import { FormControl, MultilineTextField } from "seed-design/ui/text-field"; | ||
import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; | ||
|
||
export default function MultilineTextFieldDisabled() { | ||
return ( | ||
<div className="grid grid-cols-2 gap-4 w-full"> | ||
<FormControl label="라벨" description="설명을 써주세요" disabled> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<FormControl label="라벨" description="설명을 써주세요" disabled defaultValue="값"> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<FormControl | ||
<TextField label="라벨" description="설명을 써주세요" disabled> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
<TextField label="라벨" description="설명을 써주세요" disabled defaultValue="값"> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
<TextField | ||
label="라벨" | ||
description="설명을 써주세요" | ||
disabled | ||
invalid | ||
errorMessage="오류가 발생한 이유를 써주세요" | ||
> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<FormControl | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
<TextField | ||
label="라벨" | ||
description="설명을 써주세요" | ||
disabled | ||
invalid | ||
errorMessage="오류가 발생한 이유를 써주세요" | ||
defaultValue="값" | ||
> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import { FormControl, MultilineTextField } from "seed-design/ui/text-field"; | ||
import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; | ||
|
||
export default function MultilineTextFieldEnabled() { | ||
return ( | ||
<div className="grid grid-cols-2 gap-4 w-full"> | ||
<FormControl label="라벨" description="설명을 써주세요"> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<FormControl label="라벨" description="설명을 써주세요" defaultValue="값"> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<FormControl | ||
<TextField label="라벨" description="설명을 써주세요"> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
<TextField label="라벨" description="설명을 써주세요" defaultValue="값"> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
<TextField | ||
label="라벨" | ||
description="설명을 써주세요" | ||
invalid | ||
errorMessage="오류가 발생한 이유를 써주세요" | ||
> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<FormControl | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
<TextField | ||
label="라벨" | ||
description="설명을 써주세요" | ||
invalid | ||
errorMessage="오류가 발생한 이유를 써주세요" | ||
defaultValue="값" | ||
> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
</div> | ||
); | ||
} |
8 changes: 4 additions & 4 deletions
8
docs/components/example/multiline-text-field-fixed-height.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { FormControl, MultilineTextField } from "seed-design/ui/text-field"; | ||
import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; | ||
|
||
export default function MultilineTextFieldSpecifiedHeight() { | ||
return ( | ||
<FormControl label="라벨" description="설명을 써주세요"> | ||
<MultilineTextField placeholder="플레이스홀더" style={{ height: "250px" }} /> | ||
</FormControl> | ||
<TextField label="라벨" description="설명을 써주세요"> | ||
<TextFieldTextarea placeholder="플레이스홀더" style={{ height: "250px" }} /> | ||
</TextField> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
docs/components/example/multiline-text-field-grapheme-count.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { FormControl, MultilineTextField } from "seed-design/ui/text-field"; | ||
import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; | ||
|
||
export default function MultilineTextFieldGraphemeCount() { | ||
return ( | ||
<FormControl label="라벨" description="설명을 써주세요" maxGraphemeCount={8}> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<TextField label="라벨" description="설명을 써주세요" maxGraphemeCount={8}> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { FormControl, MultilineTextField } from "seed-design/ui/text-field"; | ||
import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; | ||
|
||
export default function MultilineTextFieldLarge() { | ||
return ( | ||
<FormControl label="라벨" description="설명을 써주세요" size="large"> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<TextField label="라벨" description="설명을 써주세요" size="large"> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { FormControl, MultilineTextField } from "seed-design/ui/text-field"; | ||
import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; | ||
|
||
export default function MultilineTextFieldMedium() { | ||
return ( | ||
<FormControl label="라벨" description="설명을 써주세요" size="medium"> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<TextField label="라벨" description="설명을 써주세요" size="medium"> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { FormControl, MultilineTextField } from "seed-design/ui/text-field"; | ||
import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; | ||
|
||
export default function MultilineTextFieldOptional() { | ||
return ( | ||
<FormControl label="라벨" description="설명을 써주세요" optionalIndicator="(선택)"> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<TextField label="라벨" description="설명을 써주세요" indicator="(선택)"> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 13 additions & 13 deletions
26
docs/components/example/multiline-text-field-read-only.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
import { FormControl, MultilineTextField } from "seed-design/ui/text-field"; | ||
import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; | ||
|
||
export default function MultilineTextFieldReadOnly() { | ||
return ( | ||
<div className="grid grid-cols-2 gap-4 w-full"> | ||
<FormControl label="라벨" description="설명을 써주세요" readOnly> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<FormControl label="라벨" description="설명을 써주세요" readOnly defaultValue="값"> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<FormControl | ||
<TextField label="라벨" description="설명을 써주세요" readOnly> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
<TextField label="라벨" description="설명을 써주세요" readOnly defaultValue="값"> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
<TextField | ||
label="라벨" | ||
description="설명을 써주세요" | ||
readOnly | ||
invalid | ||
errorMessage="오류가 발생한 이유를 써주세요" | ||
> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<FormControl | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
<TextField | ||
label="라벨" | ||
description="설명을 써주세요" | ||
readOnly | ||
invalid | ||
errorMessage="오류가 발생한 이유를 써주세요" | ||
defaultValue="값" | ||
> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { FormControl, MultilineTextField } from "seed-design/ui/text-field"; | ||
import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; | ||
|
||
export default function MultilineTextFieldRequired() { | ||
return ( | ||
<FormControl label="라벨" description="설명을 써주세요" required requiredIndicator="(필수)"> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<TextField label="라벨" description="설명을 써주세요" required indicator="(필수)"> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
"use client"; | ||
|
||
import { useState } from "react"; | ||
import { FormControl, MultilineTextField } from "seed-design/ui/text-field"; | ||
import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; | ||
|
||
export default function MultilineTextFieldSlicing() { | ||
const [value, setValue] = useState(""); | ||
|
||
return ( | ||
<FormControl | ||
<TextField | ||
label="라벨" | ||
description="6글자까지 입력 가능합니다" | ||
maxGraphemeCount={6} | ||
value={value} | ||
onValueChange={({ slicedValue }) => setValue(slicedValue)} | ||
> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { FormControl, MultilineTextField } from "seed-design/ui/text-field"; | ||
import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; | ||
|
||
export default function MultilineTextFieldXlarge() { | ||
return ( | ||
<FormControl label="라벨" description="설명을 써주세요" size="xlarge"> | ||
<MultilineTextField placeholder="플레이스홀더" /> | ||
</FormControl> | ||
<TextField label="라벨" description="설명을 써주세요" size="xlarge"> | ||
<TextFieldTextarea placeholder="플레이스홀더" /> | ||
</TextField> | ||
); | ||
} |
Oops, something went wrong.