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

* chore(deps): update storybook monorepo to v9

* Updates

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nathan Bierema <nbierema@gmail.com>
This commit is contained in:
renovate[bot] 2025-05-31 13:24:58 +00:00 committed by GitHub
parent 4b35476610
commit 832f4dc195
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 454 additions and 932 deletions

View File

@ -11,26 +11,11 @@ function getAbsolutePath(value: string): any {
}
const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
getAbsolutePath('@storybook/addon-webpack5-compiler-swc'),
getAbsolutePath('@storybook/addon-onboarding'),
getAbsolutePath('@storybook/addon-links'),
{
name: getAbsolutePath('@storybook/addon-essentials'),
options: {
backgrounds: false,
},
},
getAbsolutePath('@chromatic-com/storybook'),
getAbsolutePath('@storybook/addon-interactions'),
],
addons: [getAbsolutePath('@storybook/addon-onboarding')],
framework: {
name: getAbsolutePath('@storybook/react-webpack5'),
name: getAbsolutePath('@storybook/react-vite'),
options: {},
},
docs: {
autodocs: 'tag',
},
staticDirs: ['../fonts'],
};
export default config;

View File

@ -1,5 +1,5 @@
import React from 'react';
import type { Preview } from '@storybook/react';
import type { Preview } from '@storybook/react-vite';
import { Container } from '../src';
import { listSchemes, listThemes } from '../src/utils/theme';

View File

@ -64,16 +64,8 @@
"@babel/preset-env": "^7.27.2",
"@babel/preset-react": "^7.27.1",
"@babel/preset-typescript": "^7.27.1",
"@chromatic-com/storybook": "^3.2.6",
"@storybook/addon-essentials": "^8.6.14",
"@storybook/addon-interactions": "^8.6.14",
"@storybook/addon-links": "^8.6.14",
"@storybook/addon-onboarding": "^8.6.14",
"@storybook/addon-webpack5-compiler-swc": "3.0.0",
"@storybook/blocks": "^8.6.14",
"@storybook/react": "^8.6.14",
"@storybook/react-webpack5": "^8.6.14",
"@storybook/test": "^8.6.14",
"@storybook/addon-onboarding": "^9.0.2",
"@storybook/react-vite": "^9.0.2",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
@ -91,7 +83,7 @@
"react-dom": "^18.3.1",
"react-is": "^18.3.1",
"rimraf": "^6.0.1",
"storybook": "^8.6.14",
"storybook": "^9.0.2",
"styled-components": "^5.3.11",
"stylelint": "^16.19.1",
"stylelint-config-standard": "^38.0.0",
@ -99,7 +91,7 @@
"stylelint-processor-styled-components": "^1.10.0",
"ts-jest": "^29.3.4",
"typescript": "~5.8.3",
"webpack": "^5.99.9"
"vite": "^6.3.5"
},
"peerDependencies": {
"@types/react": "^16.3.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",

View File

@ -1,7 +1,7 @@
import React from 'react';
import styled from 'styled-components';
import { MdFiberManualRecord } from 'react-icons/md';
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import Button from './';
const meta: Meta = {

View File

@ -1,6 +1,6 @@
import React from 'react';
import styled from 'styled-components';
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import ContextMenu from './';
import { items } from './data';

View File

@ -1,5 +1,5 @@
import React from 'react';
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import Dialog from './';
import { schema, uiSchema, formData } from '../Form/schema';

View File

@ -1,5 +1,5 @@
import React from 'react';
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import Editor from './';
import { default as WithTabsComponent, WithTabsProps } from './WithTabs';

View File

@ -1,5 +1,5 @@
import React from 'react';
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import Form from './';
import { schema, uiSchema, formData } from './schema';

View File

@ -1,6 +1,6 @@
import React from 'react';
import styled from 'styled-components';
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import Notification from './';
const Container = styled.div`

View File

@ -1,6 +1,6 @@
import React from 'react';
import styled from 'styled-components';
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import SegmentedControl from './';
const Container = styled.div`

View File

@ -2,7 +2,7 @@ import React from 'react';
import styled from 'styled-components';
import Select from './';
import { options } from './options';
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
const Container = styled.div`
display: flex;

View File

@ -1,6 +1,6 @@
import React from 'react';
import styled from 'styled-components';
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import Slider from './';
const Container = styled.div`

View File

@ -1,6 +1,6 @@
import React from 'react';
import styled from 'styled-components';
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import Tabs from './';
import { tabs, simple10Tabs } from './data';
import { TabsProps } from './Tabs';

View File

@ -1,6 +1,6 @@
import React, { ReactNode } from 'react';
import styled from 'styled-components';
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import { MdPlayArrow } from 'react-icons/md';
import { MdFiberManualRecord } from 'react-icons/md';
import { MdKeyboardArrowLeft } from 'react-icons/md';

View File

@ -2,7 +2,8 @@
"extends": "../../tsconfig.react.base.json",
"compilerOptions": {
"outDir": "lib/types",
"types": ["node"]
"types": ["node"],
"skipLibCheck": true
},
"include": ["src"]
}

File diff suppressed because it is too large Load Diff