@transferwise/components 0.0.0-experimental-8edf644 → 0.0.0-experimental-f7a2735

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 CHANGED
@@ -899,6 +899,7 @@ function Markdown({
899
899
  return null;
900
900
  }
901
901
  const linkTarget = config?.link?.target ?? '_self';
902
+ const paragraphClass = config?.paragraph?.className ?? '';
902
903
  if (allowList != null && blockList != null) {
903
904
  logActionRequired$1('Markdown supports only one of `allowList` or `blockList` to be used at a time. `blockList` will be ignored.');
904
905
  }
@@ -912,7 +913,7 @@ function Markdown({
912
913
  };
913
914
  const createMarkup = () => {
914
915
  const parsed = parser(children);
915
- return writer.render(parsed).replace(/<a href="/g, `<a target="${linkTarget}" href="`);
916
+ return writer.render(parsed).replace(/<a href="/g, `<a target="${linkTarget}" href="`).replace(/<p>/g, `<p class="${paragraphClass}">`);
916
917
  };
917
918
  return /*#__PURE__*/jsxRuntime.jsx(Element, {
918
919
  className: className,
@@ -7408,7 +7409,6 @@ const InputWithDisplayFormat = props => /*#__PURE__*/jsxRuntime.jsx(WithDisplayF
7408
7409
  });
7409
7410
 
7410
7411
  const InstructionsList = ({
7411
- className,
7412
7412
  dos,
7413
7413
  donts,
7414
7414
  sort = 'dosFirst'
@@ -7433,7 +7433,7 @@ const InstructionsList = ({
7433
7433
  children: [dontsInstructions, dosInstructions]
7434
7434
  });
7435
7435
  return /*#__PURE__*/jsxRuntime.jsx("ul", {
7436
- className: classNames__default.default('tw-instructions', className),
7436
+ className: "tw-instructions",
7437
7437
  children: orderedInstructions
7438
7438
  });
7439
7439
  };