@mui/x-date-pickers 8.7.0 → 8.9.0

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 (46) hide show
  1. package/AdapterDayjs/AdapterDayjs.d.ts +28 -31
  2. package/AdapterDayjs/AdapterDayjs.js +25 -31
  3. package/CHANGELOG.md +199 -24
  4. package/DateCalendar/DateCalendar.js +2 -2
  5. package/DatePicker/DatePicker.js +1 -1
  6. package/DateTimePicker/DateTimePicker.js +3 -3
  7. package/DesktopDatePicker/DesktopDatePicker.js +1 -1
  8. package/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -3
  9. package/DesktopTimePicker/DesktopTimePicker.js +3 -3
  10. package/DigitalClock/DigitalClock.js +2 -2
  11. package/MobileDatePicker/MobileDatePicker.js +1 -1
  12. package/MobileDateTimePicker/MobileDateTimePicker.js +3 -3
  13. package/MobileTimePicker/MobileTimePicker.js +1 -1
  14. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -3
  15. package/PickersLayout/PickersLayout.js +1 -1
  16. package/StaticDatePicker/StaticDatePicker.js +1 -1
  17. package/StaticDateTimePicker/StaticDateTimePicker.js +3 -3
  18. package/StaticTimePicker/StaticTimePicker.js +1 -1
  19. package/TimeClock/TimeClock.js +2 -2
  20. package/TimePicker/TimePicker.js +3 -3
  21. package/esm/AdapterDayjs/AdapterDayjs.d.ts +28 -31
  22. package/esm/AdapterDayjs/AdapterDayjs.js +37 -43
  23. package/esm/DateCalendar/DateCalendar.js +2 -2
  24. package/esm/DatePicker/DatePicker.js +1 -1
  25. package/esm/DateTimePicker/DateTimePicker.js +3 -3
  26. package/esm/DesktopDatePicker/DesktopDatePicker.js +1 -1
  27. package/esm/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -3
  28. package/esm/DesktopTimePicker/DesktopTimePicker.js +3 -3
  29. package/esm/DigitalClock/DigitalClock.js +2 -2
  30. package/esm/MobileDatePicker/MobileDatePicker.js +1 -1
  31. package/esm/MobileDateTimePicker/MobileDateTimePicker.js +3 -3
  32. package/esm/MobileTimePicker/MobileTimePicker.js +1 -1
  33. package/esm/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -3
  34. package/esm/PickersLayout/PickersLayout.js +1 -1
  35. package/esm/StaticDatePicker/StaticDatePicker.js +1 -1
  36. package/esm/StaticDateTimePicker/StaticDateTimePicker.js +3 -3
  37. package/esm/StaticTimePicker/StaticTimePicker.js +1 -1
  38. package/esm/TimeClock/TimeClock.js +2 -2
  39. package/esm/TimePicker/TimePicker.js +3 -3
  40. package/esm/index.js +1 -1
  41. package/esm/internals/hooks/useViews.d.ts +2 -2
  42. package/esm/internals/models/props/time.d.ts +3 -3
  43. package/index.js +1 -1
  44. package/internals/hooks/useViews.d.ts +2 -2
  45. package/internals/models/props/time.d.ts +3 -3
  46. package/package.json +3 -3
@@ -229,7 +229,7 @@ DesktopTimePicker.propTypes = {
229
229
  onSelectedSectionsChange: PropTypes.func,
230
230
  /**
231
231
  * Callback fired on view change.
232
- * @template TView
232
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
233
233
  * @param {TView} view The new view.
234
234
  */
235
235
  onViewChange: PropTypes.func,
@@ -307,8 +307,8 @@ DesktopTimePicker.propTypes = {
307
307
  thresholdToRenderTimeInASingleColumn: PropTypes.number,
308
308
  /**
309
309
  * The time steps between two time unit options.
310
- * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
311
- * When single column time renderer is used, only `timeStep.minutes` will be used.
310
+ * For example, if `timeSteps.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
311
+ * When single column time renderer is used, only `timeSteps.minutes` will be used.
312
312
  * @default{ hours: 1, minutes: 5, seconds: 5 }
313
313
  */
314
314
  timeSteps: PropTypes.shape({
@@ -393,14 +393,14 @@ process.env.NODE_ENV !== "production" ? DigitalClock.propTypes = {
393
393
  onChange: PropTypes.func,
394
394
  /**
395
395
  * Callback fired on focused view change.
396
- * @template TView
396
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
397
397
  * @param {TView} view The new view to focus or not.
398
398
  * @param {boolean} hasFocus `true` if the view should be focused.
399
399
  */
400
400
  onFocusedViewChange: PropTypes.func,
401
401
  /**
402
402
  * Callback fired on view change.
403
- * @template TView
403
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
404
404
  * @param {TView} view The new view.
405
405
  */
406
406
  onViewChange: PropTypes.func,
@@ -228,7 +228,7 @@ MobileDatePicker.propTypes = {
228
228
  onSelectedSectionsChange: PropTypes.func,
229
229
  /**
230
230
  * Callback fired on view change.
231
- * @template TView
231
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
232
232
  * @param {TView} view The new view.
233
233
  */
234
234
  onViewChange: PropTypes.func,
@@ -316,7 +316,7 @@ MobileDateTimePicker.propTypes = {
316
316
  onSelectedSectionsChange: PropTypes.func,
317
317
  /**
318
318
  * Callback fired on view change.
319
- * @template TView
319
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
320
320
  * @param {TView} view The new view.
321
321
  */
322
322
  onViewChange: PropTypes.func,
@@ -437,8 +437,8 @@ MobileDateTimePicker.propTypes = {
437
437
  thresholdToRenderTimeInASingleColumn: PropTypes.number,
438
438
  /**
439
439
  * The time steps between two time unit options.
440
- * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
441
- * When single column time renderer is used, only `timeStep.minutes` will be used.
440
+ * For example, if `timeSteps.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
441
+ * When single column time renderer is used, only `timeSteps.minutes` will be used.
442
442
  * @default{ hours: 1, minutes: 5, seconds: 5 }
443
443
  */
444
444
  timeSteps: PropTypes.shape({
@@ -214,7 +214,7 @@ MobileTimePicker.propTypes = {
214
214
  onSelectedSectionsChange: PropTypes.func,
215
215
  /**
216
216
  * Callback fired on view change.
217
- * @template TView
217
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
218
218
  * @param {TView} view The new view.
219
219
  */
220
220
  onViewChange: PropTypes.func,
@@ -422,14 +422,14 @@ process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
422
422
  onChange: PropTypes.func,
423
423
  /**
424
424
  * Callback fired on focused view change.
425
- * @template TView
425
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
426
426
  * @param {TView} view The new view to focus or not.
427
427
  * @param {boolean} hasFocus `true` if the view should be focused.
428
428
  */
429
429
  onFocusedViewChange: PropTypes.func,
430
430
  /**
431
431
  * Callback fired on view change.
432
- * @template TView
432
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
433
433
  * @param {TView} view The new view.
434
434
  */
435
435
  onViewChange: PropTypes.func,
@@ -478,7 +478,7 @@ process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
478
478
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
479
479
  /**
480
480
  * The time steps between two time unit options.
481
- * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
481
+ * For example, if `timeSteps.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
482
482
  * @default{ hours: 1, minutes: 5, seconds: 5 }
483
483
  */
484
484
  timeSteps: PropTypes.shape({
@@ -75,7 +75,7 @@ export const PickersLayoutRoot = styled('div', {
75
75
  },
76
76
  style: {
77
77
  [`& .${pickersLayoutClasses.shortcuts}`]: {
78
- gridColumn: 3
78
+ gridColumn: 4
79
79
  }
80
80
  }
81
81
  }]
@@ -176,7 +176,7 @@ StaticDatePicker.propTypes = {
176
176
  onMonthChange: PropTypes.func,
177
177
  /**
178
178
  * Callback fired on view change.
179
- * @template TView
179
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
180
180
  * @param {TView} view The new view.
181
181
  */
182
182
  onViewChange: PropTypes.func,
@@ -263,7 +263,7 @@ StaticDateTimePicker.propTypes = {
263
263
  onMonthChange: PropTypes.func,
264
264
  /**
265
265
  * Callback fired on view change.
266
- * @template TView
266
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
267
267
  * @param {TView} view The new view.
268
268
  */
269
269
  onViewChange: PropTypes.func,
@@ -369,8 +369,8 @@ StaticDateTimePicker.propTypes = {
369
369
  thresholdToRenderTimeInASingleColumn: PropTypes.number,
370
370
  /**
371
371
  * The time steps between two time unit options.
372
- * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
373
- * When single column time renderer is used, only `timeStep.minutes` will be used.
372
+ * For example, if `timeSteps.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
373
+ * When single column time renderer is used, only `timeSteps.minutes` will be used.
374
374
  * @default{ hours: 1, minutes: 5, seconds: 5 }
375
375
  */
376
376
  timeSteps: PropTypes.shape({
@@ -161,7 +161,7 @@ StaticTimePicker.propTypes = {
161
161
  onError: PropTypes.func,
162
162
  /**
163
163
  * Callback fired on view change.
164
- * @template TView
164
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
165
165
  * @param {TView} view The new view.
166
166
  */
167
167
  onViewChange: PropTypes.func,
@@ -414,14 +414,14 @@ process.env.NODE_ENV !== "production" ? TimeClock.propTypes = {
414
414
  onChange: PropTypes.func,
415
415
  /**
416
416
  * Callback fired on focused view change.
417
- * @template TView
417
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
418
418
  * @param {TView} view The new view to focus or not.
419
419
  * @param {boolean} hasFocus `true` if the view should be focused.
420
420
  */
421
421
  onFocusedViewChange: PropTypes.func,
422
422
  /**
423
423
  * Callback fired on view change.
424
- * @template TView
424
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
425
425
  * @param {TView} view The new view.
426
426
  */
427
427
  onViewChange: PropTypes.func,
@@ -202,7 +202,7 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
202
202
  onSelectedSectionsChange: PropTypes.func,
203
203
  /**
204
204
  * Callback fired on view change.
205
- * @template TView
205
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
206
206
  * @param {TView} view The new view.
207
207
  */
208
208
  onViewChange: PropTypes.func,
@@ -280,8 +280,8 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
280
280
  thresholdToRenderTimeInASingleColumn: PropTypes.number,
281
281
  /**
282
282
  * The time steps between two time unit options.
283
- * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
284
- * When single column time renderer is used, only `timeStep.minutes` will be used.
283
+ * For example, if `timeSteps.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
284
+ * When single column time renderer is used, only `timeSteps.minutes` will be used.
285
285
  * @default{ hours: 1, minutes: 5, seconds: 5 }
286
286
  */
287
287
  timeSteps: PropTypes.shape({
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v8.7.0
2
+ * @mui/x-date-pickers v8.9.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -16,7 +16,7 @@ export interface UseViewsOptions<TValue extends PickerValidValue, TView extends
16
16
  onChange: (value: TValue, selectionState?: PickerSelectionState, selectedView?: TView) => void;
17
17
  /**
18
18
  * Callback fired on view change.
19
- * @template TView
19
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
20
20
  * @param {TView} view The new view.
21
21
  */
22
22
  onViewChange?: (view: TView) => void;
@@ -49,7 +49,7 @@ export interface UseViewsOptions<TValue extends PickerValidValue, TView extends
49
49
  focusedView?: TView | null;
50
50
  /**
51
51
  * Callback fired on focused view change.
52
- * @template TView
52
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
53
53
  * @param {TView} view The new view to focus or not.
54
54
  * @param {boolean} hasFocus `true` if the view should be focused.
55
55
  */
@@ -45,8 +45,8 @@ export interface DigitalTimePickerProps extends Omit<ExportedDigitalClockProps,
45
45
  thresholdToRenderTimeInASingleColumn?: number;
46
46
  /**
47
47
  * The time steps between two time unit options.
48
- * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
49
- * When single column time renderer is used, only `timeStep.minutes` will be used.
48
+ * For example, if `timeSteps.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
49
+ * When single column time renderer is used, only `timeSteps.minutes` will be used.
50
50
  * @default{ hours: 1, minutes: 5, seconds: 5 }
51
51
  */
52
52
  timeSteps?: TimeStepOptions;
@@ -69,7 +69,7 @@ export interface DigitalClockOnlyProps extends DigitalClockOnlyBaseProps {
69
69
  export interface MultiSectionDigitalClockOnlyProps extends DigitalClockOnlyBaseProps {
70
70
  /**
71
71
  * The time steps between two time unit options.
72
- * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
72
+ * For example, if `timeSteps.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
73
73
  * @default{ hours: 1, minutes: 5, seconds: 5 }
74
74
  */
75
75
  timeSteps?: TimeStepOptions;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v8.7.0
2
+ * @mui/x-date-pickers v8.9.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -16,7 +16,7 @@ export interface UseViewsOptions<TValue extends PickerValidValue, TView extends
16
16
  onChange: (value: TValue, selectionState?: PickerSelectionState, selectedView?: TView) => void;
17
17
  /**
18
18
  * Callback fired on view change.
19
- * @template TView
19
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
20
20
  * @param {TView} view The new view.
21
21
  */
22
22
  onViewChange?: (view: TView) => void;
@@ -49,7 +49,7 @@ export interface UseViewsOptions<TValue extends PickerValidValue, TView extends
49
49
  focusedView?: TView | null;
50
50
  /**
51
51
  * Callback fired on focused view change.
52
- * @template TView
52
+ * @template TView Type of the view. It will vary based on the Picker type and the `views` it uses.
53
53
  * @param {TView} view The new view to focus or not.
54
54
  * @param {boolean} hasFocus `true` if the view should be focused.
55
55
  */
@@ -45,8 +45,8 @@ export interface DigitalTimePickerProps extends Omit<ExportedDigitalClockProps,
45
45
  thresholdToRenderTimeInASingleColumn?: number;
46
46
  /**
47
47
  * The time steps between two time unit options.
48
- * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
49
- * When single column time renderer is used, only `timeStep.minutes` will be used.
48
+ * For example, if `timeSteps.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
49
+ * When single column time renderer is used, only `timeSteps.minutes` will be used.
50
50
  * @default{ hours: 1, minutes: 5, seconds: 5 }
51
51
  */
52
52
  timeSteps?: TimeStepOptions;
@@ -69,7 +69,7 @@ export interface DigitalClockOnlyProps extends DigitalClockOnlyBaseProps {
69
69
  export interface MultiSectionDigitalClockOnlyProps extends DigitalClockOnlyBaseProps {
70
70
  /**
71
71
  * The time steps between two time unit options.
72
- * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
72
+ * For example, if `timeSteps.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.
73
73
  * @default{ hours: 1, minutes: 5, seconds: 5 }
74
74
  */
75
75
  timeSteps?: TimeStepOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "8.7.0",
3
+ "version": "8.9.0",
4
4
  "author": "MUI Team",
5
5
  "description": "The community edition of the MUI X Date and Time Picker components.",
6
6
  "main": "./index.js",
@@ -36,12 +36,12 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@babel/runtime": "^7.27.6",
39
- "@mui/utils": "^7.1.1",
39
+ "@mui/utils": "^7.2.0",
40
40
  "@types/react-transition-group": "^4.4.12",
41
41
  "clsx": "^2.1.1",
42
42
  "prop-types": "^15.8.1",
43
43
  "react-transition-group": "^4.4.5",
44
- "@mui/x-internals": "8.7.0"
44
+ "@mui/x-internals": "8.8.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@emotion/react": "^11.9.0",