@transferwise/components 45.14.0 → 45.14.2
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/i18n/en.json +1 -0
- package/build/index.esm.js +15 -3
- package/build/index.esm.js.map +1 -1
- package/build/index.js +15 -3
- package/build/index.js.map +1 -1
- package/build/types/common/closeButton/CloseButton.d.ts +1 -1
- package/build/types/dateLookup/tableLink/TableLink.d.ts.map +1 -1
- package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts.map +1 -1
- package/build/types/inputs/Input.d.ts +1 -1
- package/build/types/inputs/Input.d.ts.map +1 -1
- package/build/types/inputs/TextArea.d.ts +1 -1
- package/build/types/inputs/TextArea.d.ts.map +1 -1
- package/build/types/link/Link.d.ts.map +1 -1
- package/build/types/link/Link.messages.d.ts +8 -0
- package/build/types/link/Link.messages.d.ts.map +1 -0
- package/package.json +6 -6
- package/src/avatar/Avatar.story.tsx +16 -14
- package/src/link/Link.messages.ts +8 -0
- package/src/link/Link.tsx +6 -2
- package/src/navigationOption/NavigationOption.story.js +3 -5
- package/src/radio/Radio.story.js +3 -2
- package/src/radioGroup/RadioGroup.story.js +2 -1
package/build/i18n/en.json
CHANGED
|
@@ -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",
|
package/build/index.esm.js
CHANGED
|
@@ -759,7 +759,7 @@ const ActionOption = ({
|
|
|
759
759
|
});
|
|
760
760
|
};
|
|
761
761
|
|
|
762
|
-
var messages$
|
|
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$
|
|
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,9 @@ 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__*/jsx(NavigateAway, {
|
|
827
|
+
title: formatMessage(messages$7.opensInNewTab)
|
|
828
|
+
})]
|
|
818
829
|
});
|
|
819
830
|
};
|
|
820
831
|
|
|
@@ -9927,6 +9938,7 @@ var en = {
|
|
|
9927
9938
|
"neptune.DateInput.day.label": "Day",
|
|
9928
9939
|
"neptune.DateInput.month.label": "Month",
|
|
9929
9940
|
"neptune.DateInput.year.label": "Year",
|
|
9941
|
+
"neptune.Link.opensInNewTab": "(opens in new tab)",
|
|
9930
9942
|
"neptune.MoneyInput.Select.placeholder": "Select an option...",
|
|
9931
9943
|
"neptune.Select.searchPlaceholder": "Search...",
|
|
9932
9944
|
"neptune.Summary.statusDone": "Item done",
|