@fixefy/fixefy-ui-components 0.3.43 → 0.3.45

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
- export declare const FxIcon: ({ icon, width, height, onClick, variant, fontSize, background, initials, }: {
1
+ export declare const FxIcon: ({ icon, width, height, onClick, variant, fontSize, background, initials, path }: {
2
2
  icon: string;
3
3
  width: number;
4
4
  height: number;
@@ -7,4 +7,5 @@ export declare const FxIcon: ({ icon, width, height, onClick, variant, fontSize,
7
7
  fontSize?: number;
8
8
  background?: string;
9
9
  initials?: string;
10
+ path?: string;
10
11
  }) => JSX.Element;
@@ -83,16 +83,16 @@ const PublicIcon = ({ icon, width, height, onClick, variant, fontSize, backgroun
83
83
  height: height,
84
84
  loader: ()=>{
85
85
  if (path) {
86
- //@ts-ignore
87
- return (0, _fixefyuiutils.imageLoader)({
88
- src: icon
89
- });
90
- } else {
91
86
  return (0, _fixefyuiutils.imageLoader)({
92
87
  src: icon,
93
88
  //@ts-ignore
94
89
  path
95
90
  });
91
+ } else {
92
+ //@ts-ignore
93
+ return (0, _fixefyuiutils.imageLoader)({
94
+ src: icon
95
+ });
96
96
  }
97
97
  },
98
98
  src: icon,
@@ -101,7 +101,7 @@ const PublicIcon = ({ icon, width, height, onClick, variant, fontSize, backgroun
101
101
  onClick: onClick
102
102
  });
103
103
  };
104
- const FxIcon = ({ icon, width, height, onClick, variant, fontSize, background, initials })=>{
104
+ const FxIcon = ({ icon, width, height, onClick, variant, fontSize, background, initials, path })=>{
105
105
  if (!icon) throw Error('Provide a property `icon`');
106
106
  return parseIconFromLibrary({
107
107
  icon,
@@ -111,10 +111,11 @@ const FxIcon = ({ icon, width, height, onClick, variant, fontSize, background, i
111
111
  variant,
112
112
  fontSize,
113
113
  background,
114
- initials
114
+ initials,
115
+ path
115
116
  });
116
117
  };
117
- const parseIconFromLibrary = ({ icon, width, height, onClick, variant, fontSize, background, initials })=>{
118
+ const parseIconFromLibrary = ({ icon, width, height, onClick, variant, fontSize, background, initials, path })=>{
118
119
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(PublicIcon, {
119
120
  icon: icon,
120
121
  width: width,
@@ -123,6 +124,7 @@ const parseIconFromLibrary = ({ icon, width, height, onClick, variant, fontSize,
123
124
  variant: variant,
124
125
  fontSize: fontSize,
125
126
  background: background,
126
- initials: initials
127
+ initials: initials,
128
+ path: path
127
129
  });
128
130
  };
package/package.json CHANGED
@@ -68,5 +68,5 @@
68
68
  "require": "./dist/index.js"
69
69
  }
70
70
  },
71
- "version": "0.3.43"
71
+ "version": "0.3.45"
72
72
  }