@transferwise/components 0.0.0-experimental-9381602 → 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 +5 -5
- 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.mjs
CHANGED
|
@@ -867,7 +867,6 @@ function Markdown({
|
|
|
867
867
|
return null;
|
|
868
868
|
}
|
|
869
869
|
const linkTarget = config?.link?.target ?? '_self';
|
|
870
|
-
const paragraphClass = config?.paragraph?.className ?? '';
|
|
871
870
|
if (allowList != null && blockList != null) {
|
|
872
871
|
logActionRequired$1('Markdown supports only one of `allowList` or `blockList` to be used at a time. `blockList` will be ignored.');
|
|
873
872
|
}
|
|
@@ -881,7 +880,7 @@ function Markdown({
|
|
|
881
880
|
};
|
|
882
881
|
const createMarkup = () => {
|
|
883
882
|
const parsed = parser(children);
|
|
884
|
-
return writer.render(parsed).replace(/<a href="/g, `<a target="${linkTarget}" href="`)
|
|
883
|
+
return writer.render(parsed).replace(/<a href="/g, `<a target="${linkTarget}" href="`);
|
|
885
884
|
};
|
|
886
885
|
return /*#__PURE__*/jsx(Element, {
|
|
887
886
|
className: className,
|
|
@@ -5318,15 +5317,14 @@ const Logo = ({
|
|
|
5318
5317
|
}) => {
|
|
5319
5318
|
const LogoSm = svgPaths[`WISE_FLAG${type === LogoType.WISE_PLATFORM ? '_PLATFORM' : ''}${inverse ? '_INVERSE' : ''}`];
|
|
5320
5319
|
const LogoMd = svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];
|
|
5321
|
-
const screenMd = useScreenSize(Breakpoint.MEDIUM);
|
|
5322
5320
|
return /*#__PURE__*/jsxs("span", {
|
|
5323
5321
|
"aria-label": type === LogoType.WISE ? 'Wise' : 'Wise Business' | type === LogoType.WISE_PLATFORM ? 'Wise Platform' : 'Wise Business',
|
|
5324
5322
|
role: "img",
|
|
5325
5323
|
className: classNames(className, 'np-logo'),
|
|
5326
|
-
children: [
|
|
5327
|
-
className: "np-logo-svg"
|
|
5328
|
-
}),
|
|
5329
|
-
className: "np-logo-svg"
|
|
5324
|
+
children: [/*#__PURE__*/jsx(LogoSm, {
|
|
5325
|
+
className: "np-logo-svg np-logo-svg--size-sm"
|
|
5326
|
+
}), /*#__PURE__*/jsx(LogoMd, {
|
|
5327
|
+
className: "np-logo-svg np-logo-svg--size-md"
|
|
5330
5328
|
})]
|
|
5331
5329
|
});
|
|
5332
5330
|
};
|