From 87118063b2b1965def2d18784d0d4c8f5a99f16c Mon Sep 17 00:00:00 2001 From: Rabi <134292357+Rabi94@users.noreply.github.com> Date: Tue, 26 May 2026 14:05:16 -0300 Subject: [PATCH] Upgrade MUI from v6 to v7 --- src/caretogether-pwa/package-lock.json | 199 ++++++------------ src/caretogether-pwa/package.json | 8 +- .../src/Communities/AddEditCommunity.tsx | 11 +- .../src/Communities/AddMemberFamiliesForm.tsx | 2 +- .../src/Communities/AddRoleAssignmentForm.tsx | 2 +- .../src/Communities/CommunitiesList.tsx | 10 +- .../CommunityDocumentUploadForm.tsx | 13 +- .../src/Communities/CommunityDocuments.tsx | 4 +- .../src/Communities/CommunityScreen.tsx | 2 +- .../src/Dashboard/DashboardCalendar.tsx | 3 +- .../src/Families/AddAdultDialog.tsx | 19 +- .../src/Families/AddChildDialog.tsx | 19 +- .../src/Families/AddressEditor.tsx | 2 +- .../src/Families/AdultCard.tsx | 2 +- .../AdultFamilyRelationshipEditor.tsx | 2 +- .../src/Families/AgeEditor.tsx | 2 +- .../src/Families/AssignmentsSection.tsx | 3 +- .../ChildCustodyRelationshipEditor.tsx | 3 +- .../src/Families/ConcernsEditor.tsx | 17 +- .../src/Families/EmailAddressEditor.tsx | 2 +- .../src/Families/EthnicityEditor.tsx | 3 +- .../src/Families/FamilyScreen.tsx | 11 +- .../src/Families/GenderEditor.tsx | 2 +- .../src/Families/ManageUserDrawer.tsx | 2 +- .../src/Families/NameEditor.tsx | 3 +- .../src/Families/NotesEditor.tsx | 3 +- .../src/Families/PhoneNumberEditor.tsx | 2 +- .../CustomFieldsFilterSelect.tsx | 2 +- .../src/Generic/ShellDrawer.tsx | 10 +- .../src/Hooks/useSidePanel.tsx | 10 +- .../src/Notes/AddEditNoteDialog.tsx | 5 +- .../Requirements/MissingRequirementDialog.tsx | 2 +- .../Locations/AddLocationSidePanel.tsx | 3 +- .../Tabs/AccessLevels/AccessLevels.tsx | 14 +- .../Tabs/AccessLevels/AddAccessLevel.tsx | 3 +- .../src/Settings/Roles/AddRole.tsx | 2 +- .../src/Settings/SettingsScreen.tsx | 2 +- .../src/Shell/ShellBottomNavigation.tsx | 6 +- .../src/Shell/ShellSideNavigation.tsx | 22 +- src/caretogether-pwa/src/Support.tsx | 2 +- .../ArrangementCardDetailsSection.tsx | 2 +- .../ArrangementPlannedDuration.tsx | 3 +- .../ArrangementsSection.tsx | 3 +- .../AssignArrangementFunctionDialog.tsx | 5 +- .../Arrangements/CancelArrangementDialog.tsx | 2 +- .../Arrangements/CreateArrangementDialog.tsx | 5 +- .../V1Cases/Arrangements/EditDateDialog.tsx | 2 +- .../Arrangements/EndArrangementDialog.tsx | 2 +- .../Arrangements/ReopenArrangementDialog.tsx | 3 +- .../Arrangements/StartArrangementDialog.tsx | 2 +- .../Arrangements/TrackChildLocationDialog.tsx | 5 +- .../src/V1Cases/CloseV1CaseDialog.tsx | 5 +- .../V1Cases/CreatePartneringFamilyDrawer.tsx | 31 +-- .../src/V1Cases/OpenNewV1CaseDialog.tsx | 2 +- .../src/V1Cases/PartneringFamilies.tsx | 2 +- ...eringFamilyCustomFieldFiltersSidePanel.tsx | 3 +- .../PartneringFamilyTableItem.tsx | 3 +- .../src/V1Referrals/AddNewReferralDrawer.tsx | 15 +- .../src/V1Referrals/CloseV1ReferralDrawer.tsx | 7 +- .../src/V1Referrals/EditReferralDrawer.tsx | 15 +- .../ReferralCustomFieldsSection.tsx | 3 +- .../src/V1Referrals/ReferralDetailsPage.tsx | 6 +- .../SelectReferralFamilyDrawer.tsx | 9 +- .../src/V1Referrals/V1Referrals.tsx | 4 +- .../src/Volunteers/BulkSmsSideSheet.tsx | 12 +- .../CreateVolunteerFamilyDialog.tsx | 19 +- .../src/Volunteers/RemoveFamilyRoleDialog.tsx | 5 +- .../Volunteers/RemoveIndividualRoleDialog.tsx | 5 +- .../src/Volunteers/ResetFamilyRoleDialog.tsx | 2 +- .../Volunteers/ResetIndividualRoleDialog.tsx | 2 +- .../VolunteerApproval.tsx | 2 +- .../VolunteerApprovalTableItem.tsx | 2 +- .../VolunteerCustomFieldFiltersSidePanel.tsx | 3 +- .../VolunteerProgress.tsx | 2 +- 74 files changed, 317 insertions(+), 310 deletions(-) diff --git a/src/caretogether-pwa/package-lock.json b/src/caretogether-pwa/package-lock.json index e27147304..4a1164f67 100644 --- a/src/caretogether-pwa/package-lock.json +++ b/src/caretogether-pwa/package-lock.json @@ -20,10 +20,10 @@ "@hookform/resolvers": "^5.2.2", "@microsoft/applicationinsights-react-js": "^17.3.0", "@microsoft/applicationinsights-web": "^3.3.0", - "@mui/icons-material": "6.5.0", - "@mui/lab": "6.0.1-beta.36", - "@mui/material": "6.5.0", - "@mui/system": "6.5.0", + "@mui/icons-material": "7.3.11", + "@mui/lab": "7.0.1-beta.25", + "@mui/material": "7.3.11", + "@mui/system": "7.3.11", "@mui/x-date-pickers": "7.29.4", "@testing-library/jest-dom": "^6.4.6", "@testing-library/react": "^14.3.1", @@ -766,44 +766,6 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@floating-ui/core": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.5.tgz", - "integrity": "sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==", - "license": "MIT", - "dependencies": { - "@floating-ui/utils": "^0.2.11" - } - }, - "node_modules/@floating-ui/dom": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.6.tgz", - "integrity": "sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==", - "license": "MIT", - "dependencies": { - "@floating-ui/core": "^1.7.5", - "@floating-ui/utils": "^0.2.11" - } - }, - "node_modules/@floating-ui/react-dom": { - "version": "2.1.8", - "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.8.tgz", - "integrity": "sha512-cC52bHwM/n/CxS87FH0yWdngEZrjdtLW/qVruo68qg+prK7ZQ4YGdut2GyDVpoGeAYe/h899rVeOVm6Oi40k2A==", - "license": "MIT", - "dependencies": { - "@floating-ui/dom": "^1.7.6" - }, - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, - "node_modules/@floating-ui/utils": { - "version": "0.2.11", - "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.11.tgz", - "integrity": "sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==", - "license": "MIT" - }, "node_modules/@fullcalendar/core": { "version": "6.1.20", "resolved": "https://registry.npmjs.org/@fullcalendar/core/-/core-6.1.20.tgz", @@ -1164,43 +1126,10 @@ "@nevware21/ts-utils": ">= 0.10.4 < 2.x" } }, - "node_modules/@mui/base": { - "version": "5.0.0-beta.70", - "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-beta.70.tgz", - "integrity": "sha512-Tb/BIhJzb0pa5zv/wu7OdokY9ZKEDqcu1BDFnohyvGCoHuSXbEr90rPq1qeNW3XvTBIbNWHEF7gqge+xpUo6tQ==", - "deprecated": "This package has been replaced by @base-ui/react", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.26.0", - "@floating-ui/react-dom": "^2.1.1", - "@mui/types": "~7.2.24", - "@mui/utils": "^6.4.8", - "@popperjs/core": "^2.11.8", - "clsx": "^2.1.1", - "prop-types": "^15.8.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui-org" - }, - "peerDependencies": { - "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", - "react": "^17.0.0 || ^18.0.0 || ^19.0.0", - "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, "node_modules/@mui/core-downloads-tracker": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-6.5.0.tgz", - "integrity": "sha512-LGb8t8i6M2ZtS3Drn3GbTI1DVhDY6FJ9crEey2lZ0aN2EMZo8IZBZj9wRf4vqbZHaWjsYgtbOnJw5V8UWbmK2Q==", + "version": "7.3.11", + "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-7.3.11.tgz", + "integrity": "sha512-a7I/b/nBTdXYz2cOSlEmkQ9WWE1x8FHpqMhFPp+Y1VPFxcOw91G5ELOHARQAGSPy5V+UCgJua6K/1x70bAtQPw==", "license": "MIT", "funding": { "type": "opencollective", @@ -1208,12 +1137,12 @@ } }, "node_modules/@mui/icons-material": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-6.5.0.tgz", - "integrity": "sha512-VPuPqXqbBPlcVSA0BmnoE4knW4/xG6Thazo8vCLWkOKusko6DtwFV6B665MMWJ9j0KFohTIf3yx2zYtYacvG1g==", + "version": "7.3.11", + "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-7.3.11.tgz", + "integrity": "sha512-+hz5ilwHZ3djd5es3sCErLioqe/NhZcYTsV/TNXZAMdJdb23F4xzJjqnnZdnurc3S1+ietcssRNqieOhPQLZ7Q==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.26.0" + "@babel/runtime": "^7.28.6" }, "engines": { "node": ">=14.0.0" @@ -1223,7 +1152,7 @@ "url": "https://opencollective.com/mui-org" }, "peerDependencies": { - "@mui/material": "^6.5.0", + "@mui/material": "^7.3.11", "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react": "^17.0.0 || ^18.0.0 || ^19.0.0" }, @@ -1234,16 +1163,15 @@ } }, "node_modules/@mui/lab": { - "version": "6.0.1-beta.36", - "resolved": "https://registry.npmjs.org/@mui/lab/-/lab-6.0.1-beta.36.tgz", - "integrity": "sha512-af9lDmA9SZGEWF1XXk0EVBpfCITk9IKsvh9lLOZGdYaaHfQeCsqxGEDMvNO66j0P8EYoxpyry84LFCJYuLVtVw==", + "version": "7.0.1-beta.25", + "resolved": "https://registry.npmjs.org/@mui/lab/-/lab-7.0.1-beta.25.tgz", + "integrity": "sha512-itd2o0dKv8/1ZhAWTOkP+ZxiztC2dJ6rY0ECZFt3l3ylinShOfhgjbuqgS98M4UFIVzVLM5ynn+WhkEIp/5CMg==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.26.0", - "@mui/base": "5.0.0-beta.70", - "@mui/system": "^6.5.0", - "@mui/types": "~7.2.24", - "@mui/utils": "^6.4.9", + "@babel/runtime": "^7.28.6", + "@mui/system": "^7.3.11", + "@mui/types": "^7.4.12", + "@mui/utils": "^7.3.11", "clsx": "^2.1.1", "prop-types": "^15.8.1" }, @@ -1257,8 +1185,8 @@ "peerDependencies": { "@emotion/react": "^11.5.0", "@emotion/styled": "^11.3.0", - "@mui/material": "^6.5.0", - "@mui/material-pigment-css": "^6.5.0", + "@mui/material": "^7.3.11", + "@mui/material-pigment-css": "^7.3.11", "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" @@ -1279,22 +1207,22 @@ } }, "node_modules/@mui/material": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/@mui/material/-/material-6.5.0.tgz", - "integrity": "sha512-yjvtXoFcrPLGtgKRxFaH6OQPtcLPhkloC0BML6rBG5UeldR0nPULR/2E2BfXdo5JNV7j7lOzrrLX2Qf/iSidow==", + "version": "7.3.11", + "resolved": "https://registry.npmjs.org/@mui/material/-/material-7.3.11.tgz", + "integrity": "sha512-yq8bPc3LxOwKRWpcjRgDkYFmpM6aKlARfESTmOQcvLYFeJwtHte2tw6hJDrb8sk8wcvpDprHEHVaoUU0MslIkw==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.26.0", - "@mui/core-downloads-tracker": "^6.5.0", - "@mui/system": "^6.5.0", - "@mui/types": "~7.2.24", - "@mui/utils": "^6.4.9", + "@babel/runtime": "^7.28.6", + "@mui/core-downloads-tracker": "^7.3.11", + "@mui/system": "^7.3.11", + "@mui/types": "^7.4.12", + "@mui/utils": "^7.3.11", "@popperjs/core": "^2.11.8", "@types/react-transition-group": "^4.4.12", "clsx": "^2.1.1", - "csstype": "^3.1.3", + "csstype": "^3.2.3", "prop-types": "^15.8.1", - "react-is": "^19.0.0", + "react-is": "^19.2.3", "react-transition-group": "^4.4.5" }, "engines": { @@ -1307,7 +1235,7 @@ "peerDependencies": { "@emotion/react": "^11.5.0", "@emotion/styled": "^11.3.0", - "@mui/material-pigment-css": "^6.5.0", + "@mui/material-pigment-css": "^7.3.11", "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" @@ -1328,13 +1256,13 @@ } }, "node_modules/@mui/private-theming": { - "version": "6.4.9", - "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-6.4.9.tgz", - "integrity": "sha512-LktcVmI5X17/Q5SkwjCcdOLBzt1hXuc14jYa7NPShog0GBDCDvKtcnP0V7a2s6EiVRlv7BzbWEJzH6+l/zaCxw==", + "version": "7.3.11", + "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-7.3.11.tgz", + "integrity": "sha512-9B+YKms0fRHbNrqp9tOT/DNbNnU5gyvJ1o3qAGXfq8GmZcbJnE3At9x07Zr/o0pkhzg4aDdwXVqe4+AcgtOCPA==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.26.0", - "@mui/utils": "^6.4.9", + "@babel/runtime": "^7.28.6", + "@mui/utils": "^7.3.11", "prop-types": "^15.8.1" }, "engines": { @@ -1355,16 +1283,16 @@ } }, "node_modules/@mui/styled-engine": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-6.5.0.tgz", - "integrity": "sha512-8woC2zAqF4qUDSPIBZ8v3sakj+WgweolpyM/FXf8jAx6FMls+IE4Y8VDZc+zS805J7PRz31vz73n2SovKGaYgw==", + "version": "7.3.10", + "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-7.3.10.tgz", + "integrity": "sha512-WxE9SiF8xskAQqGjsp0poXCkCqsoXFEsSr0HBXfApmGHR+DBnXRp+z46Vsltg4gpPM4Z96DeAQRpeAOnhNg7Ng==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.26.0", - "@emotion/cache": "^11.13.5", + "@babel/runtime": "^7.28.6", + "@emotion/cache": "^11.14.0", "@emotion/serialize": "^1.3.3", "@emotion/sheet": "^1.4.0", - "csstype": "^3.1.3", + "csstype": "^3.2.3", "prop-types": "^15.8.1" }, "engines": { @@ -1389,18 +1317,18 @@ } }, "node_modules/@mui/system": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/@mui/system/-/system-6.5.0.tgz", - "integrity": "sha512-XcbBYxDS+h/lgsoGe78ExXFZXtuIlSBpn/KsZq8PtZcIkUNJInkuDqcLd2rVBQrDC1u+rvVovdaWPf2FHKJf3w==", + "version": "7.3.11", + "resolved": "https://registry.npmjs.org/@mui/system/-/system-7.3.11.tgz", + "integrity": "sha512-7izwGWdNawAKpBKcRlx7f2gFnAAjmASBWvMcyX4YYEeLOFsbfGRbUYGInvnAcUeql3rPxI7F9Ft4oY2OLRz44g==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.26.0", - "@mui/private-theming": "^6.4.9", - "@mui/styled-engine": "^6.5.0", - "@mui/types": "~7.2.24", - "@mui/utils": "^6.4.9", + "@babel/runtime": "^7.28.6", + "@mui/private-theming": "^7.3.11", + "@mui/styled-engine": "^7.3.10", + "@mui/types": "^7.4.12", + "@mui/utils": "^7.3.11", "clsx": "^2.1.1", - "csstype": "^3.1.3", + "csstype": "^3.2.3", "prop-types": "^15.8.1" }, "engines": { @@ -1429,10 +1357,13 @@ } }, "node_modules/@mui/types": { - "version": "7.2.24", - "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.24.tgz", - "integrity": "sha512-3c8tRt/CbWZ+pEg7QpSwbdxOk36EfmhbKf6AGZsD1EcLDLTSZoxxJ86FVtcjxvjuhdyBiWKSTGZFaXCnidO2kw==", + "version": "7.4.12", + "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.4.12.tgz", + "integrity": "sha512-iKNAF2u9PzSIj40CjvKJWxFXJo122jXVdrmdh0hMYd+FR+NuJMkr/L88XwWLCRiJ5P1j+uyac25+Kp6YC4hu6w==", "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.28.6" + }, "peerDependencies": { "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0" }, @@ -1443,17 +1374,17 @@ } }, "node_modules/@mui/utils": { - "version": "6.4.9", - "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-6.4.9.tgz", - "integrity": "sha512-Y12Q9hbK9g+ZY0T3Rxrx9m2m10gaphDuUMgWxyV5kNJevVxXYCLclYUCC9vXaIk1/NdNDTcW2Yfr2OGvNFNmHg==", + "version": "7.3.11", + "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-7.3.11.tgz", + "integrity": "sha512-XTjGnifwteg71/ij+0e7Y7d+hwyntMYP5wPoA/g2drdGH+Flkvjwy0OfrVpKBbaOvofq4zU/LIyUZyKgmWu18g==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.26.0", - "@mui/types": "~7.2.24", - "@types/prop-types": "^15.7.14", + "@babel/runtime": "^7.28.6", + "@mui/types": "^7.4.12", + "@types/prop-types": "^15.7.15", "clsx": "^2.1.1", "prop-types": "^15.8.1", - "react-is": "^19.0.0" + "react-is": "^19.2.3" }, "engines": { "node": ">=14.0.0" diff --git a/src/caretogether-pwa/package.json b/src/caretogether-pwa/package.json index 307775d16..a06c97ba3 100644 --- a/src/caretogether-pwa/package.json +++ b/src/caretogether-pwa/package.json @@ -16,10 +16,10 @@ "@hookform/resolvers": "^5.2.2", "@microsoft/applicationinsights-react-js": "^17.3.0", "@microsoft/applicationinsights-web": "^3.3.0", - "@mui/icons-material": "6.5.0", - "@mui/lab": "6.0.1-beta.36", - "@mui/material": "6.5.0", - "@mui/system": "6.5.0", + "@mui/icons-material": "7.3.11", + "@mui/lab": "7.0.1-beta.25", + "@mui/material": "7.3.11", + "@mui/system": "7.3.11", "@mui/x-date-pickers": "7.29.4", "@testing-library/jest-dom": "^6.4.6", "@testing-library/react": "^14.3.1", diff --git a/src/caretogether-pwa/src/Communities/AddEditCommunity.tsx b/src/caretogether-pwa/src/Communities/AddEditCommunity.tsx index 5ab0b8608..431878695 100644 --- a/src/caretogether-pwa/src/Communities/AddEditCommunity.tsx +++ b/src/caretogether-pwa/src/Communities/AddEditCommunity.tsx @@ -1,4 +1,5 @@ -import { Button, Grid, TextField } from '@mui/material'; +import { Button, TextField } from '@mui/material'; +import Grid from '@mui/material/Grid'; import { Community, CreateCommunity, @@ -69,10 +70,10 @@ export function AddEditCommunity({ return ( - +

{community ? 'Edit Community' : 'Add New Community'}

- + setName(e.target.value)} /> - + setDescription(e.target.value)} /> - +