@mui/x-date-pickers 8.8.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.
- package/AdapterDayjs/AdapterDayjs.d.ts +28 -31
- package/AdapterDayjs/AdapterDayjs.js +25 -31
- package/CHANGELOG.md +101 -24
- package/DateCalendar/DateCalendar.js +2 -2
- package/DatePicker/DatePicker.js +1 -1
- package/DateTimePicker/DateTimePicker.js +3 -3
- package/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -3
- package/DesktopTimePicker/DesktopTimePicker.js +3 -3
- package/DigitalClock/DigitalClock.js +2 -2
- package/MobileDatePicker/MobileDatePicker.js +1 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +3 -3
- package/MobileTimePicker/MobileTimePicker.js +1 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -3
- package/PickersLayout/PickersLayout.js +1 -1
- package/StaticDatePicker/StaticDatePicker.js +1 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +3 -3
- package/StaticTimePicker/StaticTimePicker.js +1 -1
- package/TimeClock/TimeClock.js +2 -2
- package/TimePicker/TimePicker.js +3 -3
- package/esm/AdapterDayjs/AdapterDayjs.d.ts +28 -31
- package/esm/AdapterDayjs/AdapterDayjs.js +37 -43
- package/esm/DateCalendar/DateCalendar.js +2 -2
- package/esm/DatePicker/DatePicker.js +1 -1
- package/esm/DateTimePicker/DateTimePicker.js +3 -3
- package/esm/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/esm/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -3
- package/esm/DesktopTimePicker/DesktopTimePicker.js +3 -3
- package/esm/DigitalClock/DigitalClock.js +2 -2
- package/esm/MobileDatePicker/MobileDatePicker.js +1 -1
- package/esm/MobileDateTimePicker/MobileDateTimePicker.js +3 -3
- package/esm/MobileTimePicker/MobileTimePicker.js +1 -1
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -3
- package/esm/PickersLayout/PickersLayout.js +1 -1
- package/esm/StaticDatePicker/StaticDatePicker.js +1 -1
- package/esm/StaticDateTimePicker/StaticDateTimePicker.js +3 -3
- package/esm/StaticTimePicker/StaticTimePicker.js +1 -1
- package/esm/TimeClock/TimeClock.js +2 -2
- package/esm/TimePicker/TimePicker.js +3 -3
- package/esm/index.js +1 -1
- package/esm/internals/hooks/useViews.d.ts +2 -2
- package/esm/internals/models/props/time.d.ts +3 -3
- package/index.js +1 -1
- package/internals/hooks/useViews.d.ts +2 -2
- package/internals/models/props/time.d.ts +3 -3
- package/package.json +1 -1
|
@@ -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 `
|
|
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({
|
|
@@ -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 `
|
|
373
|
-
* When single column time renderer is used, only `
|
|
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 `
|
|
284
|
-
* When single column time renderer is used, only `
|
|
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
|
@@ -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 `
|
|
49
|
-
* When single column time renderer is used, only `
|
|
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 `
|
|
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
|
@@ -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 `
|
|
49
|
-
* When single column time renderer is used, only `
|
|
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 `
|
|
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;
|