Skip to content

Commit 5df5ebe

Browse files
committed
release: v4.0.0
1 parent 42d823d commit 5df5ebe

File tree

6 files changed

+55
-149
lines changed

6 files changed

+55
-149
lines changed

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
[![@coreui react](https://img.shields.io/badge/@coreui%20-react-lightgrey.svg?style=flat-square)](https://github.com/coreui/react)
55
[![npm package][npm-coreui-react-badge]][npm-coreui-react]
66
[![NPM downloads][npm-coreui-react-download]][npm-coreui-react]
7-
[![npm next][npm-next]][npm]
87

98
[npm-coreui]: https://www.npmjs.com/package/@coreui/coreui
109
[npm-coreui-badge]: https://img.shields.io/npm/v/@coreui/coreui.png?style=flat-square
1110
[npm-coreui-download]: https://img.shields.io/npm/dm/@coreui/coreui.svg?style=flat-square
1211
[npm-coreui-react]: https://www.npmjs.com/package/@coreui/react
1312
[npm-coreui-react-badge]: https://img.shields.io/npm/v/@coreui/react.png?style=flat-square
1413
[npm-coreui-react-download]: https://img.shields.io/npm/dm/@coreui/react.svg?style=flat-square
15-
[npm-next]: https://img.shields.io/npm/v/@coreui/react/next.png?style=flat-square
1614
[npm]: https://www.npmjs.com/package/@coreui/react
1715

1816
# CoreUI Free React Admin Template v4
@@ -42,16 +40,14 @@ CoreUI is meant to be the UX game changer. Pure & transparent code is devoid of
4240

4341
## CoreUI Pro
4442

45-
**Only customers with [Enterpise Membership Plan](https://coreui.io/pro/#buy) have access to private github CoreUI Pro repository.**
46-
4743
* 💪 [CoreUI Pro Bootstrap Admin Template](https://coreui.io/pro/)
4844
* 💪 [CoreUI Pro Angular Admin Template](https://coreui.io/pro/angular)
4945
* 💪 [CoreUI Pro React Admin Template](https://coreui.io/pro/react)
5046
* 💪 [CoreUI Pro Vue Admin Template](https://coreui.io/pro/vue)
5147

5248
## Quick Start
5349

54-
- [Download the latest release](https://github.com/coreui/coreui-free-react-admin-template/archive/refs/heads/v4.zip)
50+
- [Download the latest release](https://github.com/coreui/coreui-free-react-admin-template/archive/refs/heads/main.zip)
5551
- Clone the repo: `git clone https://github.com/coreui/coreui-free-react-admin-template.git`
5652

5753
### Instalation

jest.config.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Copyright (c) 2013-present, creativeLabs Lukasz Holeczek.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
'use strict'
9+
10+
module.exports = {
11+
collectCoverageFrom: [
12+
'src/**/*.{js,jsx}',
13+
'!**/*index.js',
14+
'!src/serviceWorker.js',
15+
'!src/polyfill.js',
16+
],
17+
}

migration.md

+1-100
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,3 @@
11
# Migration from version 3
22

3-
## CSS
4-
5-
- `ml-*` to `ms-*`
6-
- `mfs-*` to `ms-*`
7-
- `mr-*` to `me-*`
8-
- `mfe-*` to `me-*`
9-
- `pl-*` to `ps-*`
10-
- `pr-*` to `pe-*`
11-
- `float-left` to `float-start`
12-
- `float-right` to `float-end`
13-
14-
## Components
15-
16-
- Deprecated component `CEmbed`
17-
- Deprecated component `CJumbotron`
18-
19-
### Badges
20-
21-
- variant="pill" => shape="rounded-pill"
22-
- variant="square" => shape="rounded-0"
23-
24-
### Forms
25-
26-
- `CInput` => `CFormInput`
27-
- `CInputCheckbox` => `CFormCheck`
28-
- `CLabel` => `CFormLabel`
29-
- `CSelect` => `CFormSelect`
30-
- `CValidFeedback` => `CFormFeedback valid`
31-
- `CInvalidFeedback` => `CFormFeedback invalid`
32-
33-
- Deprecated component `CFormGroup`
34-
- Deprecated component `CInputGroupAppend`
35-
- Deprecated component `CInputGroupPrepend`
36-
- Depreacted component `CSwitch`, use `CFormCheck switch` instead of.
37-
- Deprecated `.help-block`
38-
39-
### Header
40-
41-
- Deprecated pro `withSubheader`
42-
- Deprecated component `CHeaderNavItem`, use `CNavItem` instead of.
43-
- Deprecated component `CHeaderNavLink`, use `CNavLink` instead of.
44-
45-
### List Group
46-
47-
- Depracated prop `action` Use `component="a"` or `component="b"` instead of `action`.
48-
49-
### Modal
50-
51-
- Depracated prop `show` Use `visible` instead of.
52-
53-
### Popover
54-
55-
- Depracated prop `header` Use `title` instead of.
56-
57-
### Progress Bar
58-
59-
- Depracated prop `precision`
60-
- Depracated prop `showLabel`
61-
- Depracated prop `showPercentage`
62-
- Depracated prop `showValue`
63-
64-
### Tabs
65-
66-
- Deprecated component `<CTabs>` use `<CNav variant="tabs">` without wrapper component `<CTabs>`
67-
68-
69-
# Migration from version 2
70-
71-
Migration from version 2 must be performed manually because the components library `@coreui/coreui-react` has been completely rewritten.
72-
73-
The docs of the new components are available [here](https://coreui.io/react/docs/)
74-
75-
The good news is that most probably it will be sufficient to migrate layout components (Sidebar, Header, Footer, Aside) and `Switch` component
76-
77-
The best way to do a migration is:
78-
1. Install `@coreui/coreui-react` v3
79-
2. Make a copy of the current `containers` folder
80-
2. Paste [containers](https://github.com/coreui/coreui-free-react-admin-template/tree/master/src/containers) folder from v3 template to project
81-
3. Correct routing paths
82-
4. Add previous content to new template layout components
83-
5. Replace `Switch` components with `CSwitch`
84-
85-
Layout components/ corresponding components in version 3
86-
- Aside -> CSidebar (with prop aside={true})
87-
- AsideToggler -> CToggler
88-
- Breadcrumb -> CBreadcrumbRouter
89-
- Footer -> CFooter
90-
- Header -> CHeader
91-
- HeaderDropdown -> CDropdown
92-
- NavbarBrand -> CSidebarBrand
93-
- Sidebar -> CSidebar
94-
- SidebarFooter -> CSidebarFooter
95-
- SidebarForm -> CSidebarForm
96-
- SidebarHeader -> CSidebarHeader
97-
- SidebarMinimizer -> CSidebarMinimizer
98-
- SidebarNav -> CSidebarNav + CSidebarNavDropdown + CSidebarNavItem
99-
- SidebarToggler -> CSidebarToggler
100-
- Switch -> CSwitch
101-
102-
After the migration is done, you can start using new components of `@coreui/coreui-react` v3 library.
3+
https://coreui.io/react/docs/4.0/migration/v4/

package.json

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coreui/coreui-free-react-admin-template",
3-
"version": "4.0.0-rc.4",
3+
"version": "4.0.0",
44
"description": "CoreUI Free React Admin Template",
55
"homepage": "https://coreui.io/react/",
66
"bugs": {
@@ -25,21 +25,13 @@
2525
"config": {
2626
"coreui_library_short_version": "4.0"
2727
},
28-
"jest": {
29-
"collectCoverageFrom": [
30-
"src/**/*.{js,jsx}",
31-
"!**/*index.js",
32-
"!src/serviceWorker.js",
33-
"!src/polyfill.js"
34-
]
35-
},
3628
"dependencies": {
3729
"@coreui/chartjs": "^3.0.0",
3830
"@coreui/coreui": "^4.0.5",
3931
"@coreui/icons": "^2.1.0",
4032
"@coreui/icons-react": "2.0.0",
41-
"@coreui/react": "4.0.0-rc.6",
42-
"@coreui/react-chartjs": "2.0.0-rc.3",
33+
"@coreui/react": "4.0.0",
34+
"@coreui/react-chartjs": "2.0.0",
4335
"@coreui/utils": "^1.3.1",
4436
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.3",
4537
"chart.js": "^3.5.1",

public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<!--
33
* CoreUI Free React.js Admin Template
4-
* @version v4.0.0-rc.4
4+
* @version v4.0.0
55
* @link https://coreui.io/react/
66
* Copyright (c) 2021 creativeLabs Łukasz Holeczek
77
* License MIT

yarn.lock

+32-32
Original file line numberDiff line numberDiff line change
@@ -1237,18 +1237,18 @@
12371237
resolved "https://registry.yarnpkg.com/@coreui/icons/-/icons-2.1.0.tgz#b21641d3d034fdef308c87dc347c8684c408a753"
12381238
integrity sha512-3yY9J0088TSY403jwJeP5YERH3RLOvxdhOa4VIQsGOX4fuQZiyVUM+vwlzyCSpgAv9NwKPkCor+gc+JJaYf0TA==
12391239

1240-
"@coreui/[email protected]-rc.3":
1241-
version "2.0.0-rc.3"
1242-
resolved "https://registry.yarnpkg.com/@coreui/react-chartjs/-/react-chartjs-2.0.0-rc.3.tgz#0735ec13e654a3ea8ba7007b831bf00bed777bb0"
1243-
integrity sha512-v/AxdZvjBj2t/7i8Xmwf5GOMHLEkkRVKStv00uTWEd/rV9MyPjttGHcHLuXRLhGnSl+gJxKu7DMqeug9hQKaCA==
1240+
1241+
version "2.0.0"
1242+
resolved "https://registry.yarnpkg.com/@coreui/react-chartjs/-/react-chartjs-2.0.0.tgz#e4076a8cce24595892b7cf85ae0b48ff85ab1209"
1243+
integrity sha512-/GLJ0+hxmj1tyCrGsmlo+LTGeRNzZV8glZqZGRBiEr6jkV2W7/o56aMbnhOpW28SfZTJFI9YzA5PR5oiglxZmQ==
12441244
dependencies:
12451245
"@coreui/chartjs" "^3.0.0"
12461246
chart.js "^3.5.0"
12471247

1248-
"@coreui/[email protected]-rc.6":
1249-
version "4.0.0-rc.6"
1250-
resolved "https://registry.yarnpkg.com/@coreui/react/-/react-4.0.0-rc.6.tgz#61186c11b3fd82c1e00666ccaa795a1fd7ce2fb8"
1251-
integrity sha512-vbWcPnN8UG2Eot1mXOTfcJBK3Sm09e7kQeIdoyEk+1vvFX3wDJemMH1x3t2AbHyrDOcCuBJEc/h4+nDTVoeNAQ==
1248+
1249+
version "4.0.0"
1250+
resolved "https://registry.yarnpkg.com/@coreui/react/-/react-4.0.0.tgz#fb6a955c881bad4c0f10e70656d2214eda69775b"
1251+
integrity sha512-FE5s9TE7MIFh1QZhlMUB5LnEqh/IiqVdmT3YQtCOLmiHzXmUH4+BdM9Xt1QaK4SI61HxIsAlXUi73F1OgTBmQw==
12521252

12531253
"@coreui/utils@^1.3.1":
12541254
version "1.3.1"
@@ -1844,9 +1844,9 @@
18441844
integrity sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==
18451845

18461846
"@types/node@*":
1847-
version "16.11.1"
1848-
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.1.tgz#2e50a649a50fc403433a14f829eface1a3443e97"
1849-
integrity sha512-PYGcJHL9mwl1Ek3PLiYgyEKtwTMmkMw4vbiyz/ps3pfdRYLVv+SN7qHVAImrjdAXxgluDEw6Ph4lyv+m9UpRmA==
1847+
version "16.11.2"
1848+
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.2.tgz#31c249c136c3f9b35d4b60fb8e50e01a1f0cc9a5"
1849+
integrity sha512-w34LtBB0OkDTs19FQHXy4Ig/TOXI4zqvXS2Kk1PAsRKZ0I+nik7LlMYxckW0tSNGtvWmzB+mrCTbuEjuB9DVsw==
18501850

18511851
"@types/normalize-package-data@^2.4.0":
18521852
version "2.4.1"
@@ -1874,19 +1874,19 @@
18741874
integrity sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ==
18751875

18761876
"@types/react-redux@^7.1.16":
1877-
version "7.1.19"
1878-
resolved "https://registry.yarnpkg.com/@types/react-redux/-/react-redux-7.1.19.tgz#477bd0a9b01bae6d6bf809418cdfa7d3c16d4c62"
1879-
integrity sha512-L37dSCT0aoJnCgpR8Iuginlbxoh7qhWOXiaDqEsxVMrER1CmVhFD+63NxgJeT4pkmEM28oX0NH4S4f+sXHTZjA==
1877+
version "7.1.20"
1878+
resolved "https://registry.yarnpkg.com/@types/react-redux/-/react-redux-7.1.20.tgz#42f0e61ababb621e12c66c96dda94c58423bd7df"
1879+
integrity sha512-q42es4c8iIeTgcnB+yJgRTTzftv3eYYvCZOh1Ckn2eX/3o5TdsQYKUWpLoLuGlcY/p+VAhV9IOEZJcWk/vfkXw==
18801880
dependencies:
18811881
"@types/hoist-non-react-statics" "^3.3.0"
18821882
"@types/react" "*"
18831883
hoist-non-react-statics "^3.3.0"
18841884
redux "^4.0.0"
18851885

18861886
"@types/react@*":
1887-
version "17.0.30"
1888-
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.30.tgz#2f8e6f5ab6415c091cc5e571942ee9064b17609e"
1889-
integrity sha512-3Dt/A8gd3TCXi2aRe84y7cK1K8G+N9CZRDG8kDGguOKa0kf/ZkSwTmVIDPsm/KbQOVMaDJXwhBtuOXxqwdpWVg==
1887+
version "17.0.31"
1888+
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.31.tgz#fe05ebf91ff3ae35bb6b13f6c1b461db8089dff8"
1889+
integrity sha512-MQSR5EL4JZtdWRvqDgz9kXhSDDoy2zMTYyg7UhP+FZ5ttUOocWyxiqFJiI57sUG0BtaEX7WDXYQlkCYkb3X9vQ==
18901890
dependencies:
18911891
"@types/prop-types" "*"
18921892
"@types/scheduler" "*"
@@ -3394,9 +3394,9 @@ classnames@^2.3.1:
33943394
integrity sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA==
33953395

33963396
clean-css@^4.2.3:
3397-
version "4.2.3"
3398-
resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.3.tgz#507b5de7d97b48ee53d84adb0160ff6216380f78"
3399-
integrity sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==
3397+
version "4.2.4"
3398+
resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.4.tgz#733bf46eba4e607c6891ea57c24a989356831178"
3399+
integrity sha512-EJUDT7nDVFDvaQgAo2G/PJvxmp1o/c6iXLbswsBbUFXi1Nr+AjA2cKmfbKDMjMvzEe75g3P6JkaDDAKk96A85A==
34003400
dependencies:
34013401
source-map "~0.6.0"
34023402

@@ -4369,9 +4369,9 @@ ejs@^2.6.1:
43694369
integrity sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==
43704370

43714371
electron-to-chromium@^1.3.564, electron-to-chromium@^1.3.867:
4372-
version "1.3.873"
4373-
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.873.tgz#c238c9199e4951952fe815a65c1beab5db4826b8"
4374-
integrity sha512-TiHlCgl2uP26Z0c67u442c0a2MZCWZNCRnPTQDPhVJ4h9G6z2zU0lApD9H0K9R5yFL5SfdaiVsVD2izOY24xBQ==
4372+
version "1.3.876"
4373+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.876.tgz#fe6f65c9740406f4aa69f10faa8e1d79b81bdf34"
4374+
integrity sha512-a6LR4738psrubCtGx5HxM/gNlrIsh4eFTNnokgOqvQo81GWd07lLcOjITkAXn2y4lIp18vgS+DGnehj+/oEAxQ==
43754375

43764376
elliptic@^6.5.3:
43774377
version "6.5.4"
@@ -7610,7 +7610,7 @@ nan@^2.12.1:
76107610
resolved "https://registry.yarnpkg.com/nan/-/nan-2.15.0.tgz#3f34a473ff18e15c1b5626b62903b5ad6e665fee"
76117611
integrity sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==
76127612

7613-
nanoid@^3.1.28:
7613+
nanoid@^3.1.30:
76147614
version "3.1.30"
76157615
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.30.tgz#63f93cc548d2a113dc5dfbc63bfa09e2b9b64362"
76167616
integrity sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==
@@ -7751,9 +7751,9 @@ node-releases@^1.1.61:
77517751
integrity sha512-rB1DUFUNAN4Gn9keO2K1efO35IDK7yKHCdCaIMvFO7yUYmmZYeDjnGKle26G4rwj+LKRQpjyUUvMkPglwGCYNQ==
77527752

77537753
node-releases@^2.0.0:
7754-
version "2.0.0"
7755-
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.0.tgz#67dc74903100a7deb044037b8a2e5f453bb05400"
7756-
integrity sha512-aA87l0flFYMzCHpTM3DERFSYxc6lv/BltdbRTOMZuxZ0cwZCD3mejE5n9vLhSJCN++/eOqr77G1IO5uXxlQYWA==
7754+
version "2.0.1"
7755+
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.1.tgz#3d1d395f204f1f2f29a54358b9fb678765ad2fc5"
7756+
integrity sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==
77577757

77587758
normalize-package-data@^2.5.0:
77597759
version "2.5.0"
@@ -9028,12 +9028,12 @@ postcss@^7, postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.17, po
90289028
source-map "^0.6.1"
90299029

90309030
postcss@^8.1.0:
9031-
version "8.3.9"
9032-
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.3.9.tgz#98754caa06c4ee9eb59cc48bd073bb6bd3437c31"
9033-
integrity sha512-f/ZFyAKh9Dnqytx5X62jgjhhzttjZS7hMsohcI7HEI5tjELX/HxCy3EFhsRxyzGvrzFF+82XPvCS8T9TFleVJw==
9031+
version "8.3.10"
9032+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.3.10.tgz#4d614e108ccc69c65c2f6dc6cec23dd5c85b73af"
9033+
integrity sha512-YYfvfUdWx+ECpr5Hgc6XRfsaux8LksL5ey8qTtWiuRXOpOF1YYMwAySdh0nSmwhZAFvvJ6rgiIkKVShu4x2T1Q==
90349034
dependencies:
9035-
nanoid "^3.1.28"
9036-
picocolors "^0.2.1"
9035+
nanoid "^3.1.30"
9036+
picocolors "^1.0.0"
90379037
source-map-js "^0.6.2"
90389038

90399039
prelude-ls@^1.2.1:

0 commit comments

Comments
 (0)