Skip to content

Commit 6fe5c0f

Browse files
committed
chore: upgrade storybook to 9.x
1 parent f2fa7fe commit 6fe5c0f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+161
-1217
lines changed

apps/storybook/.storybook/main.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,16 @@ function getAbsolutePath(value: string): any {
1111
}
1212
const config: StorybookConfig = {
1313
stories: ["../src/**/*.stories.{ts,tsx}"],
14+
1415
addons: [
1516
getAbsolutePath("@storybook/addon-links"),
16-
getAbsolutePath("@storybook/addon-essentials"),
17-
getAbsolutePath("@storybook/addon-interactions"),
1817
getAbsolutePath("@storybook/addon-themes"),
18+
getAbsolutePath("@storybook/addon-docs")
1919
],
20+
2021
framework: {
2122
name: getAbsolutePath("@storybook/react-vite"),
2223
options: {},
23-
},
24-
docs: {
25-
autodocs: "tag",
26-
},
24+
}
2725
};
2826
export default config;

apps/storybook/.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { withThemeByClassName } from "@storybook/addon-themes";
2-
import type { Decorator, Preview } from "@storybook/react";
2+
import type { Decorator, Preview } from "@storybook/react-vite";
33
import React from "react";
44
import { ThemeInit } from "../.flowbite-react/init";
55

apps/storybook/package.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,10 @@
1919
"react-icons": "5.2.1"
2020
},
2121
"devDependencies": {
22-
"@storybook/addon-actions": "8.1.10",
23-
"@storybook/addon-essentials": "8.1.10",
24-
"@storybook/addon-interactions": "8.1.10",
25-
"@storybook/addon-links": "8.1.10",
26-
"@storybook/addon-themes": "8.1.10",
27-
"@storybook/blocks": "8.1.10",
28-
"@storybook/react": "8.1.10",
29-
"@storybook/react-vite": "8.1.10",
30-
"@storybook/test": "8.1.10",
22+
"@storybook/addon-docs": "9.1.15",
23+
"@storybook/addon-links": "9.1.15",
24+
"@storybook/addon-themes": "9.1.15",
25+
"@storybook/react-vite": "9.1.15",
3126
"@types/react": "18.3.3",
3227
"@types/react-dom": "18.3.0",
3328
"@typescript-eslint/eslint-plugin": "8.19.1",
@@ -36,10 +31,10 @@
3631
"autoprefixer": "10.4.20",
3732
"eslint-plugin-react": "7.37.3",
3833
"eslint-plugin-react-refresh": "0.4.16",
39-
"eslint-plugin-storybook": "0.11.1",
34+
"eslint-plugin-storybook": "9.1.15",
4035
"eslint-plugin-vitest": "0.5.4",
4136
"postcss": "8.4.49",
42-
"storybook": "8.1.10",
37+
"storybook": "9.1.15",
4338
"tailwindcss": "3.4.17",
4439
"typescript": "5.6.3",
4540
"vite": "6.0.7"

apps/storybook/src/Accordion.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryFn } from "@storybook/react";
1+
import type { Meta, StoryFn } from "@storybook/react-vite";
22
import { Accordion, AccordionContent, AccordionPanel, AccordionTitle, type AccordionProps } from "flowbite-react";
33
import { HiChevronDown, HiOutlineArrowCircleDown } from "react-icons/hi";
44

apps/storybook/src/Alert.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryFn } from "@storybook/react";
1+
import type { Meta, StoryFn } from "@storybook/react-vite";
22
import type { AlertProps } from "flowbite-react";
33
import { Alert, alertTheme } from "flowbite-react";
44
import { HiEye, HiInformationCircle } from "react-icons/hi";

apps/storybook/src/Avatar.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryFn } from "@storybook/react";
1+
import type { Meta, StoryFn } from "@storybook/react-vite";
22
import type { AvatarProps } from "flowbite-react";
33
import { Avatar } from "flowbite-react";
44

apps/storybook/src/AvatarGroup.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryFn } from "@storybook/react";
1+
import type { Meta, StoryFn } from "@storybook/react-vite";
22
import type { AvatarGroupProps } from "flowbite-react";
33
import { Avatar, AvatarGroup, AvatarGroupCounter } from "flowbite-react";
44

apps/storybook/src/Badge.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryFn } from "@storybook/react";
1+
import type { Meta, StoryFn } from "@storybook/react-vite";
22
import type { BadgeProps } from "flowbite-react";
33
import { Badge, badgeTheme } from "flowbite-react";
44
import { HiCheck } from "react-icons/hi";

apps/storybook/src/Banner.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryFn } from "@storybook/react";
1+
import type { Meta, StoryFn } from "@storybook/react-vite";
22
import type { BannerProps } from "flowbite-react";
33
import { Banner, BannerCollapseButton } from "flowbite-react";
44
import { HiX } from "react-icons/hi";

apps/storybook/src/Blockquote.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryFn } from "@storybook/react";
1+
import type { Meta, StoryFn } from "@storybook/react-vite";
22
import type { BlockquoteProps } from "flowbite-react";
33
import { Blockquote } from "flowbite-react";
44

0 commit comments

Comments
 (0)