@fixefy/fixefy-ui-components 0.3.68 → 0.3.70

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,6 +1,9 @@
1
1
  import React from 'react';
2
- export declare const FxGridError: ({ header, message, image }: {
2
+ export declare const FxGridError: ({ header, message, image, textSx, imageHeight, imageWidth }: {
3
3
  header?: string;
4
4
  message?: string;
5
5
  image?: string;
6
+ textSx?: any;
7
+ imageHeight?: number;
8
+ imageWidth?: number;
6
9
  }) => React.JSX.Element;
@@ -17,7 +17,7 @@ function _interop_require_default(obj) {
17
17
  default: obj
18
18
  };
19
19
  }
20
- const FxGridError = ({ header, message, image })=>{
20
+ const FxGridError = ({ header, message, image, textSx, imageHeight, imageWidth })=>{
21
21
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
22
22
  sx: {
23
23
  width: '100%',
@@ -42,11 +42,11 @@ const FxGridError = ({ header, message, image })=>{
42
42
  },
43
43
  children: [
44
44
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
45
- width: 345,
46
- height: 412,
45
+ width: imageWidth || 345,
46
+ height: imageHeight || 412,
47
47
  icon: image || 'general/bot_with_bubble.svg'
48
48
  }),
49
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
49
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
50
50
  sx: {
51
51
  width: '100%',
52
52
  height: '100%',
@@ -57,16 +57,24 @@ const FxGridError = ({ header, message, image })=>{
57
57
  flexDirection: 'column',
58
58
  margin: 'auto'
59
59
  },
60
- children: [
61
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
62
- variant: "h5",
63
- children: header || 'Something went wrong on our end.'
64
- }),
65
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
66
- variant: "subtitle2",
67
- children: message || 'Please try again later.'
68
- })
69
- ]
60
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
61
+ display: 'flex',
62
+ flexDirection: 'column',
63
+ sx: textSx || {
64
+ mr: '160px',
65
+ marginTop: '40px'
66
+ },
67
+ children: [
68
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
69
+ variant: "h5",
70
+ children: header || 'Something went wrong on our end.'
71
+ }),
72
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
73
+ variant: "subtitle2",
74
+ children: message || 'Please try again later.'
75
+ })
76
+ ]
77
+ })
70
78
  })
71
79
  ]
72
80
  }),
package/package.json CHANGED
@@ -69,5 +69,5 @@
69
69
  "require": "./dist/index.js"
70
70
  }
71
71
  },
72
- "version": "0.3.68"
72
+ "version": "0.3.70"
73
73
  }