Skip to content

Commit 83e2ed3

Browse files
authored
Merge pull request #332 from DaleStudy/198-storybook-9-version
์Šคํ† ๋ฆฌ๋ถ 9 ๋ฒ„์ „ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜
2 parents 3d727f7 + b395b27 commit 83e2ed3

22 files changed

+493
-294
lines changed

โ€Ž.storybook/main.tsโ€Ž

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ import type { StorybookConfig } from "@storybook/react-vite";
33
const config: StorybookConfig = {
44
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
55
addons: [
6-
"@storybook/addon-links",
7-
"@storybook/addon-essentials",
86
"@chromatic-com/storybook",
9-
"@storybook/addon-interactions",
107
"@storybook/addon-a11y",
118
"@storybook/addon-themes",
12-
"@storybook/theming",
139
"@storybook/addon-designs",
10+
"@storybook/addon-docs",
1411
],
1512
framework: {
1613
name: "@storybook/react-vite",

โ€Ž.storybook/preview.tsxโ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import "../src/index.css";
22
import React from "react";
33
import { withThemeByClassName } from "@storybook/addon-themes";
4-
import { DocsContainer } from "@storybook/blocks";
5-
import { themes } from "@storybook/theming";
6-
import type { Preview, ReactRenderer } from "@storybook/react";
7-
import type { DocsContainerProps } from "@storybook/blocks";
4+
import { DocsContainer } from "@storybook/addon-docs/blocks";
5+
import { themes } from "storybook/theming";
6+
import type { Preview, ReactRenderer } from "@storybook/react-vite";
7+
import type { DocsContainerProps } from "@storybook/addon-docs/blocks";
88

99
const preview: Preview = {
1010
parameters: {

โ€Žbun.lockโ€Ž

Lines changed: 459 additions & 249 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

โ€Žpackage.jsonโ€Ž

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,16 @@
3535
"react-dom": "^19.1.0"
3636
},
3737
"devDependencies": {
38-
"@chromatic-com/storybook": "^3.2.6",
38+
"@chromatic-com/storybook": "^4.0.1",
3939
"@eslint/js": "^9.29.0",
4040
"@faker-js/faker": "^9.8.0",
4141
"@pandacss/dev": "^0.53.7",
42-
"@storybook/addon-a11y": "^8.6.14",
43-
"@storybook/addon-designs": "^8.2.1",
44-
"@storybook/addon-essentials": "^8.6.14",
45-
"@storybook/addon-interactions": "^8.6.14",
46-
"@storybook/addon-links": "^8.6.14",
47-
"@storybook/addon-themes": "^8.6.14",
48-
"@storybook/blocks": "^8.6.14",
49-
"@storybook/react": "^8.6.14",
50-
"@storybook/react-vite": "^8.6.14",
51-
"@storybook/test": "^8.6.14",
52-
"@storybook/test-runner": "^0.22.0",
53-
"@storybook/theming": "^8.6.14",
42+
"@storybook/addon-a11y": "^9.0.13",
43+
"@storybook/addon-designs": "^10.0.1",
44+
"@storybook/addon-docs": "^9.0.13",
45+
"@storybook/addon-themes": "^9.0.13",
46+
"@storybook/react-vite": "^9.0.13",
47+
"@storybook/test-runner": "^0.23.0",
5448
"@testing-library/jest-dom": "^6.6.3",
5549
"@testing-library/react": "^16.3.0",
5650
"@testing-library/user-event": "^14.6.1",
@@ -65,7 +59,7 @@
6559
"globals": "^16.1.0",
6660
"happy-dom": "^18.0.1",
6761
"prettier": "^3.5.3",
68-
"storybook": "^8.6.14",
62+
"storybook": "^9.0.13",
6963
"typescript": "^5.8.3",
7064
"typescript-eslint": "^8.32.1",
7165
"vite": "^6.3.5",

โ€Žsrc/components/Button/Button.stories.tsxโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/react-vite";
22
import { Button } from "./Button";
33
import { vstack } from "../../../styled-system/patterns";
44

โ€Žsrc/components/Button/Button.test.tsxโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { composeStories } from "@storybook/react";
1+
import { composeStories } from "@storybook/react-vite";
22
import { render, screen } from "@testing-library/react";
33
import userEvent from "@testing-library/user-event";
44
import { expect, test, vi } from "vitest";

โ€Žsrc/components/Checkbox/Checkbox.stories.tsxโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/react-vite";
22
import { Checkbox } from "./Checkbox";
33
import { vstack } from "../../../styled-system/patterns";
44

โ€Žsrc/components/Checkbox/Checkbox.test.tsxโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { composeStories } from "@storybook/react";
1+
import { composeStories } from "@storybook/react-vite";
22
import { render, screen } from "@testing-library/react";
33
import userEvent from "@testing-library/user-event";
44
import { expect, test, vi } from "vitest";

โ€Žsrc/components/Heading/Heading.stories.tsxโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/react-vite";
22
import { vstack } from "../../../styled-system/patterns";
33
import { Heading } from "./Heading";
44

โ€Žsrc/components/Heading/Heading.test.tsxโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { faker } from "@faker-js/faker";
2-
import { composeStories } from "@storybook/react";
2+
import { composeStories } from "@storybook/react-vite";
33
import { render, screen } from "@testing-library/react";
44
import { expect, test } from "vitest";
55
import { fontSizes, fontWeights } from "../../tokens/typography";

0 commit comments

Comments
ย (0)