@carbonorm/carbonreact 4.0.19 → 4.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Errors/AccessDenied.d.ts +2 -2
- package/dist/index.cjs.css +104 -1
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +459 -1381
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.css +104 -1
- package/dist/index.esm.css.map +1 -1
- package/dist/index.esm.js +445 -1367
- package/dist/index.esm.js.map +1 -1
- package/package.json +28 -27
- package/src/components/Errors/AccessDenied.tsx +24 -24
- package/src/types/react-19-jsx.d.ts +9 -0
package/package.json
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbonorm/carbonreact",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.22",
|
|
5
5
|
"browser": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"type": "module",
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"react": "^19.1.0",
|
|
12
|
+
"react-dom": "^19.1.0"
|
|
13
|
+
},
|
|
10
14
|
"dependencies": {
|
|
11
|
-
"@carbonorm/carbonnode": "^2.0.
|
|
15
|
+
"@carbonorm/carbonnode": "^2.0.34",
|
|
12
16
|
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
13
17
|
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
14
18
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
15
|
-
"@testing-library/react": "^
|
|
19
|
+
"@testing-library/react": "^16.3.0",
|
|
16
20
|
"ansi-colors": "^4.1.3",
|
|
17
|
-
"axios": "^1.4
|
|
21
|
+
"axios": "^1.8.4",
|
|
18
22
|
"bootstrap": "^5.3.1",
|
|
19
23
|
"classnames": "^2.3.2",
|
|
20
24
|
"heic2any": "^0.0.4",
|
|
21
|
-
"jest": "^29.
|
|
22
|
-
"jest-config": "^29.
|
|
23
|
-
"qs": "^6.
|
|
24
|
-
"react": "^
|
|
25
|
-
"react-dom": "^18.2.0",
|
|
26
|
-
"react-loading-skeleton": "^3.3.1",
|
|
25
|
+
"jest": "^29.7.0",
|
|
26
|
+
"jest-config": "^29.7.0",
|
|
27
|
+
"qs": "^6.14.0",
|
|
28
|
+
"react-loading-skeleton": "^3.5.0",
|
|
27
29
|
"react-outside-click-handler": "^1.3.0",
|
|
28
|
-
"react-router-dom": "^
|
|
29
|
-
"react-toastify": "^
|
|
30
|
-
"typed-css-modules": "^0.
|
|
31
|
-
"typed-scss-modules": "^
|
|
30
|
+
"react-router-dom": "^7.5.0",
|
|
31
|
+
"react-toastify": "^11.0.5",
|
|
32
|
+
"typed-css-modules": "^0.9.1",
|
|
33
|
+
"typed-scss-modules": "^8.1.1"
|
|
32
34
|
},
|
|
33
35
|
"devDependencies": {
|
|
34
36
|
"@carbonorm/postcss-modules": "^6.0.2",
|
|
35
37
|
"@carbonorm/rollup-plugin-postcss": "^3.0.0",
|
|
36
38
|
"@drop-in-gaming/barrelsby": "^0.0.2",
|
|
37
|
-
"@
|
|
38
|
-
"@rollup/plugin-
|
|
39
|
-
"@rollup/plugin-
|
|
40
|
-
"@rollup/plugin-typescript": "^11.1.2",
|
|
39
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
40
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
41
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
41
42
|
"@types/jest": "^29.5.4",
|
|
42
|
-
"@types/ms": "^
|
|
43
|
-
"@types/node": "^
|
|
44
|
-
"@types/react": "^
|
|
45
|
-
"@types/react-dom": "^
|
|
46
|
-
"@types/styled-components": "5.1.
|
|
43
|
+
"@types/ms": "^2.1.0",
|
|
44
|
+
"@types/node": "^22",
|
|
45
|
+
"@types/react": "^19.1.0",
|
|
46
|
+
"@types/react-dom": "^19.1.2",
|
|
47
|
+
"@types/styled-components": "5.1.34",
|
|
47
48
|
"autoprefixer": "^10.4.14",
|
|
48
49
|
"bootstrap": "^5.3.1",
|
|
49
50
|
"classnames": "^2.3.2",
|
|
@@ -51,12 +52,12 @@
|
|
|
51
52
|
"deepmerge": "^4.3.1",
|
|
52
53
|
"livereload": "^0.9.3",
|
|
53
54
|
"postcss": "^8.4.27",
|
|
54
|
-
"postcss-nested": "^
|
|
55
|
+
"postcss-nested": "^7.0.2",
|
|
55
56
|
"postcss-scss": "^4.0.6",
|
|
56
57
|
"postcss-simple-vars": "^7.0.1",
|
|
57
|
-
"rimraf": "^
|
|
58
|
-
"rollup": "^
|
|
59
|
-
"rollup-plugin-dts": "^
|
|
58
|
+
"rimraf": "^6.0.1",
|
|
59
|
+
"rollup": "^4.39.0",
|
|
60
|
+
"rollup-plugin-dts": "^6.2.1",
|
|
60
61
|
"rollup-plugin-includepaths": "^0.2.4",
|
|
61
62
|
"rollup-plugin-postcss": "^4.0.2",
|
|
62
63
|
"rollup-watch": "^4.3.1",
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
import React from 'react';
|
|
1
|
+
import {ReactNode} from 'react';
|
|
3
2
|
import styles from "../../style.module.css"
|
|
4
3
|
|
|
5
|
-
export default function AccessDenied
|
|
6
|
-
|
|
7
|
-
return (
|
|
8
|
-
<div>
|
|
9
|
-
<div className={styles.notfound}>
|
|
10
|
-
<div className={styles.notfound_404}>
|
|
11
|
-
<h3>Oops! Access not granted</h3>
|
|
12
|
-
{children}
|
|
13
|
-
<h1 style={{
|
|
14
|
-
position: "absolute",
|
|
15
|
-
left: "50%",
|
|
16
|
-
top: "50%",
|
|
17
|
-
transform: "translate(-50%, -50%)",
|
|
18
|
-
fontSize: "252px",
|
|
19
|
-
fontWeight: 900,
|
|
20
|
-
textTransform: "uppercase",
|
|
21
|
-
letterSpacing: "-40px",
|
|
22
|
-
marginLeft: "-20px",
|
|
23
|
-
marginTop: "20px"
|
|
4
|
+
export default function AccessDenied({children}: { children?: ReactNode }) {
|
|
24
5
|
|
|
25
|
-
|
|
26
|
-
|
|
6
|
+
return (
|
|
7
|
+
<div>
|
|
8
|
+
<div className={styles.notfound}>
|
|
9
|
+
<div className={styles.notfound_404}>
|
|
10
|
+
<h3>Oops! Access not granted</h3>
|
|
11
|
+
{children}
|
|
12
|
+
<h1 style={{
|
|
13
|
+
position: "absolute",
|
|
14
|
+
left: "50%",
|
|
15
|
+
top: "50%",
|
|
16
|
+
transform: "translate(-50%, -50%)",
|
|
17
|
+
fontSize: "252px",
|
|
18
|
+
fontWeight: 900,
|
|
19
|
+
textTransform: "uppercase",
|
|
20
|
+
letterSpacing: "-40px",
|
|
21
|
+
marginLeft: "-20px",
|
|
22
|
+
marginTop: "20px"
|
|
23
|
+
}}>
|
|
24
|
+
<span>4</span><span>0</span><span>3</span>
|
|
25
|
+
</h1>
|
|
27
26
|
</div>
|
|
28
27
|
</div>
|
|
29
|
-
|
|
28
|
+
</div>
|
|
29
|
+
);
|
|
30
30
|
|
|
31
31
|
}
|
|
32
32
|
|