@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.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: classNames('tw-instructions', className),
7404
+ className: "tw-instructions",
7405
7405
  children: orderedInstructions
7406
7406
  });
7407
7407
  };