@mui/x-date-pickers 7.0.0-alpha.0 → 7.0.0-alpha.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 (252) hide show
  1. package/AdapterDateFns/AdapterDateFns.d.ts +6 -17
  2. package/AdapterDateFns/AdapterDateFns.js +9 -93
  3. package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +6 -17
  4. package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +9 -93
  5. package/AdapterDayjs/AdapterDayjs.d.ts +7 -19
  6. package/AdapterDayjs/AdapterDayjs.js +13 -67
  7. package/AdapterLuxon/AdapterLuxon.d.ts +6 -17
  8. package/AdapterLuxon/AdapterLuxon.js +5 -96
  9. package/AdapterMoment/AdapterMoment.d.ts +6 -22
  10. package/AdapterMoment/AdapterMoment.js +11 -75
  11. package/AdapterMomentHijri/AdapterMomentHijri.d.ts +2 -9
  12. package/AdapterMomentHijri/AdapterMomentHijri.js +1 -33
  13. package/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +2 -11
  14. package/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -43
  15. package/CHANGELOG.md +591 -5
  16. package/DateCalendar/DateCalendar.js +2 -9
  17. package/DateCalendar/DateCalendar.types.d.ts +0 -4
  18. package/DateCalendar/DayCalendar.d.ts +1 -2
  19. package/DateCalendar/DayCalendar.js +9 -16
  20. package/DateCalendar/dayCalendarClasses.d.ts +1 -1
  21. package/DateCalendar/dayCalendarClasses.js +1 -1
  22. package/DateCalendar/index.d.ts +1 -2
  23. package/DateCalendar/index.js +2 -4
  24. package/DateCalendar/useCalendarState.d.ts +1 -1
  25. package/DateCalendar/useCalendarState.js +1 -9
  26. package/DateField/DateField.js +1 -1
  27. package/DatePicker/DatePicker.js +1 -6
  28. package/DatePicker/shared.d.ts +1 -1
  29. package/DateTimeField/DateTimeField.js +1 -9
  30. package/DateTimePicker/DateTimePicker.js +1 -14
  31. package/DateTimePicker/shared.d.ts +1 -1
  32. package/DesktopDatePicker/DesktopDatePicker.js +1 -6
  33. package/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -14
  34. package/DesktopTimePicker/DesktopTimePicker.js +1 -9
  35. package/DigitalClock/DigitalClock.js +6 -17
  36. package/LocalizationProvider/LocalizationProvider.js +0 -6
  37. package/MobileDatePicker/MobileDatePicker.js +1 -6
  38. package/MobileDateTimePicker/MobileDateTimePicker.js +1 -14
  39. package/MobileTimePicker/MobileTimePicker.js +1 -9
  40. package/MonthCalendar/MonthCalendar.js +1 -1
  41. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -15
  42. package/PickersCalendarHeader/PickersCalendarHeader.js +11 -4
  43. package/PickersDay/PickersDay.js +1 -1
  44. package/StaticDatePicker/StaticDatePicker.js +1 -6
  45. package/StaticDateTimePicker/StaticDateTimePicker.js +1 -14
  46. package/StaticTimePicker/StaticTimePicker.js +1 -9
  47. package/TimeClock/Clock.js +1 -1
  48. package/TimeClock/TimeClock.js +3 -15
  49. package/TimeField/TimeField.js +1 -9
  50. package/TimePicker/TimePicker.js +1 -9
  51. package/TimePicker/shared.d.ts +1 -1
  52. package/YearCalendar/YearCalendar.js +2 -2
  53. package/dateTimeViewRenderers/dateTimeViewRenderers.d.ts +2 -2
  54. package/dateTimeViewRenderers/dateTimeViewRenderers.js +0 -4
  55. package/dateViewRenderers/dateViewRenderers.d.ts +1 -1
  56. package/dateViewRenderers/dateViewRenderers.js +0 -2
  57. package/index.d.ts +1 -0
  58. package/index.js +4 -1
  59. package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.d.ts +5 -0
  60. package/internals/hooks/date-helpers-hooks.js +2 -2
  61. package/internals/hooks/useField/useField.utils.js +8 -9
  62. package/internals/hooks/useField/useFieldState.js +2 -2
  63. package/internals/hooks/usePicker/usePickerValue.types.d.ts +1 -1
  64. package/internals/hooks/useUtils.js +1 -1
  65. package/internals/hooks/useViews.js +2 -2
  66. package/internals/models/validation.d.ts +0 -8
  67. package/internals/utils/date-utils.js +2 -2
  68. package/internals/utils/getDefaultReferenceDate.d.ts +1 -2
  69. package/internals/utils/getDefaultReferenceDate.js +0 -4
  70. package/internals/utils/validation/extractValidationProps.d.ts +1 -1
  71. package/internals/utils/validation/extractValidationProps.js +1 -1
  72. package/internals/utils/validation/validateDate.js +1 -1
  73. package/internals/utils/validation/validateTime.js +1 -8
  74. package/legacy/AdapterDateFns/AdapterDateFns.js +13 -94
  75. package/legacy/AdapterDateFnsJalali/AdapterDateFnsJalali.js +13 -94
  76. package/legacy/AdapterDayjs/AdapterDayjs.js +19 -69
  77. package/legacy/AdapterLuxon/AdapterLuxon.js +10 -97
  78. package/legacy/AdapterMoment/AdapterMoment.js +16 -78
  79. package/legacy/AdapterMomentHijri/AdapterMomentHijri.js +5 -33
  80. package/legacy/AdapterMomentJalaali/AdapterMomentJalaali.js +5 -43
  81. package/legacy/DateCalendar/DateCalendar.js +2 -9
  82. package/legacy/DateCalendar/DayCalendar.js +7 -11
  83. package/legacy/DateCalendar/PickersSlideTransition.js +8 -9
  84. package/legacy/DateCalendar/dayCalendarClasses.js +1 -1
  85. package/legacy/DateCalendar/index.js +2 -4
  86. package/legacy/DateCalendar/useCalendarState.js +1 -9
  87. package/legacy/DateField/DateField.js +1 -1
  88. package/legacy/DatePicker/DatePicker.js +1 -6
  89. package/legacy/DateTimeField/DateTimeField.js +1 -9
  90. package/legacy/DateTimePicker/DateTimePicker.js +1 -14
  91. package/legacy/DesktopDatePicker/DesktopDatePicker.js +1 -6
  92. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -14
  93. package/legacy/DesktopTimePicker/DesktopTimePicker.js +1 -9
  94. package/legacy/DigitalClock/DigitalClock.js +6 -17
  95. package/legacy/LocalizationProvider/LocalizationProvider.js +0 -6
  96. package/legacy/MobileDatePicker/MobileDatePicker.js +1 -6
  97. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +1 -14
  98. package/legacy/MobileTimePicker/MobileTimePicker.js +1 -9
  99. package/legacy/MonthCalendar/MonthCalendar.js +1 -1
  100. package/legacy/MonthCalendar/PickersMonth.js +4 -5
  101. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -15
  102. package/legacy/PickersCalendarHeader/PickersCalendarHeader.js +11 -3
  103. package/legacy/PickersDay/PickersDay.js +6 -7
  104. package/legacy/PickersLayout/PickersLayout.js +5 -6
  105. package/legacy/StaticDatePicker/StaticDatePicker.js +1 -6
  106. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +1 -14
  107. package/legacy/StaticTimePicker/StaticTimePicker.js +1 -9
  108. package/legacy/TimeClock/Clock.js +1 -1
  109. package/legacy/TimeClock/ClockNumber.js +4 -5
  110. package/legacy/TimeClock/TimeClock.js +3 -15
  111. package/legacy/TimeField/TimeField.js +1 -9
  112. package/legacy/TimePicker/TimePicker.js +1 -9
  113. package/legacy/TimePicker/TimePickerToolbar.js +1 -2
  114. package/legacy/YearCalendar/PickersYear.js +4 -5
  115. package/legacy/YearCalendar/YearCalendar.js +2 -2
  116. package/legacy/dateTimeViewRenderers/dateTimeViewRenderers.js +0 -4
  117. package/legacy/dateViewRenderers/dateViewRenderers.js +0 -2
  118. package/legacy/index.js +4 -1
  119. package/legacy/internals/components/PickersModalDialog.js +3 -4
  120. package/legacy/internals/hooks/date-helpers-hooks.js +2 -2
  121. package/legacy/internals/hooks/useField/useField.utils.js +8 -9
  122. package/legacy/internals/hooks/useField/useFieldState.js +2 -2
  123. package/legacy/internals/hooks/useUtils.js +1 -1
  124. package/legacy/internals/hooks/useViews.js +2 -2
  125. package/legacy/internals/utils/date-utils.js +2 -2
  126. package/legacy/internals/utils/getDefaultReferenceDate.js +0 -6
  127. package/legacy/internals/utils/validation/extractValidationProps.js +1 -1
  128. package/legacy/internals/utils/validation/validateDate.js +1 -1
  129. package/legacy/internals/utils/validation/validateTime.js +1 -8
  130. package/legacy/locales/deDE.js +4 -3
  131. package/legacy/locales/index.js +1 -0
  132. package/legacy/locales/mk.js +91 -0
  133. package/legacy/timeViewRenderers/timeViewRenderers.js +0 -6
  134. package/locales/deDE.js +2 -3
  135. package/locales/index.d.ts +1 -0
  136. package/locales/index.js +1 -0
  137. package/locales/mk.d.ts +53 -0
  138. package/locales/mk.js +55 -0
  139. package/models/adapters.d.ts +16 -145
  140. package/models/fields.d.ts +0 -6
  141. package/models/timezone.d.ts +1 -1
  142. package/models/validation.d.ts +1 -1
  143. package/modern/AdapterDateFns/AdapterDateFns.js +9 -93
  144. package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +9 -93
  145. package/modern/AdapterDayjs/AdapterDayjs.js +13 -66
  146. package/modern/AdapterLuxon/AdapterLuxon.js +5 -96
  147. package/modern/AdapterMoment/AdapterMoment.js +11 -74
  148. package/modern/AdapterMomentHijri/AdapterMomentHijri.js +1 -33
  149. package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -43
  150. package/modern/DateCalendar/DateCalendar.js +2 -9
  151. package/modern/DateCalendar/DayCalendar.js +9 -15
  152. package/modern/DateCalendar/dayCalendarClasses.js +1 -1
  153. package/modern/DateCalendar/index.js +2 -4
  154. package/modern/DateCalendar/useCalendarState.js +1 -9
  155. package/modern/DateField/DateField.js +1 -1
  156. package/modern/DatePicker/DatePicker.js +1 -6
  157. package/modern/DateTimeField/DateTimeField.js +1 -9
  158. package/modern/DateTimePicker/DateTimePicker.js +1 -14
  159. package/modern/DesktopDatePicker/DesktopDatePicker.js +1 -6
  160. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -14
  161. package/modern/DesktopTimePicker/DesktopTimePicker.js +1 -9
  162. package/modern/DigitalClock/DigitalClock.js +6 -17
  163. package/modern/LocalizationProvider/LocalizationProvider.js +0 -6
  164. package/modern/MobileDatePicker/MobileDatePicker.js +1 -6
  165. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +1 -14
  166. package/modern/MobileTimePicker/MobileTimePicker.js +1 -9
  167. package/modern/MonthCalendar/MonthCalendar.js +1 -1
  168. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -15
  169. package/modern/PickersCalendarHeader/PickersCalendarHeader.js +11 -4
  170. package/modern/PickersDay/PickersDay.js +1 -1
  171. package/modern/StaticDatePicker/StaticDatePicker.js +1 -6
  172. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +1 -14
  173. package/modern/StaticTimePicker/StaticTimePicker.js +1 -9
  174. package/modern/TimeClock/Clock.js +1 -1
  175. package/modern/TimeClock/TimeClock.js +3 -15
  176. package/modern/TimeField/TimeField.js +1 -9
  177. package/modern/TimePicker/TimePicker.js +1 -9
  178. package/modern/YearCalendar/YearCalendar.js +2 -2
  179. package/modern/dateTimeViewRenderers/dateTimeViewRenderers.js +0 -4
  180. package/modern/dateViewRenderers/dateViewRenderers.js +0 -2
  181. package/modern/index.js +4 -1
  182. package/modern/internals/hooks/date-helpers-hooks.js +2 -2
  183. package/modern/internals/hooks/useField/useField.utils.js +8 -9
  184. package/modern/internals/hooks/useField/useFieldState.js +2 -2
  185. package/modern/internals/hooks/useUtils.js +1 -1
  186. package/modern/internals/hooks/useViews.js +2 -2
  187. package/modern/internals/utils/date-utils.js +2 -2
  188. package/modern/internals/utils/getDefaultReferenceDate.js +0 -1
  189. package/modern/internals/utils/validation/extractValidationProps.js +1 -1
  190. package/modern/internals/utils/validation/validateDate.js +1 -1
  191. package/modern/internals/utils/validation/validateTime.js +1 -8
  192. package/modern/locales/deDE.js +2 -3
  193. package/modern/locales/index.js +1 -0
  194. package/modern/locales/mk.js +55 -0
  195. package/modern/timeViewRenderers/timeViewRenderers.js +0 -6
  196. package/node/AdapterDateFns/AdapterDateFns.js +9 -93
  197. package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +9 -93
  198. package/node/AdapterDayjs/AdapterDayjs.js +13 -66
  199. package/node/AdapterLuxon/AdapterLuxon.js +5 -96
  200. package/node/AdapterMoment/AdapterMoment.js +11 -74
  201. package/node/AdapterMomentHijri/AdapterMomentHijri.js +1 -33
  202. package/node/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -43
  203. package/node/DateCalendar/DateCalendar.js +2 -9
  204. package/node/DateCalendar/DayCalendar.js +9 -15
  205. package/node/DateCalendar/dayCalendarClasses.js +2 -2
  206. package/node/DateCalendar/index.js +3 -23
  207. package/node/DateCalendar/useCalendarState.js +1 -9
  208. package/node/DateField/DateField.js +1 -1
  209. package/node/DatePicker/DatePicker.js +1 -6
  210. package/node/DateTimeField/DateTimeField.js +1 -9
  211. package/node/DateTimePicker/DateTimePicker.js +1 -14
  212. package/node/DesktopDatePicker/DesktopDatePicker.js +1 -6
  213. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -14
  214. package/node/DesktopTimePicker/DesktopTimePicker.js +1 -9
  215. package/node/DigitalClock/DigitalClock.js +6 -17
  216. package/node/LocalizationProvider/LocalizationProvider.js +0 -6
  217. package/node/MobileDatePicker/MobileDatePicker.js +1 -6
  218. package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -14
  219. package/node/MobileTimePicker/MobileTimePicker.js +1 -9
  220. package/node/MonthCalendar/MonthCalendar.js +1 -1
  221. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -15
  222. package/node/PickersCalendarHeader/PickersCalendarHeader.js +11 -4
  223. package/node/PickersDay/PickersDay.js +1 -1
  224. package/node/StaticDatePicker/StaticDatePicker.js +1 -6
  225. package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -14
  226. package/node/StaticTimePicker/StaticTimePicker.js +1 -9
  227. package/node/TimeClock/Clock.js +1 -1
  228. package/node/TimeClock/TimeClock.js +3 -15
  229. package/node/TimeField/TimeField.js +1 -9
  230. package/node/TimePicker/TimePicker.js +1 -9
  231. package/node/YearCalendar/YearCalendar.js +2 -2
  232. package/node/dateTimeViewRenderers/dateTimeViewRenderers.js +0 -4
  233. package/node/dateViewRenderers/dateViewRenderers.js +0 -2
  234. package/node/index.js +13 -1
  235. package/node/internals/hooks/date-helpers-hooks.js +2 -2
  236. package/node/internals/hooks/useField/useField.utils.js +8 -9
  237. package/node/internals/hooks/useField/useFieldState.js +2 -2
  238. package/node/internals/hooks/useUtils.js +1 -1
  239. package/node/internals/hooks/useViews.js +2 -2
  240. package/node/internals/utils/date-utils.js +2 -2
  241. package/node/internals/utils/getDefaultReferenceDate.js +1 -3
  242. package/node/internals/utils/validation/extractValidationProps.js +1 -1
  243. package/node/internals/utils/validation/validateDate.js +1 -1
  244. package/node/internals/utils/validation/validateTime.js +1 -8
  245. package/node/locales/deDE.js +2 -3
  246. package/node/locales/index.js +11 -0
  247. package/node/locales/mk.js +60 -0
  248. package/node/timeViewRenderers/timeViewRenderers.js +0 -6
  249. package/package.json +7 -6
  250. package/themeAugmentation/overrides.d.ts +1 -1
  251. package/timeViewRenderers/timeViewRenderers.d.ts +3 -3
  252. package/timeViewRenderers/timeViewRenderers.js +0 -6
@@ -128,19 +128,13 @@ const defaultFormats = {
128
128
  minutes: 'mm',
129
129
  seconds: 'ss',
130
130
  fullDate: 'DD',
131
- fullDateWithWeekday: 'DDDD',
132
131
  keyboardDate: 'D',
133
132
  shortDate: 'MMM d',
134
133
  normalDate: 'd MMMM',
135
134
  normalDateWithWeekday: 'EEE, MMM d',
136
- monthAndYear: 'LLLL yyyy',
137
- monthAndDate: 'MMMM d',
138
135
  fullTime: 't',
139
136
  fullTime12h: 'hh:mm a',
140
137
  fullTime24h: 'HH:mm',
141
- fullDateTime: 'ff',
142
- fullDateTime12h: 'DD, hh:mm a',
143
- fullDateTime24h: 'DD, T',
144
138
  keyboardDateTime: 'D t',
145
139
  keyboardDateTime12h: 'D hh:mm a',
146
140
  keyboardDateTime24h: 'D T'
@@ -193,29 +187,7 @@ class AdapterLuxon {
193
187
  }
194
188
  return value.setLocale(expectedLocale);
195
189
  };
196
- this.date = value => {
197
- if (typeof value === 'undefined') {
198
- return _luxon.DateTime.local();
199
- }
200
- if (value === null) {
201
- return null;
202
- }
203
- if (typeof value === 'string') {
204
- // @ts-ignore
205
- return _luxon.DateTime.fromJSDate(new Date(value), {
206
- locale: this.locale
207
- });
208
- }
209
- if (_luxon.DateTime.isDateTime(value)) {
210
- return value;
211
- }
212
-
213
- // @ts-ignore
214
- return _luxon.DateTime.fromJSDate(value, {
215
- locale: this.locale
216
- });
217
- };
218
- this.dateWithTimezone = (value, timezone) => {
190
+ this.date = (value, timezone = 'default') => {
219
191
  if (value === null) {
220
192
  return null;
221
193
  }
@@ -233,6 +205,7 @@ class AdapterLuxon {
233
205
  zone: timezone
234
206
  });
235
207
  };
208
+ this.getInvalidDate = () => _luxon.DateTime.fromJSDate(new Date('Invalid Date'));
236
209
  this.getTimezone = value => {
237
210
  // When using the system zone, we want to return "system", not something like "Europe/Paris"
238
211
  if (value.zone.type === 'system') {
@@ -249,14 +222,6 @@ class AdapterLuxon {
249
222
  this.toJsDate = value => {
250
223
  return value.toJSDate();
251
224
  };
252
- this.parseISO = isoString => {
253
- return _luxon.DateTime.fromISO(isoString);
254
- };
255
- this.toISO = value => {
256
- return value.toUTC().toISO({
257
- format: 'extended'
258
- });
259
- };
260
225
  this.parse = (value, formatString) => {
261
226
  if (value === '') {
262
227
  return null;
@@ -305,20 +270,11 @@ class AdapterLuxon {
305
270
  // To avoid conflicts, we replace it by 4 digits which is enough for most use-cases.
306
271
  .replace('yyyyy', 'yyyy');
307
272
  };
308
- this.getFormatHelperText = format => {
309
- return this.expandFormat(format).replace(/(a)/g, '(a|p)m').toLocaleLowerCase();
310
- };
311
- this.isNull = value => {
312
- return value === null;
313
- };
314
273
  this.isValid = value => {
315
- if (_luxon.DateTime.isDateTime(value)) {
316
- return value.isValid;
317
- }
318
274
  if (value === null) {
319
275
  return false;
320
276
  }
321
- return this.isValid(this.date(value));
277
+ return value.isValid;
322
278
  };
323
279
  this.format = (value, formatKey) => {
324
280
  return this.formatByString(value, this.formats[formatKey]);
@@ -329,25 +285,14 @@ class AdapterLuxon {
329
285
  this.formatNumber = numberToFormat => {
330
286
  return numberToFormat;
331
287
  };
332
- this.getDiff = (value, comparing, unit) => {
333
- if (typeof comparing === 'string') {
334
- comparing = _luxon.DateTime.fromJSDate(new Date(comparing));
335
- }
336
- if (unit) {
337
- return Math.floor(value.diff(comparing).as(unit));
338
- }
339
- return value.diff(comparing).as('millisecond');
340
- };
341
288
  this.isEqual = (value, comparing) => {
342
289
  if (value === null && comparing === null) {
343
290
  return true;
344
291
  }
345
-
346
- // Make sure that null will not be passed to this.date
347
292
  if (value === null || comparing === null) {
348
293
  return false;
349
294
  }
350
- return +this.date(value) === +this.date(comparing);
295
+ return +value === +comparing;
351
296
  };
352
297
  this.isSameYear = (value, comparing) => {
353
298
  const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));
@@ -513,37 +458,6 @@ class AdapterLuxon {
513
458
  this.getDaysInMonth = value => {
514
459
  return value.daysInMonth;
515
460
  };
516
- this.getNextMonth = value => {
517
- return value.plus({
518
- months: 1
519
- });
520
- };
521
- this.getPreviousMonth = value => {
522
- return value.minus({
523
- months: 1
524
- });
525
- };
526
- this.getMonthArray = value => {
527
- const firstMonth = value.startOf('year');
528
- const monthArray = [firstMonth];
529
- while (monthArray.length < 12) {
530
- const prevMonth = monthArray[monthArray.length - 1];
531
- monthArray.push(this.addMonths(prevMonth, 1));
532
- }
533
- return monthArray;
534
- };
535
- this.mergeDateAndTime = (dateParam, timeParam) => {
536
- return dateParam.set({
537
- second: timeParam.second,
538
- hour: timeParam.hour,
539
- minute: timeParam.minute
540
- });
541
- };
542
- this.getWeekdays = () => {
543
- return _luxon.Info.weekdaysFormat('narrow', {
544
- locale: this.locale
545
- });
546
- };
547
461
  this.getWeekArray = value => {
548
462
  const cleanValue = this.setLocaleToValue(value);
549
463
  const {
@@ -564,7 +478,7 @@ class AdapterLuxon {
564
478
  this.getWeekNumber = value => {
565
479
  return value.weekNumber;
566
480
  };
567
- this.getYearRange = (start, end) => {
481
+ this.getYearRange = ([start, end]) => {
568
482
  const startDate = start.startOf('year');
569
483
  const endDate = end.endOf('year');
570
484
  let current = startDate;
@@ -577,11 +491,6 @@ class AdapterLuxon {
577
491
  }
578
492
  return years;
579
493
  };
580
- this.getMeridiemText = ampm => {
581
- return _luxon.Info.meridiems({
582
- locale: this.locale
583
- }).find(v => v.toLowerCase() === ampm.toLowerCase());
584
- };
585
494
  this.locale = locale || 'en-US';
586
495
  this.formats = (0, _extends2.default)({}, defaultFormats, formats);
587
496
  }
@@ -117,19 +117,13 @@ const defaultFormats = {
117
117
  minutes: 'mm',
118
118
  seconds: 'ss',
119
119
  fullDate: 'll',
120
- fullDateWithWeekday: 'dddd, LL',
121
120
  keyboardDate: 'L',
122
121
  shortDate: 'MMM D',
123
122
  normalDate: 'D MMMM',
124
123
  normalDateWithWeekday: 'ddd, MMM D',
125
- monthAndYear: 'MMMM YYYY',
126
- monthAndDate: 'MMMM D',
127
124
  fullTime: 'LT',
128
125
  fullTime12h: 'hh:mm A',
129
126
  fullTime24h: 'HH:mm',
130
- fullDateTime: 'lll',
131
- fullDateTime12h: 'll hh:mm A',
132
- fullDateTime24h: 'll HH:mm',
133
127
  keyboardDateTime: 'L LT',
134
128
  keyboardDateTime12h: 'L hh:mm A',
135
129
  keyboardDateTime24h: 'L HH:mm'
@@ -185,21 +179,6 @@ class AdapterMoment {
185
179
  }
186
180
  return value.locale(expectedLocale);
187
181
  };
188
- /**
189
- * Some methods from moment can't take the locale as a parameter and always use the current locale.
190
- * To respect the adapter locale, we need to set it as the current locale and then reset the previous locale.
191
- */
192
- this.syncMomentLocale = runner => {
193
- const momentLocale = _moment.default.locale();
194
- const adapterLocale = this.locale ?? 'en-us';
195
- if (momentLocale !== adapterLocale) {
196
- _moment.default.locale(adapterLocale);
197
- const result = runner();
198
- _moment.default.locale(momentLocale);
199
- return result;
200
- }
201
- return runner();
202
- };
203
182
  this.hasTimezonePlugin = () => typeof this.moment.tz !== 'undefined';
204
183
  this.createSystemDate = value => {
205
184
  const parsedValue = this.moment(value).local();
@@ -226,15 +205,7 @@ class AdapterMoment {
226
205
  }
227
206
  return parsedValue.locale(this.locale);
228
207
  };
229
- this.date = value => {
230
- if (value === null) {
231
- return null;
232
- }
233
- const moment = this.moment(value);
234
- moment.locale(this.getCurrentLocaleCode());
235
- return moment;
236
- };
237
- this.dateWithTimezone = (value, timezone) => {
208
+ this.date = (value, timezone = 'default') => {
238
209
  if (value === null) {
239
210
  return null;
240
211
  }
@@ -246,6 +217,7 @@ class AdapterMoment {
246
217
  }
247
218
  return this.createTZDate(value, timezone);
248
219
  };
220
+ this.getInvalidDate = () => this.moment(new Date('Invalid Date'));
249
221
  this.getTimezone = value => {
250
222
  // @ts-ignore
251
223
  // eslint-disable-next-line no-underscore-dangle
@@ -285,12 +257,6 @@ class AdapterMoment {
285
257
  this.toJsDate = value => {
286
258
  return value.toDate();
287
259
  };
288
- this.parseISO = isoString => {
289
- return this.moment(isoString, true);
290
- };
291
- this.toISO = value => {
292
- return value.toISOString();
293
- };
294
260
  this.parse = (value, format) => {
295
261
  if (value === '') {
296
262
  return null;
@@ -317,14 +283,11 @@ class AdapterMoment {
317
283
  return token;
318
284
  }).join('');
319
285
  };
320
- this.getFormatHelperText = format => {
321
- return this.expandFormat(format).replace(/a/gi, '(a|p)m').toLocaleLowerCase();
322
- };
323
- this.isNull = value => {
324
- return value === null;
325
- };
326
286
  this.isValid = value => {
327
- return this.moment(value).isValid();
287
+ if (value == null) {
288
+ return false;
289
+ }
290
+ return value.isValid();
328
291
  };
329
292
  this.format = (value, formatKey) => {
330
293
  return this.formatByString(value, this.formats[formatKey]);
@@ -337,14 +300,14 @@ class AdapterMoment {
337
300
  this.formatNumber = numberToFormat => {
338
301
  return numberToFormat;
339
302
  };
340
- this.getDiff = (value, comparing, unit) => {
341
- return value.diff(comparing, unit);
342
- };
343
303
  this.isEqual = (value, comparing) => {
344
304
  if (value === null && comparing === null) {
345
305
  return true;
346
306
  }
347
- return this.moment(value).isSame(comparing);
307
+ if (value === null || comparing === null) {
308
+ return false;
309
+ }
310
+ return value.isSame(comparing);
348
311
  };
349
312
  this.isSameYear = (value, comparing) => {
350
313
  return value.isSame(comparing, 'year');
@@ -469,25 +432,6 @@ class AdapterMoment {
469
432
  this.getDaysInMonth = value => {
470
433
  return value.daysInMonth();
471
434
  };
472
- this.getNextMonth = value => {
473
- return value.clone().add(1, 'month');
474
- };
475
- this.getPreviousMonth = value => {
476
- return value.clone().subtract(1, 'month');
477
- };
478
- this.getMonthArray = value => {
479
- const firstMonth = this.startOfYear(value);
480
- const monthArray = [firstMonth];
481
- while (monthArray.length < 12) {
482
- const prevMonth = monthArray[monthArray.length - 1];
483
- monthArray.push(this.getNextMonth(prevMonth));
484
- }
485
- return monthArray;
486
- };
487
- this.mergeDateAndTime = (dateParam, timeParam) => {
488
- return dateParam.clone().hour(timeParam.hour()).minute(timeParam.minute()).second(timeParam.second());
489
- };
490
- this.getWeekdays = () => this.syncMomentLocale(() => _moment.default.weekdaysShort(true));
491
435
  this.getWeekArray = value => {
492
436
  const cleanValue = this.setLocaleToValue(value);
493
437
  const start = cleanValue.clone().startOf('month').startOf('week');
@@ -507,7 +451,7 @@ class AdapterMoment {
507
451
  this.getWeekNumber = value => {
508
452
  return value.week();
509
453
  };
510
- this.getYearRange = (start, end) => {
454
+ this.getYearRange = ([start, end]) => {
511
455
  const startDate = this.moment(start).startOf('year');
512
456
  const endDate = this.moment(end).endOf('year');
513
457
  const years = [];
@@ -518,13 +462,6 @@ class AdapterMoment {
518
462
  }
519
463
  return years;
520
464
  };
521
- this.getMeridiemText = ampm => {
522
- if (this.is12HourCycleInCurrentLocale()) {
523
- // AM/PM translation only possible in those who have 12 hour cycle in locale.
524
- return _moment.default.localeData(this.getCurrentLocaleCode()).meridiem(ampm === 'am' ? 0 : 13, 0, false);
525
- }
526
- return ampm === 'am' ? 'AM' : 'PM'; // fallback for de, ru, ...etc
527
- };
528
465
  this.moment = instance || _moment.default;
529
466
  this.locale = locale;
530
467
  this.formats = (0, _extends2.default)({}, defaultFormats, formats);
@@ -87,19 +87,13 @@ const defaultFormats = {
87
87
  minutes: 'mm',
88
88
  seconds: 'ss',
89
89
  fullDate: 'iYYYY, iMMMM Do',
90
- fullDateWithWeekday: 'iYYYY, iMMMM Do, dddd',
91
90
  keyboardDateTime: 'iYYYY/iMM/iDD LT',
92
91
  shortDate: 'iD iMMM',
93
92
  normalDate: 'dddd, iD iMMM',
94
93
  normalDateWithWeekday: 'DD iMMMM',
95
- monthAndYear: 'iMMMM iYYYY',
96
- monthAndDate: 'iD iMMMM',
97
94
  fullTime: 'LT',
98
95
  fullTime12h: 'hh:mm A',
99
96
  fullTime24h: 'HH:mm',
100
- fullDateTime: 'iYYYY, iMMMM Do, hh:mm A',
101
- fullDateTime12h: 'iD iMMMM hh:mm A',
102
- fullDateTime24h: 'iD iMMMM HH:mm',
103
97
  keyboardDate: 'iYYYY/iMM/iDD',
104
98
  keyboardDateTime12h: 'iYYYY/iMM/iDD hh:mm A',
105
99
  keyboardDateTime24h: 'iYYYY/iMM/iDD HH:mm'
@@ -161,9 +155,6 @@ class AdapterMomentHijri extends _AdapterMoment.AdapterMoment {
161
155
  }
162
156
  return this.moment(value).locale('ar-SA');
163
157
  };
164
- this.dateWithTimezone = value => {
165
- return this.date(value);
166
- };
167
158
  this.getTimezone = () => {
168
159
  return 'default';
169
160
  };
@@ -176,18 +167,9 @@ class AdapterMomentHijri extends _AdapterMoment.AdapterMoment {
176
167
  }
177
168
  return this.moment(value, format, true).locale('ar-SA');
178
169
  };
179
- this.getFormatHelperText = format => {
180
- return this.expandFormat(format).replace(/a/gi, '(a|p)m').replace('iY', 'Y').replace('iM', 'M').replace('iD', 'D').toLocaleLowerCase();
181
- };
182
170
  this.formatNumber = numberToFormat => {
183
171
  return numberToFormat.replace(/\d/g, match => NUMBER_SYMBOL_MAP[match]).replace(/,/g, '،');
184
172
  };
185
- this.isEqual = (value, comparing) => {
186
- if (value === null && comparing === null) {
187
- return true;
188
- }
189
- return this.moment(value).isSame(comparing);
190
- };
191
173
  this.startOfYear = value => {
192
174
  return value.clone().startOf('iYear');
193
175
  };
@@ -224,17 +206,6 @@ class AdapterMomentHijri extends _AdapterMoment.AdapterMoment {
224
206
  this.setDate = (value, date) => {
225
207
  return value.clone().iDate(date);
226
208
  };
227
- this.getNextMonth = value => {
228
- return value.clone().add(1, 'iMonth');
229
- };
230
- this.getPreviousMonth = value => {
231
- return value.clone().subtract(1, 'iMonth');
232
- };
233
- this.getWeekdays = () => {
234
- return [0, 1, 2, 3, 4, 5, 6].map(dayOfWeek => {
235
- return this.date().weekday(dayOfWeek).format('dd');
236
- });
237
- };
238
209
  this.getWeekArray = value => {
239
210
  const start = value.clone().startOf('iMonth').startOf('week');
240
211
  const end = value.clone().endOf('iMonth').endOf('week');
@@ -253,7 +224,7 @@ class AdapterMomentHijri extends _AdapterMoment.AdapterMoment {
253
224
  this.getWeekNumber = value => {
254
225
  return value.iWeek();
255
226
  };
256
- this.getYearRange = (start, end) => {
227
+ this.getYearRange = ([start, end]) => {
257
228
  // moment-hijri only supports dates between 1356-01-01 H and 1499-12-29 H
258
229
  // We need to throw if outside min/max bounds, otherwise the while loop below will be infinite.
259
230
  if (start.isBefore('1937-03-14')) {
@@ -272,9 +243,6 @@ class AdapterMomentHijri extends _AdapterMoment.AdapterMoment {
272
243
  }
273
244
  return years;
274
245
  };
275
- this.getMeridiemText = ampm => {
276
- return ampm === 'am' ? this.date().hours(2).format('A') : this.date().hours(14).format('A');
277
- };
278
246
  this.moment = instance || _momentHijri.default;
279
247
  this.locale = 'ar-SA';
280
248
  this.formats = (0, _extends2.default)({}, defaultFormats, formats);
@@ -85,19 +85,13 @@ const defaultFormats = {
85
85
  minutes: 'mm',
86
86
  seconds: 'ss',
87
87
  fullDate: 'jYYYY, jMMMM Do',
88
- fullDateWithWeekday: 'dddd Do jMMMM jYYYY',
89
88
  keyboardDate: 'jYYYY/jMM/jDD',
90
89
  shortDate: 'jD jMMM',
91
90
  normalDate: 'dddd, jD jMMM',
92
91
  normalDateWithWeekday: 'DD MMMM',
93
- monthAndYear: 'jMMMM jYYYY',
94
- monthAndDate: 'jD jMMMM',
95
92
  fullTime: 'LT',
96
93
  fullTime12h: 'hh:mm A',
97
94
  fullTime24h: 'HH:mm',
98
- fullDateTime: 'jYYYY, jMMMM Do, hh:mm A',
99
- fullDateTime12h: 'jD jMMMM hh:mm A',
100
- fullDateTime24h: 'jD jMMMM HH:mm',
101
95
  keyboardDateTime: 'jYYYY/jMM/jDD LT',
102
96
  keyboardDateTime12h: 'jYYYY/jMM/jDD hh:mm A',
103
97
  keyboardDateTime24h: 'jYYYY/jMM/jDD HH:mm'
@@ -159,43 +153,21 @@ class AdapterMomentJalaali extends _AdapterMoment.AdapterMoment {
159
153
  }
160
154
  return this.moment(value).locale('fa');
161
155
  };
162
- this.dateWithTimezone = value => {
163
- return this.date(value);
164
- };
165
156
  this.getTimezone = () => {
166
157
  return 'default';
167
158
  };
168
159
  this.setTimezone = value => {
169
160
  return value;
170
161
  };
171
- this.parseISO = isoString => {
172
- return this.moment(isoString).locale('fa');
173
- };
174
162
  this.parse = (value, format) => {
175
163
  if (value === '') {
176
164
  return null;
177
165
  }
178
166
  return this.moment(value, format, true).locale('fa');
179
167
  };
180
- this.getFormatHelperText = format => {
181
- return this.expandFormat(format).replace(/a/gi, '(a|p)m').replace('jY', 'Y').replace('jM', 'M').replace('jD', 'D').toLocaleLowerCase();
182
- };
183
- this.isValid = value => {
184
- // We can't to `this.moment(value)` because moment-jalaali looses the invalidity information when creating a new moment object from an existing one
185
- if (!this.moment.isMoment(value)) {
186
- return false;
187
- }
188
- return value.isValid();
189
- };
190
168
  this.formatNumber = numberToFormat => {
191
169
  return numberToFormat.replace(/\d/g, match => NUMBER_SYMBOL_MAP[match]).replace(/,/g, '،');
192
170
  };
193
- this.isEqual = (value, comparing) => {
194
- if (value === null && comparing === null) {
195
- return true;
196
- }
197
- return this.moment(value).isSame(comparing);
198
- };
199
171
  this.isSameYear = (value, comparing) => {
200
172
  // `isSame` seems to mutate the date on `moment-jalaali`
201
173
  // @ts-ignore
@@ -248,17 +220,6 @@ class AdapterMomentJalaali extends _AdapterMoment.AdapterMoment {
248
220
  this.setDate = (value, date) => {
249
221
  return value.clone().jDate(date);
250
222
  };
251
- this.getNextMonth = value => {
252
- return value.clone().add(1, 'jMonth');
253
- };
254
- this.getPreviousMonth = value => {
255
- return value.clone().subtract(1, 'jMonth');
256
- };
257
- this.getWeekdays = () => {
258
- return [0, 1, 2, 3, 4, 5, 6].map(dayOfWeek => {
259
- return this.date().weekday(dayOfWeek).format('dd');
260
- });
261
- };
262
223
  this.getWeekArray = value => {
263
224
  const start = value.clone().startOf('jMonth').startOf('week');
264
225
  const end = value.clone().endOf('jMonth').endOf('week');
@@ -277,7 +238,7 @@ class AdapterMomentJalaali extends _AdapterMoment.AdapterMoment {
277
238
  this.getWeekNumber = value => {
278
239
  return value.jWeek();
279
240
  };
280
- this.getYearRange = (start, end) => {
241
+ this.getYearRange = ([start, end]) => {
281
242
  const startDate = this.moment(start).startOf('jYear');
282
243
  const endDate = this.moment(end).endOf('jYear');
283
244
  const years = [];
@@ -288,9 +249,6 @@ class AdapterMomentJalaali extends _AdapterMoment.AdapterMoment {
288
249
  }
289
250
  return years;
290
251
  };
291
- this.getMeridiemText = ampm => {
292
- return ampm === 'am' ? this.date().hours(2).format('A') : this.date().hours(14).format('A');
293
- };
294
252
  this.moment = instance || _momentJalaali.default;
295
253
  this.locale = 'fa';
296
254
  this.formats = (0, _extends2.default)({}, defaultFormats, formats);
@@ -29,7 +29,7 @@ var _useValueWithTimezone = require("../internals/hooks/useValueWithTimezone");
29
29
  var _valueManagers = require("../internals/utils/valueManagers");
30
30
  var _dimensions = require("../internals/constants/dimensions");
31
31
  var _jsxRuntime = require("react/jsx-runtime");
32
- const _excluded = ["autoFocus", "onViewChange", "value", "defaultValue", "referenceDate", "disableFuture", "disablePast", "defaultCalendarMonth", "onChange", "onYearChange", "onMonthChange", "reduceAnimations", "shouldDisableDate", "shouldDisableMonth", "shouldDisableYear", "view", "views", "openTo", "className", "disabled", "readOnly", "minDate", "maxDate", "disableHighlightToday", "focusedView", "onFocusedViewChange", "showDaysOutsideCurrentMonth", "fixedWeekNumber", "dayOfWeekFormatter", "slots", "slotProps", "loading", "renderLoading", "displayWeekNumber", "yearsPerRow", "monthsPerRow", "timezone"];
32
+ const _excluded = ["autoFocus", "onViewChange", "value", "defaultValue", "referenceDate", "disableFuture", "disablePast", "onChange", "onYearChange", "onMonthChange", "reduceAnimations", "shouldDisableDate", "shouldDisableMonth", "shouldDisableYear", "view", "views", "openTo", "className", "disabled", "readOnly", "minDate", "maxDate", "disableHighlightToday", "focusedView", "onFocusedViewChange", "showDaysOutsideCurrentMonth", "fixedWeekNumber", "dayOfWeekFormatter", "slots", "slotProps", "loading", "renderLoading", "displayWeekNumber", "yearsPerRow", "monthsPerRow", "timezone"];
33
33
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
34
34
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
35
35
  const useUtilityClasses = ownerState => {
@@ -101,7 +101,6 @@ const DateCalendar = exports.DateCalendar = /*#__PURE__*/React.forwardRef(functi
101
101
  referenceDate: referenceDateProp,
102
102
  disableFuture,
103
103
  disablePast,
104
- defaultCalendarMonth,
105
104
  onChange,
106
105
  onYearChange,
107
106
  onMonthChange,
@@ -172,7 +171,6 @@ const DateCalendar = exports.DateCalendar = /*#__PURE__*/React.forwardRef(functi
172
171
  onMonthSwitchingAnimationEnd
173
172
  } = (0, _useCalendarState.useCalendarState)({
174
173
  value,
175
- defaultCalendarMonth,
176
174
  referenceDate: referenceDateProp,
177
175
  reduceAnimations,
178
176
  onMonthChange,
@@ -368,16 +366,11 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
368
366
  className: _propTypes.default.string,
369
367
  /**
370
368
  * Formats the day of week displayed in the calendar header.
371
- * @param {string} day The day of week provided by the adapter. Deprecated, will be removed in v7: Use `date` instead.
372
369
  * @param {TDate} date The date of the day of week provided by the adapter.
373
370
  * @returns {string} The name to display.
374
371
  * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
375
372
  */
376
373
  dayOfWeekFormatter: _propTypes.default.func,
377
- /**
378
- * Default calendar month displayed when `value` and `defaultValue` are empty.
379
- */
380
- defaultCalendarMonth: _propTypes.default.any,
381
374
  /**
382
375
  * The default selected value.
383
376
  * Used when the component is not controlled.
@@ -548,7 +541,7 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
548
541
  * Choose which timezone to use for the value.
549
542
  * Example: "default", "system", "UTC", "America/New_York".
550
543
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
551
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
544
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
552
545
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
553
546
  */
554
547
  timezone: _propTypes.default.string,
@@ -223,6 +223,7 @@ function DayCalendar(inProps) {
223
223
  props: inProps,
224
224
  name: 'MuiDayCalendar'
225
225
  });
226
+ const utils = (0, _useUtils.useUtils)();
226
227
  const {
227
228
  onFocusedDayChange,
228
229
  className,
@@ -246,7 +247,7 @@ function DayCalendar(inProps) {
246
247
  shouldDisableDate,
247
248
  shouldDisableMonth,
248
249
  shouldDisableYear,
249
- dayOfWeekFormatter: dayOfWeekFormatterFromProps,
250
+ dayOfWeekFormatter = date => utils.format(date, 'weekdayShort').charAt(0).toUpperCase(),
250
251
  hasFocus,
251
252
  onFocusedViewChange,
252
253
  gridLabelId,
@@ -256,13 +257,9 @@ function DayCalendar(inProps) {
256
257
  timezone
257
258
  } = props;
258
259
  const now = (0, _useUtils.useNow)(timezone);
259
- const utils = (0, _useUtils.useUtils)();
260
260
  const classes = useUtilityClasses(props);
261
261
  const theme = (0, _styles.useTheme)();
262
262
  const isRTL = theme.direction === 'rtl';
263
-
264
- // before we could define this outside of the component scope, but now we need utils, which is only defined here
265
- const dayOfWeekFormatter = dayOfWeekFormatterFromProps || ((_day, date) => utils.format(date, 'weekdayShort').charAt(0).toUpperCase());
266
263
  const isDateDisabled = (0, _useIsDateDisabled.useIsDateDisabled)({
267
264
  shouldDisableDate,
268
265
  shouldDisableMonth,
@@ -417,16 +414,13 @@ function DayCalendar(inProps) {
417
414
  "aria-label": localeText.calendarWeekNumberHeaderLabel,
418
415
  className: classes.weekNumberLabel,
419
416
  children: localeText.calendarWeekNumberHeaderText
420
- }), (0, _dateUtils.getWeekdays)(utils, now).map((weekday, i) => {
421
- const day = utils.format(weekday, 'weekdayShort');
422
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(PickersCalendarWeekDayLabel, {
423
- variant: "caption",
424
- role: "columnheader",
425
- "aria-label": utils.format(utils.addDays(startOfCurrentWeek, i), 'weekday'),
426
- className: classes.weekDayLabel,
427
- children: dayOfWeekFormatter?.(day, weekday) ?? day
428
- }, day + i.toString());
429
- })]
417
+ }), (0, _dateUtils.getWeekdays)(utils, now).map((weekday, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(PickersCalendarWeekDayLabel, {
418
+ variant: "caption",
419
+ role: "columnheader",
420
+ "aria-label": utils.format(utils.addDays(startOfCurrentWeek, i), 'weekday'),
421
+ className: classes.weekDayLabel,
422
+ children: dayOfWeekFormatter(weekday)
423
+ }, i.toString()))]
430
424
  }), loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(PickersCalendarLoadingContainer, {
431
425
  className: classes.loadingContainer,
432
426
  children: renderLoading()
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getDayCalendarUtilityClass = exports.dayPickerClasses = void 0;
6
+ exports.getDayCalendarUtilityClass = exports.dayCalendarClasses = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getDayCalendarUtilityClass = slot => (0, _utils.unstable_generateUtilityClass)('MuiDayCalendar', slot);
9
9
  exports.getDayCalendarUtilityClass = getDayCalendarUtilityClass;
10
- const dayPickerClasses = exports.dayPickerClasses = (0, _utils.unstable_generateUtilityClasses)('MuiDayCalendar', ['root', 'header', 'weekDayLabel', 'loadingContainer', 'slideTransition', 'monthContainer', 'weekContainer', 'weekNumberLabel', 'weekNumber']);
10
+ const dayCalendarClasses = exports.dayCalendarClasses = (0, _utils.unstable_generateUtilityClasses)('MuiDayCalendar', ['root', 'header', 'weekDayLabel', 'loadingContainer', 'slideTransition', 'monthContainer', 'weekContainer', 'weekNumberLabel', 'weekNumber']);