mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-16 20:59:27 +00:00
update storybook to v8
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
import type { Preview } from '@storybook/react'
|
||||
import '@fontsource/roboto/400.css'
|
||||
import '../src/styles/index.scss'
|
||||
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||
import { themes } from '@storybook/theming'
|
||||
import { ToastContainer } from 'react-toastify'
|
||||
import 'react-toastify/dist/ReactToastify.min.css'
|
||||
|
||||
const preview: Preview = {
|
||||
parameters: {
|
||||
actions: { argTypesRegex: '^on[A-Z].*' },
|
||||
controls: {
|
||||
matchers: {
|
||||
color: /(background|color)$/i,
|
||||
@@ -29,7 +27,7 @@ const preview: Preview = {
|
||||
},
|
||||
},
|
||||
}
|
||||
export const decorators = [withRouter, withToasts]
|
||||
export const decorators = [withToasts]
|
||||
export default preview
|
||||
|
||||
function withToasts(Story: any) {
|
||||
|
||||
23
package.json
23
package.json
@@ -18,7 +18,8 @@
|
||||
"@radix-ui/react-checkbox": "^1.0.4",
|
||||
"@radix-ui/react-label": "^2.0.2",
|
||||
"@radix-ui/react-radio-group": "^1.1.3",
|
||||
"@storybook/theming": "^7.2.1",
|
||||
"@storybook/test": "8.0.0",
|
||||
"@storybook/theming": "^8.0.0",
|
||||
"clsx": "^2.0.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
@@ -26,7 +27,6 @@
|
||||
"react-router-dom": "^6.14.2",
|
||||
"react-toastify": "^9.1.3",
|
||||
"remeda": "^1.24.0",
|
||||
"storybook-addon-react-router-v6": "^2.0.0",
|
||||
"zod": "^3.21.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -34,14 +34,13 @@
|
||||
"@it-incubator/eslint-config": "^0.1.3",
|
||||
"@it-incubator/prettier-config": "^0.1.2",
|
||||
"@it-incubator/stylelint-config": "^0.1.5",
|
||||
"@storybook/addon-essentials": "^7.2.1",
|
||||
"@storybook/addon-interactions": "^7.2.1",
|
||||
"@storybook/addon-links": "^7.2.1",
|
||||
"@storybook/addon-onboarding": "^1.0.8",
|
||||
"@storybook/blocks": "^7.2.1",
|
||||
"@storybook/react": "^7.2.1",
|
||||
"@storybook/react-vite": "^7.2.1",
|
||||
"@storybook/testing-library": "^0.2.0",
|
||||
"@storybook/addon-essentials": "^8.0.0",
|
||||
"@storybook/addon-interactions": "^8.0.0",
|
||||
"@storybook/addon-links": "^8.0.0",
|
||||
"@storybook/addon-onboarding": "^8.0.0",
|
||||
"@storybook/blocks": "^8.0.0",
|
||||
"@storybook/react": "^8.0.0",
|
||||
"@storybook/react-vite": "^8.0.0",
|
||||
"@types/node": "^20.4.5",
|
||||
"@types/react": "^18.2.15",
|
||||
"@types/react-dom": "^18.2.7",
|
||||
@@ -51,9 +50,9 @@
|
||||
"eslint": "^8.45.0",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.3",
|
||||
"eslint-plugin-storybook": "^0.6.13",
|
||||
"eslint-plugin-storybook": "^0.8.0",
|
||||
"sass": "^1.64.1",
|
||||
"storybook": "^7.2.1",
|
||||
"storybook": "^8.0.0",
|
||||
"stylelint": "^15.10.2",
|
||||
"typescript": "^5.0.2",
|
||||
"vite": "^4.4.5"
|
||||
|
||||
4300
pnpm-lock.yaml
generated
4300
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user