@fixefy/fixefy-ui-components 0.3.96 → 0.3.98

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.
@@ -36,4 +36,5 @@ export type AsyncDropdownPropsType = {
36
36
  _id: any;
37
37
  logo_folder_name?: string;
38
38
  logo_placeholder?: string;
39
+ assetUrl?: string;
39
40
  };
@@ -11,5 +11,6 @@ export interface ChipPropsType {
11
11
  onClick?: (e: any) => void;
12
12
  onDelete?: (e: any) => void;
13
13
  icon?: string;
14
+ assetUrl?: string;
14
15
  }
15
16
  export declare const FxChip: (props: ChipPropsType) => React.JSX.Element;
@@ -1,4 +1,8 @@
1
1
  import React from 'react';
2
- export declare const FxGridEmptyState: ({ assetUrl }: {
2
+ export declare const FxGridEmptyState: ({ assetUrl, message, mainIcon, mainIconHeight, mainIconWidth }: {
3
3
  assetUrl?: string;
4
+ message?: string;
5
+ mainIcon?: string;
6
+ mainIconHeight?: number;
7
+ mainIconWidth?: number;
4
8
  }) => React.JSX.Element;
@@ -18,7 +18,7 @@ function _interop_require_default(obj) {
18
18
  default: obj
19
19
  };
20
20
  }
21
- const FxGridEmptyState = ({ assetUrl })=>{
21
+ const FxGridEmptyState = ({ assetUrl, message = 'There is currently no data to display.', mainIcon = 'table/table_no_results.svg', mainIconHeight = 250, mainIconWidth = 279 })=>{
22
22
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
23
23
  sx: {
24
24
  width: '100%',
@@ -44,9 +44,9 @@ const FxGridEmptyState = ({ assetUrl })=>{
44
44
  },
45
45
  children: [
46
46
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
47
- width: 279,
48
- height: 250,
49
- icon: 'table/table_no_results.svg',
47
+ width: mainIconWidth,
48
+ height: mainIconHeight,
49
+ icon: mainIcon,
50
50
  assetUrl: assetUrl
51
51
  }),
52
52
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
@@ -65,7 +65,7 @@ const FxGridEmptyState = ({ assetUrl })=>{
65
65
  flexDirection: 'column',
66
66
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
67
67
  variant: "h5",
68
- children: "There is currently no data to display."
68
+ children: message
69
69
  })
70
70
  })
71
71
  })
@@ -30,5 +30,6 @@ export type AsyncDropdownPropsType = {
30
30
  defaultValue?: any;
31
31
  data: string[];
32
32
  _id: string;
33
+ assetUrl?: string;
33
34
  };
34
35
  export declare const FxObjStaticDropdown: (props: AsyncDropdownPropsType) => React.JSX.Element;
@@ -20,5 +20,6 @@ export type StaticDropdownPropsType = {
20
20
  placeholder?: string;
21
21
  data: string[];
22
22
  rootStylesOverride?: any;
23
+ assetUrl?: string;
23
24
  };
24
25
  export declare const FxStrStaticDropdown: React.ForwardRefExoticComponent<StaticDropdownPropsType & React.RefAttributes<unknown>>;
package/package.json CHANGED
@@ -72,5 +72,5 @@
72
72
  "require": "./dist/index.js"
73
73
  }
74
74
  },
75
- "version": "0.3.96"
75
+ "version": "0.3.98"
76
76
  }