@transferwise/components 0.0.0-experimental-1eb29c0 → 0.0.0-experimental-9adbb01

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.
@@ -4,8 +4,10 @@
4
4
  "neptune.ClearButton.ariaLabel": "Clear",
5
5
  "neptune.CloseButton.ariaLabel": "Close",
6
6
  "neptune.DateInput.day.label": "Day",
7
+ "neptune.DateInput.day.placeholder": "DD",
7
8
  "neptune.DateInput.month.label": "Month",
8
9
  "neptune.DateInput.year.label": "Year",
10
+ "neptune.DateInput.year.placeholder": "YYYY",
9
11
  "neptune.DateLookup.day": "day",
10
12
  "neptune.DateLookup.goTo20YearView": "Go to 20 year view",
11
13
  "neptune.DateLookup.month": "month",
@@ -2856,6 +2856,12 @@ var messages$8 = defineMessages({
2856
2856
  },
2857
2857
  yearLabel: {
2858
2858
  id: "neptune.DateInput.year.label"
2859
+ },
2860
+ dayPlaceholder: {
2861
+ id: "neptune.DateInput.day.placeholder"
2862
+ },
2863
+ yearPlaceholder: {
2864
+ id: "neptune.DateInput.year.placeholder"
2859
2865
  }
2860
2866
  });
2861
2867
 
@@ -2931,9 +2937,9 @@ const DateInput = ({
2931
2937
  monthLabel = monthLabel || formatMessage(messages$8.monthLabel);
2932
2938
  yearLabel = yearLabel || formatMessage(messages$8.yearLabel);
2933
2939
  placeholders = {
2934
- day: placeholders?.day || 'DD',
2940
+ day: placeholders?.day || formatMessage(messages$8.dayPlaceholder),
2935
2941
  month: placeholders?.month || formatMessage(messages$8.monthLabel),
2936
- year: placeholders?.year || 'YYYY'
2942
+ year: placeholders?.year || formatMessage(messages$8.yearPlaceholder)
2937
2943
  };
2938
2944
  const getDateAsString = date => {
2939
2945
  if (!isDateValid(date)) {
@@ -8075,7 +8081,7 @@ class MoneyInput extends Component {
8075
8081
  compareValues: "currency",
8076
8082
  renderValue: (currency, withinTrigger) => {
8077
8083
  return /*#__PURE__*/jsx(SelectInputOptionContent, {
8078
- title: currency.label,
8084
+ title: withinTrigger ? currency.currency.toUpperCase() : currency.label,
8079
8085
  note: withinTrigger ? undefined : currency.note,
8080
8086
  icon: /*#__PURE__*/jsx(Flag, {
8081
8087
  code: currency.currency,
@@ -10212,8 +10218,10 @@ var en = {
10212
10218
  "neptune.ClearButton.ariaLabel": "Clear",
10213
10219
  "neptune.CloseButton.ariaLabel": "Close",
10214
10220
  "neptune.DateInput.day.label": "Day",
10221
+ "neptune.DateInput.day.placeholder": "DD",
10215
10222
  "neptune.DateInput.month.label": "Month",
10216
10223
  "neptune.DateInput.year.label": "Year",
10224
+ "neptune.DateInput.year.placeholder": "YYYY",
10217
10225
  "neptune.DateLookup.day": "day",
10218
10226
  "neptune.DateLookup.goTo20YearView": "Go to 20 year view",
10219
10227
  "neptune.DateLookup.month": "month",