Skip to content
Merged
Show file tree
Hide file tree
Changes from 76 commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
55241bf
chore: 패키지 이름 수정
hongggyelim Mar 11, 2025
8da8e2d
d.ts 파일 추가
hongggyelim Mar 11, 2025
a58d705
chore: 바닐라 익스트랙트 설치
hongggyelim Mar 11, 2025
1789b2e
feat: 스토리북 vanilla extract 적용
hongggyelim Mar 11, 2025
a6c974f
chore: 색상 변수 추가
hongggyelim Mar 11, 2025
bb908e1
feat: 유틸리티 타입 추가
hongggyelim Mar 11, 2025
7714904
chore: 스타일 정의
hongggyelim Mar 11, 2025
cfc8bca
feat: globalcss 적용(스토리북만)
hongggyelim Mar 12, 2025
8e1f00d
feat: 이미지 파일 선택 시 프리뷰 추가
hongggyelim Mar 12, 2025
5f32be9
feat: 프리뷰 삭제 기능 추가
hongggyelim Mar 12, 2025
73994f2
chore: 사진 등록 로직 일부 수정
hongggyelim Mar 12, 2025
35bc846
feat: 프리뷰 dnd
hongggyelim Mar 12, 2025
b80b419
fix: 파일 개수 선택 제한 수정
hongggyelim Mar 12, 2025
43353aa
chore: img 드래그 방지
hongggyelim Mar 12, 2025
e75107c
feat: 파일 드래그 업로드
hongggyelim Mar 12, 2025
7b6d916
feat: PR에서 크로매틱 배포
hongggyelim Mar 12, 2025
ee79de2
fix: storybook build script수정
hongggyelim Mar 12, 2025
ca16f42
fix: main.ts에 globalcss 삭제
hongggyelim Mar 12, 2025
37bee12
feat: yaml 수정 깃헙봇추가
hongggyelim Mar 12, 2025
a3153a0
chore: yml 원복
hongggyelim Mar 12, 2025
9148b04
feat: yml 수정
hongggyelim Mar 12, 2025
4eef9df
chore: 오타 수정 및 불필요한 스토리 삭제
hongggyelim Mar 12, 2025
5221d6b
chore: 색상 변수 추가
hongggyelim Mar 13, 2025
46e00e7
feat: button variant + 상태 스타일 정의
hongggyelim Mar 13, 2025
243a104
feat: 버튼 컴포넌트 구성 완료
hongggyelim Mar 13, 2025
ba605cc
feat: 버튼 스토리북 추가
hongggyelim Mar 13, 2025
23c762c
fix: PR 리뷰 반영
hongggyelim Mar 13, 2025
c40225d
delete: package/ui eslint.config.js 삭제
hongggyelim Mar 13, 2025
2ebbd6e
Merge branch 'feat/file_upload' into feat/component
hongggyelim Mar 13, 2025
60476b5
feat: 버튼 스토리북 추가
hongggyelim Mar 13, 2025
d5d694d
feat: 개발 버튼 스토리북 추가
hongggyelim Mar 13, 2025
5951712
feat: 아이콘을 포함한 버튼 추가
hongggyelim Mar 13, 2025
08926dd
feat: sprinkles 수정
hongggyelim Mar 13, 2025
8c077a6
feat: 스토리북 컬러 팔레트 추가
hongggyelim Mar 14, 2025
13988bd
delete: 불필요한 패키지 삭제
hongggyelim Mar 14, 2025
e87ec23
fix: 세미콜론 지움
hongggyelim Mar 14, 2025
d4663b7
feat: pr리뷰반영
hongggyelim Mar 15, 2025
b211cc0
fix: 빌드 에러
Mar 17, 2025
258632b
fix: alias 적용
Mar 17, 2025
43e4de5
fix: package/ui에 eslint config별도 추가
hongggyelim Mar 18, 2025
6c3d76b
chore: 오타, 경로 수정
hongggyelim Mar 18, 2025
2b2509f
chore: 불필요한 핸들러 삭제
hongggyelim Mar 18, 2025
fa1b736
chore: 컴포넌트 폴더명 수정
hongggyelim Mar 18, 2025
9cfe952
chore: px 표시 추가
hongggyelim Mar 18, 2025
8290e57
refactor: 이미지 핸들러 로직 수정
hongggyelim Mar 18, 2025
94615d0
chore: pr리뷰 반영
hongggyelim Mar 18, 2025
2efa170
chore: inputWrapper 컴포넌트 삭제
hongggyelim Mar 18, 2025
d9297f1
refactor: recipe로 스타일링 변경
hongggyelim Mar 18, 2025
5280cdc
refactor: 불필요한 상태 ref로 변경
hongggyelim Mar 18, 2025
56e8086
fix: 버튼 disabled hover 스타일 변경
hongggyelim Mar 18, 2025
4768d7c
Merge branch 'main' into feat/component
hongggyelim Mar 18, 2025
c0a44aa
remove: type 폴더 중복 삭제
hongggyelim Mar 18, 2025
d3480b0
chore: 주석 삭제
hongggyelim Mar 18, 2025
57645dd
chore: 주석 추가
hongggyelim Mar 18, 2025
e7bb425
chore: prop 기본값을 추가
hongggyelim Mar 18, 2025
f9e3c86
fix: import 경로 수정
hongggyelim Mar 19, 2025
7bb0bdd
fix: exports, import 수정
hongggyelim Mar 19, 2025
91d3a25
chore: 폴더 구조 수정
hongggyelim Mar 19, 2025
c093561
chore: import 수정
hongggyelim Mar 19, 2025
fe35650
fix: alias 삭제
hongggyelim Mar 19, 2025
7814508
chore: config 수정 - alias
hongggyelim Mar 19, 2025
8802f10
fix: tsconfig에서 path삭제
hongggyelim Mar 19, 2025
9afb1f8
chore: 파일이름 수정
hongggyelim Mar 19, 2025
3a977c0
chore: vite config 수정
hongggyelim Mar 19, 2025
ffa0246
chore: 폴더 아키텍쳐 정리
jongjunpark Mar 19, 2025
db37a30
feat: vite로 build하여 사용
jongjunpark Mar 19, 2025
33c4c83
chore: global style 생성하기
jongjunpark Mar 19, 2025
133db6c
chore: ui build action 추가
jongjunpark Mar 19, 2025
055cc62
fix: 색상 토큰 수정
hongggyelim Mar 19, 2025
fd54852
chore: sample table 추가
jongjunpark Mar 24, 2025
ba2203d
fix: 버튼 스타일 수정
hongggyelim Mar 25, 2025
acc95a1
fix: 버튼 스토리 수정
hongggyelim Mar 25, 2025
1ca3c36
chore: 폰트 추가
hongggyelim Mar 25, 2025
9cf9488
chore: sample button에 fontfamily 추가
jongjunpark Mar 25, 2025
bed0524
chore: 폰트 적용
hongggyelim Mar 25, 2025
409a786
chore: border 수정
hongggyelim Mar 25, 2025
a8412c3
fix: secondary 색상 변경
hongggyelim Mar 25, 2025
e4164e4
chore: Button 컴포넌트 args 수정
hongggyelim Mar 25, 2025
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
3 changes: 3 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Build UI Package
run: pnpm --filter @repo/ui build

- name: Build Storybook
run: pnpm --filter storybook build-storybook

Expand Down
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
{
"mode": "auto"
}
]
],
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "explicit"
}
}
7 changes: 6 additions & 1 deletion apps/storybook/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ import type { StorybookConfig } from "@storybook/react-vite";
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";

const config: StorybookConfig = {
stories: ["../../../packages/ui/src/**/*.stories.@(js|jsx|ts|tsx)"],
stories: [
"../../../packages/ui/src/**/*.stories.@(js|jsx|ts|tsx)",
"../../../packages/ui/src/**/*.mdx", // 문서화용 MDX 파일 추가
],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-docs", // 문서화 애드온
"@storybook/blocks",
],
framework: {
name: "@storybook/react-vite",
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "@repo/ui/global.css";
import type { Preview } from "@storybook/react";
import "../../../packages/ui/src/globalStyle/global.css"; // alias 설정해도 안됨

const preview: Preview = {
parameters: {
Expand Down
3 changes: 3 additions & 0 deletions apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
},
"devDependencies": {
"@chromatic-com/storybook": "3.2.5",
"@mdx-js/react": "^3.1.0",
"@mdx-js/rollup": "^3.1.0",
Comment on lines +15 to +16
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

어디에 쓰이는거야? 쓰는곳은 없는데

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

스토리북에서 mdx 파일 작성할때 필요하다고 해서 설치했고 import는 안해도 된다고 하는데.. 없어도 되는건가?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://storybook.js.org/docs/writing-docs/mdx
공식문서엔 다른느낌인데 나중에 mdx를 활용할거면 둬도 될거같어

"@storybook/addon-actions": "^8.6.4",
"@storybook/addon-docs": "^8.6.4",
"@storybook/addon-essentials": "8.6.4",
"@storybook/addon-interactions": "8.6.4",
"@storybook/addon-links": "^8.6.4",
Expand Down
3 changes: 2 additions & 1 deletion apps/storybook/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"baseUrl": ".", // alias 기준 설정
"paths": {
"@/*": ["./src/*"],
"@repo/ui/*": ["../../../packages/ui/*"] // alias 설정
"@components/*": ["../../packages/ui/src/components/*"],
"@store/*": ["../../packages/ui/src/store/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
Expand Down
7 changes: 0 additions & 7 deletions apps/storybook/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
import react from "@vitejs/plugin-react-swc";
import path from "path";
import { defineConfig } from "vite";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
// alias 설정 추가
resolve: {
alias: {
"@repo/ui": path.resolve(__dirname, "../../../packages/ui"),
},
},
});
1 change: 1 addition & 0 deletions apps/user/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// import "@repo/ui/globalStyle";
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
Expand Down
13 changes: 4 additions & 9 deletions apps/user/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import Image from "next/image";
import styles from "./page.module.css";

export default function Home() {
return (
<div className={styles.page}>
<main className={styles.main}>
<div>
<main>
<Image
className={styles.logo}
src="/next.svg"
alt="Next.js logo"
width={180}
Expand All @@ -20,15 +18,13 @@ export default function Home() {
<li>Save and see your changes instantly.</li>
</ol>

<div className={styles.ctas}>
<div>
<a
className={styles.primary}
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
className={styles.logo}
src="/vercel.svg"
alt="Vercel logomark"
width={20}
Expand All @@ -40,13 +36,12 @@ export default function Home() {
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
className={styles.secondary}
>
Read our docs
</a>
</div>
</main>
<footer className={styles.footer}>
<footer>
<a
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
target="_blank"
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
"@changesets/cli": "^2.28.1",
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@repo/ui": "workspace:*",
"@storybook/react": "8.6.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^5.2.3",
"husky": "^9.1.7",
"lint-staged": "^15.4.3",
"prettier": "^3.5.3",
"tsc-alias": "^1.8.11",
"turbo": "^2.4.4",
"typescript": "^5.8.2"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/ui/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import baseConfig from "@repo/eslint-config/base";

export default [...baseConfig];
16 changes: 11 additions & 5 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
"private": true,
"exports": {
"./*": {
"types": "./src/*.ts",
"types": "./dist/*.d.ts",
"import": "./dist/*.mjs",
"default": "./dist/*.js"
}
},
"./global.css": "./dist/global.css"
},
"scripts": {
"lint": "eslint . --max-warnings 0",
"generate:component": "turbo gen react-component",
"check-types": "tsc --noEmit",
"dev": "tsc --watch",
"build": "tsc"
"dev": "vite",
"build": "vite build"
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
Expand All @@ -29,8 +31,12 @@
"dependencies": {
"@vanilla-extract/css": "^1.17.1",
"@vanilla-extract/recipes": "^0.5.5",
"@vanilla-extract/vite-plugin": "^5.0.1",
"pretendard": "^1.3.9",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-icons": "^5.5.0"
"react-icons": "^5.5.0",
"vite": "^6.1.0",
"vite-plugin-dts": "^4.5.0"
}
}
35 changes: 0 additions & 35 deletions packages/ui/src/button.css

This file was deleted.

43 changes: 0 additions & 43 deletions packages/ui/src/button.stories.ts

This file was deleted.

22 changes: 0 additions & 22 deletions packages/ui/src/button.tsx

This file was deleted.

27 changes: 0 additions & 27 deletions packages/ui/src/card.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions packages/ui/src/code.tsx

This file was deleted.

Loading