@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.js
CHANGED
|
@@ -5326,14 +5326,6 @@ LogoWise.defaultProps = {
|
|
|
5326
5326
|
height: "24",
|
|
5327
5327
|
fill: "none"
|
|
5328
5328
|
};
|
|
5329
|
-
const baseUrl = 'https://wise.com/public-resources/assets/logos/wise/';
|
|
5330
|
-
const logoPaths = {
|
|
5331
|
-
WISE: 'brand_logo.svg',
|
|
5332
|
-
WISE_BUSINESS: 'brand_logo_business.svg',
|
|
5333
|
-
WISE_INVERSE: 'brand_logo_inverse.svg',
|
|
5334
|
-
WISE_BUSINESS_INVERSE: 'brand_logo_business_inverse.svg',
|
|
5335
|
-
WISE_FLAG: 'brand_flag.svg'
|
|
5336
|
-
};
|
|
5337
5329
|
const svgPaths = {
|
|
5338
5330
|
WISE: LogoWise,
|
|
5339
5331
|
WISE_BUSINESS: LogoWise,
|
|
@@ -5347,21 +5339,14 @@ const Logo = ({
|
|
|
5347
5339
|
inverse,
|
|
5348
5340
|
type
|
|
5349
5341
|
}) => {
|
|
5350
|
-
const {
|
|
5351
|
-
isModern
|
|
5352
|
-
} = componentsTheming.useTheme();
|
|
5353
5342
|
const [clientWidth] = useClientWidth({
|
|
5354
5343
|
ref: isServerSide() ? undefined : window
|
|
5355
5344
|
});
|
|
5356
5345
|
const isSmall = clientWidth < exports.Breakpoint.SMALL;
|
|
5357
|
-
const path = isSmall ? logoPaths['WISE_FLAG'] : logoPaths[`${type}${inverse ? '_INVERSE' : ''}`];
|
|
5358
5346
|
const LogoSvg = isSmall ? svgPaths[`WISE_FLAG${inverse ? '_INVERSE' : ''}`] : svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];
|
|
5359
|
-
return
|
|
5360
|
-
className:
|
|
5361
|
-
|
|
5362
|
-
className: classNames__default.default('np-logo', className),
|
|
5363
|
-
alt: type === exports.LogoType.WISE ? 'Wise' : 'Wise business',
|
|
5364
|
-
src: `${baseUrl}${path}`
|
|
5347
|
+
return /*#__PURE__*/jsxRuntime.jsx(LogoSvg, {
|
|
5348
|
+
className: classNames__default.default('np-logo-svg', className),
|
|
5349
|
+
alt: type === exports.LogoType.WISE ? 'Wise' : 'Wise business'
|
|
5365
5350
|
});
|
|
5366
5351
|
};
|
|
5367
5352
|
Logo.propTypes = {
|