diff --git a/CHANGELOG.md b/CHANGELOG.md index cb2594d27..2cbd87467 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,35 @@ ## [CoreUI](https://coreui.io/) for [react](./REACT.md) changelog +##### `v2.1.0` +- feat(SidebarNav): navLink `attributes` - optional JS object with valid JS API naming: + - valid attributes: `rel`, `target`, `hidden`, `disabled`, etc... + - starting with `@coreui/coreui`, `@coreui/react` version `2.1.0` and up + - closes #106 + - item example(`./src/_nav.js`): + ```js + { + name: 'Disabled', + url: '/disabled', + icon: 'icon-ban', + attributes: { disabled: true }, + }, + { + name: 'Try CoreUI PRO', + url: 'https://coreui.io/pro/react/', + icon: 'cui-layers icons', + variant: 'danger', + attributes: { target: '_blank', rel: "noopener" }, + }, + ``` +- fix(Cards): `card-header-actions` added to `CardHeader` for `rtl` support +- feat(Dashboard): new `Suspense` example with Widget03 +- chore: update `@coreui/coreui` to `2.1.0` +- chore: update `@coreui/react` to `2.1.0` +- chore: update `node-sass` to `4.10.0` +- chore: update `react` to `16.6.1` +- chore: update `react-dom` to `16.6.1` +- chore: update `react-test-renderer` to `16.6.1` + ##### `v2.0.14` - chore: update `@coreui/coreui` to `2.0.25` - chore: update `chart.js` to `2.7.3` @@ -11,7 +41,6 @@ - chore: update `react-test-renderer` to `16.6.0` - chore: update `react-scripts` to `2.1.1` - ##### `v2.0.13` - refactor: migration to [Create React App 2.0](https://reactjs.org/blog/2018/10/01/create-react-app-v2.html) cleanup - cleanup `package.json` scripts diff --git a/package.json b/package.json index 8062aca20..fec002e0c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coreui/coreui-free-react-admin-template", - "version": "2.0.14", + "version": "2.1.0", "description": "CoreUI React Open Source Bootstrap 4 Admin Template", "author": "Ćukasz Holeczek", "homepage": "https://coreui.io", @@ -12,10 +12,10 @@ "url": "git@github.com:coreui/coreui-free-react-admin-template.git" }, "dependencies": { - "@coreui/coreui": "^2.0.25", + "@coreui/coreui": "^2.1.0", "@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.2.0", "@coreui/icons": "0.3.0", - "@coreui/react": "^2.0.9", + "@coreui/react": "^2.1.0", "bootstrap": "^4.1.3", "chart.js": "^2.7.3", "classnames": "^2.2.6", @@ -24,16 +24,16 @@ "enzyme-adapter-react-16": "^1.6.0", "flag-icon-css": "^3.2.1", "font-awesome": "^4.7.0", - "node-sass": "^4.9.4", + "node-sass": "^4.10.0", "prop-types": "^15.6.2", - "react": "^16.6.0", + "react": "^16.6.1", "react-app-polyfill": "^0.1.3", "react-chartjs-2": "^2.7.2", - "react-dom": "^16.6.0", + "react-dom": "^16.6.1", "react-loadable": "^5.5.0", "react-router-config": "^4.4.0-beta.6", "react-router-dom": "^4.3.1", - "react-test-renderer": "^16.6.0", + "react-test-renderer": "^16.6.1", "reactstrap": "^6.5.0", "simple-line-icons": "^2.4.1" }, diff --git a/src/_nav.js b/src/_nav.js index 1d56d467b..2a6cac94d 100644 --- a/src/_nav.js +++ b/src/_nav.js @@ -255,18 +255,26 @@ export default { }, ], }, + { + name: 'Disabled', + url: '/dashboard', + icon: 'icon-ban', + attributes: { disabled: true }, + }, { name: 'Download CoreUI', - url: 'http://coreui.io/react/', + url: 'https://coreui.io/react/', icon: 'icon-cloud-download', class: 'mt-auto', variant: 'success', + attributes: { target: '_blank', rel: "noopener" }, }, { name: 'Try CoreUI PRO', - url: 'http://coreui.io/pro/react/', + url: 'https://coreui.io/pro/react/', icon: 'icon-layers', variant: 'danger', + attributes: { target: '_blank', rel: "noopener" }, }, ], }; diff --git a/src/views/Base/Cards/Cards.js b/src/views/Base/Cards/Cards.js index 3df435694..10828693a 100644 --- a/src/views/Base/Cards/Cards.js +++ b/src/views/Base/Cards/Cards.js @@ -52,7 +52,10 @@ class Cards extends Component {