@fixefy/fixefy-ui-components 0.2.34 → 0.2.35

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,7 @@
1
- export declare const FxIcon: ({ icon, width, height, onClick, }: {
1
+ export declare const FxIcon: ({ icon, width, height, onClick, variant, }: {
2
2
  icon: string;
3
3
  width: number;
4
4
  height: number;
5
5
  onClick?: () => void;
6
+ variant?: "circular" | "rounded" | "square";
6
7
  }) => JSX.Element;
@@ -83,21 +83,23 @@ const PublicIcon = ({ icon, width, height, onClick, variant })=>{
83
83
  onClick: onClick
84
84
  });
85
85
  };
86
- const FxIcon = ({ icon, width, height, onClick })=>{
86
+ const FxIcon = ({ icon, width, height, onClick, variant })=>{
87
87
  if (!icon) throw Error('Provide a property `icon`');
88
88
  return parseIconFromLibrary({
89
89
  icon,
90
90
  width,
91
91
  height,
92
- onClick
92
+ onClick,
93
+ variant
93
94
  });
94
95
  };
95
- const parseIconFromLibrary = ({ icon, width, height, onClick })=>{
96
+ const parseIconFromLibrary = ({ icon, width, height, onClick, variant })=>{
96
97
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(PublicIcon, {
97
98
  icon: icon,
98
99
  width: width,
99
100
  height: height,
100
- onClick: onClick
101
+ onClick: onClick,
102
+ variant: variant
101
103
  });
102
104
  };
103
105
  const imageLoader = ({ src })=>{
package/package.json CHANGED
@@ -65,5 +65,5 @@
65
65
  "require": "./dist/index.js"
66
66
  }
67
67
  },
68
- "version": "0.2.34"
68
+ "version": "0.2.35"
69
69
  }