@transferwise/components 0.0.0-experimental-aad35a3 → 0.0.0-experimental-ecf13ed
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 +5 -4
- package/build/index.js.map +1 -1
- package/build/index.mjs +5 -4
- package/build/index.mjs.map +1 -1
- package/build/main.css +0 -16
- package/build/styles/logo/Logo.css +0 -16
- package/build/styles/main.css +0 -16
- package/build/types/logo/Logo.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/logo/Logo.css +0 -16
- package/src/logo/Logo.js +7 -2
- package/src/logo/Logo.less +0 -16
- package/src/logo/__snapshots__/Logo.spec.js.snap +8 -104
- package/src/main.css +0 -16
package/build/index.js
CHANGED
|
@@ -4582,14 +4582,15 @@ const Logo = ({
|
|
|
4582
4582
|
}) => {
|
|
4583
4583
|
const LogoSm = svgPaths[`WISE_FLAG${type === exports.LogoType.WISE_PLATFORM ? '_PLATFORM' : ''}${inverse ? '_INVERSE' : ''}`];
|
|
4584
4584
|
const LogoMd = svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];
|
|
4585
|
+
const screenMd = useScreenSize(exports.Breakpoint.MEDIUM);
|
|
4585
4586
|
return /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
4586
4587
|
"aria-label": type === exports.LogoType.WISE ? 'Wise' : 'Wise Business' | type === exports.LogoType.WISE_PLATFORM ? 'Wise Platform' : 'Wise Business',
|
|
4587
4588
|
role: "img",
|
|
4588
4589
|
className: classNames__default.default(className, 'np-logo'),
|
|
4589
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(LogoSm, {
|
|
4590
|
-
className: "np-logo-svg
|
|
4591
|
-
}), /*#__PURE__*/jsxRuntime.jsx(LogoMd, {
|
|
4592
|
-
className: "np-logo-svg
|
|
4590
|
+
children: [!screenMd && /*#__PURE__*/jsxRuntime.jsx(LogoSm, {
|
|
4591
|
+
className: "np-logo-svg"
|
|
4592
|
+
}), screenMd && /*#__PURE__*/jsxRuntime.jsx(LogoMd, {
|
|
4593
|
+
className: "np-logo-svg"
|
|
4593
4594
|
})]
|
|
4594
4595
|
});
|
|
4595
4596
|
};
|