chore: update material-ui and storybook 9 (#5444)

* chore: update material ui 7

* chore: update storybook 9
This commit is contained in:
Juan Picado
2025-10-26 12:47:29 +01:00
committed by GitHub
parent a97c85e975
commit 26a339518f
23 changed files with 494 additions and 597 deletions

View File

@@ -1,3 +1,3 @@
module.exports = { module.exports = {
extends: ['@verdaccio/eslint-config'], extends: ['@verdaccio/eslint-config', 'plugin:storybook/recommended'],
}; };

View File

@@ -5,11 +5,9 @@ const config: StorybookConfig = {
stories: ['../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], stories: ['../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [ addons: [
getAbsolutePath('@storybook/addon-actions'),
getAbsolutePath('@storybook/addon-links'), getAbsolutePath('@storybook/addon-links'),
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('@storybook/addon-interactions'),
getAbsolutePath('@storybook/addon-webpack5-compiler-babel'), getAbsolutePath('@storybook/addon-webpack5-compiler-babel'),
getAbsolutePath('@storybook/addon-docs'),
], ],
framework: { framework: {

View File

@@ -1,4 +1,4 @@
import type { Preview, StoryFn } from '@storybook/react'; import type { Preview, StoryFn } from '@storybook/react-webpack5';
import { initialize, mswLoader } from 'msw-storybook-addon'; import { initialize, mswLoader } from 'msw-storybook-addon';
import React from 'react'; import React from 'react';
import { Provider } from 'react-redux'; import { Provider } from 'react-redux';

View File

@@ -8,7 +8,7 @@
"main": "./build/index.js", "main": "./build/index.js",
"types": "build/index.d.ts", "types": "build/index.d.ts",
"scripts": { "scripts": {
"test": "cross-env TZ=UTC vitest run", "test": "cross-env TZ=UTC vitest run -u",
"clean": "rimraf ./build", "clean": "rimraf ./build",
"type-check": "tsc --noEmit -p tsconfig.build.json", "type-check": "tsc --noEmit -p tsconfig.build.json",
"build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json", "build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json",
@@ -23,8 +23,8 @@
"@emotion/react": "11.11.4", "@emotion/react": "11.11.4",
"@emotion/styled": "11.11.5", "@emotion/styled": "11.11.5",
"@microlink/react-json-view": "1.26.2", "@microlink/react-json-view": "1.26.2",
"@mui/icons-material": "5.17.1", "@mui/icons-material": "7.3.4",
"@mui/material": "5.17.1", "@mui/material": "7.3.4",
"@rematch/core": "2.2.0", "@rematch/core": "2.2.0",
"@rematch/loading": "2.1.2", "@rematch/loading": "2.1.2",
"@verdaccio/ui-i18n": "workspace:*", "@verdaccio/ui-i18n": "workspace:*",
@@ -55,13 +55,9 @@
"devDependencies": { "devDependencies": {
"@babel/core": "7.28.4", "@babel/core": "7.28.4",
"@emotion/babel-plugin": "11.13.5", "@emotion/babel-plugin": "11.13.5",
"@storybook/addon-actions": "8.6.14", "@storybook/addon-links": "9.1.15",
"@storybook/addon-essentials": "8.6.14",
"@storybook/addon-interactions": "8.6.14",
"@storybook/addon-links": "8.6.14",
"@storybook/addon-webpack5-compiler-babel": "3.0.6", "@storybook/addon-webpack5-compiler-babel": "3.0.6",
"@storybook/react": "8.6.14", "@storybook/react-webpack5": "9.1.15",
"@storybook/react-webpack5": "8.6.14",
"@testing-library/dom": "10.4.1", "@testing-library/dom": "10.4.1",
"@testing-library/jest-dom": "6.8.0", "@testing-library/jest-dom": "6.8.0",
"@testing-library/react": "16.3.0", "@testing-library/react": "16.3.0",
@@ -77,9 +73,11 @@
"msw": "2.11.3", "msw": "2.11.3",
"msw-storybook-addon": "2.0.6", "msw-storybook-addon": "2.0.6",
"mutationobserver-shim": "0.3.7", "mutationobserver-shim": "0.3.7",
"storybook": "8.6.14", "storybook": "9.1.15",
"vitest": "3.2.4", "vitest": "3.2.4",
"whatwg-fetch": "3.6.20" "whatwg-fetch": "3.6.20",
"eslint-plugin-storybook": "9.1.15",
"@storybook/addon-docs": "9.1.15"
}, },
"msw": { "msw": {
"workerDirectory": [ "workerDirectory": [

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from '@storybook/react'; import type { Meta, StoryObj } from '@storybook/react-webpack5';
import { HttpResponse, http } from 'msw'; import { HttpResponse, http } from 'msw';
import React from 'react'; import React from 'react';
import { MemoryRouter } from 'react-router'; import { MemoryRouter } from 'react-router';

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from '@storybook/react'; import type { Meta, StoryObj } from '@storybook/react-webpack5';
import { clone, merge } from 'lodash'; import { clone, merge } from 'lodash';
import React from 'react'; import React from 'react';

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from '@storybook/react'; import type { Meta, StoryObj } from '@storybook/react-webpack5';
import React from 'react'; import React from 'react';
import { default as Dependencies } from '.'; import { default as Dependencies } from '.';

View File

@@ -1,6 +1,6 @@
import Box from '@mui/material/Box'; import Box from '@mui/material/Box';
import Stack from '@mui/material/Stack'; import Stack from '@mui/material/Stack';
import type { Meta, StoryObj } from '@storybook/react'; import type { Meta, StoryObj } from '@storybook/react-webpack5';
import React from 'react'; import React from 'react';
import { default as FundButton } from '.'; import { default as FundButton } from '.';

View File

@@ -1,5 +1,5 @@
/* eslint-disable react-hooks/rules-of-hooks */ /* eslint-disable react-hooks/rules-of-hooks */
import type { Meta, StoryObj } from '@storybook/react'; import type { Meta, StoryObj } from '@storybook/react-webpack5';
import React from 'react'; import React from 'react';
import { default as Install } from '.'; import { default as Install } from '.';

View File

@@ -1,6 +1,6 @@
/* eslint-disable verdaccio/jsx-spread */ /* eslint-disable verdaccio/jsx-spread */
import { action } from '@storybook/addon-actions';
import React from 'react'; import React from 'react';
import { action } from 'storybook/actions';
import LoginDialog from './LoginDialog'; import LoginDialog from './LoginDialog';

View File

@@ -4,6 +4,7 @@ exports[`<NoItem /> component > should load the component in default state 1`] =
<div <div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-standardInfo MuiAlert-standard makeStyles-MuiPaper-root-MuiAlert-root" class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-standardInfo MuiAlert-standard makeStyles-MuiPaper-root-MuiAlert-root"
role="alert" role="alert"
style="--Paper-shadow: none;"
> >
<div <div
class="MuiAlert-icon makeStyles-MuiAlert-icon" class="MuiAlert-icon makeStyles-MuiAlert-icon"

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from '@storybook/react'; import type { Meta, StoryObj } from '@storybook/react-webpack5';
import React from 'react'; import React from 'react';
import { default as Repository } from '.'; import { default as Repository } from '.';

View File

@@ -1,6 +1,6 @@
/* eslint-disable verdaccio/jsx-spread */ /* eslint-disable verdaccio/jsx-spread */
import Box from '@mui/material/Box'; import Box from '@mui/material/Box';
import type { Meta, StoryObj } from '@storybook/react'; import type { Meta, StoryObj } from '@storybook/react-webpack5';
import { HttpResponse, http } from 'msw'; import { HttpResponse, http } from 'msw';
import React from 'react'; import React from 'react';
import { MemoryRouter } from 'react-router'; import { MemoryRouter } from 'react-router';

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from '@storybook/react'; import type { Meta, StoryObj } from '@storybook/react-webpack5';
import React from 'react'; import React from 'react';
import { default as SideBarTittle } from '.'; import { default as SideBarTittle } from '.';

View File

@@ -17,10 +17,13 @@ exports[`<TextField /> component > should load the component in default state 1`
/> />
<fieldset <fieldset
aria-hidden="true" aria-hidden="true"
class="MuiOutlinedInput-notchedOutline makeStyles-MuiOutlinedInput-notchedOutline" class="MuiOutlinedInput-notchedOutline makeStyles-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"
> >
<legend> <legend
class="makeStyles-MuiNotchedOutlined-root"
>
<span <span
aria-hidden="true"
class="notranslate" class="notranslate"
> >

View File

@@ -7,6 +7,7 @@ Object {
<div> <div>
<div <div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 MuiCard-root makeStyles-MuiPaper-root-MuiCard-root" class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 MuiCard-root makeStyles-MuiPaper-root-MuiCard-root"
style="--Paper-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);"
> >
<div <div
class="MuiCardContent-root makeStyles-MuiCardContent-root" class="MuiCardContent-root makeStyles-MuiCardContent-root"
@@ -14,6 +15,7 @@ Object {
<div <div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-standardInfo MuiAlert-standard makeStyles-MuiPaper-root-MuiAlert-root" class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-standardInfo MuiAlert-standard makeStyles-MuiPaper-root-MuiAlert-root"
role="alert" role="alert"
style="--Paper-shadow: none;"
> >
<div <div
class="MuiAlert-icon makeStyles-MuiAlert-icon" class="MuiAlert-icon makeStyles-MuiAlert-icon"
@@ -48,6 +50,7 @@ Object {
"container": <div> "container": <div>
<div <div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 MuiCard-root makeStyles-MuiPaper-root-MuiCard-root" class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 MuiCard-root makeStyles-MuiPaper-root-MuiCard-root"
style="--Paper-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);"
> >
<div <div
class="MuiCardContent-root makeStyles-MuiCardContent-root" class="MuiCardContent-root makeStyles-MuiCardContent-root"
@@ -55,6 +58,7 @@ Object {
<div <div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-standardInfo MuiAlert-standard makeStyles-MuiPaper-root-MuiAlert-root" class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-standardInfo MuiAlert-standard makeStyles-MuiPaper-root-MuiAlert-root"
role="alert" role="alert"
style="--Paper-shadow: none;"
> >
<div <div
class="MuiAlert-icon makeStyles-MuiAlert-icon" class="MuiAlert-icon makeStyles-MuiAlert-icon"
@@ -146,6 +150,7 @@ Object {
<div> <div>
<div <div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 MuiCard-root makeStyles-MuiPaper-root-MuiCard-root" class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 MuiCard-root makeStyles-MuiPaper-root-MuiCard-root"
style="--Paper-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);"
> >
<div <div
class="MuiCardContent-root makeStyles-MuiCardContent-root" class="MuiCardContent-root makeStyles-MuiCardContent-root"
@@ -205,6 +210,7 @@ Object {
"container": <div> "container": <div>
<div <div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 MuiCard-root makeStyles-MuiPaper-root-MuiCard-root" class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 MuiCard-root makeStyles-MuiPaper-root-MuiCard-root"
style="--Paper-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);"
> >
<div <div
class="MuiCardContent-root makeStyles-MuiCardContent-root" class="MuiCardContent-root makeStyles-MuiCardContent-root"

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from '@storybook/react'; import type { Meta, StoryObj } from '@storybook/react-webpack5';
import { HttpResponse, http } from 'msw'; import { HttpResponse, http } from 'msw';
import React from 'react'; import React from 'react';
import { MemoryRouter, Route } from 'react-router'; import { MemoryRouter, Route } from 'react-router';

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from '@storybook/react'; import type { Meta, StoryObj } from '@storybook/react-webpack5';
import { HttpResponse, http } from 'msw'; import { HttpResponse, http } from 'msw';
import React from 'react'; import React from 'react';
import { MemoryRouter, Route } from 'react-router'; import { MemoryRouter, Route } from 'react-router';

View File

@@ -12,7 +12,7 @@ exports[`DetailContainer > renders correctly 1`] = `
style="overflow: hidden; margin-bottom: 0px;" style="overflow: hidden; margin-bottom: 0px;"
> >
<div <div
class="MuiTabs-flexContainer makeStyles-MuiTabs-flexContainer" class="MuiTabs-list MuiTabs-flexContainer makeStyles-MuiTabs-list"
role="tablist" role="tablist"
> >
<button <button
@@ -25,9 +25,6 @@ exports[`DetailContainer > renders correctly 1`] = `
type="button" type="button"
> >
tab.readme tab.readme
<span
class="MuiTouchRipple-root makeStyles-MuiTouchRipple-root"
/>
</button> </button>
<button <button
aria-selected="false" aria-selected="false"
@@ -39,9 +36,6 @@ exports[`DetailContainer > renders correctly 1`] = `
type="button" type="button"
> >
tab.dependencies tab.dependencies
<span
class="MuiTouchRipple-root makeStyles-MuiTouchRipple-root"
/>
</button> </button>
<button <button
aria-selected="false" aria-selected="false"
@@ -53,9 +47,6 @@ exports[`DetailContainer > renders correctly 1`] = `
type="button" type="button"
> >
tab.versions tab.versions
<span
class="MuiTouchRipple-root makeStyles-MuiTouchRipple-root"
/>
</button> </button>
<button <button
aria-selected="false" aria-selected="false"
@@ -67,9 +58,6 @@ exports[`DetailContainer > renders correctly 1`] = `
type="button" type="button"
> >
tab.uplinks tab.uplinks
<span
class="MuiTouchRipple-root makeStyles-MuiTouchRipple-root"
/>
</button> </button>
</div> </div>
<span <span

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from '@storybook/react'; import type { Meta, StoryObj } from '@storybook/react-webpack5';
import { HttpResponse, http } from 'msw'; import { HttpResponse, http } from 'msw';
import React from 'react'; import React from 'react';
import { MemoryRouter, Route } from 'react-router'; import { MemoryRouter, Route } from 'react-router';

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from '@storybook/react'; import type { Meta, StoryObj } from '@storybook/react-webpack5';
import { HttpResponse, http } from 'msw'; import { HttpResponse, http } from 'msw';
import React from 'react'; import React from 'react';
import { MemoryRouter, Route } from 'react-router'; import { MemoryRouter, Route } from 'react-router';

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from '@storybook/react'; import type { Meta, StoryObj } from '@storybook/react-webpack5';
import { HttpResponse, http } from 'msw'; import { HttpResponse, http } from 'msw';
import React from 'react'; import React from 'react';
import { MemoryRouter, Route } from 'react-router'; import { MemoryRouter, Route } from 'react-router';

1007
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff