@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.
@@ -1,4 +1,4 @@
1
- import { Box, Button, Paper, Stack, Typography } from "@mui/material";
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
- sx: {
24
- backgroundColor: 'red'
25
- },
26
- children: [/*#__PURE__*/_jsxs(Paper, {
27
- variant: "outlined",
28
- square: false,
29
- sx: {
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
- }), /*#__PURE__*/_jsx(Typography, {
45
- variant: "h1",
46
- fontSize: 30,
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: "body2",
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";
@@ -13,7 +13,7 @@ const globalStyles = {
13
13
  '--secondary-menu-zindex': 1101,
14
14
  '--secondary-menu-toggler-zindex': 1102
15
15
  },
16
- 'html, body': {
16
+ 'html, body, #root': {
17
17
  margin: 0,
18
18
  height: '100%'
19
19
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethru/ui",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "main": "base/index.js",
5
5
  "files": [
6
6
  "/base"