@transferwise/components 45.14.1 → 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/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 +3 -3
- 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/index.js
CHANGED
|
@@ -792,7 +792,7 @@ const ActionOption = ({
|
|
|
792
792
|
});
|
|
793
793
|
};
|
|
794
794
|
|
|
795
|
-
var messages$
|
|
795
|
+
var messages$8 = reactIntl.defineMessages({
|
|
796
796
|
ariaLabel: {
|
|
797
797
|
id: "neptune.CloseButton.ariaLabel"
|
|
798
798
|
}
|
|
@@ -808,7 +808,7 @@ const CloseButton = /*#__PURE__*/React.forwardRef(function CloseButton({
|
|
|
808
808
|
testId
|
|
809
809
|
}, reference) {
|
|
810
810
|
const intl = reactIntl.useIntl();
|
|
811
|
-
ariaLabel ??= intl.formatMessage(messages$
|
|
811
|
+
ariaLabel ??= intl.formatMessage(messages$8.ariaLabel);
|
|
812
812
|
const Icon = filled ? icons.CrossCircleFill : icons.Cross;
|
|
813
813
|
return /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
814
814
|
ref: reference,
|
|
@@ -828,6 +828,12 @@ const CloseButton = /*#__PURE__*/React.forwardRef(function CloseButton({
|
|
|
828
828
|
});
|
|
829
829
|
});
|
|
830
830
|
|
|
831
|
+
var messages$7 = reactIntl.defineMessages({
|
|
832
|
+
opensInNewTab: {
|
|
833
|
+
id: "neptune.Link.opensInNewTab"
|
|
834
|
+
}
|
|
835
|
+
});
|
|
836
|
+
|
|
831
837
|
const Link = ({
|
|
832
838
|
className,
|
|
833
839
|
children,
|
|
@@ -839,6 +845,9 @@ const Link = ({
|
|
|
839
845
|
...props
|
|
840
846
|
}) => {
|
|
841
847
|
const isBlank = target === '_blank';
|
|
848
|
+
const {
|
|
849
|
+
formatMessage
|
|
850
|
+
} = reactIntl.useIntl();
|
|
842
851
|
return /*#__PURE__*/jsxRuntime.jsxs("a", {
|
|
843
852
|
href: href,
|
|
844
853
|
target: target,
|
|
@@ -847,7 +856,9 @@ const Link = ({
|
|
|
847
856
|
rel: isBlank ? 'noreferrer' : undefined,
|
|
848
857
|
onClick: onClick,
|
|
849
858
|
...props,
|
|
850
|
-
children: [children, isBlank && /*#__PURE__*/jsxRuntime.jsx(icons.NavigateAway, {
|
|
859
|
+
children: [children, " ", isBlank && /*#__PURE__*/jsxRuntime.jsx(icons.NavigateAway, {
|
|
860
|
+
title: formatMessage(messages$7.opensInNewTab)
|
|
861
|
+
})]
|
|
851
862
|
});
|
|
852
863
|
};
|
|
853
864
|
|
|
@@ -9960,6 +9971,7 @@ var en = {
|
|
|
9960
9971
|
"neptune.DateInput.day.label": "Day",
|
|
9961
9972
|
"neptune.DateInput.month.label": "Month",
|
|
9962
9973
|
"neptune.DateInput.year.label": "Year",
|
|
9974
|
+
"neptune.Link.opensInNewTab": "(opens in new tab)",
|
|
9963
9975
|
"neptune.MoneyInput.Select.placeholder": "Select an option...",
|
|
9964
9976
|
"neptune.Select.searchPlaceholder": "Search...",
|
|
9965
9977
|
"neptune.Summary.statusDone": "Item done",
|