From 951d62073f4235461d02d80001ace61d6b19c920 Mon Sep 17 00:00:00 2001 From: sajadevo Date: Tue, 22 Feb 2022 22:42:19 +0430 Subject: [PATCH 1/3] Update to v3.1.0 --- .eslintrc.json | 1 + CHANGELOG.md | 44 +++++++++++++ ISSUE_TEMPLATE.md | 2 +- README.md | 2 +- package.json | 62 ++++++++++--------- public/index.html | 4 +- src/App.js | 14 ++--- src/assets/theme/base/borders.js | 18 +++--- src/assets/theme/base/boxShadows.js | 18 +++--- src/assets/theme/base/breakpoints.js | 14 +++-- src/assets/theme/base/colors.js | 15 +++-- src/assets/theme/base/globals.js | 13 ++-- src/assets/theme/base/typography.js | 24 +++---- src/assets/theme/components/appBar.js | 10 +-- src/assets/theme/components/avatar.js | 12 ++-- src/assets/theme/components/breadcrumbs.js | 12 ++-- .../theme/components/button/contained.js | 14 +++-- src/assets/theme/components/button/index.js | 24 +++---- .../theme/components/button/outlined.js | 14 +++-- src/assets/theme/components/button/root.js | 14 +++-- src/assets/theme/components/button/text.js | 14 +++-- src/assets/theme/components/buttonBase.js | 10 +-- .../theme/components/card/cardContent.js | 12 ++-- src/assets/theme/components/card/cardMedia.js | 14 +++-- src/assets/theme/components/card/index.js | 14 +++-- src/assets/theme/components/container.js | 14 +++-- .../theme/components/dialog/dialogActions.js | 12 ++-- .../theme/components/dialog/dialogContent.js | 14 +++-- .../components/dialog/dialogContentText.js | 14 +++-- .../theme/components/dialog/dialogTitle.js | 14 +++-- src/assets/theme/components/dialog/index.js | 12 ++-- src/assets/theme/components/divider.js | 14 +++-- .../theme/components/form/autocomplete.js | 14 +++-- src/assets/theme/components/form/checkbox.js | 14 +++-- .../theme/components/form/formControlLabel.js | 14 +++-- src/assets/theme/components/form/formLabel.js | 12 ++-- src/assets/theme/components/form/input.js | 12 ++-- src/assets/theme/components/form/inputBase.js | 12 ++-- src/assets/theme/components/form/radio.js | 14 +++-- src/assets/theme/components/form/select.js | 14 +++-- .../theme/components/form/switchButton.js | 14 +++-- src/assets/theme/components/icon.js | 12 ++-- src/assets/theme/components/iconButton.js | 12 ++-- src/assets/theme/components/linearProgress.js | 14 +++-- src/assets/theme/components/link.js | 10 +-- src/assets/theme/components/list/index.js | 10 +-- src/assets/theme/components/list/listItem.js | 10 +-- .../theme/components/list/listItemText.js | 10 +-- src/assets/theme/components/menu/index.js | 14 +++-- src/assets/theme/components/menu/menuItem.js | 14 +++-- src/assets/theme/components/popover.js | 14 +++-- src/assets/theme/components/sidenav.js | 14 +++-- src/assets/theme/components/slider.js | 14 +++-- src/assets/theme/components/stepper/index.js | 14 +++-- src/assets/theme/components/stepper/step.js | 12 ++-- .../theme/components/stepper/stepConnector.js | 12 ++-- .../theme/components/stepper/stepIcon.js | 14 +++-- .../theme/components/stepper/stepLabel.js | 14 +++-- src/assets/theme/components/svgIcon.js | 12 ++-- .../theme/components/table/tableCell.js | 14 +++-- .../theme/components/table/tableContainer.js | 12 ++-- .../theme/components/table/tableHead.js | 14 +++-- src/assets/theme/components/tabs/index.js | 14 +++-- src/assets/theme/components/tabs/tab.js | 14 +++-- src/assets/theme/components/tooltip.js | 14 +++-- src/assets/theme/functions/boxShadow.js | 8 +-- .../theme/functions/gradientChartLine.js | 8 +-- src/assets/theme/functions/hexToRgb.js | 6 +- src/assets/theme/functions/linearGradient.js | 6 +- src/assets/theme/functions/pxToRem.js | 6 +- src/assets/theme/functions/rgba.js | 8 +-- src/assets/theme/index.js | 12 ++-- src/assets/theme/theme-rtl.js | 12 ++-- src/components/SuiAlert/SuiAlertCloseIcon.js | 4 +- src/components/SuiAlert/SuiAlertRoot.js | 4 +- src/components/SuiAlert/index.js | 6 +- src/components/SuiAvatar/SuiAvatarRoot.js | 4 +- src/components/SuiAvatar/index.js | 4 +- src/components/SuiBadge/SuiBadgeRoot.js | 4 +- src/components/SuiBadge/index.js | 4 +- src/components/SuiBox/SuiBoxRoot.js | 4 +- src/components/SuiBox/index.js | 4 +- src/components/SuiButton/SuiButtonRoot.js | 4 +- src/components/SuiButton/index.js | 2 +- .../SuiInput/SuiInputIconBoxRoot.js | 4 +- src/components/SuiInput/SuiInputIconRoot.js | 4 +- src/components/SuiInput/SuiInputRoot.js | 4 +- .../SuiInput/SuiInputWithIconRoot.js | 4 +- src/components/SuiInput/index.js | 6 +- .../SuiPagination/SuiPaginationItemRoot.js | 6 +- src/components/SuiPagination/index.js | 13 ++-- src/components/SuiProgress/SuiProgressRoot.js | 4 +- src/components/SuiProgress/index.js | 6 +- .../SuiTypography/SuiTypographyRoot.js | 4 +- src/components/SuiTypography/index.js | 4 +- src/context/index.js | 18 +++--- src/examples/Breadcrumbs/index.js | 6 +- .../Cards/BlogCards/DefaultBlogCard/index.js | 6 +- .../BlogCards/TransparentBlogCard/index.js | 6 +- .../CounterCards/OutlinedCounterCard/index.js | 8 +-- .../Cards/InfoCards/DefaultInfoCard/index.js | 6 +- .../Cards/InfoCards/ProfileInfoCard/index.js | 8 +-- src/examples/Cards/MasterCard/index.js | 6 +- src/examples/Cards/PlaceholderCard/index.js | 6 +- .../PricingCards/DefaultPricingCard/index.js | 6 +- .../ProjectCards/DefaultProjectCard/index.js | 6 +- .../MiniStatisticsCard/index.js | 6 +- .../HorizontalBarChart/configs/index.js | 6 +- .../BarCharts/HorizontalBarChart/index.js | 8 +-- .../ReportsBarChart/ReportsBarChartItem.js | 8 +-- .../ReportsBarChart/configs/index.js | 4 +- .../Charts/BarCharts/ReportsBarChart/index.js | 8 +-- .../VerticalBarChart/configs/index.js | 6 +- .../BarCharts/VerticalBarChart/index.js | 8 +-- .../Charts/BubbleChart/configs/index.js | 6 +- src/examples/Charts/BubbleChart/index.js | 8 +-- .../DefaultDoughnutChart/configs/index.js | 6 +- .../DefaultDoughnutChart/index.js | 6 +- .../DefaultLineChart/configs/index.js | 6 +- .../LineCharts/DefaultLineChart/index.js | 8 +-- .../GradientLineChart/configs/index.js | 6 +- .../LineCharts/GradientLineChart/index.js | 10 +-- .../Charts/MixedChart/configs/index.js | 6 +- src/examples/Charts/MixedChart/index.js | 10 +-- src/examples/Charts/PieChart/configs/index.js | 6 +- src/examples/Charts/PieChart/index.js | 6 +- .../Charts/PolarChart/configs/index.js | 6 +- src/examples/Charts/PolarChart/index.js | 6 +- .../Charts/RadarChart/configs/index.js | 4 +- src/examples/Charts/RadarChart/index.js | 10 +-- src/examples/Configurator/ConfiguratorRoot.js | 4 +- src/examples/Configurator/index.js | 8 +-- src/examples/Footer/index.js | 8 +-- src/examples/Icons/Basket.js | 6 +- src/examples/Icons/CreditCard.js | 6 +- src/examples/Icons/Cube.js | 6 +- src/examples/Icons/CustomerSupport.js | 6 +- src/examples/Icons/Document.js | 6 +- src/examples/Icons/Office.js | 6 +- src/examples/Icons/Settings.js | 6 +- src/examples/Icons/Shop.js | 6 +- src/examples/Icons/SpaceShip.js | 6 +- src/examples/Items/NotificationItem/index.js | 6 +- .../LayoutContainers/DashboardLayout/index.js | 8 +-- .../LayoutContainers/PageLayout/index.js | 8 +-- src/examples/Lists/ProfilesList/index.js | 6 +- src/examples/Navbars/DashboardNavbar/index.js | 10 +-- .../Navbars/DashboardNavbar/styles.js | 4 +- .../DefaultNavbar/DefaultNavbarLink.js | 4 +- .../DefaultNavbar/DefaultNavbarMobile.js | 6 +- src/examples/Navbars/DefaultNavbar/index.js | 10 +-- src/examples/Sidenav/SidenavCard.js | 8 +-- src/examples/Sidenav/SidenavCollapse.js | 8 +-- src/examples/Sidenav/SidenavRoot.js | 4 +- src/examples/Sidenav/index.js | 10 +-- src/examples/Sidenav/styles/sidenav.js | 4 +- .../Sidenav/styles/sidenavCollapse.js | 4 +- src/examples/Tables/Table/index.js | 8 +-- src/examples/Timeline/TimelineItem/index.js | 6 +- src/examples/Timeline/TimelineItem/styles.js | 4 +- src/examples/Timeline/TimelineList/index.js | 6 +- src/examples/Timeline/context/index.js | 4 +- src/index.js | 4 +- .../components/BasicLayout/index.js | 8 +-- .../components/CoverLayout/index.js | 8 +-- .../authentication/components/Footer/index.js | 6 +- .../components/IllustrationLayout/index.js | 10 +-- .../components/Separator/index.js | 6 +- .../components/Socials/index.js | 6 +- src/layouts/authentication/sign-in/index.js | 4 +- src/layouts/authentication/sign-up/index.js | 4 +- src/layouts/billing/components/Bill/index.js | 4 +- .../components/BillingInformation/index.js | 4 +- .../billing/components/Invoice/index.js | 4 +- .../billing/components/Invoices/index.js | 4 +- .../billing/components/PaymentMethod/index.js | 4 +- .../billing/components/Transaction/index.js | 4 +- .../billing/components/Transactions/index.js | 4 +- src/layouts/billing/index.js | 6 +- .../components/BuildByDevelopers/index.js | 4 +- .../components/OrderOverview/index.js | 6 +- .../dashboard/components/Projects/index.js | 4 +- .../components/WorkWithTheRockets/index.js | 4 +- .../dashboard/data/gradientLineChartData.js | 8 ++- .../dashboard/data/reportsBarChartData.js | 8 ++- src/layouts/dashboard/index.js | 6 +- .../profile/components/Header/index.js | 12 ++-- .../components/PlatformSettings/index.js | 8 +-- src/layouts/profile/data/profilesListData.js | 10 +-- src/layouts/profile/index.js | 8 +-- .../rtl/components/BuildByDevelopers/index.js | 4 +- .../rtl/components/OrderOverview/index.js | 6 +- src/layouts/rtl/components/Projects/index.js | 4 +- .../components/WorkWithTheRockets/index.js | 4 +- src/layouts/rtl/data/gradientLineChartData.js | 8 ++- src/layouts/rtl/data/reportsBarChartData.js | 8 ++- src/layouts/rtl/index.js | 6 +- src/layouts/tables/data/authorsTableData.js | 4 +- src/layouts/tables/data/projectsTableData.js | 4 +- src/layouts/tables/index.js | 6 +- .../components/BaseLayout/index.js | 12 ++-- .../components/BaseLayout/styles.js | 4 +- .../components/Emails/index.js | 6 +- .../components/MediaPlayer/index.js | 6 +- .../components/Messages/index.js | 6 +- .../components/TodoCard/index.js | 6 +- .../components/TodoList/index.js | 6 +- src/layouts/virtual-reality/index.js | 8 +-- src/routes.js | 4 +- 209 files changed, 998 insertions(+), 816 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index fc5047ea..aef398db 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -19,6 +19,7 @@ "endOfLine": "auto" } ], + "default-param-last": "off", "react/react-in-jsx-scope": "off", "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], "react/jsx-props-no-spreading": [ diff --git a/CHANGELOG.md b/CHANGELOG.md index e484e891..ed4ddc90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,49 @@ # Change Log +## [3.1.0] 2022-02-23 + +### Bug fixing + +- Momoized the context provider values +- Fix the conditionally used of useContext for SuiPagination component +- Fix the import/no-anonymouse-default-export + +### Major style changes + +### Deleted components + +### Added components + +### Deleted dependencies + +### Added dependencies + +### Updated dependencies + +``` +@emotion/cache 11.4.0 → 11.7.1 +@emotion/react 11.4.1 → 11.8.1 +@emotion/styled 11.3.0 → 11.8.1 +@mui/icons-material 5.1.1 → 5.4.2 +@mui/material 5.1.1 → 5.4.3 +@mui/styled-engine 5.1.1 → 5.4.2 +@testing-library/jest-dom 5.11.4 → 5.16.2 +@testing-library/react 11.1.0 → 12.1.3 +@testing-library/user-event 12.1.10 → 13.5.0 +chroma-js 2.1.2 → 2.4.2 +prop-types 15.7.2 → 15.8.1 +react-countup 5.2.0 → 6.1.1 +react-router-dom 5.2.0 → 6.2.1 +react-scripts 4.0.3 → 5.0.0 +stylis 4.0.10 → 4.0.13 +stylis-plugin-rtl 2.1.0 → 2.1.14 +web-vitals 1.0.1 → 2.1.4 +``` + +### Warning + +There is a warnings related to the stylis-plugin-rtl dependency that won't affect on the behavior of the product its something with the library itself. + ## [3.0.0] 2021-11-23 ### Bug fixing diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index a8b4b893..cbacded0 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -1,7 +1,7 @@ diff --git a/README.md b/README.md index e53f4a79..e466dc0c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![version](https://img.shields.io/badge/version-3.0.0-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/creativetimofficial/soft-ui-dashboard-react.svg)](https://github.com/creativetimofficial/soft-ui-dashboard-react/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/creativetimofficial/soft-ui-dashboard-react.svg)](https://github.com/creativetimofficial/soft-ui-dashboard-react/issues?q=is%3Aissue+is%3Aclosed) -![Image](https://s3.amazonaws.com/creativetim_bucket/products/500/original/soft-ui-dashboard-material-ui.jpg?1632195046) +![Image](https://s3.amazonaws.com/creativetim_bucket/products/500/original/soft-ui-dashboard-material-ui.jpg) Start your Development with an Innovative Admin Template for MUI and React. If you like the look & feel of the hottest design trend right now, Soft UI, you will fall in love with this dashboard! It features a huge number of components built to fit together and look amazing. diff --git a/package.json b/package.json index efc1a913..efa8847f 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "soft-ui-dashboard-react", - "version": "3.0.0", + "version": "3.1.0", "private": true, "author": "Creative Tim", "license": "See license in https://www.creative-tim.com/license", - "description": "Material UI version of Soft UI Dashboard by Creative Tim", - "homepage": "https://demos.creative-tim.com/soft-ui-dashboard-react/#/dashboard", + "description": "ReactJS version of Soft UI Dashboard by Creative Tim", + "homepage": "https://demos.creative-tim.com/soft-ui-dashboard-react/#/", "bugs": { "url": "https://github.com/creativetimofficial/soft-ui-dashboard-react/issues" }, @@ -13,31 +13,35 @@ "type": "git", "url": "git+https://github.com/creativetimofficial/soft-ui-dashboard-react.git" }, + "engines": { + "node": "14 || 15 || 16", + "npm": ">=6" + }, "dependencies": { - "@emotion/cache": "11.4.0", - "@emotion/react": "11.4.1", - "@emotion/styled": "11.3.0", - "@mui/icons-material": "5.1.1", - "@mui/material": "5.1.1", - "@mui/styled-engine": "5.1.1", - "@testing-library/jest-dom": "5.11.4", - "@testing-library/react": "11.1.0", - "@testing-library/user-event": "12.1.10", + "@emotion/cache": "11.7.1", + "@emotion/react": "11.8.1", + "@emotion/styled": "11.8.1", + "@mui/icons-material": "5.4.2", + "@mui/material": "5.4.3", + "@mui/styled-engine": "5.4.2", + "@testing-library/jest-dom": "5.16.2", + "@testing-library/react": "12.1.3", + "@testing-library/user-event": "13.5.0", "chart.js": "3.4.1", - "chroma-js": "2.1.2", - "prop-types": "15.7.2", + "chroma-js": "2.4.2", + "prop-types": "15.8.1", "react": "17.0.2", "react-chartjs-2": "3.0.4", - "react-countup": "5.2.0", + "react-countup": "6.1.1", "react-dom": "17.0.2", "react-flatpickr": "3.10.7", "react-github-btn": "1.2.1", - "react-router-dom": "5.2.0", - "react-scripts": "4.0.3", - "stylis": "4.0.10", - "stylis-plugin-rtl": "2.1.0", + "react-router-dom": "6.2.1", + "react-scripts": "5.0.0", + "stylis": "4.0.13", + "stylis-plugin-rtl": "2.1.1", "uuid": "8.3.2", - "web-vitals": "1.0.1" + "web-vitals": "2.1.4" }, "scripts": { "start": "react-scripts start", @@ -65,14 +69,14 @@ ] }, "devDependencies": { - "eslint": "7.30.0", - "eslint-config-airbnb": "18.2.1", - "eslint-config-prettier": "8.3.0", - "eslint-plugin-import": "2.23.4", - "eslint-plugin-jsx-a11y": "6.4.1", - "eslint-plugin-prettier": "3.4.0", - "eslint-plugin-react": "7.24.0", - "eslint-plugin-react-hooks": "4.2.0", - "prettier": "2.3.2" + "eslint": "8.9.0", + "eslint-config-airbnb": "19.0.4", + "eslint-config-prettier": "8.4.0", + "eslint-plugin-import": "2.25.4", + "eslint-plugin-jsx-a11y": "6.5.1", + "eslint-plugin-prettier": "4.0.0", + "eslint-plugin-react": "7.28.0", + "eslint-plugin-react-hooks": "4.3.0", + "prettier": "2.5.1" } } diff --git a/public/index.html b/public/index.html index 8d4dd578..05de7d04 100644 --- a/public/index.html +++ b/public/index.html @@ -1,10 +1,10 @@