@transferwise/components 0.0.0-experimental-f7a2735 → 0.0.0-experimental-2e3ca66
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 -7
- package/build/index.js.map +1 -1
- package/build/index.mjs +5 -7
- package/build/index.mjs.map +1 -1
- package/build/main.css +16 -0
- package/build/styles/logo/Logo.css +16 -0
- package/build/styles/main.css +16 -0
- package/build/types/logo/Logo.d.ts.map +1 -1
- package/build/types/markdown/Markdown.d.ts +0 -1
- package/build/types/markdown/Markdown.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/logo/Logo.css +16 -0
- package/src/logo/Logo.js +2 -7
- package/src/logo/Logo.less +16 -0
- package/src/logo/__snapshots__/Logo.spec.js.snap +104 -8
- package/src/main.css +16 -0
- package/src/markdown/Markdown.spec.tsx +0 -16
- package/src/markdown/Markdown.tsx +1 -6
package/build/index.js
CHANGED
|
@@ -899,7 +899,6 @@ function Markdown({
|
|
|
899
899
|
return null;
|
|
900
900
|
}
|
|
901
901
|
const linkTarget = config?.link?.target ?? '_self';
|
|
902
|
-
const paragraphClass = config?.paragraph?.className ?? '';
|
|
903
902
|
if (allowList != null && blockList != null) {
|
|
904
903
|
logActionRequired$1('Markdown supports only one of `allowList` or `blockList` to be used at a time. `blockList` will be ignored.');
|
|
905
904
|
}
|
|
@@ -913,7 +912,7 @@ function Markdown({
|
|
|
913
912
|
};
|
|
914
913
|
const createMarkup = () => {
|
|
915
914
|
const parsed = parser(children);
|
|
916
|
-
return writer.render(parsed).replace(/<a href="/g, `<a target="${linkTarget}" href="`)
|
|
915
|
+
return writer.render(parsed).replace(/<a href="/g, `<a target="${linkTarget}" href="`);
|
|
917
916
|
};
|
|
918
917
|
return /*#__PURE__*/jsxRuntime.jsx(Element, {
|
|
919
918
|
className: className,
|
|
@@ -5350,15 +5349,14 @@ const Logo = ({
|
|
|
5350
5349
|
}) => {
|
|
5351
5350
|
const LogoSm = svgPaths[`WISE_FLAG${type === exports.LogoType.WISE_PLATFORM ? '_PLATFORM' : ''}${inverse ? '_INVERSE' : ''}`];
|
|
5352
5351
|
const LogoMd = svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];
|
|
5353
|
-
const screenMd = useScreenSize(exports.Breakpoint.MEDIUM);
|
|
5354
5352
|
return /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
5355
5353
|
"aria-label": type === exports.LogoType.WISE ? 'Wise' : 'Wise Business' | type === exports.LogoType.WISE_PLATFORM ? 'Wise Platform' : 'Wise Business',
|
|
5356
5354
|
role: "img",
|
|
5357
5355
|
className: classNames__default.default(className, 'np-logo'),
|
|
5358
|
-
children: [
|
|
5359
|
-
className: "np-logo-svg"
|
|
5360
|
-
}),
|
|
5361
|
-
className: "np-logo-svg"
|
|
5356
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(LogoSm, {
|
|
5357
|
+
className: "np-logo-svg np-logo-svg--size-sm"
|
|
5358
|
+
}), /*#__PURE__*/jsxRuntime.jsx(LogoMd, {
|
|
5359
|
+
className: "np-logo-svg np-logo-svg--size-md"
|
|
5362
5360
|
})]
|
|
5363
5361
|
});
|
|
5364
5362
|
};
|