@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.
package/build/index.js CHANGED
@@ -2890,6 +2890,12 @@ var messages$8 = reactIntl.defineMessages({
2890
2890
  },
2891
2891
  yearLabel: {
2892
2892
  id: "neptune.DateInput.year.label"
2893
+ },
2894
+ dayPlaceholder: {
2895
+ id: "neptune.DateInput.day.placeholder"
2896
+ },
2897
+ yearPlaceholder: {
2898
+ id: "neptune.DateInput.year.placeholder"
2893
2899
  }
2894
2900
  });
2895
2901
 
@@ -2965,9 +2971,9 @@ const DateInput = ({
2965
2971
  monthLabel = monthLabel || formatMessage(messages$8.monthLabel);
2966
2972
  yearLabel = yearLabel || formatMessage(messages$8.yearLabel);
2967
2973
  placeholders = {
2968
- day: placeholders?.day || 'DD',
2974
+ day: placeholders?.day || formatMessage(messages$8.dayPlaceholder),
2969
2975
  month: placeholders?.month || formatMessage(messages$8.monthLabel),
2970
- year: placeholders?.year || 'YYYY'
2976
+ year: placeholders?.year || formatMessage(messages$8.yearPlaceholder)
2971
2977
  };
2972
2978
  const getDateAsString = date => {
2973
2979
  if (!isDateValid(date)) {
@@ -8109,7 +8115,7 @@ class MoneyInput extends React.Component {
8109
8115
  compareValues: "currency",
8110
8116
  renderValue: (currency, withinTrigger) => {
8111
8117
  return /*#__PURE__*/jsxRuntime.jsx(SelectInputOptionContent, {
8112
- title: currency.label,
8118
+ title: withinTrigger ? currency.currency.toUpperCase() : currency.label,
8113
8119
  note: withinTrigger ? undefined : currency.note,
8114
8120
  icon: /*#__PURE__*/jsxRuntime.jsx(art.Flag, {
8115
8121
  code: currency.currency,
@@ -10246,8 +10252,10 @@ var en = {
10246
10252
  "neptune.ClearButton.ariaLabel": "Clear",
10247
10253
  "neptune.CloseButton.ariaLabel": "Close",
10248
10254
  "neptune.DateInput.day.label": "Day",
10255
+ "neptune.DateInput.day.placeholder": "DD",
10249
10256
  "neptune.DateInput.month.label": "Month",
10250
10257
  "neptune.DateInput.year.label": "Year",
10258
+ "neptune.DateInput.year.placeholder": "YYYY",
10251
10259
  "neptune.DateLookup.day": "day",
10252
10260
  "neptune.DateLookup.goTo20YearView": "Go to 20 year view",
10253
10261
  "neptune.DateLookup.month": "month",