@transferwise/components 0.0.0-experimental-f187aff → 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)) {
@@ -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",