-
Notifications
You must be signed in to change notification settings - Fork 1
feat: JDS Radio 컴포넌트 신규 스펙 반영 및 구조 개선 #490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+493
−725
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1b8d7d7
chore: 미사용 RadioContent preset 제거
itwillbeoptimal ddfdca8
feat: Radio align prop 제거
itwillbeoptimal ec28697
refactor: Radio prop/타입 prefix 제거 및 variant 네이밍 통일
itwillbeoptimal 5fdf6e3
fix: 그룹 내 Radio.Basic의 input ref 미연결 수정
itwillbeoptimal f67036e
feat: 신규 스펙 반영 및 Checkbox 패턴으로 구조 개선
itwillbeoptimal b2a6b80
docs: changeset 문서 작성
itwillbeoptimal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| --- | ||
| "@jects/jds": minor | ||
| --- | ||
|
|
||
| **Radio** | ||
|
|
||
| 신규 디자인 스펙을 반영하면서 `Radio` 컴포넌트의 prop 이름·값과 서브 컴포넌트가 변경되고, `radioAlign` prop은 제거되었습니다. | ||
|
|
||
| | AS-IS | TO-BE | | ||
| | ---------------------------------------------------- | ---------------------------------- | | ||
| | `radioSize` / `radioStyle` | `size` / `variant` | | ||
| | `variant` (구 `radioStyle`) = `"empty" \| "outline"` | `variant = "hollow" \| "outlined"` | | ||
| | `radioAlign` | 제거 | | ||
| | `Radio.SubLabel` | `Radio.Helper` | | ||
|
|
||
| `Radio.Item`은 `<label>` 요소로 렌더되도록 변경되었습니다. 이에 따라 인디케이터뿐 아니라 라벨 및 헬퍼 텍스트를 클릭해도 해당 라디오를 선택할 수 있습니다. | ||
|
|
||
| 아울러 disabled 상태의 색상, 커서 등 시각적 표현이 신규 디자인 스펙에 맞게 업데이트되었습니다. | ||
|
|
||
| **AS-IS** | ||
|
|
||
| ```tsx | ||
| import { Radio } from "@jects/jds"; | ||
|
|
||
| <Radio.Root | ||
| radioSize='md' | ||
| radioStyle='empty' | ||
| radioAlign='left' | ||
| value={selected} | ||
| onChange={setSelected} | ||
| name='group' | ||
| > | ||
| <Radio.Item> | ||
| <Radio.Basic value='1' /> | ||
| <Radio.Label>옵션 1</Radio.Label> | ||
| <Radio.SubLabel>헬퍼 텍스트</Radio.SubLabel> | ||
| </Radio.Item> | ||
| </Radio.Root>; | ||
| ``` | ||
|
|
||
| **TO-BE** | ||
|
|
||
| ```tsx | ||
| import { Radio } from "@jects/jds"; | ||
|
|
||
| <Radio.Root size='md' variant='hollow' value={selected} onChange={setSelected} name='group'> | ||
| <Radio.Item> | ||
| <Radio.Basic value='1' /> | ||
| <Radio.Label>옵션 1</Radio.Label> | ||
| <Radio.Helper>헬퍼 텍스트</Radio.Helper> | ||
| </Radio.Item> | ||
| </Radio.Root>; | ||
| ``` | ||
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟡 Minor
🧩 Analysis chain
🏁 Script executed:
Repository: JECT-Study/JECT-Official-WebSite-Client
Length of output: 6525
Breaking Change 에 대해
minor로 설정하신 것이 적절합니다.현재
@jects/jds는0.4.0버전 (0.x 대) 이며, 시맨틱 버저닝 표준에 따라 0.x 버전에서는 Breaking Change 를minor증가로 처리하는 것이 일반적입니다.🤖 Prompt for AI Agents