@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.js +2 -1
- package/build/index.js.map +1 -1
- package/build/index.mjs +2 -1
- package/build/index.mjs.map +1 -1
- package/build/types/definitionList/DefinitionList.d.ts +2 -2
- package/build/types/definitionList/DefinitionList.d.ts.map +1 -1
- package/build/types/definitionList/index.d.ts +1 -1
- package/build/types/definitionList/index.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/inlineAlert/InlineAlert.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/definitionList/DefinitionList.tsx +6 -3
- package/src/definitionList/index.ts +1 -1
- package/src/index.ts +1 -1
- package/src/inlineAlert/InlineAlert.spec.tsx +7 -0
- package/src/inlineAlert/InlineAlert.tsx +9 -3
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: [
|
|
4850
|
+
children: [iconTypes.has(type) && /*#__PURE__*/jsx(StatusIcon, {
|
|
4850
4851
|
sentiment: type,
|
|
4851
4852
|
size: Size.SMALL
|
|
4852
4853
|
}), /*#__PURE__*/jsx("div", {
|