@transferwise/components 0.0.0-experimental-8edf644 → 0.0.0-experimental-9381602
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 +3 -3
- package/build/index.js.map +1 -1
- package/build/index.mjs +3 -3
- package/build/index.mjs.map +1 -1
- package/build/types/instructionsList/InstructionsList.d.ts +1 -1
- package/build/types/instructionsList/InstructionsList.d.ts.map +1 -1
- package/build/types/markdown/Markdown.d.ts +1 -0
- package/build/types/markdown/Markdown.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/instructionsList/InstructionsList.spec.tsx +0 -5
- package/src/instructionsList/InstructionsList.story.tsx +0 -1
- package/src/instructionsList/InstructionsList.tsx +2 -3
- package/src/markdown/Markdown.spec.tsx +16 -0
- package/src/markdown/Markdown.tsx +6 -1
package/build/index.mjs
CHANGED
|
@@ -867,6 +867,7 @@ function Markdown({
|
|
|
867
867
|
return null;
|
|
868
868
|
}
|
|
869
869
|
const linkTarget = config?.link?.target ?? '_self';
|
|
870
|
+
const paragraphClass = config?.paragraph?.className ?? '';
|
|
870
871
|
if (allowList != null && blockList != null) {
|
|
871
872
|
logActionRequired$1('Markdown supports only one of `allowList` or `blockList` to be used at a time. `blockList` will be ignored.');
|
|
872
873
|
}
|
|
@@ -880,7 +881,7 @@ function Markdown({
|
|
|
880
881
|
};
|
|
881
882
|
const createMarkup = () => {
|
|
882
883
|
const parsed = parser(children);
|
|
883
|
-
return writer.render(parsed).replace(/<a href="/g, `<a target="${linkTarget}" href="`);
|
|
884
|
+
return writer.render(parsed).replace(/<a href="/g, `<a target="${linkTarget}" href="`).replace(/<p>/g, `<p class="${paragraphClass}">`);
|
|
884
885
|
};
|
|
885
886
|
return /*#__PURE__*/jsx(Element, {
|
|
886
887
|
className: className,
|
|
@@ -7376,7 +7377,6 @@ const InputWithDisplayFormat = props => /*#__PURE__*/jsx(WithDisplayFormat, {
|
|
|
7376
7377
|
});
|
|
7377
7378
|
|
|
7378
7379
|
const InstructionsList = ({
|
|
7379
|
-
className,
|
|
7380
7380
|
dos,
|
|
7381
7381
|
donts,
|
|
7382
7382
|
sort = 'dosFirst'
|
|
@@ -7401,7 +7401,7 @@ const InstructionsList = ({
|
|
|
7401
7401
|
children: [dontsInstructions, dosInstructions]
|
|
7402
7402
|
});
|
|
7403
7403
|
return /*#__PURE__*/jsx("ul", {
|
|
7404
|
-
className:
|
|
7404
|
+
className: "tw-instructions",
|
|
7405
7405
|
children: orderedInstructions
|
|
7406
7406
|
});
|
|
7407
7407
|
};
|