@mui/x-date-pickers 7.2.0 → 7.3.2

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 (198) hide show
  1. package/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +1 -1
  2. package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +1 -1
  3. package/AdapterDayjs/AdapterDayjs.d.ts +1 -1
  4. package/AdapterLuxon/AdapterLuxon.d.ts +1 -1
  5. package/AdapterMoment/AdapterMoment.d.ts +1 -1
  6. package/AdapterMomentHijri/AdapterMomentHijri.d.ts +1 -1
  7. package/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +1 -1
  8. package/CHANGELOG.md +280 -7
  9. package/DateCalendar/DateCalendar.js +1 -2
  10. package/DateCalendar/DayCalendar.js +1 -2
  11. package/DateCalendar/useCalendarState.d.ts +1 -3
  12. package/DatePicker/DatePicker.js +1 -1
  13. package/DatePicker/shared.d.ts +1 -1
  14. package/DateTimePicker/DateTimePicker.js +1 -1
  15. package/DateTimePicker/DateTimePickerTabs.js +1 -2
  16. package/DateTimePicker/DateTimePickerToolbar.js +1 -2
  17. package/DateTimePicker/shared.d.ts +1 -1
  18. package/DesktopDatePicker/DesktopDatePicker.js +1 -1
  19. package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -3
  20. package/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -2
  21. package/DesktopTimePicker/DesktopTimePicker.js +1 -1
  22. package/MobileDatePicker/MobileDatePicker.js +1 -1
  23. package/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  24. package/MobileTimePicker/MobileTimePicker.js +1 -1
  25. package/PickersCalendarHeader/PickersCalendarHeader.js +1 -2
  26. package/PickersLayout/PickersLayout.js +1 -2
  27. package/PickersSectionList/PickersSectionList.js +1 -2
  28. package/PickersTextField/PickersInputBase/PickersInputBase.js +1 -2
  29. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -2
  30. package/PickersTextField/PickersTextField.js +1 -2
  31. package/StaticDatePicker/StaticDatePicker.js +1 -1
  32. package/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  33. package/StaticTimePicker/StaticTimePicker.js +1 -1
  34. package/TimeClock/Clock.js +1 -2
  35. package/TimeClock/ClockNumbers.d.ts +1 -1
  36. package/TimeClock/TimeClock.js +1 -2
  37. package/TimePicker/TimePicker.js +1 -1
  38. package/TimePicker/TimePickerToolbar.js +1 -2
  39. package/TimePicker/shared.d.ts +1 -1
  40. package/hooks/useClearableField.js +1 -2
  41. package/icons/index.js +1 -2
  42. package/index.js +1 -1
  43. package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +1 -2
  44. package/internals/components/PickersToolbar.js +1 -2
  45. package/internals/demo/DemoContainer.js +1 -2
  46. package/internals/hooks/defaultizedFieldProps.d.ts +3 -3
  47. package/internals/hooks/useClockReferenceDate.d.ts +1 -1
  48. package/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -2
  49. package/internals/hooks/useField/useField.utils.d.ts +13 -13
  50. package/internals/hooks/useMobilePicker/useMobilePicker.js +1 -2
  51. package/internals/hooks/usePicker/usePickerViews.d.ts +1 -1
  52. package/internals/utils/date-time-utils.d.ts +2 -2
  53. package/internals/utils/date-utils.d.ts +10 -10
  54. package/internals/utils/getDefaultReferenceDate.d.ts +2 -3
  55. package/internals/utils/time-utils.d.ts +6 -6
  56. package/internals/utils/utils.d.ts +1 -1
  57. package/locales/caES.js +26 -30
  58. package/locales/esES.js +21 -24
  59. package/locales/heIL.js +14 -17
  60. package/locales/huHU.js +15 -18
  61. package/modern/DateCalendar/DateCalendar.js +1 -2
  62. package/modern/DateCalendar/DayCalendar.js +1 -2
  63. package/modern/DatePicker/DatePicker.js +1 -1
  64. package/modern/DateTimePicker/DateTimePicker.js +1 -1
  65. package/modern/DateTimePicker/DateTimePickerTabs.js +1 -2
  66. package/modern/DateTimePicker/DateTimePickerToolbar.js +1 -2
  67. package/modern/DesktopDatePicker/DesktopDatePicker.js +1 -1
  68. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -3
  69. package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -2
  70. package/modern/DesktopTimePicker/DesktopTimePicker.js +1 -1
  71. package/modern/MobileDatePicker/MobileDatePicker.js +1 -1
  72. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  73. package/modern/MobileTimePicker/MobileTimePicker.js +1 -1
  74. package/modern/PickersCalendarHeader/PickersCalendarHeader.js +1 -2
  75. package/modern/PickersLayout/PickersLayout.js +1 -2
  76. package/modern/PickersSectionList/PickersSectionList.js +1 -2
  77. package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +1 -2
  78. package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -2
  79. package/modern/PickersTextField/PickersTextField.js +1 -2
  80. package/modern/StaticDatePicker/StaticDatePicker.js +1 -1
  81. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  82. package/modern/StaticTimePicker/StaticTimePicker.js +1 -1
  83. package/modern/TimeClock/Clock.js +1 -2
  84. package/modern/TimeClock/TimeClock.js +1 -2
  85. package/modern/TimePicker/TimePicker.js +1 -1
  86. package/modern/TimePicker/TimePickerToolbar.js +1 -2
  87. package/modern/hooks/useClearableField.js +1 -2
  88. package/modern/icons/index.js +1 -2
  89. package/modern/index.js +1 -1
  90. package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +1 -2
  91. package/modern/internals/components/PickersToolbar.js +1 -2
  92. package/modern/internals/demo/DemoContainer.js +1 -2
  93. package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -2
  94. package/modern/internals/hooks/useMobilePicker/useMobilePicker.js +1 -2
  95. package/modern/locales/caES.js +26 -30
  96. package/modern/locales/esES.js +21 -24
  97. package/modern/locales/heIL.js +14 -17
  98. package/modern/locales/huHU.js +15 -18
  99. package/node/DateCalendar/DateCalendar.js +1 -1
  100. package/node/DateCalendar/DayCalendar.js +1 -1
  101. package/node/DateCalendar/PickersFadeTransitionGroup.js +1 -1
  102. package/node/DateCalendar/PickersSlideTransition.js +1 -1
  103. package/node/DateCalendar/useCalendarState.js +1 -1
  104. package/node/DateCalendar/useIsDateDisabled.js +1 -1
  105. package/node/DateField/DateField.js +1 -1
  106. package/node/DatePicker/DatePicker.js +2 -2
  107. package/node/DatePicker/DatePickerToolbar.js +1 -1
  108. package/node/DatePicker/shared.js +1 -1
  109. package/node/DateTimeField/DateTimeField.js +1 -1
  110. package/node/DateTimePicker/DateTimePicker.js +2 -2
  111. package/node/DateTimePicker/DateTimePickerTabs.js +1 -1
  112. package/node/DateTimePicker/DateTimePickerToolbar.js +1 -1
  113. package/node/DateTimePicker/shared.js +1 -1
  114. package/node/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -1
  115. package/node/DesktopDatePicker/DesktopDatePicker.js +2 -2
  116. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
  117. package/node/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -1
  118. package/node/DesktopTimePicker/DesktopTimePicker.js +2 -2
  119. package/node/DigitalClock/DigitalClock.js +1 -1
  120. package/node/LocalizationProvider/LocalizationProvider.js +1 -1
  121. package/node/MobileDatePicker/MobileDatePicker.js +2 -2
  122. package/node/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
  123. package/node/MobileTimePicker/MobileTimePicker.js +2 -2
  124. package/node/MonthCalendar/MonthCalendar.js +1 -1
  125. package/node/MonthCalendar/PickersMonth.js +1 -1
  126. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
  127. package/node/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +1 -1
  128. package/node/PickersActionBar/PickersActionBar.js +1 -1
  129. package/node/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
  130. package/node/PickersDay/PickersDay.js +1 -1
  131. package/node/PickersLayout/PickersLayout.js +1 -1
  132. package/node/PickersLayout/usePickerLayout.js +1 -1
  133. package/node/PickersSectionList/PickersSectionList.js +1 -1
  134. package/node/PickersShortcuts/PickersShortcuts.js +1 -1
  135. package/node/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
  136. package/node/PickersTextField/PickersInput/PickersInput.js +1 -1
  137. package/node/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
  138. package/node/PickersTextField/PickersOutlinedInput/Outline.js +1 -1
  139. package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
  140. package/node/PickersTextField/PickersTextField.js +1 -1
  141. package/node/StaticDatePicker/StaticDatePicker.js +2 -2
  142. package/node/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
  143. package/node/StaticTimePicker/StaticTimePicker.js +2 -2
  144. package/node/TimeClock/Clock.js +1 -1
  145. package/node/TimeClock/ClockNumber.js +1 -1
  146. package/node/TimeClock/ClockNumbers.js +1 -1
  147. package/node/TimeClock/ClockPointer.js +1 -1
  148. package/node/TimeClock/TimeClock.js +1 -1
  149. package/node/TimeField/TimeField.js +1 -1
  150. package/node/TimePicker/TimePicker.js +2 -2
  151. package/node/TimePicker/TimePickerToolbar.js +1 -1
  152. package/node/TimePicker/shared.js +1 -1
  153. package/node/YearCalendar/PickersYear.js +1 -1
  154. package/node/YearCalendar/YearCalendar.js +1 -1
  155. package/node/dateViewRenderers/dateViewRenderers.js +1 -1
  156. package/node/hooks/useClearableField.js +1 -1
  157. package/node/icons/index.js +1 -1
  158. package/node/index.js +1 -1
  159. package/node/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +1 -1
  160. package/node/internals/components/PickersModalDialog.js +1 -1
  161. package/node/internals/components/PickersPopper.js +1 -1
  162. package/node/internals/components/PickersToolbar.js +1 -1
  163. package/node/internals/components/PickersToolbarButton.js +1 -1
  164. package/node/internals/components/PickersToolbarText.js +1 -1
  165. package/node/internals/demo/DemoContainer.js +1 -1
  166. package/node/internals/hooks/date-helpers-hooks.js +1 -1
  167. package/node/internals/hooks/useClockReferenceDate.js +1 -1
  168. package/node/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -1
  169. package/node/internals/hooks/useField/useField.js +1 -1
  170. package/node/internals/hooks/useField/useFieldCharacterEditing.js +1 -1
  171. package/node/internals/hooks/useField/useFieldState.js +1 -1
  172. package/node/internals/hooks/useField/useFieldV6TextField.js +1 -1
  173. package/node/internals/hooks/useField/useFieldV7TextField.js +1 -1
  174. package/node/internals/hooks/useIsLandscape.js +1 -1
  175. package/node/internals/hooks/useMobilePicker/useMobilePicker.js +1 -1
  176. package/node/internals/hooks/useOpenState.js +1 -1
  177. package/node/internals/hooks/usePicker/usePickerValue.js +1 -1
  178. package/node/internals/hooks/usePicker/usePickerViews.js +1 -1
  179. package/node/internals/hooks/useStaticPicker/useStaticPicker.js +1 -1
  180. package/node/internals/hooks/useUtils.js +1 -1
  181. package/node/internals/hooks/useValidation.js +1 -1
  182. package/node/internals/hooks/useValueWithTimezone.js +1 -1
  183. package/node/internals/hooks/useViews.js +1 -1
  184. package/node/locales/caES.js +26 -30
  185. package/node/locales/esES.js +21 -24
  186. package/node/locales/heIL.js +14 -17
  187. package/node/locales/huHU.js +15 -18
  188. package/node/timeViewRenderers/timeViewRenderers.js +1 -1
  189. package/package.json +3 -5
  190. package/timeViewRenderers/timeViewRenderers.d.ts +1 -1
  191. package/internals/components/DateTimeViewWrapper/DateTimeViewWrapper.d.ts +0 -2
  192. package/internals/components/DateTimeViewWrapper/DateTimeViewWrapper.js +0 -5
  193. package/internals/components/DateTimeViewWrapper/index.d.ts +0 -1
  194. package/internals/components/DateTimeViewWrapper/index.js +0 -1
  195. package/modern/internals/components/DateTimeViewWrapper/DateTimeViewWrapper.js +0 -5
  196. package/modern/internals/components/DateTimeViewWrapper/index.js +0 -1
  197. package/node/internals/components/DateTimeViewWrapper/DateTimeViewWrapper.js +0 -11
  198. package/node/internals/components/DateTimeViewWrapper/index.js +0 -12
package/locales/heIL.js CHANGED
@@ -16,11 +16,10 @@ const heILPickers = {
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 heILPickers = {
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,18 @@ const heILPickers = {
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',
62
+ year: 'שנה',
63
+ month: 'חודש',
64
+ day: 'יום',
65
+ weekDay: 'יום בשבוע',
66
+ hours: 'שעות',
67
+ minutes: 'דקות',
68
+ seconds: 'שניות',
72
69
  // meridiem: 'Meridiem',
73
70
 
74
71
  // Common
75
- // empty: 'Empty',
72
+ empty: 'ריק'
76
73
  };
77
74
  export const heIL = getPickersLocalization(heILPickers);
package/locales/huHU.js CHANGED
@@ -17,11 +17,10 @@ const huHUPickers = {
17
17
  // DateRange labels
18
18
  start: 'Kezdő dátum',
19
19
  end: 'Záró dátum',
20
- // startDate: 'Start date',
21
- // startTime: 'Start time',
22
- // endDate: 'End date',
23
- // endTime: 'End time',
24
-
20
+ startDate: 'Kezdő dátum',
21
+ startTime: 'Kezdő idő',
22
+ endDate: 'Záró dátum',
23
+ endTime: 'Záró idő',
25
24
  // Action bar
26
25
  cancelButtonLabel: 'Mégse',
27
26
  clearButtonLabel: 'Törlés',
@@ -55,23 +54,21 @@ const huHUPickers = {
55
54
  fieldYearPlaceholder: params => 'É'.repeat(params.digitAmount),
56
55
  fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'HHHH' : 'HH',
57
56
  fieldDayPlaceholder: () => 'NN',
58
- // fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
57
+ fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'NNNN' : 'NN',
59
58
  fieldHoursPlaceholder: () => 'óó',
60
59
  fieldMinutesPlaceholder: () => 'pp',
61
60
  fieldSecondsPlaceholder: () => 'mm',
62
- fieldMeridiemPlaceholder: () => 'dd'
63
-
61
+ fieldMeridiemPlaceholder: () => 'dd',
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: 'Év',
64
+ month: 'Hónap',
65
+ day: 'Nap',
66
+ weekDay: 'Hétköznap',
67
+ hours: timeViews.hours,
68
+ minutes: timeViews.minutes,
69
+ seconds: timeViews.seconds,
70
+ meridiem: timeViews.meridiem,
74
71
  // Common
75
- // empty: 'Empty',
72
+ empty: 'Üres'
76
73
  };
77
74
  export const huHU = getPickersLocalization(huHUPickers);
@@ -22,8 +22,7 @@ import { getDateCalendarUtilityClass } from './dateCalendarClasses';
22
22
  import { useControlledValueWithTimezone } from '../internals/hooks/useValueWithTimezone';
23
23
  import { singleItemValueManager } from '../internals/utils/valueManagers';
24
24
  import { VIEW_HEIGHT } from '../internals/constants/dimensions';
25
- import { jsx as _jsx } from "react/jsx-runtime";
26
- import { jsxs as _jsxs } from "react/jsx-runtime";
25
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
27
26
  const useUtilityClasses = ownerState => {
28
27
  const {
29
28
  classes
@@ -16,8 +16,7 @@ import { PickersSlideTransition } from './PickersSlideTransition';
16
16
  import { useIsDateDisabled } from './useIsDateDisabled';
17
17
  import { findClosestEnabledDate, getWeekdays } from '../internals/utils/date-utils';
18
18
  import { getDayCalendarUtilityClass } from './dayCalendarClasses';
19
- import { jsx as _jsx } from "react/jsx-runtime";
20
- import { jsxs as _jsxs } from "react/jsx-runtime";
19
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
20
  const useUtilityClasses = ownerState => {
22
21
  const {
23
22
  classes
@@ -334,7 +334,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
334
334
  /**
335
335
  * Define custom view renderers for each section.
336
336
  * If `null`, the section will only have field editing.
337
- * If `undefined`, internally defined view will be the used.
337
+ * If `undefined`, internally defined view will be used.
338
338
  */
339
339
  viewRenderers: PropTypes.shape({
340
340
  day: PropTypes.func,
@@ -401,7 +401,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
401
401
  /**
402
402
  * Define custom view renderers for each section.
403
403
  * If `null`, the section will only have field editing.
404
- * If `undefined`, internally defined view will be the used.
404
+ * If `undefined`, internally defined view will be used.
405
405
  */
406
406
  viewRenderers: PropTypes.shape({
407
407
  day: PropTypes.func,
@@ -9,8 +9,7 @@ import { TimeIcon, DateRangeIcon } from '../icons';
9
9
  import { useLocaleText } from '../internals/hooks/useUtils';
10
10
  import { getDateTimePickerTabsUtilityClass } from './dateTimePickerTabsClasses';
11
11
  import { isDatePickerView } from '../internals/utils/date-utils';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  const viewToTab = view => {
15
14
  if (isDatePickerView(view)) {
16
15
  return 'date';
@@ -16,8 +16,7 @@ import { MULTI_SECTION_CLOCK_SECTION_WIDTH } from '../internals/constants/dimens
16
16
  import { formatMeridiem } from '../internals/utils/date-utils';
17
17
  import { pickersToolbarTextClasses } from '../internals/components/pickersToolbarTextClasses';
18
18
  import { pickersToolbarClasses } from '../internals';
19
- import { jsx as _jsx } from "react/jsx-runtime";
20
- import { jsxs as _jsxs } from "react/jsx-runtime";
19
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
20
  const useUtilityClasses = ownerState => {
22
21
  const {
23
22
  classes,
@@ -349,7 +349,7 @@ DesktopDatePicker.propTypes = {
349
349
  /**
350
350
  * Define custom view renderers for each section.
351
351
  * If `null`, the section will only have field editing.
352
- * If `undefined`, internally defined view will be the used.
352
+ * If `undefined`, internally defined view will be used.
353
353
  */
354
354
  viewRenderers: PropTypes.shape({
355
355
  day: PropTypes.func,
@@ -21,8 +21,7 @@ import { VIEW_HEIGHT, isDatePickerView, isInternalTimeView } from '../internals'
21
21
  import { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses } from '../MultiSectionDigitalClock';
22
22
  import { digitalClockClasses } from '../DigitalClock';
23
23
  import { DesktopDateTimePickerLayout } from './DesktopDateTimePickerLayout';
24
- import { jsx as _jsx } from "react/jsx-runtime";
25
- import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
25
  const rendererInterceptor = function rendererInterceptor(inViewRenderers, popperView, rendererProps) {
27
26
  const {
28
27
  openTo,
@@ -502,7 +501,7 @@ DesktopDateTimePicker.propTypes = {
502
501
  /**
503
502
  * Define custom view renderers for each section.
504
503
  * If `null`, the section will only have field editing.
505
- * If `undefined`, internally defined view will be the used.
504
+ * If `undefined`, internally defined view will be used.
506
505
  */
507
506
  viewRenderers: PropTypes.shape({
508
507
  day: PropTypes.func,
@@ -3,8 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import clsx from 'clsx';
4
4
  import Divider from '@mui/material/Divider';
5
5
  import { PickersLayoutContentWrapper, PickersLayoutRoot, pickersLayoutClasses, usePickerLayout } from '../PickersLayout';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
7
  /**
9
8
  * @ignore - internal component.
10
9
  */
@@ -336,7 +336,7 @@ DesktopTimePicker.propTypes = {
336
336
  /**
337
337
  * Define custom view renderers for each section.
338
338
  * If `null`, the section will only have field editing.
339
- * If `undefined`, internally defined view will be the used.
339
+ * If `undefined`, internally defined view will be used.
340
340
  */
341
341
  viewRenderers: PropTypes.shape({
342
342
  hours: PropTypes.func,
@@ -346,7 +346,7 @@ MobileDatePicker.propTypes = {
346
346
  /**
347
347
  * Define custom view renderers for each section.
348
348
  * If `null`, the section will only have field editing.
349
- * If `undefined`, internally defined view will be the used.
349
+ * If `undefined`, internally defined view will be used.
350
350
  */
351
351
  viewRenderers: PropTypes.shape({
352
352
  day: PropTypes.func,
@@ -402,7 +402,7 @@ MobileDateTimePicker.propTypes = {
402
402
  /**
403
403
  * Define custom view renderers for each section.
404
404
  * If `null`, the section will only have field editing.
405
- * If `undefined`, internally defined view will be the used.
405
+ * If `undefined`, internally defined view will be used.
406
406
  */
407
407
  viewRenderers: PropTypes.shape({
408
408
  day: PropTypes.func,
@@ -294,7 +294,7 @@ MobileTimePicker.propTypes = {
294
294
  /**
295
295
  * Define custom view renderers for each section.
296
296
  * If `null`, the section will only have field editing.
297
- * If `undefined`, internally defined view will be the used.
297
+ * If `undefined`, internally defined view will be used.
298
298
  */
299
299
  viewRenderers: PropTypes.shape({
300
300
  hours: PropTypes.func,
@@ -16,8 +16,7 @@ import { ArrowDropDownIcon } from '../icons';
16
16
  import { PickersArrowSwitcher } from '../internals/components/PickersArrowSwitcher';
17
17
  import { usePreviousMonthDisabled, useNextMonthDisabled } from '../internals/hooks/date-helpers-hooks';
18
18
  import { getPickersCalendarHeaderUtilityClass, pickersCalendarHeaderClasses } from './pickersCalendarHeaderClasses';
19
- import { jsx as _jsx } from "react/jsx-runtime";
20
- import { jsxs as _jsxs } from "react/jsx-runtime";
19
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
20
  const useUtilityClasses = ownerState => {
22
21
  const {
23
22
  classes
@@ -5,8 +5,7 @@ import { styled, useThemeProps } from '@mui/material/styles';
5
5
  import { unstable_composeClasses as composeClasses } from '@mui/utils';
6
6
  import { pickersLayoutClasses, getPickersLayoutUtilityClass } from './pickersLayoutClasses';
7
7
  import usePickerLayout from './usePickerLayout';
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
9
- import { jsx as _jsx } from "react/jsx-runtime";
8
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
10
9
  const useUtilityClasses = ownerState => {
11
10
  const {
12
11
  isLandscape,
@@ -8,8 +8,7 @@ import composeClasses from '@mui/utils/composeClasses';
8
8
  import useForkRef from '@mui/utils/useForkRef';
9
9
  import { styled, useThemeProps } from '@mui/material/styles';
10
10
  import { getPickersSectionListUtilityClass, pickersSectionListClasses } from './pickersSectionListClasses';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  export const PickersSectionListRoot = styled('div', {
14
13
  name: 'MuiPickersSectionList',
15
14
  slot: 'Root',
@@ -13,8 +13,7 @@ import { useSlotProps } from '@mui/base/utils';
13
13
  import visuallyHidden from '@mui/utils/visuallyHidden';
14
14
  import { pickersInputBaseClasses, getPickersInputBaseUtilityClass } from './pickersInputBaseClasses';
15
15
  import { Unstable_PickersSectionList as PickersSectionList, Unstable_PickersSectionListRoot as PickersSectionListRoot, Unstable_PickersSectionListSection as PickersSectionListSection, Unstable_PickersSectionListSectionSeparator as PickersSectionListSectionSeparator, Unstable_PickersSectionListSectionContent as PickersSectionListSectionContent } from '../../PickersSectionList';
16
- import { jsx as _jsx } from "react/jsx-runtime";
17
- import { jsxs as _jsxs } from "react/jsx-runtime";
16
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
18
17
  const round = value => Math.round(value * 1e5) / 1e5;
19
18
  export const PickersInputBaseRoot = styled('div', {
20
19
  name: 'MuiPickersInputBase',
@@ -11,8 +11,7 @@ import { pickersOutlinedInputClasses, getPickersOutlinedInputUtilityClass } from
11
11
  import Outline from './Outline';
12
12
  import { PickersInputBase } from '../PickersInputBase';
13
13
  import { PickersInputBaseRoot, PickersInputBaseSectionsContainer } from '../PickersInputBase/PickersInputBase';
14
- import { jsxs as _jsxs } from "react/jsx-runtime";
15
- import { jsx as _jsx } from "react/jsx-runtime";
14
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
16
15
  const PickersOutlinedInputRoot = styled(PickersInputBaseRoot, {
17
16
  name: 'MuiPickersOutlinedInput',
18
17
  slot: 'Root',
@@ -16,8 +16,7 @@ import { getPickersTextFieldUtilityClass } from './pickersTextFieldClasses';
16
16
  import { PickersOutlinedInput } from './PickersOutlinedInput';
17
17
  import { PickersFilledInput } from './PickersFilledInput';
18
18
  import { PickersInput } from './PickersInput';
19
- import { jsx as _jsx } from "react/jsx-runtime";
20
- import { jsxs as _jsxs } from "react/jsx-runtime";
19
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
20
  const VARIANT_COMPONENT = {
22
21
  standard: PickersInput,
23
22
  filled: PickersFilledInput,
@@ -276,7 +276,7 @@ StaticDatePicker.propTypes = {
276
276
  /**
277
277
  * Define custom view renderers for each section.
278
278
  * If `null`, the section will only have field editing.
279
- * If `undefined`, internally defined view will be the used.
279
+ * If `undefined`, internally defined view will be used.
280
280
  */
281
281
  viewRenderers: PropTypes.shape({
282
282
  day: PropTypes.func,
@@ -332,7 +332,7 @@ StaticDateTimePicker.propTypes = {
332
332
  /**
333
333
  * Define custom view renderers for each section.
334
334
  * If `null`, the section will only have field editing.
335
- * If `undefined`, internally defined view will be the used.
335
+ * If `undefined`, internally defined view will be used.
336
336
  */
337
337
  viewRenderers: PropTypes.shape({
338
338
  day: PropTypes.func,
@@ -223,7 +223,7 @@ StaticTimePicker.propTypes = {
223
223
  /**
224
224
  * Define custom view renderers for each section.
225
225
  * If `null`, the section will only have field editing.
226
- * If `undefined`, internally defined view will be the used.
226
+ * If `undefined`, internally defined view will be used.
227
227
  */
228
228
  viewRenderers: PropTypes.shape({
229
229
  hours: PropTypes.func,
@@ -9,8 +9,7 @@ import { useLocaleText, useUtils } from '../internals/hooks/useUtils';
9
9
  import { CLOCK_HOUR_WIDTH, getHours, getMinutes } from './shared';
10
10
  import { getClockUtilityClass } from './clockClasses';
11
11
  import { formatMeridiem } from '../internals/utils/date-utils';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  const useUtilityClasses = ownerState => {
15
14
  const {
16
15
  classes
@@ -18,8 +18,7 @@ import { getHourNumbers, getMinutesNumbers } from './ClockNumbers';
18
18
  import { useControlledValueWithTimezone } from '../internals/hooks/useValueWithTimezone';
19
19
  import { singleItemValueManager } from '../internals/utils/valueManagers';
20
20
  import { useClockReferenceDate } from '../internals/hooks/useClockReferenceDate';
21
- import { jsx as _jsx } from "react/jsx-runtime";
22
- import { jsxs as _jsxs } from "react/jsx-runtime";
21
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
22
  const useUtilityClasses = ownerState => {
24
23
  const {
25
24
  classes
@@ -300,7 +300,7 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
300
300
  /**
301
301
  * Define custom view renderers for each section.
302
302
  * If `null`, the section will only have field editing.
303
- * If `undefined`, internally defined view will be the used.
303
+ * If `undefined`, internally defined view will be used.
304
304
  */
305
305
  viewRenderers: PropTypes.shape({
306
306
  hours: PropTypes.func,
@@ -14,8 +14,7 @@ import { useLocaleText, useUtils } from '../internals/hooks/useUtils';
14
14
  import { useMeridiemMode } from '../internals/hooks/date-helpers-hooks';
15
15
  import { getTimePickerToolbarUtilityClass, timePickerToolbarClasses } from './timePickerToolbarClasses';
16
16
  import { formatMeridiem } from '../internals/utils/date-utils';
17
- import { jsx as _jsx } from "react/jsx-runtime";
18
- import { jsxs as _jsxs } from "react/jsx-runtime";
17
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
19
18
  const useUtilityClasses = ownerState => {
20
19
  const {
21
20
  theme,
@@ -8,8 +8,7 @@ import MuiIconButton from '@mui/material/IconButton';
8
8
  import InputAdornment from '@mui/material/InputAdornment';
9
9
  import { ClearIcon } from '../icons';
10
10
  import { useLocaleText } from '../internals/hooks/useUtils';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  export const useClearableField = props => {
14
13
  const localeText = useLocaleText();
15
14
  const {
@@ -4,8 +4,7 @@ import * as React from 'react';
4
4
  /**
5
5
  * @ignore - internal component.
6
6
  */
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
8
  export const ArrowDropDownIcon = createSvgIcon( /*#__PURE__*/_jsx("path", {
10
9
  d: "M7 10l5 5 5-5z"
11
10
  }), 'ArrowDropDown');
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.2.0
2
+ * @mui/x-date-pickers v7.3.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -12,8 +12,7 @@ import { useSlotProps } from '@mui/base/utils';
12
12
  import IconButton from '@mui/material/IconButton';
13
13
  import { ArrowLeftIcon, ArrowRightIcon } from '../../../icons';
14
14
  import { getPickersArrowSwitcherUtilityClass } from './pickersArrowSwitcherClasses';
15
- import { jsx as _jsx } from "react/jsx-runtime";
16
- import { jsxs as _jsxs } from "react/jsx-runtime";
15
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
16
  const PickersArrowSwitcherRoot = styled('div', {
18
17
  name: 'MuiPickersArrowSwitcher',
19
18
  slot: 'Root',
@@ -7,8 +7,7 @@ import Typography from '@mui/material/Typography';
7
7
  import { styled, useThemeProps } from '@mui/material/styles';
8
8
  import { unstable_composeClasses as composeClasses } from '@mui/utils';
9
9
  import { getPickersToolbarUtilityClass } from './pickersToolbarClasses';
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
11
  const useUtilityClasses = ownerState => {
13
12
  const {
14
13
  classes,
@@ -4,8 +4,7 @@ import Stack, { stackClasses } from '@mui/material/Stack';
4
4
  import Typography from '@mui/material/Typography';
5
5
  import { textFieldClasses } from '@mui/material/TextField';
6
6
  import { pickersTextFieldClasses } from '@mui/x-date-pickers/PickersTextField';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
8
  const getChildTypeFromChildName = childName => {
10
9
  if (childName.match(/^([A-Za-z]+)Range(Calendar|Clock)$/)) {
11
10
  return 'multi-panel-UI-view';
@@ -14,8 +14,7 @@ import { useUtils } from '../useUtils';
14
14
  import { usePicker } from '../usePicker';
15
15
  import { LocalizationProvider } from '../../../LocalizationProvider';
16
16
  import { PickersLayout } from '../../../PickersLayout';
17
- import { jsx as _jsx } from "react/jsx-runtime";
18
- import { jsxs as _jsxs } from "react/jsx-runtime";
17
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
19
18
  /**
20
19
  * Hook managing all the single-date desktop pickers:
21
20
  * - DesktopDatePicker
@@ -11,8 +11,7 @@ import { onSpaceOrEnter } from '../../utils/utils';
11
11
  import { useUtils } from '../useUtils';
12
12
  import { LocalizationProvider } from '../../../LocalizationProvider';
13
13
  import { PickersLayout } from '../../../PickersLayout';
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
15
  /**
17
16
  * Hook managing all the single-date mobile pickers:
18
17
  * - MobileDatePicker
@@ -1,53 +1,51 @@
1
1
  import { getPickersLocalization } from './utils/getPickersLocalization';
2
2
  const views = {
3
- hours: 'les hores',
4
- minutes: 'els minuts',
5
- seconds: 'els segons',
6
- meridiem: 'meridiem'
3
+ hours: 'Hores',
4
+ minutes: 'Minuts',
5
+ seconds: 'Segons',
6
+ meridiem: 'Meridià'
7
7
  };
8
8
  const caESPickers = {
9
9
  // Calendar navigation
10
- previousMonth: 'Últim mes',
11
- nextMonth: 'Pròxim mes',
10
+ previousMonth: 'Mes anterior',
11
+ nextMonth: 'Mes següent',
12
12
  // View navigation
13
13
  openPreviousView: "Obrir l'última vista",
14
- openNextView: 'obrir la següent vista',
15
- calendarViewSwitchingButtonAriaLabel: view => view === 'year' ? "la vista de l'any està oberta, canvie a la vista de calendari" : "la vista de calendari està oberta, canvie a la vista de l'any",
14
+ openNextView: 'Obrir la següent vista',
15
+ calendarViewSwitchingButtonAriaLabel: view => view === 'year' ? 'la vista anual està oberta, canvia a la vista de calendari' : 'la vista de calendari està oberta, canvia a la vista anual',
16
16
  // DateRange labels
17
17
  start: 'Començar',
18
18
  end: 'Terminar',
19
- // startDate: 'Start date',
20
- // startTime: 'Start time',
21
- // endDate: 'End date',
22
- // endTime: 'End time',
23
-
19
+ startDate: 'Data inicial',
20
+ startTime: 'Hora inicial',
21
+ endDate: 'Data final',
22
+ endTime: 'Hora final',
24
23
  // Action bar
25
24
  cancelButtonLabel: 'Cancel·lar',
26
25
  clearButtonLabel: 'Netejar',
27
26
  okButtonLabel: 'OK',
28
- todayButtonLabel: 'Hui',
27
+ todayButtonLabel: 'Avuí',
29
28
  // Toolbar titles
30
29
  datePickerToolbarTitle: 'Seleccionar data',
31
30
  dateTimePickerToolbarTitle: 'Seleccionar data i hora',
32
31
  timePickerToolbarTitle: 'Seleccionar hora',
33
32
  dateRangePickerToolbarTitle: 'Seleccionar rang de dates',
34
33
  // Clock labels
35
- clockLabelText: (view, time, adapter) => `Seleccione ${views[view]}. ${time === null ? 'Sense temps seleccionat' : `El temps seleccionat és ${adapter.format(time, 'fullTime')}`}`,
34
+ clockLabelText: (view, time, adapter) => `Selecciona ${views[view]}. ${time === null ? 'Hora no seleccionada' : `L'hora seleccionada és ${adapter.format(time, 'fullTime')}`}`,
36
35
  hoursClockNumberText: hours => `${hours} hores`,
37
36
  minutesClockNumberText: minutes => `${minutes} minuts`,
38
37
  secondsClockNumberText: seconds => `${seconds} segons`,
39
38
  // Digital clock labels
40
39
  selectViewText: view => `Seleccionar ${views[view]}`,
41
40
  // Calendar labels
42
- calendarWeekNumberHeaderLabel: 'Número de setmana',
41
+ calendarWeekNumberHeaderLabel: 'Número de la setmana',
43
42
  calendarWeekNumberHeaderText: '#',
44
43
  calendarWeekNumberAriaLabelText: weekNumber => `Setmana ${weekNumber}`,
45
44
  calendarWeekNumberText: weekNumber => `${weekNumber}`,
46
45
  // Open picker labels
47
46
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Tria la data, la data triada és ${utils.format(value, 'fullDate')}` : 'Tria la data',
48
47
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Tria l'hora, l'hora triada és ${utils.format(value, 'fullTime')}` : "Tria l'hora",
49
- // fieldClearLabel: 'Clear value',
50
-
48
+ fieldClearLabel: 'Netega el valor',
51
49
  // Table labels
52
50
  timeTableLabel: 'tria la data',
53
51
  dateTableLabel: "tria l'hora",
@@ -59,19 +57,17 @@ const caESPickers = {
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: 'Any',
63
+ month: 'Mes',
64
+ day: 'Dia',
65
+ weekDay: 'Dia de la setmana',
66
+ hours: 'Hores',
67
+ minutes: 'Minuts',
68
+ seconds: 'Segons',
69
+ meridiem: 'Meridià',
74
70
  // Common
75
- // empty: 'Empty',
71
+ empty: 'Buit'
76
72
  };
77
73
  export const caES = getPickersLocalization(caESPickers);