@nethru/ui 2.0.11 → 2.0.12
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/base/error/Error.js +22 -34
- package/base/index.js +1 -0
- package/base/styles/globalStyles.js +1 -1
- package/package.json +1 -1
package/base/error/Error.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Box, Button,
|
|
1
|
+
import { Box, Button, Stack, Typography } from "@mui/material";
|
|
2
2
|
import CampaignIcon from '@mui/icons-material/Campaign';
|
|
3
3
|
import { useNavigate } from "react-router-dom";
|
|
4
4
|
import { useCallback } from "react";
|
|
@@ -20,48 +20,36 @@ export default function Error({
|
|
|
20
20
|
height: "100%",
|
|
21
21
|
justifyContent: "center",
|
|
22
22
|
alignItems: "center",
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
padding: 3,
|
|
31
|
-
width: 568,
|
|
32
|
-
height: 280
|
|
33
|
-
},
|
|
34
|
-
children: [/*#__PURE__*/_jsx(Box, {
|
|
35
|
-
align: "center",
|
|
36
|
-
children: /*#__PURE__*/_jsx(CampaignIcon, {
|
|
37
|
-
sx: {
|
|
38
|
-
color: '#777',
|
|
39
|
-
'&': {
|
|
40
|
-
fontSize: 50
|
|
41
|
-
}
|
|
23
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
24
|
+
align: "center",
|
|
25
|
+
children: /*#__PURE__*/_jsx(CampaignIcon, {
|
|
26
|
+
sx: {
|
|
27
|
+
color: '#777',
|
|
28
|
+
'&': {
|
|
29
|
+
fontSize: 50
|
|
42
30
|
}
|
|
43
|
-
}
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
}), /*#__PURE__*/_jsxs(Stack, {
|
|
34
|
+
width: 300,
|
|
35
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
36
|
+
variant: "headline1",
|
|
47
37
|
sx: {
|
|
48
38
|
mt: 3,
|
|
49
39
|
mb: 3
|
|
50
40
|
},
|
|
51
41
|
children: title
|
|
52
42
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
53
|
-
variant: "
|
|
54
|
-
fontSize: 15,
|
|
43
|
+
variant: "bodyXlMedium",
|
|
55
44
|
children: body
|
|
56
|
-
}), /*#__PURE__*/_jsx(Box, {
|
|
57
|
-
align: "center",
|
|
58
|
-
mt: 6,
|
|
59
|
-
children: /*#__PURE__*/_jsx(Button, {
|
|
60
|
-
size: "large",
|
|
61
|
-
onClick: handleClick,
|
|
62
|
-
children: buttonText
|
|
63
|
-
})
|
|
64
45
|
})]
|
|
46
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
47
|
+
align: "center",
|
|
48
|
+
mt: 10,
|
|
49
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
50
|
+
onClick: handleClick,
|
|
51
|
+
children: buttonText
|
|
52
|
+
})
|
|
65
53
|
}), footer]
|
|
66
54
|
});
|
|
67
55
|
}
|
package/base/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export { colors };
|
|
|
7
7
|
export { borderRadius, shadow, globalStyles, createTheme };
|
|
8
8
|
export { default as AccordionSummary } from "./AccordionSummary";
|
|
9
9
|
export { default as AddableFormList } from "./AddableFormList";
|
|
10
|
+
export { default as Alert } from "./Alert";
|
|
10
11
|
export { default as AlertDialog } from "./dialog/AlertDialog";
|
|
11
12
|
export { default as AppBar } from "./frame/AppBar";
|
|
12
13
|
export { default as Brand } from "./frame/Brand";
|