@transferwise/components 46.0.3 → 46.0.4

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/index.js CHANGED
@@ -2873,6 +2873,12 @@ var messages$8 = reactIntl.defineMessages({
2873
2873
  },
2874
2874
  yearLabel: {
2875
2875
  id: "neptune.DateInput.year.label"
2876
+ },
2877
+ dayPlaceholder: {
2878
+ id: "neptune.DateInput.day.placeholder"
2879
+ },
2880
+ yearPlaceholder: {
2881
+ id: "neptune.DateInput.year.placeholder"
2876
2882
  }
2877
2883
  });
2878
2884
 
@@ -2948,9 +2954,9 @@ const DateInput = ({
2948
2954
  monthLabel = monthLabel || formatMessage(messages$8.monthLabel);
2949
2955
  yearLabel = yearLabel || formatMessage(messages$8.yearLabel);
2950
2956
  placeholders = {
2951
- day: placeholders?.day || 'DD',
2957
+ day: placeholders?.day || formatMessage(messages$8.dayPlaceholder),
2952
2958
  month: placeholders?.month || formatMessage(messages$8.monthLabel),
2953
- year: placeholders?.year || 'YYYY'
2959
+ year: placeholders?.year || formatMessage(messages$8.yearPlaceholder)
2954
2960
  };
2955
2961
  const getDateAsString = date => {
2956
2962
  if (!isDateValid(date)) {
@@ -10229,8 +10235,10 @@ var en = {
10229
10235
  "neptune.ClearButton.ariaLabel": "Clear",
10230
10236
  "neptune.CloseButton.ariaLabel": "Close",
10231
10237
  "neptune.DateInput.day.label": "Day",
10238
+ "neptune.DateInput.day.placeholder": "DD",
10232
10239
  "neptune.DateInput.month.label": "Month",
10233
10240
  "neptune.DateInput.year.label": "Year",
10241
+ "neptune.DateInput.year.placeholder": "YYYY",
10234
10242
  "neptune.DateLookup.day": "day",
10235
10243
  "neptune.DateLookup.goTo20YearView": "Go to 20 year view",
10236
10244
  "neptune.DateLookup.month": "month",