diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ae5d06f..6c52f830 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## [2.1.0] 2023-11-14 +- Upgrade to Material Tailwind `v2` + +## [2.0.1] 2023-03-29 + +- Add nepcha scripts + ## [2.0.0] 2022-11-02 - Update the entire structure diff --git a/LICENSE b/LICENSE index a0a24253..917de35a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Creative Tim +Copyright (c) 2023 Creative Tim Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 464a1505..ad782a5c 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,12 @@ # [Material Tailwind Dashboard React](http://demos.creative-tim.com/material-tailwind-dashboard-react/#/?ref=readme-mtdr) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&logo=twitter)](https://twitter.com/intent/tweet?url=https://www.creative-tim.com/product/material-tailwind-dashboard-react&text=Check%20Material%20Tailwind%20Dashboard%20React%20made%20by%20@CreativeTim%20#webdesign%20#kit%20#materialdesign%20#react%20#materialtailwind%20#tailwindcss%20https://www.creative-tim.com/product/material-tailwind-dashboard-react) -![version](https://img.shields.io/badge/version-2.0.0-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/creativetimofficial/material-tailwind-dashboard-react.svg)](https://github.com/creativetimofficial/material-tailwind-dashboard-react/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/creativetimofficial/material-tailwind-dashboard-react.svg)](https://github.com/creativetimofficial/material-tailwind-dashboard-react/issues?q=is%3Aissue+is%3Aclosed) +![version](https://img.shields.io/badge/version-2.1.0-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/creativetimofficial/material-tailwind-dashboard-react.svg)](https://github.com/creativetimofficial/material-tailwind-dashboard-react/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/creativetimofficial/material-tailwind-dashboard-react.svg)](https://github.com/creativetimofficial/material-tailwind-dashboard-react/issues?q=is%3Aissue+is%3Aclosed) -![Image](https://s3.amazonaws.com/creativetim_bucket/products/488/original/material-tailwind-react-dashboard.jpg) +![Image](https://s3.amazonaws.com/creativetim_bucket/products/488/original/material-tailwind-dashboard-react.jpg) +![Image](https://res.cloudinary.com/db7v5ycxn/image/upload/v1702666156/github-readme-images/xkwcnx11lebs74s8bjh7.png) +![Image](https://res.cloudinary.com/db7v5ycxn/image/upload/v1702666155/github-readme-images/lq2cg0nusyllgkwvmxnx.png) -Material Tailwind Dashboard React is our newest free Material Tailwind Admin Template based on Tailwind CSS and React. If you’re a developer looking to create an admin dashboard that is developer-friendly, rich with features, and highly customisable, here is your match. Our innovative Material Tailwind, Tailwind CSS & React dashboard comes with a beautiful design inspired by Google's Material Design and it will help you create stunning websites & web apps to delight your clients. +Material Tailwind Dashboard React is our newest free Material Tailwind Admin Template based on Tailwind CSS and React. If you’re a developer looking to create an admin dashboard that is developer-friendly, rich with features, highly customisable, and also supports **multilingual and bidirectional styling**, here is your match. Our innovative Material Tailwind, Tailwind CSS & React dashboard comes with a beautiful design inspired by Google's Material Design and it will help you create stunning websites & web apps to delight your clients. **Fully Coded Elements** @@ -38,6 +40,7 @@ During the development of this dashboard, we have used many existing resources f - [Material Tailwind](https://material-tailwind.com/) - Material Tailwind is an easy to use components library for Tailwind CSS and Material Design. - [Hero Icons](https://heroicons.com/) - Beautiful hand-crafted SVG icons. - [Apex Charts](https://apexcharts.com/) - Modern & Interactive open-source Charts. +- [Nepcha Analytics](https://nepcha.com?ref=readme) for the analytics tool. Nepcha is already integrated with Material Tailwind Dashboard React. You can use it to gain insights into your sources of traffic. Let us know your thoughts below. And good luck with development! @@ -62,7 +65,7 @@ Let us know your thoughts below. And good luck with development! | React | | ----- | -| [![Material Tailwind Dashboard React](https://s3.amazonaws.com/creativetim_bucket/products/488/thumb/material-tailwind-react-dashboard.jpg)](http://demos.creative-tim.com/material-tailwind-dashboard-react/#/?ref=readme-mtdr) +| [![Material Tailwind Dashboard React](https://s3.amazonaws.com/creativetim_bucket/products/488/thumb/material-tailwind-dashboard-react.jpg)](http://demos.creative-tim.com/material-tailwind-dashboard-react/#/?ref=readme-mtdr) ## Demo @@ -137,6 +140,7 @@ At present, we officially aim to support the last two versions of the following - [License Agreement](https://www.creative-tim.com/license?ref=readme-mtdr) - [Support](https://www.creative-tim.com/contact-us?ref=readme-mtdr) - Issues: [Github Issues Page](https://github.com/creativetimofficial/material-tailwind-dashboard-react/issues) +- [Nepcha Analytics](https://nepcha.com?ref=readme) - Analytics tool for your website ## Reporting Issues @@ -152,7 +156,7 @@ If you have questions or need help integrating the product please [contact us](h ## Licensing -- Copyright 2022 [Creative Tim](https://www.creative-tim.com?ref=readme-mtdr) +- Copyright 2023 [Creative Tim](https://www.creative-tim.com?ref=readme-mtdr) - Creative Tim [license](https://www.creative-tim.com/license?ref=readme-mtdr) ## Useful Links diff --git a/index.html b/index.html index f50e768b..844e5941 100644 --- a/index.html +++ b/index.html @@ -1,9 +1,9 @@ + +
diff --git a/package.json b/package.json index b7455d71..27c306ab 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "material-tailwind-dashboard-react", "private": true, - "version": "2.0.0", + "version": "2.1.0", "type": "module", "scripts": { "dev": "vite", @@ -9,24 +9,25 @@ "preview": "vite preview" }, "dependencies": { - "@heroicons/react": "2.0.12", - "@material-tailwind/react": "1.2.4", - "apexcharts": "3.35.5", + "@heroicons/react": "2.0.18", + "@material-tailwind/react": "2.1.4", + "apexcharts": "3.44.0", "prop-types": "15.8.1", "react": "18.2.0", - "react-apexcharts": "1.4.0", + "react-apexcharts": "1.4.1", "react-dom": "18.2.0", - "react-router-dom": "6.4.2" + "react-router-dom": "6.17.0" }, "devDependencies": { - "@types/react": "18.0.17", - "@types/react-dom": "18.0.6", - "@vitejs/plugin-react": "2.1.0", - "autoprefixer": "10.4.12", - "postcss": "8.4.17", - "prettier": "2.7.1", - "prettier-plugin-tailwindcss": "0.1.13", - "tailwindcss": "3.1.8", - "vite": "3.1.0" + "@types/react": "18.2.31", + "@types/react-dom": "18.2.14", + "@vitejs/plugin-react": "4.1.0", + "autoprefixer": "10.4.16", + "postcss": "8.4.31", + "prettier": "3.0.3", + "prettier-plugin-tailwindcss": "0.5.6", + "tailwindcss": "3.3.4", + "tailwindcss-rtl": "^0.9.0", + "vite": "4.5.0" } -} \ No newline at end of file +} diff --git a/public/img/background-image.png b/public/img/background-image.png new file mode 100644 index 00000000..358c89af Binary files /dev/null and b/public/img/background-image.png differ diff --git a/public/img/pattern.png b/public/img/pattern.png new file mode 100644 index 00000000..2b34e46f Binary files /dev/null and b/public/img/pattern.png differ diff --git a/public/img/twitter-logo.svg b/public/img/twitter-logo.svg new file mode 100644 index 00000000..ded743c9 --- /dev/null +++ b/public/img/twitter-logo.svg @@ -0,0 +1,9 @@ + diff --git a/src/configs/charts-config.js b/src/configs/charts-config.js index 92a6ca4f..7c2676dd 100644 --- a/src/configs/charts-config.js +++ b/src/configs/charts-config.js @@ -19,7 +19,7 @@ export const chartsConfig = { }, labels: { style: { - colors: "#fff", + colors: "#37474f", fontSize: "13px", fontFamily: "inherit", fontWeight: 300, @@ -29,7 +29,7 @@ export const chartsConfig = { yaxis: { labels: { style: { - colors: "#fff", + colors: "#37474f", fontSize: "13px", fontFamily: "inherit", fontWeight: 300, @@ -38,7 +38,7 @@ export const chartsConfig = { }, grid: { show: true, - borderColor: "#ffffff40", + borderColor: "#dddddd", strokeDashArray: 5, xaxis: { lines: { diff --git a/src/context/index.jsx b/src/context/MaterialTailwindControllerProvider.jsx similarity index 97% rename from src/context/index.jsx rename to src/context/MaterialTailwindControllerProvider.jsx index 832566d7..bc265f97 100644 --- a/src/context/index.jsx +++ b/src/context/MaterialTailwindControllerProvider.jsx @@ -33,8 +33,8 @@ export function reducer(state, action) { export function MaterialTailwindControllerProvider({ children }) { const initialState = { openSidenav: false, - sidenavColor: "blue", - sidenavType: "dark", + sidenavColor: "red", + sidenavType: "white", transparentNavbar: true, fixedNavbar: false, openConfigurator: false, diff --git a/src/context/index.js b/src/context/index.js new file mode 100644 index 00000000..2d1dd88e --- /dev/null +++ b/src/context/index.js @@ -0,0 +1,2 @@ +export * from "@/context/MaterialTailwindControllerProvider"; +export * from "@/context/themeLanguageProvider"; diff --git a/src/context/themeLanguageProvider.jsx b/src/context/themeLanguageProvider.jsx new file mode 100644 index 00000000..f66a29b9 --- /dev/null +++ b/src/context/themeLanguageProvider.jsx @@ -0,0 +1,54 @@ +import React from 'react'; +import PropTypes from "prop-types"; +import languages from "@/data"; + +// context for the language preference +export const LanguageContext = React.createContext(); + +// a provider for the language preference context +export function LanguageProvider({ children }) { + const defaultLanguage = localStorage.getItem("lang") || "eng"; + const [language, setLanguage] = React.useState(defaultLanguage); + const [languageData, setLanguageData] = React.useState(languages[defaultLanguage].languageData); + const [documentDirection, setDocumentDirection] = React.useState(languages[defaultLanguage].direction); + + // Update the document direction based on the language + React.useEffect(() => { + document.documentElement.dir = documentDirection; + }, [documentDirection]); + + // Function to change the language + const changeLanguage = React.useCallback((newLanguage) => { + localStorage.setItem('lang', newLanguage); + localStorage.setItem('dir', languages[newLanguage].direction); + + // Set language data and direction + setLanguage(newLanguage); + setDocumentDirection(languages[newLanguage].direction); + setLanguageData(languages[newLanguage].languageData); + },[]); + + return ( +
|
---|
| |
---|---|
- |
@@ -94,7 +99,7 @@ export function Tables() { href="#" className="text-xs font-semibold text-blue-gray-600" > - Edit + {action} |