Skip to content

Commit 23ced36

Browse files
authored
Merge pull request #53 from YAPP-Github/feature/PRODUCT-107
feat: TextField 컴포넌트 구현 및 Pretendard 폰트 지정 (#49)
2 parents c808dee + d7e6245 commit 23ced36

21 files changed

Lines changed: 2577 additions & 505 deletions

.github/workflows/chromatic.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ jobs:
3535
onlyChanged: true
3636
autoAcceptChanges: true
3737

38+
- name: Get current time (KST)
39+
uses: josStorer/get-current-time@v2
40+
id: current-time
41+
with:
42+
format: "YYYY년 MM월 DD일 HH시 mm분 ss초"
43+
utcOffset: "+09:00"
44+
3845
- name: Comment PR
3946
if: always()
4047
uses: thollander/actions-comment-pull-request@v3
@@ -43,3 +50,4 @@ jobs:
4350
message: |
4451
🎨 **Storybook Preview**: ${{ steps.chromatic.outputs.storybookUrl }}
4552
🔗 **Chromatic Build**: ${{ steps.chromatic.outputs.buildUrl }}
53+
🕖 ***Updated at**: ${{ steps.current-time.outputs.formattedTime }}

.storybook/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { StorybookConfig } from "@storybook/experimental-nextjs-vite";
22
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
3+
import svgr from "vite-plugin-svgr";
34
import tsconfigPaths from "vite-tsconfig-paths";
45

56
const config: StorybookConfig = {
@@ -15,6 +16,7 @@ const config: StorybookConfig = {
1516
...(config.plugins || []),
1617
tsconfigPaths(),
1718
vanillaExtractPlugin(),
19+
svgr(),
1820
];
1921
return config;
2022
},

next.config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
import { createVanillaExtractPlugin } from "@vanilla-extract/next-plugin";
12
import type { NextConfig } from "next";
2-
const { createVanillaExtractPlugin } = require("@vanilla-extract/next-plugin");
33
const withVanillaExtract = createVanillaExtractPlugin();
44

55
const nextConfig: NextConfig = {
6-
/* config options here */
6+
webpack: config => {
7+
config.module.rules.push({
8+
test: /\.svg$/i,
9+
issuer: /\.[jt]sx?$/,
10+
use: ["@svgr/webpack"],
11+
});
12+
return config;
13+
},
714
};
815

916
module.exports = withVanillaExtract(nextConfig);

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"@vanilla-extract/recipes": "^0.5.7",
2323
"next": "15.3.2",
2424
"react": "^19.0.0",
25-
"react-dom": "^19.0.0"
25+
"react-dom": "^19.0.0",
26+
"react-hook-form": "^7.58.1"
2627
},
2728
"devDependencies": {
2829
"@commitlint/cli": "^19.8.1",
@@ -35,6 +36,7 @@
3536
"@storybook/blocks": "^8.6.14",
3637
"@storybook/experimental-nextjs-vite": "8.6.14",
3738
"@storybook/react": "^8.6.14",
39+
"@svgr/webpack": "^8.1.0",
3840
"@testing-library/dom": "^10.4.0",
3941
"@testing-library/jest-dom": "^6.6.3",
4042
"@testing-library/react": "^16.3.0",
@@ -66,6 +68,7 @@
6668
"prettier": "^3.5.3",
6769
"storybook": "^8.6.14",
6870
"typescript": "^5",
71+
"vite-plugin-svgr": "^4.3.0",
6972
"vite-tsconfig-paths": "^5.1.4",
7073
"vitest": "^3.1.4"
7174
},

0 commit comments

Comments
 (0)