@mui/x-date-pickers 7.1.0 → 7.1.1

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.
Files changed (84) hide show
  1. package/CHANGELOG.md +175 -4
  2. package/DateCalendar/DateCalendar.js +1 -1
  3. package/DateCalendar/DayCalendar.d.ts +1 -1
  4. package/DateField/DateField.js +1 -1
  5. package/DatePicker/DatePicker.js +1 -1
  6. package/DateTimeField/DateTimeField.js +2 -2
  7. package/DateTimeField/DateTimeField.types.d.ts +1 -1
  8. package/DateTimePicker/DateTimePicker.js +2 -2
  9. package/DesktopDatePicker/DesktopDatePicker.js +1 -1
  10. package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
  11. package/DesktopTimePicker/DesktopTimePicker.js +1 -1
  12. package/DigitalClock/DigitalClock.js +1 -1
  13. package/MobileDatePicker/MobileDatePicker.js +1 -1
  14. package/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
  15. package/MobileTimePicker/MobileTimePicker.js +1 -1
  16. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
  17. package/PickersShortcuts/PickersShortcuts.d.ts +1 -1
  18. package/PickersShortcuts/PickersShortcuts.js +1 -1
  19. package/README.md +1 -1
  20. package/StaticDatePicker/StaticDatePicker.js +1 -1
  21. package/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
  22. package/StaticTimePicker/StaticTimePicker.js +1 -1
  23. package/TimeClock/TimeClock.js +1 -1
  24. package/TimeField/TimeField.js +2 -2
  25. package/TimeField/TimeField.types.d.ts +1 -1
  26. package/TimePicker/TimePicker.js +1 -1
  27. package/index.js +1 -1
  28. package/internals/hooks/useField/useField.types.d.ts +1 -1
  29. package/internals/hooks/useField/useFieldV6TextField.js +3 -1
  30. package/internals/models/props/clock.d.ts +1 -1
  31. package/locales/faIR.js +7 -8
  32. package/locales/ptBR.js +14 -17
  33. package/locales/ukUA.js +15 -19
  34. package/modern/DateCalendar/DateCalendar.js +1 -1
  35. package/modern/DateField/DateField.js +1 -1
  36. package/modern/DatePicker/DatePicker.js +1 -1
  37. package/modern/DateTimeField/DateTimeField.js +2 -2
  38. package/modern/DateTimePicker/DateTimePicker.js +2 -2
  39. package/modern/DesktopDatePicker/DesktopDatePicker.js +1 -1
  40. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
  41. package/modern/DesktopTimePicker/DesktopTimePicker.js +1 -1
  42. package/modern/DigitalClock/DigitalClock.js +1 -1
  43. package/modern/MobileDatePicker/MobileDatePicker.js +1 -1
  44. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
  45. package/modern/MobileTimePicker/MobileTimePicker.js +1 -1
  46. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
  47. package/modern/PickersShortcuts/PickersShortcuts.js +1 -1
  48. package/modern/StaticDatePicker/StaticDatePicker.js +1 -1
  49. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
  50. package/modern/StaticTimePicker/StaticTimePicker.js +1 -1
  51. package/modern/TimeClock/TimeClock.js +1 -1
  52. package/modern/TimeField/TimeField.js +2 -2
  53. package/modern/TimePicker/TimePicker.js +1 -1
  54. package/modern/index.js +1 -1
  55. package/modern/internals/hooks/useField/useFieldV6TextField.js +3 -1
  56. package/modern/locales/faIR.js +7 -8
  57. package/modern/locales/ptBR.js +14 -17
  58. package/modern/locales/ukUA.js +15 -19
  59. package/node/DateCalendar/DateCalendar.js +1 -1
  60. package/node/DateField/DateField.js +1 -1
  61. package/node/DatePicker/DatePicker.js +1 -1
  62. package/node/DateTimeField/DateTimeField.js +2 -2
  63. package/node/DateTimePicker/DateTimePicker.js +2 -2
  64. package/node/DesktopDatePicker/DesktopDatePicker.js +1 -1
  65. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
  66. package/node/DesktopTimePicker/DesktopTimePicker.js +1 -1
  67. package/node/DigitalClock/DigitalClock.js +1 -1
  68. package/node/MobileDatePicker/MobileDatePicker.js +1 -1
  69. package/node/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
  70. package/node/MobileTimePicker/MobileTimePicker.js +1 -1
  71. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
  72. package/node/PickersShortcuts/PickersShortcuts.js +1 -1
  73. package/node/StaticDatePicker/StaticDatePicker.js +1 -1
  74. package/node/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
  75. package/node/StaticTimePicker/StaticTimePicker.js +1 -1
  76. package/node/TimeClock/TimeClock.js +1 -1
  77. package/node/TimeField/TimeField.js +2 -2
  78. package/node/TimePicker/TimePicker.js +1 -1
  79. package/node/index.js +1 -1
  80. package/node/internals/hooks/useField/useFieldV6TextField.js +3 -1
  81. package/node/locales/faIR.js +7 -8
  82. package/node/locales/ptBR.js +14 -17
  83. package/node/locales/ukUA.js +15 -19
  84. package/package.json +2 -2
package/locales/ukUA.js CHANGED
@@ -16,11 +16,10 @@ const ukUAPickers = {
16
16
  // DateRange labels
17
17
  start: 'Початок',
18
18
  end: 'Кінець',
19
- // startDate: 'Start date',
20
- // startTime: 'Start time',
21
- // endDate: 'End date',
22
- // endTime: 'End time',
23
-
19
+ startDate: 'День початку',
20
+ startTime: 'Час початку',
21
+ endDate: 'День закінчення',
22
+ endTime: 'Час закінчення',
24
23
  // Action bar
25
24
  cancelButtonLabel: 'Відміна',
26
25
  clearButtonLabel: 'Очистити',
@@ -46,8 +45,7 @@ const ukUAPickers = {
46
45
  // Open picker labels
47
46
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Оберіть дату, обрана дата ${utils.format(value, 'fullDate')}` : 'Оберіть дату',
48
47
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Оберіть час, обраний час ${utils.format(value, 'fullTime')}` : 'Оберіть час',
49
- // fieldClearLabel: 'Clear value',
50
-
48
+ fieldClearLabel: 'Очистити дані',
51
49
  // Table labels
52
50
  timeTableLabel: 'оберіть час',
53
51
  dateTableLabel: 'оберіть дату',
@@ -59,19 +57,17 @@ const ukUAPickers = {
59
57
  fieldHoursPlaceholder: () => 'hh',
60
58
  fieldMinutesPlaceholder: () => 'mm',
61
59
  fieldSecondsPlaceholder: () => 'ss',
62
- fieldMeridiemPlaceholder: () => 'aa'
63
-
60
+ fieldMeridiemPlaceholder: () => 'aa',
64
61
  // View names
65
- // year: 'Year',
66
- // month: 'Month',
67
- // day: 'Day',
68
- // weekDay: 'Week day',
69
- // hours: 'Hours',
70
- // minutes: 'Minutes',
71
- // seconds: 'Seconds',
72
- // meridiem: 'Meridiem',
73
-
62
+ year: 'Рік',
63
+ month: 'Місяць',
64
+ day: 'День',
65
+ weekDay: 'День тижня',
66
+ hours: 'Годин',
67
+ minutes: 'Хвилин',
68
+ seconds: 'Секунд',
69
+ meridiem: 'Меридіем',
74
70
  // Common
75
- // empty: 'Empty',
71
+ empty: 'Порожній'
76
72
  };
77
73
  export const ukUA = getPickersLocalization(ukUAPickers);
@@ -363,7 +363,7 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
363
363
  * Formats the day of week displayed in the calendar header.
364
364
  * @param {TDate} date The date of the day of week provided by the adapter.
365
365
  * @returns {string} The name to display.
366
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
366
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
367
367
  */
368
368
  dayOfWeekFormatter: PropTypes.func,
369
369
  /**
@@ -274,7 +274,7 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
274
274
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
275
275
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
276
276
  *
277
- * @default `false`
277
+ * @default false
278
278
  */
279
279
  shouldRespectLeadingZeros: PropTypes.bool,
280
280
  /**
@@ -65,7 +65,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
65
65
  * Formats the day of week displayed in the calendar header.
66
66
  * @param {TDate} date The date of the day of week provided by the adapter.
67
67
  * @returns {string} The name to display.
68
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
68
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
69
69
  */
70
70
  dayOfWeekFormatter: PropTypes.func,
71
71
  /**
@@ -64,7 +64,7 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
64
64
  // ----------------------------------------------------------------------
65
65
  /**
66
66
  * 12h/24h view for hour selection clock.
67
- * @default `utils.is12HourCycleInCurrentLocale()`
67
+ * @default utils.is12HourCycleInCurrentLocale()
68
68
  */
69
69
  ampm: PropTypes.bool,
70
70
  /**
@@ -315,7 +315,7 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
315
315
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
316
316
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
317
317
  *
318
- * @default `false`
318
+ * @default false
319
319
  */
320
320
  shouldRespectLeadingZeros: PropTypes.bool,
321
321
  /**
@@ -50,7 +50,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
50
50
  // ----------------------------------------------------------------------
51
51
  /**
52
52
  * 12h/24h view for hour selection clock.
53
- * @default `utils.is12HourCycleInCurrentLocale()`
53
+ * @default utils.is12HourCycleInCurrentLocale()
54
54
  */
55
55
  ampm: PropTypes.bool,
56
56
  /**
@@ -75,7 +75,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
75
75
  * Formats the day of week displayed in the calendar header.
76
76
  * @param {TDate} date The date of the day of week provided by the adapter.
77
77
  * @returns {string} The name to display.
78
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
78
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
79
79
  */
80
80
  dayOfWeekFormatter: PropTypes.func,
81
81
  /**
@@ -86,7 +86,7 @@ DesktopDatePicker.propTypes = {
86
86
  * Formats the day of week displayed in the calendar header.
87
87
  * @param {TDate} date The date of the day of week provided by the adapter.
88
88
  * @returns {string} The name to display.
89
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
89
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
90
90
  */
91
91
  dayOfWeekFormatter: PropTypes.func,
92
92
  /**
@@ -148,7 +148,7 @@ DesktopDateTimePicker.propTypes = {
148
148
  // ----------------------------------------------------------------------
149
149
  /**
150
150
  * 12h/24h view for hour selection clock.
151
- * @default `utils.is12HourCycleInCurrentLocale()`
151
+ * @default utils.is12HourCycleInCurrentLocale()
152
152
  */
153
153
  ampm: PropTypes.bool,
154
154
  /**
@@ -173,7 +173,7 @@ DesktopDateTimePicker.propTypes = {
173
173
  * Formats the day of week displayed in the calendar header.
174
174
  * @param {TDate} date The date of the day of week provided by the adapter.
175
175
  * @returns {string} The name to display.
176
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
176
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
177
177
  */
178
178
  dayOfWeekFormatter: PropTypes.func,
179
179
  /**
@@ -92,7 +92,7 @@ DesktopTimePicker.propTypes = {
92
92
  // ----------------------------------------------------------------------
93
93
  /**
94
94
  * 12h/24h view for hour selection clock.
95
- * @default `utils.is12HourCycleInCurrentLocale()`
95
+ * @default utils.is12HourCycleInCurrentLocale()
96
96
  */
97
97
  ampm: PropTypes.bool,
98
98
  /**
@@ -274,7 +274,7 @@ process.env.NODE_ENV !== "production" ? DigitalClock.propTypes = {
274
274
  // ----------------------------------------------------------------------
275
275
  /**
276
276
  * 12h/24h view for hour selection clock.
277
- * @default `utils.is12HourCycleInCurrentLocale()`
277
+ * @default utils.is12HourCycleInCurrentLocale()
278
278
  */
279
279
  ampm: PropTypes.bool,
280
280
  /**
@@ -83,7 +83,7 @@ MobileDatePicker.propTypes = {
83
83
  * Formats the day of week displayed in the calendar header.
84
84
  * @param {TDate} date The date of the day of week provided by the adapter.
85
85
  * @returns {string} The name to display.
86
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
86
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
87
87
  */
88
88
  dayOfWeekFormatter: PropTypes.func,
89
89
  /**
@@ -78,7 +78,7 @@ MobileDateTimePicker.propTypes = {
78
78
  // ----------------------------------------------------------------------
79
79
  /**
80
80
  * 12h/24h view for hour selection clock.
81
- * @default `utils.is12HourCycleInCurrentLocale()`
81
+ * @default utils.is12HourCycleInCurrentLocale()
82
82
  */
83
83
  ampm: PropTypes.bool,
84
84
  /**
@@ -103,7 +103,7 @@ MobileDateTimePicker.propTypes = {
103
103
  * Formats the day of week displayed in the calendar header.
104
104
  * @param {TDate} date The date of the day of week provided by the adapter.
105
105
  * @returns {string} The name to display.
106
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
106
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
107
107
  */
108
108
  dayOfWeekFormatter: PropTypes.func,
109
109
  /**
@@ -71,7 +71,7 @@ MobileTimePicker.propTypes = {
71
71
  // ----------------------------------------------------------------------
72
72
  /**
73
73
  * 12h/24h view for hour selection clock.
74
- * @default `utils.is12HourCycleInCurrentLocale()`
74
+ * @default utils.is12HourCycleInCurrentLocale()
75
75
  */
76
76
  ampm: PropTypes.bool,
77
77
  /**
@@ -331,7 +331,7 @@ process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
331
331
  // ----------------------------------------------------------------------
332
332
  /**
333
333
  * 12h/24h view for hour selection clock.
334
- * @default `utils.is12HourCycleInCurrentLocale()`
334
+ * @default utils.is12HourCycleInCurrentLocale()
335
335
  */
336
336
  ampm: PropTypes.bool,
337
337
  /**
@@ -91,7 +91,7 @@ process.env.NODE_ENV !== "production" ? PickersShortcuts.propTypes = {
91
91
  /**
92
92
  * Ordered array of shortcuts to display.
93
93
  * If empty, does not display the shortcuts.
94
- * @default `[]`
94
+ * @default []
95
95
  */
96
96
  items: PropTypes.arrayOf(PropTypes.shape({
97
97
  getValue: PropTypes.func.isRequired,
@@ -64,7 +64,7 @@ StaticDatePicker.propTypes = {
64
64
  * Formats the day of week displayed in the calendar header.
65
65
  * @param {TDate} date The date of the day of week provided by the adapter.
66
66
  * @returns {string} The name to display.
67
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
67
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
68
68
  */
69
69
  dayOfWeekFormatter: PropTypes.func,
70
70
  /**
@@ -64,7 +64,7 @@ StaticDateTimePicker.propTypes = {
64
64
  // ----------------------------------------------------------------------
65
65
  /**
66
66
  * 12h/24h view for hour selection clock.
67
- * @default `utils.is12HourCycleInCurrentLocale()`
67
+ * @default utils.is12HourCycleInCurrentLocale()
68
68
  */
69
69
  ampm: PropTypes.bool,
70
70
  /**
@@ -84,7 +84,7 @@ StaticDateTimePicker.propTypes = {
84
84
  * Formats the day of week displayed in the calendar header.
85
85
  * @param {TDate} date The date of the day of week provided by the adapter.
86
86
  * @returns {string} The name to display.
87
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
87
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
88
88
  */
89
89
  dayOfWeekFormatter: PropTypes.func,
90
90
  /**
@@ -56,7 +56,7 @@ StaticTimePicker.propTypes = {
56
56
  // ----------------------------------------------------------------------
57
57
  /**
58
58
  * 12h/24h view for hour selection clock.
59
- * @default `utils.is12HourCycleInCurrentLocale()`
59
+ * @default utils.is12HourCycleInCurrentLocale()
60
60
  */
61
61
  ampm: PropTypes.bool,
62
62
  /**
@@ -317,7 +317,7 @@ process.env.NODE_ENV !== "production" ? TimeClock.propTypes = {
317
317
  // ----------------------------------------------------------------------
318
318
  /**
319
319
  * 12h/24h view for hour selection clock.
320
- * @default `utils.is12HourCycleInCurrentLocale()`
320
+ * @default utils.is12HourCycleInCurrentLocale()
321
321
  */
322
322
  ampm: PropTypes.bool,
323
323
  /**
@@ -64,7 +64,7 @@ process.env.NODE_ENV !== "production" ? TimeField.propTypes = {
64
64
  // ----------------------------------------------------------------------
65
65
  /**
66
66
  * 12h/24h view for hour selection clock.
67
- * @default `utils.is12HourCycleInCurrentLocale()`
67
+ * @default utils.is12HourCycleInCurrentLocale()
68
68
  */
69
69
  ampm: PropTypes.bool,
70
70
  /**
@@ -275,7 +275,7 @@ process.env.NODE_ENV !== "production" ? TimeField.propTypes = {
275
275
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
276
276
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
277
277
  *
278
- * @default `false`
278
+ * @default false
279
279
  */
280
280
  shouldRespectLeadingZeros: PropTypes.bool,
281
281
  /**
@@ -50,7 +50,7 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
50
50
  // ----------------------------------------------------------------------
51
51
  /**
52
52
  * 12h/24h view for hour selection clock.
53
- * @default `utils.is12HourCycleInCurrentLocale()`
53
+ * @default utils.is12HourCycleInCurrentLocale()
54
54
  */
55
55
  ampm: PropTypes.bool,
56
56
  /**
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.1.0
2
+ * @mui/x-date-pickers v7.1.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -112,7 +112,8 @@ export const useFieldV6TextField = params => {
112
112
  getActiveSectionIndexFromDOM: () => {
113
113
  const browserStartIndex = inputRef.current.selectionStart ?? 0;
114
114
  const browserEndIndex = inputRef.current.selectionEnd ?? 0;
115
- if (browserStartIndex === 0 && browserEndIndex === 0) {
115
+ const isInputReadOnly = !!inputRef.current?.readOnly;
116
+ if (browserStartIndex === 0 && browserEndIndex === 0 || isInputReadOnly) {
116
117
  return null;
117
118
  }
118
119
  const nextSectionIndex = browserStartIndex <= sections[0].startInInput ? 1 // Special case if browser index is in invisible characters at the beginning.
@@ -128,6 +129,7 @@ export const useFieldV6TextField = params => {
128
129
  }), [inputRef, parsedSelectedSections, sections, setSelectedSections]);
129
130
  const syncSelectionFromDOM = () => {
130
131
  if (readOnly) {
132
+ setSelectedSections(null);
131
133
  return;
132
134
  }
133
135
  const browserStartIndex = inputRef.current.selectionStart ?? 0;
@@ -59,16 +59,15 @@ const faIRPickers = {
59
59
  fieldHoursPlaceholder: () => 'hh',
60
60
  fieldMinutesPlaceholder: () => 'mm',
61
61
  fieldSecondsPlaceholder: () => 'ss',
62
- fieldMeridiemPlaceholder: () => 'aa'
63
-
62
+ fieldMeridiemPlaceholder: () => 'aa',
64
63
  // View names
65
- // year: 'Year',
66
- // month: 'Month',
67
- // day: 'Day',
64
+ year: 'سال',
65
+ month: 'ماه',
66
+ day: 'روز',
68
67
  // weekDay: 'Week day',
69
- // hours: 'Hours',
70
- // minutes: 'Minutes',
71
- // seconds: 'Seconds',
68
+ hours: 'ساعت ها',
69
+ minutes: 'دقیقه ها',
70
+ seconds: 'ثانیه ها'
72
71
  // meridiem: 'Meridiem',
73
72
 
74
73
  // Common
@@ -16,11 +16,10 @@ const ptBRPickers = {
16
16
  // DateRange labels
17
17
  start: 'Início',
18
18
  end: 'Fim',
19
- // startDate: 'Start date',
20
- // startTime: 'Start time',
21
- // endDate: 'End date',
22
- // endTime: 'End time',
23
-
19
+ startDate: 'Data de início',
20
+ startTime: 'Hora de início',
21
+ endDate: 'Data de Término',
22
+ endTime: 'Hora de Término',
24
23
  // Action bar
25
24
  cancelButtonLabel: 'Cancelar',
26
25
  clearButtonLabel: 'Limpar',
@@ -59,19 +58,17 @@ const ptBRPickers = {
59
58
  fieldHoursPlaceholder: () => 'hh',
60
59
  fieldMinutesPlaceholder: () => 'mm',
61
60
  fieldSecondsPlaceholder: () => 'ss',
62
- fieldMeridiemPlaceholder: () => 'aa'
63
-
61
+ fieldMeridiemPlaceholder: () => 'aa',
64
62
  // View names
65
- // year: 'Year',
66
- // month: 'Month',
67
- // day: 'Day',
68
- // weekDay: 'Week day',
69
- // hours: 'Hours',
70
- // minutes: 'Minutes',
71
- // seconds: 'Seconds',
72
- // meridiem: 'Meridiem',
73
-
63
+ year: 'Ano',
64
+ month: 'Mês',
65
+ day: 'Dia',
66
+ weekDay: 'Dia da Semana',
67
+ hours: 'Horas',
68
+ minutes: 'Minutos',
69
+ seconds: 'Segundos',
70
+ meridiem: 'Meio dia',
74
71
  // Common
75
- // empty: 'Empty',
72
+ empty: 'Vazio'
76
73
  };
77
74
  export const ptBR = getPickersLocalization(ptBRPickers);
@@ -16,11 +16,10 @@ const ukUAPickers = {
16
16
  // DateRange labels
17
17
  start: 'Початок',
18
18
  end: 'Кінець',
19
- // startDate: 'Start date',
20
- // startTime: 'Start time',
21
- // endDate: 'End date',
22
- // endTime: 'End time',
23
-
19
+ startDate: 'День початку',
20
+ startTime: 'Час початку',
21
+ endDate: 'День закінчення',
22
+ endTime: 'Час закінчення',
24
23
  // Action bar
25
24
  cancelButtonLabel: 'Відміна',
26
25
  clearButtonLabel: 'Очистити',
@@ -46,8 +45,7 @@ const ukUAPickers = {
46
45
  // Open picker labels
47
46
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Оберіть дату, обрана дата ${utils.format(value, 'fullDate')}` : 'Оберіть дату',
48
47
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Оберіть час, обраний час ${utils.format(value, 'fullTime')}` : 'Оберіть час',
49
- // fieldClearLabel: 'Clear value',
50
-
48
+ fieldClearLabel: 'Очистити дані',
51
49
  // Table labels
52
50
  timeTableLabel: 'оберіть час',
53
51
  dateTableLabel: 'оберіть дату',
@@ -59,19 +57,17 @@ const ukUAPickers = {
59
57
  fieldHoursPlaceholder: () => 'hh',
60
58
  fieldMinutesPlaceholder: () => 'mm',
61
59
  fieldSecondsPlaceholder: () => 'ss',
62
- fieldMeridiemPlaceholder: () => 'aa'
63
-
60
+ fieldMeridiemPlaceholder: () => 'aa',
64
61
  // View names
65
- // year: 'Year',
66
- // month: 'Month',
67
- // day: 'Day',
68
- // weekDay: 'Week day',
69
- // hours: 'Hours',
70
- // minutes: 'Minutes',
71
- // seconds: 'Seconds',
72
- // meridiem: 'Meridiem',
73
-
62
+ year: 'Рік',
63
+ month: 'Місяць',
64
+ day: 'День',
65
+ weekDay: 'День тижня',
66
+ hours: 'Годин',
67
+ minutes: 'Хвилин',
68
+ seconds: 'Секунд',
69
+ meridiem: 'Меридіем',
74
70
  // Common
75
- // empty: 'Empty',
71
+ empty: 'Порожній'
76
72
  };
77
73
  export const ukUA = getPickersLocalization(ukUAPickers);
@@ -371,7 +371,7 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
371
371
  * Formats the day of week displayed in the calendar header.
372
372
  * @param {TDate} date The date of the day of week provided by the adapter.
373
373
  * @returns {string} The name to display.
374
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
374
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
375
375
  */
376
376
  dayOfWeekFormatter: _propTypes.default.func,
377
377
  /**
@@ -283,7 +283,7 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
283
283
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
284
284
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
285
285
  *
286
- * @default `false`
286
+ * @default false
287
287
  */
288
288
  shouldRespectLeadingZeros: _propTypes.default.bool,
289
289
  /**
@@ -74,7 +74,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
74
74
  * Formats the day of week displayed in the calendar header.
75
75
  * @param {TDate} date The date of the day of week provided by the adapter.
76
76
  * @returns {string} The name to display.
77
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
77
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
78
78
  */
79
79
  dayOfWeekFormatter: _propTypes.default.func,
80
80
  /**
@@ -73,7 +73,7 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
73
73
  // ----------------------------------------------------------------------
74
74
  /**
75
75
  * 12h/24h view for hour selection clock.
76
- * @default `utils.is12HourCycleInCurrentLocale()`
76
+ * @default utils.is12HourCycleInCurrentLocale()
77
77
  */
78
78
  ampm: _propTypes.default.bool,
79
79
  /**
@@ -324,7 +324,7 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
324
324
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
325
325
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
326
326
  *
327
- * @default `false`
327
+ * @default false
328
328
  */
329
329
  shouldRespectLeadingZeros: _propTypes.default.bool,
330
330
  /**
@@ -59,7 +59,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
59
59
  // ----------------------------------------------------------------------
60
60
  /**
61
61
  * 12h/24h view for hour selection clock.
62
- * @default `utils.is12HourCycleInCurrentLocale()`
62
+ * @default utils.is12HourCycleInCurrentLocale()
63
63
  */
64
64
  ampm: _propTypes.default.bool,
65
65
  /**
@@ -84,7 +84,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
84
84
  * Formats the day of week displayed in the calendar header.
85
85
  * @param {TDate} date The date of the day of week provided by the adapter.
86
86
  * @returns {string} The name to display.
87
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
87
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
88
88
  */
89
89
  dayOfWeekFormatter: _propTypes.default.func,
90
90
  /**
@@ -95,7 +95,7 @@ DesktopDatePicker.propTypes = {
95
95
  * Formats the day of week displayed in the calendar header.
96
96
  * @param {TDate} date The date of the day of week provided by the adapter.
97
97
  * @returns {string} The name to display.
98
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
98
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
99
99
  */
100
100
  dayOfWeekFormatter: _propTypes.default.func,
101
101
  /**
@@ -156,7 +156,7 @@ DesktopDateTimePicker.propTypes = {
156
156
  // ----------------------------------------------------------------------
157
157
  /**
158
158
  * 12h/24h view for hour selection clock.
159
- * @default `utils.is12HourCycleInCurrentLocale()`
159
+ * @default utils.is12HourCycleInCurrentLocale()
160
160
  */
161
161
  ampm: _propTypes.default.bool,
162
162
  /**
@@ -181,7 +181,7 @@ DesktopDateTimePicker.propTypes = {
181
181
  * Formats the day of week displayed in the calendar header.
182
182
  * @param {TDate} date The date of the day of week provided by the adapter.
183
183
  * @returns {string} The name to display.
184
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
184
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
185
185
  */
186
186
  dayOfWeekFormatter: _propTypes.default.func,
187
187
  /**
@@ -101,7 +101,7 @@ DesktopTimePicker.propTypes = {
101
101
  // ----------------------------------------------------------------------
102
102
  /**
103
103
  * 12h/24h view for hour selection clock.
104
- * @default `utils.is12HourCycleInCurrentLocale()`
104
+ * @default utils.is12HourCycleInCurrentLocale()
105
105
  */
106
106
  ampm: _propTypes.default.bool,
107
107
  /**
@@ -283,7 +283,7 @@ process.env.NODE_ENV !== "production" ? DigitalClock.propTypes = {
283
283
  // ----------------------------------------------------------------------
284
284
  /**
285
285
  * 12h/24h view for hour selection clock.
286
- * @default `utils.is12HourCycleInCurrentLocale()`
286
+ * @default utils.is12HourCycleInCurrentLocale()
287
287
  */
288
288
  ampm: _propTypes.default.bool,
289
289
  /**
@@ -92,7 +92,7 @@ MobileDatePicker.propTypes = {
92
92
  * Formats the day of week displayed in the calendar header.
93
93
  * @param {TDate} date The date of the day of week provided by the adapter.
94
94
  * @returns {string} The name to display.
95
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
95
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
96
96
  */
97
97
  dayOfWeekFormatter: _propTypes.default.func,
98
98
  /**
@@ -87,7 +87,7 @@ MobileDateTimePicker.propTypes = {
87
87
  // ----------------------------------------------------------------------
88
88
  /**
89
89
  * 12h/24h view for hour selection clock.
90
- * @default `utils.is12HourCycleInCurrentLocale()`
90
+ * @default utils.is12HourCycleInCurrentLocale()
91
91
  */
92
92
  ampm: _propTypes.default.bool,
93
93
  /**
@@ -112,7 +112,7 @@ MobileDateTimePicker.propTypes = {
112
112
  * Formats the day of week displayed in the calendar header.
113
113
  * @param {TDate} date The date of the day of week provided by the adapter.
114
114
  * @returns {string} The name to display.
115
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
115
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
116
116
  */
117
117
  dayOfWeekFormatter: _propTypes.default.func,
118
118
  /**
@@ -80,7 +80,7 @@ MobileTimePicker.propTypes = {
80
80
  // ----------------------------------------------------------------------
81
81
  /**
82
82
  * 12h/24h view for hour selection clock.
83
- * @default `utils.is12HourCycleInCurrentLocale()`
83
+ * @default utils.is12HourCycleInCurrentLocale()
84
84
  */
85
85
  ampm: _propTypes.default.bool,
86
86
  /**
@@ -340,7 +340,7 @@ process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
340
340
  // ----------------------------------------------------------------------
341
341
  /**
342
342
  * 12h/24h view for hour selection clock.
343
- * @default `utils.is12HourCycleInCurrentLocale()`
343
+ * @default utils.is12HourCycleInCurrentLocale()
344
344
  */
345
345
  ampm: _propTypes.default.bool,
346
346
  /**