@mailstep/design-system 0.7.74-beta.2 → 0.7.74-beta.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.7.74-beta.2",
3
+ "version": "0.7.74-beta.3",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -264,11 +264,8 @@ var Icon = function (_a) {
264
264
  return [iconPrefixMap[style], icon];
265
265
  }, [icon, style, namedIcon]);
266
266
  var flipProp = (namedIcon && Array.isArray(namedIcon) && namedIcon[1]) || undefined;
267
- if (icons[icon]) {
268
- var IconComponent = icons[icon];
269
- return (_jsx(FaIconSizing, { size: size, className: className !== null && className !== void 0 ? className : '', "$colorSecondary": colorSecondary, "$fixedWidth": fixedWidth, children: _jsx(IconComponent, { fill: colorFill, stroke: colorStroke }) }));
270
- }
271
- return (_jsx(FaIconSizing, { size: size, className: className !== null && className !== void 0 ? className : '', "$colorSecondary": colorSecondary, "$fixedWidth": fixedWidth, children: _jsx(FontAwesomeIcon, { color: colorFill, flip: flipProp, icon: iconProp, className: "faIcon ".concat(fixedWidth ? 'fa-fw' : '', " ").concat(spinning ? 'fa-spin' : '') }) }));
267
+ var IconComponent = icons[icon];
268
+ return (_jsx(FaIconSizing, { size: size, className: className !== null && className !== void 0 ? className : '', "$colorSecondary": colorSecondary, "$fixedWidth": fixedWidth, children: IconComponent ? _jsx(IconComponent, { fill: colorFill, stroke: colorStroke }) : (_jsx(FontAwesomeIcon, { color: colorFill, flip: flipProp, icon: iconProp, className: "faIcon ".concat(fixedWidth ? 'fa-fw' : '', " ").concat(spinning ? 'fa-spin' : '') })) }));
272
269
  };
273
270
  export default Icon;
274
271
  var templateObject_1;