|
| 1 | +import { type ReactNode } from "react"; |
| 2 | +import type { Tone } from "../../tokens/colors"; |
| 3 | + |
| 4 | +interface RadioGroupProps { |
| 5 | + /** |
| 6 | + * RadioGroup์ ์์ ์์๋ค์
๋๋ค. |
| 7 | + * RadioGroup.Item ์ปดํฌ๋ํธ๋ฅผ ํฌํจํด์ผ ํฉ๋๋ค. |
| 8 | + */ |
| 9 | + children: ReactNode; |
| 10 | + |
| 11 | + /** |
| 12 | + * ํผ ์
๋ ฅ ์ด๋ฆ: ๋์ผํ ๊ทธ๋ฃน์ ๋ผ๋์ค ๋ฒํผ๋ค์ด ๊ณต์ ํ๋ ์ด๋ฆ์ ์ง์ ํฉ๋๋ค. |
| 13 | + */ |
| 14 | + name: string; |
| 15 | + |
| 16 | + /** |
| 17 | + * ๋ผ๋์ค ๊ทธ๋ฃน์ ๋ ์ด๋ธ: ๋ผ๋์ค ๊ทธ๋ฃน์ ๋ํ ์ค๋ช
์ ์ ๊ณตํฉ๋๋ค. |
| 18 | + */ |
| 19 | + label: string; |
| 20 | + |
| 21 | + /** |
| 22 | + * ๊ธฐ๋ณธ ์ ํ๊ฐ: ์ปดํฌ๋ํธ ์ด๊ธฐ ๋ ๋๋ง ์ ์ ํ๋ ๊ฐ์ ์ง์ ํฉ๋๋ค. |
| 23 | + * @default undefined |
| 24 | + */ |
| 25 | + defaultValue?: string; |
| 26 | + |
| 27 | + /** |
| 28 | + * ํ์ฌ ์ ํ๋ ๊ฐ: ์ธ๋ถ์์ ๊ฐ์ ์ง์ ๊ด๋ฆฌํ ๋ ์ฌ์ฉํฉ๋๋ค. |
| 29 | + * @default undefined |
| 30 | + */ |
| 31 | + value?: string; |
| 32 | + |
| 33 | + /** |
| 34 | + * ๊ฐ ๋ณ๊ฒฝ ํธ๋ค๋ฌ: ์ฌ์ฉ์๊ฐ ์ ํ์ ๋ณ๊ฒฝํ ๋ ํธ์ถ๋๋ ์ฝ๋ฐฑ ํจ์์
๋๋ค. |
| 35 | + * @default undefined |
| 36 | + */ |
| 37 | + onChange?: (value: string) => void; |
| 38 | + |
| 39 | + /** |
| 40 | + * ๋นํ์ฑํ ์ฌ๋ถ: true์ด๋ฉด ๋ชจ๋ ๋ผ๋์ค ๋ฒํผ์ด ๋นํ์ฑํ๋์ด ์ํธ์์ฉ์ ์ฐจ๋จํฉ๋๋ค. |
| 41 | + * @default false |
| 42 | + */ |
| 43 | + disabled?: boolean; |
| 44 | + |
| 45 | + /** |
| 46 | + * ํ์ ์ฌ๋ถ: true์ผ ๊ฒฝ์ฐ ์ฌ์ฉ์๊ฐ ํ๋์ ์ต์
์ ๋ฐ๋์ ์ ํํด์ผ ํฉ๋๋ค. |
| 47 | + * @default undefined |
| 48 | + */ |
| 49 | + required?: boolean; |
| 50 | + |
| 51 | + /** |
| 52 | + * ๋ผ๋์ค ๊ทธ๋ฃน์ ๋ฐฐ์น ๋ฐฉํฅ์ ๊ฒฐ์ ํฉ๋๋ค. |
| 53 | + * 'horizontal'์ ๊ฐ๋ก ๋ฐฐ์ด, 'vertical'์ ์ธ๋ก ๋ฐฐ์ด์ ์๋ฏธํฉ๋๋ค. |
| 54 | + * @default undefined |
| 55 | + */ |
| 56 | + orientation?: "horizontal" | "vertical"; |
| 57 | + |
| 58 | + /** ์์กฐ */ |
| 59 | + tone?: Tone; |
| 60 | +} |
| 61 | + |
| 62 | +/** |
| 63 | + * RadioGroup์ ๋ฃจํธ ์ปดํฌ๋ํธ์
๋๋ค. |
| 64 | + * ๋ผ๋์ค ๋ฒํผ ๊ทธ๋ฃน์ ์ ์ํ๊ณ ์ํ๋ฅผ.๊ด๋ฆฌํฉ๋๋ค. |
| 65 | + */ |
| 66 | +// eslint-disable-next-line no-empty-pattern |
| 67 | +export function RadioGroup({}: RadioGroupProps) { |
| 68 | + // TODO: ๊ตฌํ |
| 69 | + return null; |
| 70 | +} |
| 71 | + |
| 72 | +interface RadioProps { |
| 73 | + /** |
| 74 | + * ๋ผ๋์ค ๋ฒํผ์ ๊ฐ์
๋๋ค. |
| 75 | + */ |
| 76 | + value: string; |
| 77 | + |
| 78 | + /** |
| 79 | + * ๋ผ๋์ค ๋ฒํผ์ ์์ ์์์
๋๋ค. |
| 80 | + */ |
| 81 | + children?: ReactNode; |
| 82 | + |
| 83 | + /** |
| 84 | + * ๋นํ์ฑํ ์ฌ๋ถ: true์ด๋ฉด ์ด ๋ผ๋์ค ๋ฒํผ์ด ๋นํ์ฑํ๋ฉ๋๋ค. |
| 85 | + * @default false |
| 86 | + */ |
| 87 | + disabled?: boolean; |
| 88 | +} |
| 89 | + |
| 90 | +/** |
| 91 | + * ๋ผ๋์ค ๊ทธ๋ฃน์ ๊ฐ๋ณ ํญ๋ชฉ์
๋๋ค. |
| 92 | + * ์ ํ ๊ฐ๋ฅํ ๋จ์ผ ๋ผ๋์ค ๋ฒํผ์ ๋ํ๋
๋๋ค. |
| 93 | + */ |
| 94 | +// eslint-disable-next-line no-empty-pattern |
| 95 | +export function Radio({}: RadioProps) { |
| 96 | + // TODO: ๊ตฌํ |
| 97 | + return null; |
| 98 | +} |
0 commit comments