Skip to content

Commit

Permalink
Refactor/#19: Box 및 Flex 컴포넌트 box sizing 옵션 추가 (#20)
Browse files Browse the repository at this point in the history
* feat: Box 및 Flex 컴포넌트 box-sizing 옵션 추가

* chore: 0.4.3 버전 업데이트
  • Loading branch information
semnil5202 authored Mar 6, 2024
1 parent 15d20e7 commit d80c5d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "concept-be-design-system",
"description": "컨셉비 디자인 시스템",
"version": "0.4.1",
"version": "0.4.3",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down
2 changes: 2 additions & 0 deletions src/components/Box/Box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface Props {
opacity?: CSSProperties['opacity'];
zIndex?: CSSProperties['zIndex'];
shadow?: CSSProperties['boxShadow'];
boxSizing?: CSSProperties['boxSizing'];
}

const Box = styled.div<Props>`
Expand Down Expand Up @@ -86,6 +87,7 @@ const Box = styled.div<Props>`
opacity: ${({ opacity }) => opacity};
z-index: ${({ zIndex }) => zIndex};
box-shadow: ${({ shadow }) => shadow};
box-sizing: ${({ boxSizing }) => boxSizing};
`;

export default Box;
2 changes: 2 additions & 0 deletions src/components/Flex/Flex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export interface Props {
opacity?: CSSProperties['opacity'];
zIndex?: CSSProperties['zIndex'];
shadow?: CSSProperties['boxShadow'];
boxSizing?: CSSProperties['boxSizing'];
}

const Flex = styled.div<Props>`
Expand Down Expand Up @@ -108,6 +109,7 @@ const Flex = styled.div<Props>`
opacity: ${({ opacity }) => opacity};
z-index: ${({ zIndex }) => zIndex};
box-shadow: ${({ shadow }) => shadow};
box-sizing: ${({ boxSizing }) => boxSizing};
`;

export default Flex;

0 comments on commit d80c5d2

Please sign in to comment.