@transferwise/components 46.44.0 → 46.45.0

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/build/index.mjs CHANGED
@@ -4836,6 +4836,7 @@ const Emphasis = ({
4836
4836
  }) : null;
4837
4837
  };
4838
4838
 
4839
+ const iconTypes = new Set([Sentiment.NEGATIVE, Sentiment.ERROR, Sentiment.POSITIVE, Sentiment.SUCCESS, Sentiment.WARNING]);
4839
4840
  function InlineAlert({
4840
4841
  id,
4841
4842
  type = 'neutral',
@@ -4846,7 +4847,7 @@ function InlineAlert({
4846
4847
  role: "alert",
4847
4848
  id: id,
4848
4849
  className: classNames('alert alert-detach', `alert-${type === Sentiment.NEGATIVE || type === Sentiment.ERROR ? 'danger' : type}`, className),
4849
- children: [type !== Sentiment.NEUTRAL && type !== Sentiment.PENDING && /*#__PURE__*/jsx(StatusIcon, {
4850
+ children: [iconTypes.has(type) && /*#__PURE__*/jsx(StatusIcon, {
4850
4851
  sentiment: type,
4851
4852
  size: Size.SMALL
4852
4853
  }), /*#__PURE__*/jsx("div", {