Skip to content
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

docs(seed-docs): add avatar group options #395

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/content/component/avatar-group/anatomy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 25 additions & 54 deletions docs/content/component/avatar-group/style.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ slug: /component/avatar-group/style

## Visual Options

| Property | Value | Description |
| -------- | ------------------------------------------------------ | ----------- |
| size | xxsmall, xsmall, small, medium, large, xlarge, xxlarge | |
| limit | number | |
| Property | Value | Description |
| -------- | ------------------------------ | ----------- |
| size | xxsmall, xsmall, small, medium | |
| limit | number | |
| topItem | firstItem, lastItem | |

## 디자인 결정 (Color)

Expand All @@ -28,68 +29,38 @@ slug: /component/avatar-group/style

## 디자인 결정 (Typography)

| Part | Attribute | Value |
| ------------ | -------------- | -------------------------- |
| Excess Count | Font Weight | $scale.font-weight-regular |
| | Line Height | $scale.line-height-small |
| | Letter Spacing | $scale.letter-spacing-none |

### Size=Xxlarge

| Part | Attribute | Value |
| ------------ | --------- | ----------------------------- |
| Excess Count | Font Size | $scale.dimension.font-size-10 |

### Size=Xlarge

| Part | Attribute | Value |
| ------------ | --------- | ----------------------------- |
| Excess Count | Font Size | $scale.dimension.font-size-10 |

### Size=Large

| Part | Attribute | Value |
| ------------ | --------- | ----------------------------- |
| Excess Count | Font Size | $scale.dimension.font-size-50 |
| Part | Attribute | Value |
| ------------ | ---------- | ----------------------------------- |
| Excess Count | Typography | $semantic.typography.title2-regular |

### Size=Medium

| Part | Attribute | Value |
| ------------ | --------- | ------------------------------ |
| Excess Count | Font Size | $scale.dimension.font-size-200 |
| Part | Attribute | Value |
| ------------ | ---------- | ----------------------------------- |
| Excess Count | Typography | $semantic.typography.label3-regular |

### Size=Small

| Part | Attribute | Value |
| ------------ | --------- | ------------------------------ |
| Excess Count | Font Size | $scale.dimension.font-size-300 |
| Part | Attribute | Value |
| ------------ | ---------- | ----------------------------------- |
| Excess Count | Typography | $semantic.typography.label5-regular |

### Size=Xsmall

| Part | Attribute | Value |
| ------------ | --------- | ------------------------------ |
| Excess Count | Font Size | $scale.dimension.font-size-400 |
| Part | Attribute | Value |
| ------------ | ---------- | ----------------------------------- |
| Excess Count | Typography | $semantic.typography.label6-regular |

### Size=Small
### Size=Xxsmall

| Part | Attribute | Value |
| ------------ | --------- | ------------------------------ |
| Excess Count | Font Size | $scale.dimension.font-size-500 |
| Part | Attribute | Value |
| ------------ | ---------- | ----------------------------------- |
| Excess Count | Typography | $semantic.typography.label6-regular |

## 디자인 결정 (Layout)

### Size=Xxlarge

| Part | Attribute | Value |
| ----- | --------- | ----- |
| Group | Gap | -16pt |

### Size=Xlarge

| Part | Attribute | Value |
| ----- | --------- | ----- |
| Group | Gap | -13pt |

### Size=Large

| Part | Attribute | Value |
Expand All @@ -100,22 +71,22 @@ slug: /component/avatar-group/style

| Part | Attribute | Value |
| ----- | --------- | ----- |
| Group | Gap | -8pt |
| Group | Gap | -10pt |

### Size=Small

| Part | Attribute | Value |
| ----- | --------- | ----- |
| Group | Gap | -6pt |
| Group | Gap | -8pt |

### Size=Xsmall

| Part | Attribute | Value |
| ----- | --------- | ----- |
| Group | Gap | -5pt |
| Group | Gap | -6pt |

### Size=Small

| Part | Attribute | Value |
| ----- | --------- | ----- |
| Group | Gap | -4pt |
| Group | Gap | -5pt |
32 changes: 29 additions & 3 deletions docs/content/component/avatar-group/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,39 @@ slug: /component/avatar-group/usage

<HalfCard>
<HalfCardImageCell>
![avatar group options size](./avatargroup-options-disabled.png)
![avatar group options size](./avatargroup-options-size.png)
</HalfCardImageCell>
<HalfCardDescriptionCell>
<HalfCardDescriptionTitle>Size</HalfCardDescriptionTitle>
<HalfCardDescription>
medium이 가장 보편적으로 사용되며, 페이지 내의 아바타 그룹이 가진 중요도와
시각적 균형에 맞게 적절하게 사용합니다.
Avatar Group은 xxsmall, xsmall, small, medium, large 5개의 사이즈를 가질
수 있습니다. Medium이 가장 보편적으로 사용되며, 페이지 내의 아바타 그룹이
가진 중요도와 시각적 균형에 맞게 적절하게 사용합니다.
</HalfCardDescription>
</HalfCardDescriptionCell>
</HalfCard>
<HalfCard>
<HalfCardImageCell>
![avatar group options size](./avatargroup-options-topitem.png)
</HalfCardImageCell>
<HalfCardDescriptionCell>
<HalfCardDescriptionTitle>Top Item</HalfCardDescriptionTitle>
<HalfCardDescription>
Avatar가 쌓이는 방향을 설정할 수 있습니다. 마지막 Avatar가 가장 위에
위치하는 Last Item 옵션을 기본값으로 사용합니다. 첫번째 Avatar를 강조하고
싶을 때는 First Item 옵션을 사용합니다.
</HalfCardDescription>
</HalfCardDescriptionCell>
</HalfCard>
<HalfCard>
<HalfCardImageCell>
![avatar group options limit](./avatargroup-options-limit.png)
</HalfCardImageCell>
<HalfCardDescriptionCell>
<HalfCardDescriptionTitle>Limit</HalfCardDescriptionTitle>
<HalfCardDescription>
Avatar의 개수를 설정할 수 있습니다. 설정한 개수를 초과하는 Avatar의 개수는
Excess 영역에 표시됩니다.
</HalfCardDescription>
</HalfCardDescriptionCell>
</HalfCard>
Expand Down
Loading