@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/i18n/en.json +2 -0
- package/build/index.esm.js +10 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +10 -2
- package/build/index.js.map +1 -1
- package/build/types/dateInput/DateInput.messages.d.ts +15 -0
- package/package.json +1 -1
- package/src/dateInput/DateInput.js +2 -2
- package/src/dateInput/DateInput.messages.js +10 -0
- package/src/dateInput/DateInput.spec.js +10 -0
- package/src/i18n/en.json +2 -0
package/build/i18n/en.json
CHANGED
|
@@ -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",
|
package/build/index.esm.js
CHANGED
|
@@ -2839,6 +2839,12 @@ var messages$8 = defineMessages({
|
|
|
2839
2839
|
},
|
|
2840
2840
|
yearLabel: {
|
|
2841
2841
|
id: "neptune.DateInput.year.label"
|
|
2842
|
+
},
|
|
2843
|
+
dayPlaceholder: {
|
|
2844
|
+
id: "neptune.DateInput.day.placeholder"
|
|
2845
|
+
},
|
|
2846
|
+
yearPlaceholder: {
|
|
2847
|
+
id: "neptune.DateInput.year.placeholder"
|
|
2842
2848
|
}
|
|
2843
2849
|
});
|
|
2844
2850
|
|
|
@@ -2914,9 +2920,9 @@ const DateInput = ({
|
|
|
2914
2920
|
monthLabel = monthLabel || formatMessage(messages$8.monthLabel);
|
|
2915
2921
|
yearLabel = yearLabel || formatMessage(messages$8.yearLabel);
|
|
2916
2922
|
placeholders = {
|
|
2917
|
-
day: placeholders?.day ||
|
|
2923
|
+
day: placeholders?.day || formatMessage(messages$8.dayPlaceholder),
|
|
2918
2924
|
month: placeholders?.month || formatMessage(messages$8.monthLabel),
|
|
2919
|
-
year: placeholders?.year ||
|
|
2925
|
+
year: placeholders?.year || formatMessage(messages$8.yearPlaceholder)
|
|
2920
2926
|
};
|
|
2921
2927
|
const getDateAsString = date => {
|
|
2922
2928
|
if (!isDateValid(date)) {
|
|
@@ -10195,8 +10201,10 @@ var en = {
|
|
|
10195
10201
|
"neptune.ClearButton.ariaLabel": "Clear",
|
|
10196
10202
|
"neptune.CloseButton.ariaLabel": "Close",
|
|
10197
10203
|
"neptune.DateInput.day.label": "Day",
|
|
10204
|
+
"neptune.DateInput.day.placeholder": "DD",
|
|
10198
10205
|
"neptune.DateInput.month.label": "Month",
|
|
10199
10206
|
"neptune.DateInput.year.label": "Year",
|
|
10207
|
+
"neptune.DateInput.year.placeholder": "YYYY",
|
|
10200
10208
|
"neptune.DateLookup.day": "day",
|
|
10201
10209
|
"neptune.DateLookup.goTo20YearView": "Go to 20 year view",
|
|
10202
10210
|
"neptune.DateLookup.month": "month",
|