Skip to content

chore(deps): update storybook monorepo to v9 (major) #122

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 4 commits into from
Jul 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
"plugin:import/typescript",
"plugin:mdx/recommended",
"prettier",
"plugin:storybook/recommended",
],
plugins: ["testing-library", "import", "styled-components-a11y"],
ignorePatterns: ["**/build/**"],
Expand Down
3 changes: 1 addition & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ const config: StorybookConfig = {

addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-webpack5-compiler-swc",
"@storybook/addon-docs",
],

webpackFinal: async (config) => {
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import { Preview } from "@storybook/react"
import { Preview } from "@storybook/nextjs"
import { ThemeProvider } from "../src/components/ThemeProvider/ThemeProvider"
import { initialize, mswLoader } from "msw-storybook-addon"

Expand Down
27 changes: 11 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,29 +78,23 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@chromatic-com/storybook": "^4.0.0",
"@chromatic-com/storybook": "^4.0.1",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@faker-js/faker": "^9.0.0",
"@faker-js/faker": "^9.0.13",
"@jest/environment": "^30.0.0",
"@mui/lab": "6.0.0-dev.240424162023-9968b4889d",
"@mui/material": "^6.1.6",
"@mui/system": "^6.1.6",
"@remixicon/react": "^4.2.0",
"@storybook/addon-actions": "^8.6.7",
"@storybook/addon-essentials": "^8.6.7",
"@storybook/addon-interactions": "^8.6.7",
"@storybook/addon-links": "^8.6.7",
"@storybook/addon-onboarding": "^8.6.7",
"@storybook/addon-docs": "^9.0.13",
"@storybook/addon-links": "^9.0.13",
"@storybook/addon-onboarding": "^9.0.13",
"@storybook/addon-webpack5-compiler-swc": "^3.0.0",
"@storybook/blocks": "^8.6.7",
"@storybook/nextjs": "^8.6.7",
"@storybook/preview-api": "^8.6.7",
"@storybook/react": "^8.6.7",
"@storybook/react-webpack5": "^8.6.7",
"@storybook/test": "^8.6.7",
"@storybook/types": "^8.6.7",
"@storybook/nextjs": "^9.0.13",
"@storybook/react-webpack5": "^9.0.13",
"@swc/jest": "^0.2.37",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "14.6.1",
Expand All @@ -119,6 +113,7 @@
"eslint-plugin-mdx": "^3.0.0",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-storybook": "9.0.13",
"eslint-plugin-styled-components-a11y": "^2.1.35",
"eslint-plugin-testing-library": "^7.0.0",
"jest": "^30.0.0",
Expand All @@ -128,13 +123,13 @@
"jest-fixed-jsdom": "^0.0.9",
"jest-watch-typeahead": "^3.0.0",
"msw": "^2.7.0",
"msw-storybook-addon": "^2.0.4",
"msw-storybook-addon": "^2.0.5",
"next": "^15.0.2",
"prettier": "^3.3.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"semantic-release": "^24.2.0",
"storybook": "^8.6.7",
"storybook": "^9.0.13",
"ts-node": "^10.9.2",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"type-fest": "^4.26.1",
Expand Down
2 changes: 1 addition & 1 deletion src/Installation.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from "@storybook/blocks"
import { Meta } from "@storybook/addon-docs/blocks"

<Meta title="Smoot-Design/Installation/Installation" />

Expand Down
2 changes: 1 addition & 1 deletion src/bundles/AiDrawer/AiDrawer.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, Title, Controls, Stories } from "@storybook/blocks"
import { Meta, Title, Controls, Stories } from "@storybook/addon-docs/blocks"
import * as AiDrawer from "./AiDrawer.stories"

<Meta of={AiDrawer} />
Expand Down
2 changes: 1 addition & 1 deletion src/bundles/AiDrawer/AiDrawer.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable react-hooks/rules-of-hooks */
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { http, HttpResponse } from "msw"
import { handlers } from "../../components/AiChat/test-utils/api"
import { AiDrawer, AiDrawerSettings } from "./AiDrawer"
Expand Down
2 changes: 1 addition & 1 deletion src/bundles/AiDrawer/AiDrawerManager.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, Title, Controls, Stories } from "@storybook/blocks"
import { Meta, Title, Controls, Stories } from "@storybook/addon-docs/blocks"

import * as AiDrawerManager from "./AiDrawerManager.stories"
import { gitLink } from "../../story-utils"
Expand Down
2 changes: 1 addition & 1 deletion src/bundles/AiDrawer/AiDrawerManager.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable react-hooks/rules-of-hooks */
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import invariant from "tiny-invariant"
import { http, HttpResponse } from "msw"
import { handlers } from "../../components/AiChat/test-utils/api"
Expand Down
8 changes: 7 additions & 1 deletion src/components/AiChat/AiChat.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { Meta, Title, Primary, Controls, Stories } from "@storybook/blocks"
import {
Meta,
Title,
Primary,
Controls,
Stories,
} from "@storybook/addon-docs/blocks"

import * as AiChat from "./AiChat.stories"
import { gitLink } from "../../story-utils"
Expand Down
2 changes: 1 addition & 1 deletion src/components/AiChat/AiChat.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { AiChat } from "./AiChat"
import type { AiChatProps } from "./types"
import styled from "@emotion/styled"
Expand Down
2 changes: 1 addition & 1 deletion src/components/AiChat/AiChatContext.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { AiChatDisplay } from "./AiChat"
import { AiChatProvider, useAiChat } from "./AiChatContext"
import type { AiChatProps } from "./types"
Expand Down
2 changes: 1 addition & 1 deletion src/components/AiChat/AiChatMarkdown.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { AiChat } from "./AiChat"
import styled from "@emotion/styled"
import { handlers } from "./test-utils/api"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Alert/Alert.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { Alert } from "./Alert"
import Stack from "@mui/material/Stack"

Expand Down
4 changes: 2 additions & 2 deletions src/components/Button/ActionButton.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { ActionButton, ActionButtonLink, DEFAULT_PROPS } from "./ActionButton"
import type { ActionButtonProps } from "./ActionButton"
import Grid from "@mui/material/Grid2"
Expand All @@ -10,7 +10,7 @@ import {
RiTestTubeLine,
} from "@remixicon/react"

import { fn } from "@storybook/test"
import { fn } from "storybook/test"
import { enumValues } from "../../story-utils"

const ICONS = {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { Button, ButtonLink, ButtonLoadingIcon } from "./Button"
import type { ButtonProps } from "./Button"
import Grid from "@mui/material/Grid2"
Expand All @@ -11,7 +11,7 @@ import {
RiMailLine,
} from "@remixicon/react"

import { fn } from "@storybook/test"
import { fn } from "storybook/test"
import { enumValues } from "../../story-utils"

const ICONS = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Checkbox/Checkbox.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react"
import { useState, ChangeEvent } from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { Checkbox } from "./Checkbox"
import type { CheckboxProps } from "./Checkbox"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import {
CheckboxChoiceField,
CheckboxChoiceFieldProps,
} from "./CheckboxChoiceField"
import Typography from "@mui/material/Typography"
import { fn } from "@storybook/test"
import { fn } from "storybook/test"

const CHOICES: CheckboxChoiceFieldProps["choices"] = [
{ label: "Choice 1", value: "1" },
Expand Down
4 changes: 2 additions & 2 deletions src/components/Input/Input.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { Input, AdornmentButton } from "./Input"
import type { InputProps } from "./Input"
import Stack from "@mui/material/Stack"
import Grid from "@mui/material/Grid2"
import { RiCalendarLine, RiCloseLine, RiSearchLine } from "@remixicon/react"
import { fn } from "@storybook/test"
import { fn } from "storybook/test"
import { enumValues } from "../../story-utils"
import Typography from "@mui/material/Typography"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import {
BooleanRadioChoiceField,
BooleanRadioChoiceFieldProps,
Expand Down
4 changes: 2 additions & 2 deletions src/components/RadioChoiceField/RadioChoiceField.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import { useArgs } from "@storybook/preview-api"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { useArgs } from "storybook/preview-api"
import { RadioChoiceField } from "./RadioChoiceField"

const meta: Meta<typeof RadioChoiceField> = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ScrollSnap/ScrollSnap.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { ScrollSnap } from "./ScrollSnap"
import styled from "@emotion/styled"
import { faker } from "@faker-js/faker/locale/en"
Expand Down
2 changes: 1 addition & 1 deletion src/components/SrAnnouncer/SrAnnouncer.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { SrAnnouncer } from "./SrAnnouncer"
import styled from "@emotion/styled"

Expand Down
2 changes: 1 addition & 1 deletion src/components/TabButtons/TabButtonList.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable react-hooks/rules-of-hooks */
import * as React from "react"
import { useState } from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { TabButtonList, TabButton, TabButtonLink } from "./TabButtonList"
import type { TabButtonListProps } from "./TabButtonList"
import TabContext from "@mui/lab/TabContext"
Expand Down
4 changes: 2 additions & 2 deletions src/components/TextField/TextField.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { TextField } from "./TextField"
import type { TextFieldProps } from "./TextField"
import { AdornmentButton } from "../Input/Input"
import Stack from "@mui/material/Stack"
import Grid from "@mui/material/Grid"
import { RiSearchLine, RiCalendarLine, RiCloseLine } from "@remixicon/react"
import { fn } from "@storybook/test"
import { fn } from "storybook/test"
import { enumValues } from "../../story-utils"

const SIZES = enumValues<NonNullable<TextFieldProps["size"]>>({
Expand Down
2 changes: 1 addition & 1 deletion src/components/ThemeProvider/ThemeProvider.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { ThemeProvider, createTheme } from "./ThemeProvider"
import { ButtonLink } from "../Button/Button"

Expand Down
2 changes: 1 addition & 1 deletion src/components/ThemeProvider/Typography.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react"
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import Stack from "@mui/material/Stack"
import Typography from "@mui/material/Typography"
import type { TypographyProps } from "@mui/material/Typography"
Expand Down
2 changes: 1 addition & 1 deletion src/components/VisuallyHidden/VisuallyHidden.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react"
import type { Meta, StoryObj } from "@storybook/nextjs"
import { VisuallyHidden } from "./VisuallyHidden"

const meta: Meta<typeof VisuallyHidden> = {
Expand Down
2 changes: 1 addition & 1 deletion src/type-augmentation/TypescriptDocs.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from "@storybook/blocks"
import { Meta } from "@storybook/addon-docs/blocks"

<Meta title="Smoot-Design/Installation/Typescript" />

Expand Down
Loading