Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
25392ec
라디오 컴포넌트 제작, 잉여코드 제거 및 수정
RunaUXLabs Apr 13, 2024
2eef937
wip : Tab
yhyunmin Apr 14, 2024
a44eb3d
add todo
yhyunmin Apr 14, 2024
847cdb2
Merge branch 'main' of ssh://github.com/tubeletter/chakra-ui-clone in…
GaYunKimm Apr 16, 2024
3ea8e92
Merge pull request #41 from tubeletter/fix/main-update
GaYunKimm Apr 16, 2024
272b896
feat : tab component
yhyunmin Apr 16, 2024
396cc13
fix : tab props,types
yhyunmin Apr 16, 2024
852ef21
add : unstyled tabs
yhyunmin Apr 16, 2024
b71d89c
fix : refactor btn
GaYunKimm Apr 16, 2024
be60a07
tabs 스토리북 완료
yhyunmin Apr 18, 2024
43f4b3e
수정요망 : sizeStyles, styles 함수 ë³로 변경
yhyunmin Apr 18, 2024
d1aac62
Merge pull request #42 from tubeletter/fix/components-styled-btn-bboing
GaYunKimm Apr 18, 2024
9a74493
fix : tab fix
Apr 18, 2024
740ef43
fix : refactor btn
GaYunKimm Apr 19, 2024
baa8486
feature : badge add
GaYunKimm Apr 19, 2024
7cd28b6
Merge pull request #45 from tubeletter/fix/components-styled-rebtnfix
GaYunKimm Apr 19, 2024
45559a2
Merge pull request #46 from tubeletter/feature/components-styled-badg…
GaYunKimm Apr 19, 2024
92f0047
Merge pull request #44 from tubeletter/fix/components-styled-tabfix
yhyunmin Apr 19, 2024
ba4c4e6
tabs : 완료
yhyunmin Apr 19, 2024
385749d
Merge pull request #36 from tubeletter/feature/components-styled-radi…
RunaUXLabs Apr 20, 2024
00c7ec7
feature : switch add / fix : radio, checkbox
RunaUXLabs Apr 20, 2024
2e80ba9
fix : radio, checkbox refactor
RunaUXLabs Apr 20, 2024
db40c4c
feat : tag and kbd add
GaYunKimm Apr 22, 2024
dcd7d39
fix :정렬 변경
GaYunKimm Apr 22, 2024
d22adee
Merge pull request #49 from tubeletter/origin/feature/components-styl…
RunaUXLabs Apr 22, 2024
d868fe1
Merge pull request #51 from tubeletter/feature/components-styled-TagA…
GaYunKimm Apr 23, 2024
1aeb5bd
feature : close button add(svg 고정값으로 적용)
RunaUXLabs Apr 23, 2024
b627206
feature : textarea add, fix: close button
RunaUXLabs Apr 24, 2024
05a5b70
fix: textarea css property
RunaUXLabs Apr 24, 2024
4927ca4
fix : close btn and textarea fix
GaYunKimm Apr 25, 2024
9931a68
Merge pull request #54 from tubeletter/fix/components-styled-textarea…
RunaUXLabs Apr 25, 2024
4aa7679
merging
yhyunmin Apr 28, 2024
34b4c45
fix : Separate styles
RunaUXLabs Apr 28, 2024
581e87a
Merge pull request #47 from tubeletter/feature/components-styled-smile2
yhyunmin Apr 29, 2024
1815d54
accordion work in progress
yhyunmin Apr 29, 2024
24b4e94
add : accordion done
yhyunmin Apr 29, 2024
a101d3e
feature : select add
RunaUXLabs Apr 29, 2024
719985f
fix : texsarea colorScheme
RunaUXLabs Apr 29, 2024
81e3c9d
Merge pull request #55 from tubeletter/feature/components-styled-smile4
yhyunmin Apr 30, 2024
2d34082
feature : numberinput add
RunaUXLabs May 1, 2024
751178f
fix: numberinput size indexing add
RunaUXLabs May 1, 2024
b7684b3
Merge branch 'main' of ssh://github.com/tubeletter/chakra-ui-clone in…
GaYunKimm May 1, 2024
1012a09
Merge branch 'feature/components-styled' of ssh://github.com/tubelett…
GaYunKimm May 1, 2024
51aa165
fix : typo set add
GaYunKimm May 1, 2024
dabb660
feat : input ing~
GaYunKimm May 3, 2024
277090b
fix : input
GaYunKimm May 3, 2024
b5b8a5f
Merge pull request #58 from tubeletter/feature/components-styled-form…
yhyunmin May 4, 2024
6a00b0e
wip : Alert
yhyunmin May 4, 2024
4b34b8e
wip : alert
yhyunmin May 5, 2024
548029f
wip : alert
yhyunmin May 5, 2024
160a20f
fix : compundpattern X
May 5, 2024
d9db7f5
wip : alert styling
yhyunmin May 5, 2024
ec3d84f
add : alert components
yhyunmin May 5, 2024
2def551
add : alert components
yhyunmin May 5, 2024
ede75c6
wip : progress bar
yhyunmin May 5, 2024
09f75de
fix : folder path
yhyunmin May 6, 2024
716d1ea
Merge pull request #59 from tubeletter/feature/components-styled-smile4
yhyunmin May 6, 2024
530afa4
Merge pull request #60 from tubeletter/feature/components-styled-smile5
yhyunmin May 6, 2024
cc0caf6
wip : progress
yhyunmin May 6, 2024
7158bae
fix : input edit
May 6, 2024
bec900d
fix : styled input
GaYunKimm May 7, 2024
073c3c4
fix : input demo
GaYunKimm May 7, 2024
d798290
feat : inputgroup add
GaYunKimm May 7, 2024
7d86b86
fix : input gorup fix
GaYunKimm May 7, 2024
37be4bc
fix : input
GaYunKimm May 7, 2024
43784b3
fix : input group style
GaYunKimm May 7, 2024
5fed14c
fix : input gruop style
GaYunKimm May 8, 2024
4bb217e
progress wip, edit provider, add storybook args,
yhyunmin May 8, 2024
3e7130a
add: slider, fix: renaming Files
RunaUXLabs May 9, 2024
dd807b2
fix : 파일 분리
GaYunKimm May 10, 2024
93bf915
fix : refactor inputs
GaYunKimm May 10, 2024
6ccc419
fix : refact
GaYunKimm May 10, 2024
218d03e
fix : refactor css
GaYunKimm May 10, 2024
ad07146
add: pininput
RunaUXLabs May 12, 2024
78cfe8e
fix : input disabled add
GaYunKimm May 13, 2024
eacc20b
fix : storybook
GaYunKimm May 13, 2024
5c78574
Merge pull request #63 from tubeletter/feature/components-styled-inpu…
GaYunKimm May 13, 2024
e8dcd5f
done : progress bar
yhyunmin May 13, 2024
f7ad545
wip : skeleton
yhyunmin May 14, 2024
d150a09
done : skeleton
yhyunmin May 14, 2024
868f855
Merge pull request #62 from tubeletter/feature/components-styled-form…
RunaUXLabs May 16, 2024
9b60188
feature : tooltip add
RunaUXLabs May 16, 2024
a1269ab
Merge pull request #64 from tubeletter/feature/components-styled-smile
yhyunmin May 16, 2024
ef47398
fix : js add
May 17, 2024
6ebccf9
Merge branch 'fix/components-styld-pin-bboing' into feature/component…
RunaUXLabs May 18, 2024
994c29a
wip : table
yhyunmin May 17, 2024
d6baa5b
fix: css add
RunaUXLabs May 19, 2024
7826945
fix: css add
RunaUXLabs May 20, 2024
8f908ca
fix : progress bar control on storybook
yhyunmin May 24, 2024
d2248ec
Merge pull request #66 from tubeletter/feature/components-styled-tool…
yhyunmin May 26, 2024
888a5ab
feat : styled avatar
May 27, 2024
a12aa17
add: modal 초안완성
RunaUXLabs May 28, 2024
dc089dc
wip : table
yhyunmin May 28, 2024
dc69c02
wip : table
yhyunmin May 28, 2024
02ddefd
styling : table
yhyunmin May 29, 2024
40e6434
styling wip : table
yhyunmin May 30, 2024
6728ef5
fix: onClick추가
RunaUXLabs May 30, 2024
e3eaec5
fix: 스타일링 추가, open/close기능 수정중
RunaUXLabs May 30, 2024
ccf516f
Merge pull request #68 from tubeletter/feature/components-styled-smile2
yhyunmin May 31, 2024
ef8ef9a
fix: svg아이콘이 정중앙에 올 수 있도록 path값 변경
RunaUXLabs May 31, 2024
71e757d
fix: className확장을 위한 Props 추가
RunaUXLabs May 31, 2024
168d2e2
fix: 버튼 컴포넌트 onclick부재로 임시버튼으로 구현, closeButton에 onclick반영하고 className확장
RunaUXLabs May 31, 2024
97f2d62
fix : 버튼 온클릭 추가
Jun 3, 2024
a24ff15
Merge pull request #67 from tubeletter/feat/styled-components-avatar-…
GaYunKimm Jun 3, 2024
b589764
Merge remote-tracking branch 'origin/fix/components-styled-buttnClick…
RunaUXLabs Jun 3, 2024
cd9b8d1
Merge pull request #69 from tubeletter/origin/feature/components-styl…
RunaUXLabs Jun 3, 2024
b7fbfec
feat : add breadcrumbs
Jun 9, 2024
12333bc
fix : color opt add
Jun 9, 2024
1011ebe
add: menu
RunaUXLabs Jun 9, 2024
950b568
stats, card done
yhyunmin Jun 10, 2024
25d18ec
styling done feat/components-styled-smile2
yhyunmin Jun 10, 2024
456bfae
Merge pull request #70 from tubeletter/feature/components-styled-brea…
GaYunKimm Jun 10, 2024
0e6a702
Merge pull request #71 from tubeletter/origin/feature/components-styl…
RunaUXLabs Jun 11, 2024
e8017f7
Merge pull request #72 from tubeletter/feature/components-styled-smile2
yhyunmin Jun 20, 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
13 changes: 13 additions & 0 deletions .hintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": [
"development"
],
"hints": {
"axe/forms": [
"default",
{
"select-name": "off"
}
]
}
}
5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions apps/team-styled/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

declare module '*.svg' {
import React = require('react');

export const ReactComponent: REact.FC<React.SVGProps<SVGSVGElement>>;
const src: string;
export default src;
}
Binary file added apps/team-styled/public/mg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
95 changes: 95 additions & 0 deletions packages/chakra-ui-styled/src/components/Tag/Tag.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
import styled from 'styled-components';
import Tag, { TagProps, colorSchemeType } from './Tag';

export default {
title: 'chakra-ui-styled/components/Tag',
component: Tag,
parameters: { controls: { expanded: true } },

argTypes: {
children: { control: { type: 'text' } },
size: { control: { type: 'select' } },
colorScheme: { control: { type: 'select' } },
variant: { control: { type: 'radio' } }
},
args: {
children: '태그 테스트',
size: 'md',
colorScheme: 'blue',
variant: 'solid',
removeButton: true
}
};
const Wrapper = styled.div`
display: flex;
flex-direction: column;
gap: 20px;
`;
const TagWrap = styled.div`
display: flex;
gap: 45px;
align-items: center;

& > div {
display: flex;
flex-direction: column;
gap: 12px;
align-items: center;
justify-content: flex-start;
}
`;

export const TagIndex = (args: TagProps) => {
const tagText: string = 'Tag';
const colorArr: colorSchemeType[] = ['gray', 'blue', 'teal', 'green', 'red', 'purple', 'pink', 'orange'];
return (
<Wrapper>
<h1>Tag</h1>

<h2>Tag Demo</h2>
<div>
<Tag {...args} />
</div>

<h2>Tag Index</h2>
{colorArr.map((color) => (
<TagWrap>
<div>
<Tag removeButton={true} size="sm" variant="subtle" colorScheme={color}>
{tagText}
</Tag>
<Tag removeButton={true} size="md" variant="subtle" colorScheme={color}>
{tagText}
</Tag>
<Tag removeButton={true} size="lg" variant="subtle" colorScheme={color}>
{tagText}
</Tag>
</div>
<div>
<Tag removeButton={true} size="sm" variant="solid" colorScheme={color}>
{tagText}
</Tag>
<Tag removeButton={true} size="md" variant="solid" colorScheme={color}>
{tagText}
</Tag>
<Tag removeButton={true} size="lg" variant="solid" colorScheme={color}>
{tagText}
</Tag>
</div>
<div>
<Tag removeButton={true} size="sm" variant="outline" colorScheme={color}>
{tagText}
</Tag>
<Tag removeButton={true} size="md" variant="outline" colorScheme={color}>
{tagText}
</Tag>
<Tag removeButton={true} size="lg" variant="outline" colorScheme={color}>
{tagText}
</Tag>
</div>
</TagWrap>
))}
</Wrapper>
);
};
TagIndex.storyName = 'Tag';
83 changes: 83 additions & 0 deletions packages/chakra-ui-styled/src/components/Tag/Tag.styled.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import styled, { css } from 'styled-components';
import { TagProps } from './Tag';
import { StyleText } from '../../foundation/typography/Text.styled';

const tagSize = {
lg: css`
gap: 8px;
height: 32px;
padding: 0 ${({ theme }) => theme.spacing[3]};
`,
md: css`
gap: 6px;
height: 24px;
padding: 0 ${({ theme }) => theme.spacing[2]};
`,
sm: css`
gap: 6px;
height: 20px;
padding: 0 ${({ theme }) => theme.spacing[2]};
`
};
const tagText = {
lg: css`
${({ theme }) => theme.typo.text.md};
font-weight: ${({ theme }) => theme.typo.fontWeight.medium};
line-height: 1.5;
`,
md: css`
${({ theme }) => theme.typo.text.sm};
font-weight: ${({ theme }) => theme.typo.fontWeight.medium};
line-height: 1.3;
`,
sm: css`
${({ theme }) => theme.typo.text.xs};
font-weight: ${({ theme }) => theme.typo.fontWeight.medium};
`
};

export const TagStyle = styled.div<TagProps>`
${({ theme, variant, colorScheme }) => css`
display: inline-flex;
align-items: center;
align-self: flex-start;
justify-content: center;
justify-self: flex-start;
width: auto;
border-radius: ${theme.radii.md}rem;
${variant === 'solid'
? css`
color: ${theme.color.white.white};
background-color: ${theme.color[colorScheme][500]};
border: 1px solid ${theme.color[colorScheme][500]};
`
: variant === 'subtle'
? css`
color: ${theme.color[colorScheme][800]};
background-color: ${theme.color[colorScheme][200]};
border: 1px solid ${theme.color[colorScheme][200]};
`
: variant === 'outline'
? css`
color: ${theme.color[colorScheme][600]};
background-color: transparent;
border: 1px solid ${theme.color[colorScheme][500]};
`
: null}
`}
& .tag-remove-btn {
display: flex;
align-items: center;
justify-content: center;
color: inherit;
background: transparent;
border: 0 none;
outline: none;
}

& ${StyleText} {
${({ size }) => tagText[size]}
}

${({ size }) => tagSize[size]}
`;
37 changes: 37 additions & 0 deletions packages/chakra-ui-styled/src/components/Tag/Tag.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { StyleText } from '../../foundation/typography/Text.styled';
import { TagStyle } from './Tag.styled';

export type colorSchemeType = 'blue' | 'gray' | 'teal' | 'red' | 'orange' | 'yellow' | 'pink' | 'purple' | 'green';

export interface TagProps {
variant: 'solid' | 'subtle' | 'outline';
size: 'lg' | 'md' | 'sm';
colorScheme: colorSchemeType;
children: React.ReactNode;
removeButton?: boolean;
}
const RemoveIcon = () => {
return (
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="none">
<path
opacity="0.5"
d="M5 3.88906L8.88906 0L10 1.11094L6.11094 5L10 8.88906L8.88906 10L5 6.11094L1.11094 10L0 8.88906L3.88906 5L0 1.11094L1.11094 0L5 3.88906Z"
fill="currentColor"
/>
</svg>
);
};
const Tag = ({ children, colorScheme, variant, removeButton, size }: TagProps) => {
return (
<TagStyle variant={variant} colorScheme={colorScheme} size={size}>
{children && <StyleText size={size}>{children}</StyleText>}
{removeButton && (
<button className="tag-remove-btn">
<RemoveIcon />
</button>
)}
</TagStyle>
);
};

export default Tag;
61 changes: 61 additions & 0 deletions packages/chakra-ui-styled/src/components/badge/Badge.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import styled from 'styled-components';
import Badge, { BadgeProps, colorSchemeType } from './Badge';

export default {
title: 'chakra-ui-styled/components/Badge',
component: Badge,
parameters: { controls: { expanded: true } },

argTypes: {
variant: { control: { type: 'radio' } },
colorScheme: { control: { type: 'select' } },
children: { control: { type: 'text' } },
},
args: {
variant: 'solid',
colorScheme: 'blue',
children: '뱃지 테스트',
}
};
const Wrapper = styled.div`
display: flex;
flex-direction: column;
gap: 20px;
`;
const BtnBox = styled.div`
display: flex;
gap: 16px;
align-items: center;
`;

export const BadgeIndex = (args: BadgeProps) => {
const BadgeText: string = 'BADGE';
const colorArr: colorSchemeType[] = ['gray', 'blue', 'teal', 'green', 'red', 'purple', 'pink', 'orange'];
return (
<Wrapper>
<h1>Badge</h1>

<h2>Badge Demo</h2>
<div>
<Badge {...args} />
</div>

<h2>Badge Index</h2>

{colorArr.map((color) => (
<BtnBox>
<Badge colorScheme={color} variant="solid">
{BadgeText}
</Badge>
<Badge colorScheme={color} variant="subtle">
{BadgeText}
</Badge>
<Badge colorScheme={color} variant="outline">
{BadgeText}
</Badge>
</BtnBox>
))}
</Wrapper>
);
};
BadgeIndex.storyName = 'Badge';
35 changes: 35 additions & 0 deletions packages/chakra-ui-styled/src/components/badge/Badge.styled.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import styled, { css } from 'styled-components';
import { BadgeProps } from './Badge';

export const StyleBadge = styled.div<BadgeProps>`
${({ theme, variant, colorScheme }) => css`
display: inline-flex;
align-items: center;
align-self: flex-start;
justify-content: center;
justify-self: flex-start;
width: auto;
height: 16px;
padding: 0 ${theme.spacing[1]};
border-radius: ${theme.radii.sm}rem;
${variant === 'solid'
? css`
color: ${theme.color.white.white};
background-color: ${theme.color[colorScheme][500]};
border: 1px solid ${theme.color[colorScheme][500]};
`
: variant === 'subtle'
? css`
color: ${theme.color[colorScheme][800]};
background-color: ${theme.color[colorScheme][100]};
border: 1px solid ${theme.color[colorScheme][100]};
`
: variant === 'outline'
? css`
color: ${theme.color[colorScheme][600]};
background-color: transparent;
border: 1px solid ${theme.color[colorScheme][500]};
`
: null}
`}
`;
21 changes: 21 additions & 0 deletions packages/chakra-ui-styled/src/components/badge/Badge.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { StyleText } from '../../foundation/typography/Text.styled';
import { StyleBadge } from './Badge.styled';

export type colorSchemeType = 'blue' | 'gray' | 'teal' | 'red' | 'orange' | 'yellow' | 'pink' | 'purple' | 'green';

export interface BadgeProps {
colorScheme: colorSchemeType;
variant: 'solid' | 'subtle' | 'outline';
children: React.ReactNode;
}

const Badge = ({ variant = 'solid', colorScheme, children }: BadgeProps) => {
return (
<StyleBadge colorScheme={colorScheme} variant={variant}>
<StyleText size="xs" weight="bold">
{children}
</StyleText>
</StyleBadge>
);
};
export default Badge;
Loading