@transferwise/components 46.41.0 → 46.42.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 +8 -11
- package/build/index.js.map +1 -1
- package/build/index.mjs +8 -11
- package/build/index.mjs.map +1 -1
- package/build/main.css +65 -12
- package/build/styles/main.css +65 -12
- package/build/styles/uploadInput/UploadInput.css +18 -1
- package/build/styles/uploadInput/uploadButton/UploadButton.css +4 -0
- package/build/styles/uploadInput/uploadItem/UploadItem.css +43 -11
- package/build/types/inlineAlert/InlineAlert.d.ts +2 -2
- package/build/types/inlineAlert/InlineAlert.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/inlineAlert/InlineAlert.tsx +5 -7
- package/src/main.css +65 -12
- package/src/uploadInput/UploadInput.css +18 -1
- package/src/uploadInput/UploadInput.less +17 -1
- package/src/uploadInput/UploadInput.tests.story.tsx +13 -2
- package/src/uploadInput/uploadButton/UploadButton.css +4 -0
- package/src/uploadInput/uploadButton/UploadButton.less +5 -0
- package/src/uploadInput/uploadItem/UploadItem.css +43 -11
- package/src/uploadInput/uploadItem/UploadItem.less +61 -17
package/build/index.mjs
CHANGED
|
@@ -4837,20 +4837,17 @@ function InlineAlert({
|
|
|
4837
4837
|
className,
|
|
4838
4838
|
children
|
|
4839
4839
|
}) {
|
|
4840
|
-
return /*#__PURE__*/
|
|
4840
|
+
return /*#__PURE__*/jsxs("div", {
|
|
4841
4841
|
role: "alert",
|
|
4842
4842
|
id: id,
|
|
4843
4843
|
className: classNames('alert alert-detach', `alert-${type === Sentiment.NEGATIVE || type === Sentiment.ERROR ? 'danger' : type}`, className),
|
|
4844
|
-
children: /*#__PURE__*/
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
children: children
|
|
4852
|
-
})]
|
|
4853
|
-
})
|
|
4844
|
+
children: [type !== Sentiment.NEUTRAL && type !== Sentiment.PENDING && /*#__PURE__*/jsx(StatusIcon, {
|
|
4845
|
+
sentiment: type,
|
|
4846
|
+
size: Size.SMALL
|
|
4847
|
+
}), /*#__PURE__*/jsx("div", {
|
|
4848
|
+
className: "np-text-body-default",
|
|
4849
|
+
children: children
|
|
4850
|
+
})]
|
|
4854
4851
|
});
|
|
4855
4852
|
}
|
|
4856
4853
|
|