From 7d29b3d7dfc08ac943651e173f4e8f533b6b9beb Mon Sep 17 00:00:00 2001 From: suwonthugger <127329855+suwonthugger@users.noreply.github.com> Date: Mon, 28 Oct 2024 03:39:31 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat(Icon):=20birthday,=20phone=20=EC=95=84?= =?UTF-8?q?=EC=9D=B4=EC=BD=98=20=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=EC=8A=A4?= =?UTF-8?q?=ED=86=A0=EB=A6=AC=EB=B6=81=20=EC=88=98=EC=A0=95=20(#187)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/docs/src/App.tsx | 6 + apps/docs/src/stories/Icons.stories.tsx | 778 ++++++++++++++---- .../src/Communication/ic-birthday-primary.tsx | 38 + .../Communication/ic-birthday-secondary.tsx | 30 + packages/icons/src/Communication/ic-phone.tsx | 19 + packages/icons/src/Communication/index.ts | 39 +- 6 files changed, 720 insertions(+), 190 deletions(-) create mode 100644 packages/icons/src/Communication/ic-birthday-primary.tsx create mode 100644 packages/icons/src/Communication/ic-birthday-secondary.tsx create mode 100644 packages/icons/src/Communication/ic-phone.tsx diff --git a/apps/docs/src/App.tsx b/apps/docs/src/App.tsx index 8054a7d..301ff2e 100644 --- a/apps/docs/src/App.tsx +++ b/apps/docs/src/App.tsx @@ -5,6 +5,7 @@ import { ChangeEvent, useState } from 'react'; import '@sopt-makers/ui/dist/index.css'; import { FieldBox, SearchField, Test, TextArea, TextField } from '@sopt-makers/ui'; +import { IconBirthdayPrimary, IconBirthdaySecondary, IconPhone, IconAlarmClock } from '@sopt-makers/icons'; import { colors } from '@sopt-makers/colors'; function App() { @@ -88,6 +89,11 @@ function App() { > 여긴 본문 +
+ + + +
); } diff --git a/apps/docs/src/stories/Icons.stories.tsx b/apps/docs/src/stories/Icons.stories.tsx index 89b5889..115b46b 100644 --- a/apps/docs/src/stories/Icons.stories.tsx +++ b/apps/docs/src/stories/Icons.stories.tsx @@ -1,8 +1,8 @@ import * as Icons from '@sopt-makers/icons'; export default { - title: 'icons/Icons' -} + title: 'icons/Icons', +}; export const Default = { argTypes: { @@ -11,182 +11,616 @@ export const Default = { render: (props: { color: string }) => { const style = { width: 24, height: 24, color: props.color }; - return
-
-

Communication

-

archive

-

bookmark

-

edit

-

eye-off

-

eye

-

mail

-

mento

-

message-alert

-

message-chat

-

message-check

-

message-dots

-

message-plus

-

message-question

-

message-square

-

message-text

-

message-x

-

pin

-

send

-
+ return ( +
+
+

Communication

+
+ +

archive

+
+
+ +

birthday-primary

+
+
+ +

birthday-secondary

+
+
+ +

bookmark

+
+
+ +

edit

+
+
+ +

eye-off

+
+
+ +

eye

+
+
+ +

mail

+
+
+ +

mento

+
+
+ +

message-alert

+
+
+ +

message-chat

+
+
+ +

message-check

+
+
+ +

message-dots

+
+
+ +

message-plus

+
+
+ +

message-question

+
+
+ +

message-square

+
+
+ +

message-text

+
+
+ +

message-x

+
+
+ +

phone

{' '} +
+
+ +

pin

+
+
+ +

send

+
+
-
-

Editor

-

align-center

-

align-justify

-

align-left

-

align-right

-

attachment

-

bold

-

code

-

delete

-

dotpoints

-

italic

-

left-indent

-

letter-spacing

-

line-height

-

paragraph-spacing

-

paragraph-wrap

-

right-indent

-

type-strikethrough

-

type

-

underline

-

write

-

zoom-in

-

zoom-out

-
+
+

Editor

+
+ +

align-center

+
+
+ +

align-justify

+
+
+ +

align-left

+
+
+ +

align-right

+
+
+ +

attachment

+
+
+ +

bold

+
+
+ +

code

+
+
+ +

delete

+
+
+ +

dotpoints

+
+
+ +

italic

+
+
+ +

left-indent

+
+
+ +

letter-spacing

+
+
+ +

line-height

+
+
+ +

paragraph-spacing

+
+
+ +

paragraph-wrap

+
+
+ +

right-indent

+
+
+ +

type-strikethrough

+
+
+ +

type

+
+
+ +

underline

+
+
+ +

write

+
+
+ +

zoom-in

+
+
+ +

zoom-out

+
+
-
-

Feedback

-

alert-circle

-

alert-triangle

-

bell-active

-

bell-off

-

bell

-

help-circle

-

info-circle

-

thumbs-down

-

thumbs-up

-
+
+

Feedback

+
+ +

alert-circle

+
+
+ +

alert-triangle

+
+
+ +

bell-active

+
+
+ +

bell-off

+
+
+ +

bell

+
+
+ +

help-circle

+
+
+ +

info-circle

+
+
+ +

thumbs-down

+
+
+ +

thumbs-up

+
+
-
-

Files

-

file-check

-

file-download

-

file-minus

-

file-plus

-

file-search

-

file-text

-

file-x

-

file

-

folder-check

-

folder-download

-

folder

-
+
+

Files

+
+ +

file-check

+
+
+ +

file-download

+
+
+ +

file-minus

+
+
+ +

file-plus

+
+
+ +

file-search

+
+
+ +

file-text

+
+
+ +

file-x

+
+
+ +

file

+
+
+ +

folder-check

+
+
+ +

folder-download

+
+
+ +

folder

+
+
-
-

General

-

icon-copy

-

dots-vertical

-

download-cloud

-

home

-

link

-

lock

-

log-in

-

log-out

-

menu

-

search

-

settings

-

share

-

sliders

-

trash

-

unlocked

-

upload-cloud

-
+
+

General

+
+ +

icon-copy

+
+
+ +

dots-vertical

+
+
+ +

download-cloud

+
+
+ +

home

+
+
+ +

link

+
+
+ +

lock

+
+
+ +

log-in

+
+
+ +

log-out

+
+
+ +

menu

+
+
+ +

search

+
+
+ +

settings

+
+
+ +

share

+
+
+ +

sliders

+
+
+ +

trash

+
+
+ +

unlocked

+
+
+ +

upload-cloud

+
+
-
-

Interaction

-

arrow-down-left

-

arrow-down-right

-

arrow-down

-

arrow-left

-

arrow-right

-

arrow-up-left

-

arrow-up-right

-

arrow-up

-

check-circle

-

check-square

-

check

-

chevron-down

-

chevron-left

-

chevron-right

-

chevron-up

-

flip-backward

-

flip-forward

-

heart

-

plus-circle

-

plus-square

-

plus

-

refresh

-

switch-horizontal

-

switch-vertical

-

x-circle

-

x-close

-
+
+

Interaction

+
+ +

arrow-down-left

+
+
+ +

arrow-down-right

+
+
+ +

arrow-down

+
+
+ +

arrow-left

+
+
+ +

arrow-right

+
+
+ +

arrow-up-left

+
+
+ +

arrow-up-right

+
+
+ +

arrow-up

+
+
+ +

check-circle

+
+
+ +

check-square

+
+
+ +

check

+
+
+ +

chevron-down

+
+
+ +

chevron-left

+
+
+ +

chevron-right

+
+
+ +

chevron-up

+
+
+ +

flip-backward

+
+
+ +

flip-forward

+
+
+ +

heart

+
+
+ +

plus-circle

+
+
+ +

plus-square

+
+
+ +

plus

+
+
+ +

refresh

+
+
+ +

switch-horizontal

+
+
+ +

switch-vertical

+
+
+ +

x-circle

+
+
+ +

x-close

+
+
-
-

Media

-

camera-off

-

camera-plus

-

camera

-

image-check

-

image-down

-

image-left

-

image-plus

-

image-right

-

image-up

-

image

-

power

-

repeat

-

video-off

-

video

-
+
+

Media

+
+ +

camera-off

+
+
+ +

camera-plus

+
+
+ +

camera

+
+
+ +

image-check

+
+
+ +

image-down

+
+
+ +

image-left

+
+
+ +

image-plus

+
+
+ +

image-right

+
+
+ +

image-up

+
+
+ +

image

+
+
+ +

power

+
+
+ +

repeat

+
+
+ +

video-off

+
+
+ +

video

+
+
-
-

Time

-

alarm-clock-check

-

alarm-clock-minus

-

alarm-clock-off

-

alarm-clock-plus

-

alarm-clock

-

calendar-check

-

calendar-date

-

calendar-plus

-

calendar

-

clock-check

-

clock-plus

-

clock-snooze

-

clock

-
+
+

Time

+
+ +

alarm-clock-check

+
+
+ +

alarm-clock-minus

+
+
+ +

alarm-clock-off

+
+
+ +

alarm-clock-plus

+
+
+ +

alarm-clock

+
+
+ +

calendar-check

+
+
+ +

calendar-date

+
+
+ +

calendar-plus

+
+
+ +

calendar

+
+
+ +

clock-check

+
+
+ +

clock-plus

+
+
+ +

clock-snooze

+
+
+ +

clock

+
+
-
-

Users

-

user-check

-

user-edit

-

user-minus

-

user-plus

-

user-x

-

user

-

users-check

-

users-minus

-

users-plus

-

users-x

-

users

+
+

Users

+
+ +

user-check

+
+
+ +

user-edit

+
+
+ +

user-minus

+
+
+ +

user-plus

+
+
+ +

user-x

+
+
+ +

user

+
+
+ +

users-check

+
+
+ +

users-minus

+
+
+ +

users-plus

+
+
+ +

users-x

+
+
+ +

users

+
+
-
- } -}; \ No newline at end of file + ); + }, +}; diff --git a/packages/icons/src/Communication/ic-birthday-primary.tsx b/packages/icons/src/Communication/ic-birthday-primary.tsx new file mode 100644 index 0000000..6806882 --- /dev/null +++ b/packages/icons/src/Communication/ic-birthday-primary.tsx @@ -0,0 +1,38 @@ +import { HTMLAttributes, forwardRef } from 'react'; + +interface IconBirthdayPrimaryProps extends HTMLAttributes {} + +const IconBirthdayPrimary = forwardRef((props, ref) => { + return ( + + + + + + + ); +}); + +export default IconBirthdayPrimary; diff --git a/packages/icons/src/Communication/ic-birthday-secondary.tsx b/packages/icons/src/Communication/ic-birthday-secondary.tsx new file mode 100644 index 0000000..a79af7d --- /dev/null +++ b/packages/icons/src/Communication/ic-birthday-secondary.tsx @@ -0,0 +1,30 @@ +import { HTMLAttributes, forwardRef } from 'react'; + +interface IconBirthdaySecondaryProps extends HTMLAttributes {} + +const IconBirthdaySecondary = forwardRef((props, ref) => { + return ( + + + + + + + ); +}); + +export default IconBirthdaySecondary; diff --git a/packages/icons/src/Communication/ic-phone.tsx b/packages/icons/src/Communication/ic-phone.tsx new file mode 100644 index 0000000..638805d --- /dev/null +++ b/packages/icons/src/Communication/ic-phone.tsx @@ -0,0 +1,19 @@ +import { HTMLAttributes, forwardRef } from 'react'; + +interface IconPhoneProps extends HTMLAttributes {} + +const IconPhone = forwardRef((props, ref) => { + return ( + + + + ); +}); + +export default IconPhone; diff --git a/packages/icons/src/Communication/index.ts b/packages/icons/src/Communication/index.ts index cec9577..e162222 100644 --- a/packages/icons/src/Communication/index.ts +++ b/packages/icons/src/Communication/index.ts @@ -1,18 +1,21 @@ -export { default as IconArchive } from "./ic-archive"; -export { default as IconBookMark } from "./ic-bookmark"; -export { default as IconEdit } from "./ic-edit"; -export { default as IconEyeOff } from "./ic-eye-off"; -export { default as IconEye } from "./ic-eye"; -export { default as IconMail } from "./ic-mail"; -export { default as IconMento } from "./ic-mento"; -export { default as IconMessageAlert } from "./ic-message-alert"; -export { default as IconMessageChat } from "./ic-message-chat"; -export { default as IconMessageCheck } from "./ic-message-check"; -export { default as IconMessageDots } from "./ic-message-dots"; -export { default as IconMessagePlus } from "./ic-message-plus"; -export { default as IconMessageQuestion } from "./ic-message-question"; -export { default as IconMessageSquare } from "./ic-message-square"; -export { default as IconMessageText } from "./ic-message-text"; -export { default as IconMessageX } from "./ic-message-x"; -export { default as IconPin } from "./ic-pin"; -export { default as IconSend } from "./ic-send"; +export { default as IconArchive } from './ic-archive'; +export { default as IconBirthdayPrimary } from './ic-birthday-primary'; +export { default as IconBirthdaySecondary } from './ic-birthday-secondary'; +export { default as IconBookMark } from './ic-bookmark'; +export { default as IconEdit } from './ic-edit'; +export { default as IconEyeOff } from './ic-eye-off'; +export { default as IconEye } from './ic-eye'; +export { default as IconMail } from './ic-mail'; +export { default as IconMento } from './ic-mento'; +export { default as IconMessageAlert } from './ic-message-alert'; +export { default as IconMessageChat } from './ic-message-chat'; +export { default as IconMessageCheck } from './ic-message-check'; +export { default as IconMessageDots } from './ic-message-dots'; +export { default as IconMessagePlus } from './ic-message-plus'; +export { default as IconMessageQuestion } from './ic-message-question'; +export { default as IconMessageSquare } from './ic-message-square'; +export { default as IconMessageText } from './ic-message-text'; +export { default as IconMessageX } from './ic-message-x'; +export { default as IconPhone } from './ic-phone'; +export { default as IconPin } from './ic-pin'; +export { default as IconSend } from './ic-send'; From acb959fcb7eb16b38edd47807a08b8d2e4f23e3a Mon Sep 17 00:00:00 2001 From: suwonthugger <127329855+suwonthugger@users.noreply.github.com> Date: Mon, 28 Oct 2024 03:50:25 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat(Icon):=20docs=20=EC=95=84=EC=9D=B4?= =?UTF-8?q?=EC=BD=98=20=ED=85=8C=EC=8A=A4=ED=8A=B8=ED=96=88=EB=8D=98=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C=20(#187)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/docs/src/App.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/docs/src/App.tsx b/apps/docs/src/App.tsx index 301ff2e..8054a7d 100644 --- a/apps/docs/src/App.tsx +++ b/apps/docs/src/App.tsx @@ -5,7 +5,6 @@ import { ChangeEvent, useState } from 'react'; import '@sopt-makers/ui/dist/index.css'; import { FieldBox, SearchField, Test, TextArea, TextField } from '@sopt-makers/ui'; -import { IconBirthdayPrimary, IconBirthdaySecondary, IconPhone, IconAlarmClock } from '@sopt-makers/icons'; import { colors } from '@sopt-makers/colors'; function App() { @@ -89,11 +88,6 @@ function App() { > 여긴 본문 -
- - - -
); }