@carbonorm/carbonreact 4.0.18 → 4.0.21
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 +460 -1382
- 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 +446 -1368
- package/dist/index.esm.js.map +1 -1
- package/package.json +26 -27
- package/src/CarbonReact.tsx +1 -1
- 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,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbonorm/carbonreact",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.21",
|
|
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
10
|
"dependencies": {
|
|
11
|
-
"@carbonorm/carbonnode": "^2.0.
|
|
11
|
+
"@carbonorm/carbonnode": "^2.0.34",
|
|
12
12
|
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
13
13
|
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
14
14
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
15
|
-
"@testing-library/react": "^
|
|
15
|
+
"@testing-library/react": "^16.3.0",
|
|
16
16
|
"ansi-colors": "^4.1.3",
|
|
17
|
-
"axios": "^1.4
|
|
17
|
+
"axios": "^1.8.4",
|
|
18
18
|
"bootstrap": "^5.3.1",
|
|
19
19
|
"classnames": "^2.3.2",
|
|
20
20
|
"heic2any": "^0.0.4",
|
|
21
|
-
"jest": "^29.
|
|
22
|
-
"jest-config": "^29.
|
|
23
|
-
"qs": "^6.
|
|
24
|
-
"react": "^
|
|
25
|
-
"react-dom": "^
|
|
26
|
-
"react-loading-skeleton": "^3.
|
|
21
|
+
"jest": "^29.7.0",
|
|
22
|
+
"jest-config": "^29.7.0",
|
|
23
|
+
"qs": "^6.14.0",
|
|
24
|
+
"react": "^19.1.0",
|
|
25
|
+
"react-dom": "^19.1.0",
|
|
26
|
+
"react-loading-skeleton": "^3.5.0",
|
|
27
27
|
"react-outside-click-handler": "^1.3.0",
|
|
28
|
-
"react-router-dom": "^
|
|
29
|
-
"react-toastify": "^
|
|
30
|
-
"typed-css-modules": "^0.
|
|
31
|
-
"typed-scss-modules": "^
|
|
28
|
+
"react-router-dom": "^7.5.0",
|
|
29
|
+
"react-toastify": "^11.0.5",
|
|
30
|
+
"typed-css-modules": "^0.9.1",
|
|
31
|
+
"typed-scss-modules": "^8.1.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@carbonorm/postcss-modules": "^6.0.2",
|
|
35
35
|
"@carbonorm/rollup-plugin-postcss": "^3.0.0",
|
|
36
36
|
"@drop-in-gaming/barrelsby": "^0.0.2",
|
|
37
|
-
"@
|
|
38
|
-
"@rollup/plugin-
|
|
39
|
-
"@rollup/plugin-
|
|
40
|
-
"@rollup/plugin-typescript": "^11.1.2",
|
|
37
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
38
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
39
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
41
40
|
"@types/jest": "^29.5.4",
|
|
42
|
-
"@types/ms": "^
|
|
43
|
-
"@types/node": "^
|
|
44
|
-
"@types/react": "^
|
|
45
|
-
"@types/react-dom": "^
|
|
46
|
-
"@types/styled-components": "5.1.
|
|
41
|
+
"@types/ms": "^2.1.0",
|
|
42
|
+
"@types/node": "^22",
|
|
43
|
+
"@types/react": "^19.1.0",
|
|
44
|
+
"@types/react-dom": "^19.1.2",
|
|
45
|
+
"@types/styled-components": "5.1.34",
|
|
47
46
|
"autoprefixer": "^10.4.14",
|
|
48
47
|
"bootstrap": "^5.3.1",
|
|
49
48
|
"classnames": "^2.3.2",
|
|
@@ -51,12 +50,12 @@
|
|
|
51
50
|
"deepmerge": "^4.3.1",
|
|
52
51
|
"livereload": "^0.9.3",
|
|
53
52
|
"postcss": "^8.4.27",
|
|
54
|
-
"postcss-nested": "^
|
|
53
|
+
"postcss-nested": "^7.0.2",
|
|
55
54
|
"postcss-scss": "^4.0.6",
|
|
56
55
|
"postcss-simple-vars": "^7.0.1",
|
|
57
|
-
"rimraf": "^
|
|
58
|
-
"rollup": "^
|
|
59
|
-
"rollup-plugin-dts": "^
|
|
56
|
+
"rimraf": "^6.0.1",
|
|
57
|
+
"rollup": "^4.39.0",
|
|
58
|
+
"rollup-plugin-dts": "^6.2.1",
|
|
60
59
|
"rollup-plugin-includepaths": "^0.2.4",
|
|
61
60
|
"rollup-plugin-postcss": "^4.0.2",
|
|
62
61
|
"rollup-watch": "^4.3.1",
|
package/src/CarbonReact.tsx
CHANGED
|
@@ -168,7 +168,7 @@ abstract class CarbonReact<P = {}, S extends iCarbonReactState = iCarbonReactSta
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
reactRouterContext(children: ReactElement) {
|
|
171
|
-
switch (this.props.routerType) {
|
|
171
|
+
switch (this.props.routerType ?? eRouterType.BrowserRouter) {
|
|
172
172
|
case eRouterType.BrowserRouter:
|
|
173
173
|
return <BrowserRouter>{children}</BrowserRouter>
|
|
174
174
|
case eRouterType.MemoryRouter:
|
|
@@ -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
|
|