@transferwise/components 0.0.0-experimental-fdcd4f0 → 0.0.0-experimental-3f14884

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.
@@ -5,6 +5,7 @@
5
5
  "neptune.DateInput.day.label": "Day",
6
6
  "neptune.DateInput.month.label": "Month",
7
7
  "neptune.DateInput.year.label": "Year",
8
+ "neptune.Link.opensInNewTab": "(opens in new tab)",
8
9
  "neptune.MoneyInput.Select.placeholder": "Select an option...",
9
10
  "neptune.Select.searchPlaceholder": "Search...",
10
11
  "neptune.Summary.statusDone": "Item done",
@@ -759,7 +759,7 @@ const ActionOption = ({
759
759
  });
760
760
  };
761
761
 
762
- var messages$7 = defineMessages({
762
+ var messages$8 = defineMessages({
763
763
  ariaLabel: {
764
764
  id: "neptune.CloseButton.ariaLabel"
765
765
  }
@@ -775,7 +775,7 @@ const CloseButton = /*#__PURE__*/forwardRef(function CloseButton({
775
775
  testId
776
776
  }, reference) {
777
777
  const intl = useIntl();
778
- ariaLabel ??= intl.formatMessage(messages$7.ariaLabel);
778
+ ariaLabel ??= intl.formatMessage(messages$8.ariaLabel);
779
779
  const Icon = filled ? CrossCircleFill : Cross;
780
780
  return /*#__PURE__*/jsx("button", {
781
781
  ref: reference,
@@ -795,6 +795,12 @@ const CloseButton = /*#__PURE__*/forwardRef(function CloseButton({
795
795
  });
796
796
  });
797
797
 
798
+ var messages$7 = defineMessages({
799
+ opensInNewTab: {
800
+ id: "neptune.Link.opensInNewTab"
801
+ }
802
+ });
803
+
798
804
  const Link = ({
799
805
  className,
800
806
  children,
@@ -806,6 +812,9 @@ const Link = ({
806
812
  ...props
807
813
  }) => {
808
814
  const isBlank = target === '_blank';
815
+ const {
816
+ formatMessage
817
+ } = useIntl();
809
818
  return /*#__PURE__*/jsxs("a", {
810
819
  href: href,
811
820
  target: target,
@@ -814,7 +823,12 @@ const Link = ({
814
823
  rel: isBlank ? 'noreferrer' : undefined,
815
824
  onClick: onClick,
816
825
  ...props,
817
- children: [children, isBlank && /*#__PURE__*/jsx(NavigateAway, {})]
826
+ children: [children, ' ', isBlank && /*#__PURE__*/jsxs(Fragment, {
827
+ children: [/*#__PURE__*/jsx("span", {
828
+ className: "sr-only",
829
+ children: formatMessage(messages$7.opensInNewTab)
830
+ }), /*#__PURE__*/jsx(NavigateAway, {})]
831
+ })]
818
832
  });
819
833
  };
820
834
 
@@ -9927,6 +9941,7 @@ var en = {
9927
9941
  "neptune.DateInput.day.label": "Day",
9928
9942
  "neptune.DateInput.month.label": "Month",
9929
9943
  "neptune.DateInput.year.label": "Year",
9944
+ "neptune.Link.opensInNewTab": "(opens in new tab)",
9930
9945
  "neptune.MoneyInput.Select.placeholder": "Select an option...",
9931
9946
  "neptune.Select.searchPlaceholder": "Search...",
9932
9947
  "neptune.Summary.statusDone": "Item done",