@fixefy/fixefy-ui-components 0.3.91 → 0.3.93

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,8 @@
1
1
  import React from 'react';
2
- export declare const FxGridEmptyState: ({ assetUrl }: {
2
+ export declare const FxGridEmptyState: ({ assetUrl, mainIcon, message, mainIconWidth, mainIconHeight }: {
3
3
  assetUrl?: string;
4
+ mainIcon?: string;
5
+ message?: string;
6
+ mainIconWidth?: number;
7
+ mainIconHeight?: number;
4
8
  }) => React.JSX.Element;
@@ -18,7 +18,10 @@ function _interop_require_default(obj) {
18
18
  default: obj
19
19
  };
20
20
  }
21
- const FxGridEmptyState = ({ assetUrl })=>{
21
+ const FxGridEmptyState = ({ assetUrl, mainIcon, message, mainIconWidth, mainIconHeight })=>{
22
+ const icon = mainIcon || 'table/table_no_results.svg';
23
+ const iconWidth = mainIconWidth || 279;
24
+ const iconHeight = mainIconHeight || 250;
22
25
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
23
26
  sx: {
24
27
  width: '100%',
@@ -44,9 +47,9 @@ const FxGridEmptyState = ({ assetUrl })=>{
44
47
  },
45
48
  children: [
46
49
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
47
- width: 279,
48
- height: 250,
49
- icon: 'table/table_no_results.svg',
50
+ width: iconWidth,
51
+ height: iconHeight,
52
+ icon: icon,
50
53
  assetUrl: assetUrl
51
54
  }),
52
55
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
@@ -63,9 +66,10 @@ const FxGridEmptyState = ({ assetUrl })=>{
63
66
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
64
67
  display: 'flex',
65
68
  flexDirection: 'column',
69
+ mt: 3,
66
70
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
67
71
  variant: "h5",
68
- children: "There is currently no data to display."
72
+ children: message || 'There is currently no data to display.'
69
73
  })
70
74
  })
71
75
  })
package/package.json CHANGED
@@ -72,5 +72,5 @@
72
72
  "require": "./dist/index.js"
73
73
  }
74
74
  },
75
- "version": "0.3.91"
75
+ "version": "0.3.93"
76
76
  }