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

Deploy version 0.3.1 #120

Merged
merged 63 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
502e1b2
docs: badge 컴포넌트 mdx 문서 작성
designsoo Apr 25, 2024
9e06892
docs: card 컴포넌트 mdx 문서 작성
designsoo Apr 25, 2024
592ddc2
docs: card button 컴포넌트 mdx 문서 작성
designsoo Apr 25, 2024
1719c92
docs: card skeleton 컴포넌트 mdx 문서 작성
designsoo Apr 25, 2024
dc58f0e
docs: common modal 컴포넌트 mdx 문서 작성
designsoo Apr 25, 2024
686e796
docs: confirm modal 컴포넌트 mdx 문서 작성
designsoo Apr 25, 2024
f182e03
docs: modal button 컴포넌트 mdx 문서 작성
designsoo Apr 25, 2024
4322505
docs: review card 컴포넌트 mdx 문서 작성
designsoo Apr 25, 2024
25fcfa0
docs: star rating 컴포넌트 mdx 문서 작성
designsoo Apr 25, 2024
3ead616
docs: tag 컴포넌트 mdx 문서 작성
designsoo Apr 25, 2024
28d5020
refactor: variants 코드블럭 삭제 및 내부 text로 작성
designsoo Apr 25, 2024
c93ace6
refactor: console.log 삭제
designsoo Apr 25, 2024
0fdfe1a
docs: 컴포넌트 문서 작성
CheeseB Apr 25, 2024
e03a3d0
refactor: md 파일을 mdx로 변경
CheeseB Apr 25, 2024
678de80
refactor: 문서 수정
CheeseB Apr 25, 2024
fc834e8
docs: 문서 타이틀 h3에서 h2로 변경
CheeseB Apr 25, 2024
c5a21d3
docs: 불렛 삭제
CheeseB Apr 25, 2024
eb33f43
docs: Anatomy 수정
CheeseB Apr 25, 2024
71b1afa
refactor: ModalButton variant 기본값 추가
CheeseB Apr 25, 2024
aaaeb63
remove: 이미 작성된 mdx 파일 삭제
designsoo Apr 25, 2024
c405efb
refactor: confirm modal의 props로 warning이 들어올 경우 사용법 추가
designsoo Apr 25, 2024
1d44943
refactor: 별점 컴포넌트 사용법 분리
designsoo Apr 25, 2024
ce0523b
refactor: 리뷰카드 사용법에서 생성시간을 'YYYY-MM-DD'로 변경
designsoo Apr 25, 2024
d8acbe6
docs: 컴포넌트들 mdx 추가
ccwnc Apr 25, 2024
ab0154b
refactor: 컴포넌트들 import문에 중괄호 추가
ccwnc Apr 25, 2024
a7bea25
refactor: jsx를 tsx로 수정
ccwnc Apr 25, 2024
b7bddd8
refactor: Title과 Description에서 불릿 제거
ccwnc Apr 25, 2024
dbfc82e
refactor: Avatar 컴포넌트 Anatomy 수정
ccwnc Apr 25, 2024
070182d
refactor: IconButton 컴포넌트 Anatomy 수정
ccwnc Apr 25, 2024
c70288a
refactor: optional props가 있는 컴포넌트들의 Anatomy 수정
ccwnc Apr 25, 2024
929c272
refactor: Avatar와 IconButton의 Usage 중 size prop 수정
ccwnc Apr 25, 2024
e6017ce
refactor: AlarmList mdx 수정
ccwnc Apr 25, 2024
1c7ef3e
refactor: card skeleton의 설명 없는 anatomy 타이틀 삭제
designsoo Apr 25, 2024
ad20e68
refactor: mdx 문법으로 링크 생성
designsoo Apr 25, 2024
635dade
Merge pull request #110 from sprint-team3/docs/components/heesoo
designsoo Apr 25, 2024
9fa3517
refactor: formMethod props 추가
grapefruit13 Apr 25, 2024
0468dfd
docs: 컴포넌트 사용 예시 수정
CheeseB Apr 25, 2024
8873631
refactor: input에 color classname 추가
grapefruit13 Apr 25, 2024
3832e6f
docs: DateField mdx 작성
grapefruit13 Apr 25, 2024
3d80b3b
docs: md 형식 mdx로 수정
grapefruit13 Apr 25, 2024
e79ef85
chore: npm 0.2.9 배포
grapefruit13 Apr 25, 2024
304e7eb
docs: FormDropdown mdx 작성
grapefruit13 Apr 25, 2024
16775cf
docs: ImageField mdx 작성
grapefruit13 Apr 25, 2024
7371156
chore: npm 0.3.0 배포
grapefruit13 Apr 25, 2024
d44cc64
refactor: ImageField mdx로 수정, storybook 첨부
grapefruit13 Apr 25, 2024
4e0e341
docs: DateField mdx 추가
grapefruit13 Apr 25, 2024
ff71027
docs: DateField mdx 추가
grapefruit13 Apr 25, 2024
96c9a49
docs: SearchBar mdx 추가
grapefruit13 Apr 25, 2024
43e51c0
docs: InputRaido mdx 추가
grapefruit13 Apr 25, 2024
d5a5e4f
docs: InputField mdx 추가
grapefruit13 Apr 25, 2024
8560a9f
refactor: FormDropdown mdx 수정
grapefruit13 Apr 25, 2024
920099f
refactor: DateField props에 볼드체 추가
grapefruit13 Apr 26, 2024
6827f4e
refactor: FormDropdown options 객체 설명 추가
grapefruit13 Apr 26, 2024
9f8d01c
refactor: InputField tsx로 수정
grapefruit13 Apr 26, 2024
47177ec
refactor: InputRadio tsx로 수정
grapefruit13 Apr 26, 2024
5291122
docs: SliderButton 설명란 수정 및 스토리북 추가
CheeseB Apr 26, 2024
918387d
feat: GGF-Design-System 리드미 작성
designsoo Apr 26, 2024
006692f
refactor: mdx 문법 수정
designsoo Apr 26, 2024
ab976c0
feat: package.json에 keywords 추가
designsoo Apr 26, 2024
f03f9f1
refactor: 리드미에서 keywords 항목 삭제
designsoo Apr 26, 2024
cf0ec1d
refactor: bash 구문을 사용하여 설치 명령어 지정
designsoo Apr 26, 2024
29bd741
refactor: 이미지 경로 변경
designsoo Apr 26, 2024
ff5f8bb
docs: 이미지 링크 수정
grapefruit13 Apr 26, 2024
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
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# GGF-Design-System

![GGF-Design-System](https://github.com/sprint-team3/GGF-Design-System/assets/43297823/8d9b448c-06f6-4990-a45c-8102074c827e)

GGF UI is an open-source React component library. It is designed for easy accessibility, allowing anyone to use its components effortlessly. Comprised of components with a dark mode-friendly default configuration, it promotes user-friendly design practices.

# Installation

```bash
npm install ggf-ui@latest
```

# Documentation

You can find usage instructions for the provided components at the GitHub link below

[https://github.com/sprint-team3/GGF-Design-System/tree/dev/docs](https://github.com/sprint-team3/GGF-Design-System/tree/dev/docs)

# License

This project is licensed under the terms of the MIT license
28 changes: 28 additions & 0 deletions docs/Alarm.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## Title

Alarm

## Description

An interactive indicator that visually represents alarm status and allows users to toggle alarm activation through user interaction.

## Anatomy

- **`isAlarmExisted`** : Boolean flag to indicate whether an alarm is currently set.
- **`isActivated`** : Boolean flag to indicate whether the alarm is active and alerting.
- **`onClick`** : Function to handle click events on the alarm, typically used to toggle the alarm state.
- **`alarmRef`** (optional): React ref object attached to the button element for direct DOM manipulation or access.

## Usage

```tsx
import { Alarm } from 'ggf-ui';
```

```tsx
<Alarm isAlarmExisted={true} isActivated={true} onClick={onClick} alarmRef={alarmRef} />
```

## Storybook

[https://661f5982ddc662c8c9a12d6b-fqsleqszgq.chromatic.com/?path=/story/alarm-alarm--example&globals=backgrounds.value:!hex(333333)](<https://661f5982ddc662c8c9a12d6b-fqsleqszgq.chromatic.com/?path=/story/alarm-alarm--example&globals=backgrounds.value:!hex(333333)>)
28 changes: 28 additions & 0 deletions docs/AlarmCard.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## Title

AlarmCard

## Description

A component that displays an alarm's details and provides an interactive delete button with hover effects.

## Anatomy

- **`id`** : A unique identifier for the alarm card, used to handle specific actions.
- **`content`** : Text content displayed on the card, representing the alarm's description or details.
- **`createdAt`** : String indicating the alarm's creation time, displayed at the card's bottom.
- **`onClick`** : Function triggered when the delete button is clicked, taking the alarm's **`id`** as an argument to identify which alarm to delete.

## Usage

```tsx
import { AlarmCard } from 'ggf-ui';
```

```tsx
<AlarmCard id={1} content='Alarm content here' createdAt='2024-04-24 10:00 AM' onClick={onClick} />
```

## Storybook

[https://661f5982ddc662c8c9a12d6b-fqsleqszgq.chromatic.com/?path=/story/cards-alarmcard--example&globals=backgrounds.value:!hex(333333)](<https://661f5982ddc662c8c9a12d6b-fqsleqszgq.chromatic.com/?path=/story/cards-alarmcard--example&globals=backgrounds.value:!hex(333333)>)
46 changes: 46 additions & 0 deletions docs/AlarmList.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## Title

AlarmList

## Description

A component for displaying a list of alarm notifications, including options to delete individual alarms or all alarms.

## Anatomy

- **`alarmText`**: Text indicating the purpose or category of the alarms.
- **`deleteAllText`**: Text displayed on the button to delete all alarms.
- **`notifications`**: Array of objects representing individual alarm notifications, each containing:
- **`id`**: Unique identifier for the alarm.
- **`content`**: Description or details of the alarm.
- **`createdAt`**: Time stamp of when the alarm was created.
- **`totalCount`**: Total count of alarms in the list.
- **`handleDelete`**: Function triggered when an alarm is deleted, taking the alarm's ID as an argument.
- **`handleDeleteAll`**: Function triggered when the button to delete all alarms is clicked.
- **`emptyAlarmText`**: Text displayed when there are no alarms to show.
- **`alarmListRef`** (optional): React ref object attached to the **`<div>`** element wrapping the alarm list.

## Usage

```tsx
import { AlarmList } from 'ggf-ui';
```

```tsx
<AlarmList
alarmText='Current Alarms:'
deleteAllText='Delete All'
notifications={[
{ id: 1, content: 'Alarm 1', createdAt: '2024-04-24 10:00 AM' },
{ id: 2, content: 'Alarm 2', createdAt: '2024-04-25 11:00 AM' },
]}
totalCount={2}
handleDelete={handleDelete}
handleDeleteAll={handleDeleteAll}
emptyAlarmText='No alarms to display'
/>
```

## Storybook

[https://661f5982ddc662c8c9a12d6b-fqsleqszgq.chromatic.com/?path=/story/alarmlist-alarmlist--example&globals=backgrounds.value:!hex(333333)](<https://661f5982ddc662c8c9a12d6b-fqsleqszgq.chromatic.com/?path=/story/alarmlist-alarmlist--example&globals=backgrounds.value:!hex(333333)>)
27 changes: 27 additions & 0 deletions docs/Avatar.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Title

Avatar

## Description

A component for displaying user avatars with optional activation.

## Anatomy

- **`profileImageUrl`**: URL of the user's profile image.
- **`size`** (optional): Sets the size of the avatar. Can be `'small' | 'medium' | 'large'` Defaults to 'medium'.
- **`isActivated`** (optional): Boolean indicating whether the avatar is activated.

## Usage

```tsx
import { Avatar } from 'ggf-ui';
```

```tsx
<Avatar profileImageUrl='url/to/profile/image.jpg' size='small' isActivated={true} />
```

## Storybook

[https://661f5982ddc662c8c9a12d6b-fqsleqszgq.chromatic.com/?path=/story/avatar-avatar--example&globals=backgrounds.value:!hex(333333)](<https://661f5982ddc662c8c9a12d6b-fqsleqszgq.chromatic.com/?path=/story/avatar-avatar--example&globals=backgrounds.value:!hex(333333)>)
26 changes: 26 additions & 0 deletions docs/Badge.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Title

Badge

## Description

Displays a Badge with various visual styles to indicate different types of information or statuses.

## Anatomy

- **`children`** : Content to be displayed within the badge.
- **`variant`**: Optional string prop specifying the style variant of the badge. It can be one of the following values: `'default' | 'secondary' | 'tertiary' | 'destructive' | 'outline'`. If not provided, the default value is 'default'.

## Usage

```tsx
import { Badge } from 'ggf-ui';
```

```tsx
<Badge variant='primary'>Badge</Badge>
```

## Storybook

[https://661f5982ddc662c8c9a12d6b-jjaouzkrop.chromatic.com/?path=/story/badge-badge--example&globals=backgrounds.value:!hex(333333)](<https://661f5982ddc662c8c9a12d6b-jjaouzkrop.chromatic.com/?path=/story/badge-badge--example&globals=backgrounds.value:!hex(333333)>)
40 changes: 40 additions & 0 deletions docs/BaseButton.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## Title

BaseButton

## Description

The Base Button component serves as a foundational button element that can be customized with various styles and functionalities. It allows users to create buttons with different visual appearances, sizes, colors, and behaviors.

## Anatomy

- **`children`**: The text content to be displayed within the button.
- **`isDisabled`** (optional): A boolean indicating whether the button should be disabled.
- **`onClick`** (optional): A function to be executed when the button is clicked.
- **`variant`** (optional): Specifies the visual style of the button. It can be `'fill' | 'ghost' | 'outline'` Defaults to 'fill'.
- **`size`** (optional): Sets the size of the button. Can be `'small' | 'medium' | 'large'` Defaults to 'medium'.
- **`color`** (optional): Specifies the color theme of the button. Options include `'yellow' | 'purple' | 'red'` Defaults to 'yellow'.
- **`type`** (optional): Specifies the type of button. Can be `'button' | 'submit'` Defaults to 'button'.
- **`isQuantico`** (optional): A boolean indicating whether the button should have a Quantico-specific style.

## Usage

```tsx
import { BaseButton } from 'ggf-ui';
```

```tsx
<BaseButton onClick={onClick} variant='ghost' size='small' color='red'>
Click Me
</BaseButton>
```

```tsx
<BaseButton onClick={onClick} variant='outline' size='large' color='purple' isDisabled={true}>
Disabled Button
</BaseButton>
```

## Storybook

[https://661f5982ddc662c8c9a12d6b-nqfkxankpk.chromatic.com/?path=/story/buttons-basebutton--example&globals=backgrounds.value:!hex(333333)](<https://661f5982ddc662c8c9a12d6b-nqfkxankpk.chromatic.com/?path=/story/buttons-basebutton--example&globals=backgrounds.value:!hex(333333)>)
39 changes: 39 additions & 0 deletions docs/Card.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## Title

Card

## Description

Displays structured content including a title, rating, review count, creation date, and a tag, suitable for presenting various types of information or items

## Anatomy

- **`path`** : String representing the URL path to navigate to when the card is clicked.
- **`title`** : String representing the title of the card.
- **`rating`** : Number representing the rating of the card, usually ranging from 0 to 5.
- **`reviewCount`** : Number representing the count of reviews for the card.
- **`createdAt`** : String or number representing the creation date of the card.
- **`tagContent`** : String or number representing the content of the tag displayed on the card.
- **`tagVariant`** : Optional string prop specifying the variant of the tag displayed on the card. It can be one of the following values: `'default' | 'primary' | 'secondary' | 'tertiary'`. If not provided, the default value is 'default'.

## Usage

```tsx
import { Card } from 'ggf-ui';
```

```tsx
<Card
path='/'
title='title'
rating={4}
reviewCount={reviewCount}
createdAt={createdAt}
tagContent='tag'
tagVariant='primary'
/>
```

## Storybook

[https://661f5982ddc662c8c9a12d6b-nqfkxankpk.chromatic.com/?path=/story/cards-card--example&globals=backgrounds.value:!hex(333333)](<https://661f5982ddc662c8c9a12d6b-nqfkxankpk.chromatic.com/?path=/story/cards-card--example&globals=backgrounds.value:!hex(333333)>)
29 changes: 29 additions & 0 deletions docs/CardButton.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Title

CardButton

## Description

The Card Button component is designed to represent a button within a card-like element. It enables users to perform actions associated with the card, such as viewing details or navigating to another page. The button can be customized with different colors.

## Anatomy

- **`children`**: The text content to be displayed within the button.
- **`onClick`** (optional): A function to be executed when the button is clicked.
- **`color`** (optional): Specifies the color theme of the button. Options include `'yellow' | 'red' | 'gray'` Defaults to 'yellow'.

## Usage

```tsx
import { CardButton } from 'ggf-ui';
```

```tsx
<CardButton onClick={onClick} color='red'>
View Details
</CardButton>
```

## Storybook

[https://661f5982ddc662c8c9a12d6b-nqfkxankpk.chromatic.com/?path=/story/buttons-cardbutton--example&globals=backgrounds.value:!hex(333333)](<https://661f5982ddc662c8c9a12d6b-nqfkxankpk.chromatic.com/?path=/story/buttons-cardbutton--example&globals=backgrounds.value:!hex(333333)>)
21 changes: 21 additions & 0 deletions docs/CardSkeleton.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Title

CardSkeleton

## Description

The CardSkeleton component represents a skeleton layout for a card, typically used to indicate loading or placeholder content before the actual content is loaded.

## Usage

```tsx
import { CardSkeleton } from 'ggf-ui';
```

```tsx
<CardSkeleton />
```

## Storybook

[https://661f5982ddc662c8c9a12d6b-nqfkxankpk.chromatic.com/?path=/story/cards-cardskeleton--example&globals=backgrounds.value:!hex(333333)](<https://661f5982ddc662c8c9a12d6b-nqfkxankpk.chromatic.com/?path=/story/cards-cardskeleton--example&globals=backgrounds.value:!hex(333333)>)
28 changes: 28 additions & 0 deletions docs/CommonModal.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## Title

CommonModal

## Description

The CommonModal component represents a modal dialog used for displaying content with a title and customizable content area.

## Anatomy

- **`openModal`** : Boolean prop indicating whether the modal is open or closed.
- **`title`** : String prop representing the title of the modal.
- **`renderContent`** : ReactNode prop representing the content to be rendered within the modal.
- **`onClose`** : Function prop to handle the closing action of the modal.

## Usage

```tsx
import { CommonModal } from 'ggf-ui';
```

```tsx
<CommonModal openModal={ture} title='title' renderContent={<renderContent />} onClose={onClose} />
```

## Storybook

[https://661f5982ddc662c8c9a12d6b-nqfkxankpk.chromatic.com/?path=/story/modals-commonmodal--example&globals=backgrounds.value:!hex(333333)](<https://661f5982ddc662c8c9a12d6b-nqfkxankpk.chromatic.com/?path=/story/modals-commonmodal--example&globals=backgrounds.value:!hex(333333)>)
Loading