-
Notifications
You must be signed in to change notification settings - Fork 0
feat: 버튼 컴포넌트 구현 및 디자인 토큰 생성 및 크로마틱 워크플로우 생성 (#49) #51
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
4b55280
chore(#49): Storybook 관련 패키지 설치
wkdtnqls0506 65b79ae
feat(#49): Storybook 배포를 위한 Chromatic 워크플로우 생성
wkdtnqls0506 07a5209
feat(#49): 글로벌 reset 스타일 정의
wkdtnqls0506 5b4372d
feat(#49): color, radius 디자인 토큰 생성
wkdtnqls0506 1feb5d6
feat(#49): Storybook 글로벌 reset 스타일 적용 및 vanilla-extract vite 플러그인 추가
wkdtnqls0506 91420c1
feat(#49): Button 컴포넌트 및 스타일 구현
wkdtnqls0506 f672dfa
feat(#49): Button 컴포넌트의 Storybook 스토리 추가
wkdtnqls0506 04dfacd
chore(#49): 글로벌 reset 스타일 적용 및 기본 메타데이터 수정
wkdtnqls0506 5dde933
fix(#49): actions/checkout에 fetch-depth: 0 설정
wkdtnqls0506 86bb305
refactor(#49): disabled 상태 스타일 정의를 variant에서 base의 selectors로 변경
wkdtnqls0506 ff8ba68
refactor(#49): 불필요한 children 명시 제거 및 ButtonProps export 처리
wkdtnqls0506 cce0a57
refactor(#49): 외부에서 사용되지 않는 button 스타일 export 정리
wkdtnqls0506 fdb5480
refactor(#49): ComponentPropsWithoutRef 변경 및 className 확장성 추가
wkdtnqls0506 cfc7537
refactor(#49): 피그마 hug 기준 반영
wkdtnqls0506 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: Storybook Chromatic Deployment | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| jobs: | ||
| storybook-preview: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v4 | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "22" | ||
| cache: "pnpm" | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install | ||
|
|
||
| - name: Publish to Chromatic | ||
| id: chromatic | ||
| uses: chromaui/action@latest | ||
Seojunhwan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| with: | ||
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| onlyChanged: true | ||
| autoAcceptChanges: true | ||
|
|
||
| - name: Comment PR | ||
| if: always() | ||
| uses: thollander/actions-comment-pull-request@v3 | ||
| with: | ||
| comment-tag: chromatic-preview-${{ github.event.number }} | ||
| message: | | ||
| 🎨 **Storybook Preview**: ${{ steps.chromatic.outputs.storybookUrl }} | ||
| 🔗 **Chromatic Build**: ${{ steps.chromatic.outputs.buildUrl }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,16 @@ | ||
| import type { Preview } from '@storybook/react' | ||
| import "@/styles/reset.css.ts"; | ||
|
|
||
| import type { Preview } from "@storybook/react"; | ||
|
|
||
| const preview: Preview = { | ||
| parameters: { | ||
| controls: { | ||
| matchers: { | ||
| color: /(background|color)$/i, | ||
| date: /Date$/i, | ||
| color: /(background|color)$/i, | ||
| date: /Date$/i, | ||
| }, | ||
| }, | ||
| }, | ||
| }; | ||
|
|
||
| export default preview; | ||
| export default preview; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.