@transferwise/components 0.0.0-experimental-6cef500 → 0.0.0-experimental-cb357a8
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.esm.js +3 -18
- package/build/index.esm.js.map +1 -1
- package/build/index.js +3 -18
- package/build/index.js.map +1 -1
- package/build/types/logo/Logo.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/logo/Logo.js +3 -21
- package/src/logo/__snapshots__/Logo.spec.js.snap +78 -30
package/build/index.esm.js
CHANGED
|
@@ -5293,14 +5293,6 @@ LogoWise.defaultProps = {
|
|
|
5293
5293
|
height: "24",
|
|
5294
5294
|
fill: "none"
|
|
5295
5295
|
};
|
|
5296
|
-
const baseUrl = 'https://wise.com/public-resources/assets/logos/wise/';
|
|
5297
|
-
const logoPaths = {
|
|
5298
|
-
WISE: 'brand_logo.svg',
|
|
5299
|
-
WISE_BUSINESS: 'brand_logo_business.svg',
|
|
5300
|
-
WISE_INVERSE: 'brand_logo_inverse.svg',
|
|
5301
|
-
WISE_BUSINESS_INVERSE: 'brand_logo_business_inverse.svg',
|
|
5302
|
-
WISE_FLAG: 'brand_flag.svg'
|
|
5303
|
-
};
|
|
5304
5296
|
const svgPaths = {
|
|
5305
5297
|
WISE: LogoWise,
|
|
5306
5298
|
WISE_BUSINESS: LogoWise,
|
|
@@ -5314,21 +5306,14 @@ const Logo = ({
|
|
|
5314
5306
|
inverse,
|
|
5315
5307
|
type
|
|
5316
5308
|
}) => {
|
|
5317
|
-
const {
|
|
5318
|
-
isModern
|
|
5319
|
-
} = useTheme();
|
|
5320
5309
|
const [clientWidth] = useClientWidth({
|
|
5321
5310
|
ref: isServerSide() ? undefined : window
|
|
5322
5311
|
});
|
|
5323
5312
|
const isSmall = clientWidth < Breakpoint.SMALL;
|
|
5324
|
-
const path = isSmall ? logoPaths['WISE_FLAG'] : logoPaths[`${type}${inverse ? '_INVERSE' : ''}`];
|
|
5325
5313
|
const LogoSvg = isSmall ? svgPaths[`WISE_FLAG${inverse ? '_INVERSE' : ''}`] : svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];
|
|
5326
|
-
return
|
|
5327
|
-
className:
|
|
5328
|
-
|
|
5329
|
-
className: classNames('np-logo', className),
|
|
5330
|
-
alt: type === LogoType.WISE ? 'Wise' : 'Wise business',
|
|
5331
|
-
src: `${baseUrl}${path}`
|
|
5314
|
+
return /*#__PURE__*/jsx(LogoSvg, {
|
|
5315
|
+
className: classNames('np-logo-svg', className),
|
|
5316
|
+
alt: type === LogoType.WISE ? 'Wise' : 'Wise business'
|
|
5332
5317
|
});
|
|
5333
5318
|
};
|
|
5334
5319
|
Logo.propTypes = {
|