@mui/x-date-pickers-pro 7.1.0 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +175 -4
  2. package/DateRangeCalendar/DateRangeCalendar.js +1 -1
  3. package/DateRangePicker/DateRangePicker.js +1 -1
  4. package/DateTimeRangePicker/DateTimeRangePicker.js +2 -2
  5. package/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -1
  6. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +2 -2
  7. package/MobileDateRangePicker/MobileDateRangePicker.js +1 -1
  8. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +2 -2
  9. package/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
  10. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +2 -2
  11. package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +2 -2
  12. package/README.md +1 -1
  13. package/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
  14. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
  15. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
  16. package/StaticDateRangePicker/StaticDateRangePicker.js +1 -1
  17. package/index.js +1 -1
  18. package/internals/models/dateTimeRange.d.ts +1 -1
  19. package/internals/models/timeRange.d.ts +1 -1
  20. package/internals/utils/date-range-manager.js +1 -1
  21. package/internals/utils/releaseInfo.js +1 -1
  22. package/modern/DateRangeCalendar/DateRangeCalendar.js +1 -1
  23. package/modern/DateRangePicker/DateRangePicker.js +1 -1
  24. package/modern/DateTimeRangePicker/DateTimeRangePicker.js +2 -2
  25. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -1
  26. package/modern/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +2 -2
  27. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +1 -1
  28. package/modern/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +2 -2
  29. package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
  30. package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +2 -2
  31. package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +2 -2
  32. package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
  33. package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
  34. package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
  35. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +1 -1
  36. package/modern/index.js +1 -1
  37. package/modern/internals/utils/date-range-manager.js +1 -1
  38. package/modern/internals/utils/releaseInfo.js +1 -1
  39. package/node/DateRangeCalendar/DateRangeCalendar.js +1 -1
  40. package/node/DateRangePicker/DateRangePicker.js +1 -1
  41. package/node/DateTimeRangePicker/DateTimeRangePicker.js +2 -2
  42. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -1
  43. package/node/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +2 -2
  44. package/node/MobileDateRangePicker/MobileDateRangePicker.js +1 -1
  45. package/node/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +2 -2
  46. package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
  47. package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +2 -2
  48. package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +2 -2
  49. package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
  50. package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
  51. package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
  52. package/node/StaticDateRangePicker/StaticDateRangePicker.js +1 -1
  53. package/node/index.js +1 -1
  54. package/node/internals/utils/date-range-manager.js +1 -1
  55. package/node/internals/utils/releaseInfo.js +1 -1
  56. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,107 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.1.1
7
+
8
+ _Apr 5, 2024_
9
+
10
+ We'd like to offer a big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - šŸš€ Add `setItemExpansion` Tree View API method (#12595) @flaviendelangle
13
+ - šŸŒ Improve Persian (fa-IR), Portuguese (pt-BR), and Spanish (es-ES) locale on the Data Grid
14
+ - šŸŒ Improve Persian (fa-IR), Portuguese (pt-BR), and Ukrainian (uk-UA) locale on the Pickers
15
+ - šŸž Bugfixes
16
+ - šŸ“š Documentation improvements
17
+
18
+ ### Data Grid
19
+
20
+ #### `@mui/x-data-grid@7.1.1`
21
+
22
+ - [DataGrid] Allow higher packages' props to be used in MIT (#12365) @MBilalShafi
23
+ - [DataGrid] Fix RTL mode (#12583) @romgrk
24
+ - [DataGrid] Fix `ColDefChangesGridNoSnap` demo crash (#12663) @MBilalShafi
25
+ - [DataGrid] Fix server-side filter demo not working (#12662) @MBilalShafi
26
+ - [DataGrid] Log error if `rowCount` is used with client-side pagination (#12448) @michelengelen
27
+ - [DataGrid] Remove `GridFormatterParams` completely (#12660) @romgrk
28
+ - [DataGrid] Restore main slot (#12657) @romgrk
29
+ - [l10n] Improve Persian (fa-IR) locale (#12630) @amirhosseinzf
30
+ - [l10n] Improve Portuguese (pt-BR) locale (#12618) @hugoalkimim
31
+ - [l10n] Improve Spanish (es-ES) locale (#12606) @aitor40
32
+
33
+ #### `@mui/x-data-grid-pro@7.1.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
34
+
35
+ Same changes as in `@mui/x-data-grid@7.1.1`.
36
+
37
+ #### `@mui/x-data-grid-premium@7.1.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
38
+
39
+ Same changes as in `@mui/x-data-grid-pro@7.1.1`.
40
+
41
+ ### Date and Time Pickers
42
+
43
+ #### `@mui/x-date-pickers@7.1.1`
44
+
45
+ - [fields] Fix `readOnly` behavior (#12609) @LukasTy
46
+ - [l10n] Improve Persian (fa-IR) locale (#12632) @misafari
47
+ - [l10n] Improve Portuguese (pt-BR) locale (#12613) @cnHealth
48
+ - [l10n] Improve Ukrainian (uk-UA) locale (#12627) @alexkobylansky
49
+
50
+ #### `@mui/x-date-pickers-pro@7.1.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
51
+
52
+ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
53
+
54
+ - [DateTimeRangePicker] Fix selection on same day (#12604) @LukasTy
55
+
56
+ ### Charts
57
+
58
+ #### `@mui/x-charts@7.1.1`
59
+
60
+ - [charts] Fix `tickInterval` usage for y-axis (#12592) @alexfauquette
61
+ - [charts] Fix Scatter series highlight when `id` is a `number` (#12677) @JCQuintas
62
+ - [charts] Fix TS error when using `sx` property on `ChartsTooltip` (#12659) @JCQuintas
63
+
64
+ ### Tree View
65
+
66
+ #### `@mui/x-tree-view@7.1.1`
67
+
68
+ - [TreeView] Add JSDoc to all `publicAPI` methods (#12649) @flaviendelangle
69
+ - [TreeView] Create `RichTreeViewPro` component (not released yet) (#12610) @flaviendelangle
70
+ - [TreeView] Create pro package (not released yet) (#12240) @flaviendelangle
71
+ - [TreeView] Fix typo in errors (#12623) @alissa-tung
72
+ - [TreeView] New API method: `setItemExpansion` (#12595) @flaviendelangle
73
+
74
+ ### Docs
75
+
76
+ - [docs] Add a recipe for the `checkboxSelectionVisibleOnly` prop (#12646) @michelengelen
77
+ - [docs] Explain the use of `_action: 'delete'` in `processRowUpdate` (#12670) @michelengelen
78
+ - [docs] Fix formatting and typo on migration guide @oliviertassinari
79
+ - [docs] Fix formatting in changelog @oliviertassinari
80
+ - [docs] Fix grammar in TreeView migration doc (#12615) @joshkel
81
+ - [docs] Fix missing closing props in `PieShapeNoSnap` demo (#12636) @alp-ex
82
+ - [docs] Fix type arguments in Custom Field page (#12619) @Juneezee
83
+ - [docs] Fix typo in `getItemId` prop description (#12637) @flaviendelangle
84
+ - [docs] Make the Charts `margin` usage more visible (#12591) @alexfauquette
85
+ - [docs] Match IE 11 spacing with Material UI @oliviertassinari
86
+ - [docs] Move data grid interfaces to standard API page layout (#12016) @alexfauquette
87
+ - [docs] Remove ` around @default values (#12158) @alexfauquette
88
+ - [docs] Remove `day` from the default `dayOfWeekFormatter` function params (#12644) @LukasTy
89
+ - [docs] Use `TreeItem2` for icon expansion example on `RichTreeView` (#12563) @flaviendelangle
90
+
91
+ ### Core
92
+
93
+ - [core] Add cherry-pick `master` to `v6` action (#12648) @LukasTy
94
+ - [core] Fix typo in `@mui/x-tree-view-pro/themeAugmentation` (#12674) @flaviendelangle
95
+ - [core] Introduce `describeTreeView` to run test on `SimpleTreeView` and `RichTreeView`, using `TreeItem` and `TreeItem2` + migrate expansion tests (#12428) @flaviendelangle
96
+ - [core] Limit `test-types` CI step allowed memory (#12651) @LukasTy
97
+ - [core] Remove explicit `express` package (#12602) @LukasTy
98
+ - [core] Update to new embedded translations in the docs package (#12232) @Janpot
99
+ - [core] Use PR labels to identify the package a `l10n` PR belongs to (#12639) @LukasTy
100
+ - [core] Use `describeTreeView` for selection tests (#12647) @flaviendelangle
101
+ - [docs-infra] Adjust the links to search for issues (#11995) @michelengelen
102
+ - [infra] Polish support survey experience (#12624) @oliviertassinari
103
+ - [support-infra] Replace author association with a permission check in survey action (#12068) @michelengelen
104
+ - [support-infra] Fix user permission check (#12669) @michelengelen
105
+ - [test] Fix Tree View test import (#12668) @LukasTy
106
+
6
107
  ## 7.1.0
7
108
 
8
109
  _Mar 28, 2024_
@@ -74,7 +175,7 @@ Same changes as in `@mui/x-date-pickers@7.1.0`, plus:
74
175
  - [core] Include `DateTimeRangePicker` tag in `releaseChangelog` (#12526) @LukasTy
75
176
  - [core] Upgrade monorepo (#12536) @cherniavskii
76
177
 
77
- ## v7.0.0
178
+ ## 7.0.0
78
179
 
79
180
  _Mar 22, 2024_
80
181
 
@@ -530,13 +631,13 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
530
631
 
531
632
  - šŸŽ Introduce a new DOM structure for the field components that provides a better accessibility
532
633
  - šŸš€ Simplify Data Grid DOM structure for improved performance (#12013) @romgrk
533
- - šŸ•„ The support for IE11 has been removed (#12151) @flaviendelangle
634
+ - šŸ•„ The support for IEĀ 11 has been removed (#12151) @flaviendelangle
534
635
  - šŸž Bugfixes
535
636
  - šŸ“š Documentation improvements
536
637
 
537
638
  ### Breaking changes
538
639
 
539
- - The support for IE11 has been removed from all MUIĀ X packages. The `legacy` bundle that used to support old browsers like IE11 is no longer included.
640
+ - The support for IEĀ 11 has been removed from all MUIĀ X packages. The `legacy` bundle that used to support old browsers like IEĀ 11 is no longer included.
540
641
 
541
642
  ### Data Grid
542
643
 
@@ -641,7 +742,7 @@ These components are no longer exported from `@mui/x-charts`:
641
742
 
642
743
  ### Tree View / `@mui/x-tree-view@7.0.0-beta.4`
643
744
 
644
- - [TreeView] Stop using custom `findIndex` to support IE11 (#12129) @flaviendelangle
745
+ - [TreeView] Stop using custom `findIndex` to support IEĀ 11 (#12129) @flaviendelangle
645
746
 
646
747
  ### Docs
647
748
 
@@ -2871,6 +2972,76 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
2871
2972
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
2872
2973
  - [license] Correctly throw errors (#10924) @oliviertassinari
2873
2974
 
2975
+ ## 6.19.9
2976
+
2977
+ _Apr 5, 2024_
2978
+
2979
+ We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
2980
+
2981
+ - šŸž Bugfixes
2982
+ - šŸ“š Documentation improvements
2983
+
2984
+ ### Data Grid
2985
+
2986
+ #### `@mui/x-data-grid@6.19.9`
2987
+
2988
+ - [DataGrid] Remove legacy editing API event: `rowEditCommit` (#12087) @MBilalShafi
2989
+
2990
+ #### `@mui/x-data-grid-pro@6.19.9` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2991
+
2992
+ Same changes as in `@mui/x-data-grid@6.19.9`.
2993
+
2994
+ #### `@mui/x-data-grid-premium@6.19.9` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2995
+
2996
+ Same changes as in `@mui/x-data-grid-pro@6.19.9`.
2997
+
2998
+ ### Date Pickers
2999
+
3000
+ #### `@mui/x-date-pickers@6.19.9`
3001
+
3002
+ No changes.
3003
+
3004
+ #### `@mui/x-date-pickers-pro@6.19.9` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
3005
+
3006
+ - [DateRangePicker] Fix selection behavior with single input field when `readOnly` (#12605) @LukasTy
3007
+
3008
+ ### Docs
3009
+
3010
+ - [docs] Add a recipe for the `checkboxSelectionVisibleOnly` prop (#12667) @michelengelen
3011
+ - [docs] Explain the use of `_action: 'delete'` in `processRowUpdate` (#12673) @michelengelen
3012
+
3013
+ ### Core
3014
+
3015
+ - [core] Use Circle CI context (#12607) @cherniavskii
3016
+
3017
+ ## 6.19.8
3018
+
3019
+ _Mar 20, 2024_
3020
+
3021
+ We'd like to offer a big thanks to the 3 contributors who made this release possible.
3022
+
3023
+ ### Data Grid
3024
+
3025
+ #### `@mui/x-data-grid@6.19.8`
3026
+
3027
+ - [DataGrid] Fix `ElementType` usage (#12505) @cherniavskii
3028
+ - [DataGrid] Fix cell value formatting on copy (#12483) @sai6855
3029
+ - [DataGrid] Fix checkbox selection when filtering (#12485) @g1mishra
3030
+
3031
+ #### `@mui/x-data-grid-pro@6.19.8` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
3032
+
3033
+ Same changes as in `@mui/x-data-grid@6.19.8`.
3034
+
3035
+ #### `@mui/x-data-grid-premium@6.19.8` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
3036
+
3037
+ Same changes as in `@mui/x-data-grid-pro@6.19.8`, plus:
3038
+
3039
+ - [DataGridPremium] Add support for confirmation before clipboard paste (#12466) @cherniavskii
3040
+
3041
+ ### Docs
3042
+
3043
+ - [docs] Update links to v7 (#12495) @cherniavskii
3044
+
2874
3045
  ## 6.19.7
2875
3046
 
2876
3047
  _Mar 14, 2024_
@@ -508,7 +508,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
508
508
  * Formats the day of week displayed in the calendar header.
509
509
  * @param {TDate} date The date of the day of week provided by the adapter.
510
510
  * @returns {string} The name to display.
511
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
511
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
512
512
  */
513
513
  dayOfWeekFormatter: PropTypes.func,
514
514
  /**
@@ -74,7 +74,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
74
74
  * Formats the day of week displayed in the calendar header.
75
75
  * @param {TDate} date The date of the day of week provided by the adapter.
76
76
  * @returns {string} The name to display.
77
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
77
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
78
78
  */
79
79
  dayOfWeekFormatter: PropTypes.func,
80
80
  /**
@@ -49,7 +49,7 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
49
49
  // ----------------------------------------------------------------------
50
50
  /**
51
51
  * 12h/24h view for hour selection clock.
52
- * @default `utils.is12HourCycleInCurrentLocale()`
52
+ * @default utils.is12HourCycleInCurrentLocale()
53
53
  */
54
54
  ampm: PropTypes.bool,
55
55
  /**
@@ -79,7 +79,7 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
79
79
  * Formats the day of week displayed in the calendar header.
80
80
  * @param {TDate} date The date of the day of week provided by the adapter.
81
81
  * @returns {string} The name to display.
82
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
82
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
83
83
  */
84
84
  dayOfWeekFormatter: PropTypes.func,
85
85
  /**
@@ -85,7 +85,7 @@ DesktopDateRangePicker.propTypes = {
85
85
  * Formats the day of week displayed in the calendar header.
86
86
  * @param {TDate} date The date of the day of week provided by the adapter.
87
87
  * @returns {string} The name to display.
88
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
88
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
89
89
  */
90
90
  dayOfWeekFormatter: PropTypes.func,
91
91
  /**
@@ -125,7 +125,7 @@ DesktopDateTimeRangePicker.propTypes = {
125
125
  // ----------------------------------------------------------------------
126
126
  /**
127
127
  * 12h/24h view for hour selection clock.
128
- * @default `utils.is12HourCycleInCurrentLocale()`
128
+ * @default utils.is12HourCycleInCurrentLocale()
129
129
  */
130
130
  ampm: PropTypes.bool,
131
131
  /**
@@ -155,7 +155,7 @@ DesktopDateTimeRangePicker.propTypes = {
155
155
  * Formats the day of week displayed in the calendar header.
156
156
  * @param {TDate} date The date of the day of week provided by the adapter.
157
157
  * @returns {string} The name to display.
158
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
158
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
159
159
  */
160
160
  dayOfWeekFormatter: PropTypes.func,
161
161
  /**
@@ -81,7 +81,7 @@ MobileDateRangePicker.propTypes = {
81
81
  * Formats the day of week displayed in the calendar header.
82
82
  * @param {TDate} date The date of the day of week provided by the adapter.
83
83
  * @returns {string} The name to display.
84
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
84
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
85
85
  */
86
86
  dayOfWeekFormatter: PropTypes.func,
87
87
  /**
@@ -132,7 +132,7 @@ MobileDateTimeRangePicker.propTypes = {
132
132
  // ----------------------------------------------------------------------
133
133
  /**
134
134
  * 12h/24h view for hour selection clock.
135
- * @default `utils.is12HourCycleInCurrentLocale()`
135
+ * @default utils.is12HourCycleInCurrentLocale()
136
136
  */
137
137
  ampm: PropTypes.bool,
138
138
  /**
@@ -157,7 +157,7 @@ MobileDateTimeRangePicker.propTypes = {
157
157
  * Formats the day of week displayed in the calendar header.
158
158
  * @param {TDate} date The date of the day of week provided by the adapter.
159
159
  * @returns {string} The name to display.
160
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
160
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
161
161
  */
162
162
  dayOfWeekFormatter: PropTypes.func,
163
163
  /**
@@ -263,7 +263,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes = {
263
263
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
264
264
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
265
265
  *
266
- * @default `false`
266
+ * @default false
267
267
  */
268
268
  shouldRespectLeadingZeros: PropTypes.bool,
269
269
  /**
@@ -133,7 +133,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
133
133
  // ----------------------------------------------------------------------
134
134
  /**
135
135
  * 12h/24h view for hour selection clock.
136
- * @default `utils.is12HourCycleInCurrentLocale()`
136
+ * @default utils.is12HourCycleInCurrentLocale()
137
137
  */
138
138
  ampm: PropTypes.bool,
139
139
  /**
@@ -304,7 +304,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
304
304
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
305
305
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
306
306
  *
307
- * @default `false`
307
+ * @default false
308
308
  */
309
309
  shouldRespectLeadingZeros: PropTypes.bool,
310
310
  /**
@@ -133,7 +133,7 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
133
133
  // ----------------------------------------------------------------------
134
134
  /**
135
135
  * 12h/24h view for hour selection clock.
136
- * @default `utils.is12HourCycleInCurrentLocale()`
136
+ * @default utils.is12HourCycleInCurrentLocale()
137
137
  */
138
138
  ampm: PropTypes.bool,
139
139
  /**
@@ -277,7 +277,7 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
277
277
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
278
278
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
279
279
  *
280
- * @default `false`
280
+ * @default false
281
281
  */
282
282
  shouldRespectLeadingZeros: PropTypes.bool,
283
283
  /**
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MUIĀ X Date Pickers Pro
2
2
 
3
- This package is the commercial edition of the date and time picker components.
3
+ This package is the Pro plan edition of the Date and Time Picker Components.
4
4
  It's part of [MUIĀ X](https://mui.com/x/), an open-core extension of MUIĀ Core, with advanced components.
5
5
 
6
6
  ## Installation
@@ -267,7 +267,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
267
267
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
268
268
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
269
269
  *
270
- * @default `false`
270
+ * @default false
271
271
  */
272
272
  shouldRespectLeadingZeros: PropTypes.bool,
273
273
  /**
@@ -65,7 +65,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
65
65
  // ----------------------------------------------------------------------
66
66
  /**
67
67
  * 12h/24h view for hour selection clock.
68
- * @default `utils.is12HourCycleInCurrentLocale()`
68
+ * @default utils.is12HourCycleInCurrentLocale()
69
69
  */
70
70
  ampm: PropTypes.bool,
71
71
  /**
@@ -308,7 +308,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
308
308
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
309
309
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
310
310
  *
311
- * @default `false`
311
+ * @default false
312
312
  */
313
313
  shouldRespectLeadingZeros: PropTypes.bool,
314
314
  /**
@@ -65,7 +65,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
65
65
  // ----------------------------------------------------------------------
66
66
  /**
67
67
  * 12h/24h view for hour selection clock.
68
- * @default `utils.is12HourCycleInCurrentLocale()`
68
+ * @default utils.is12HourCycleInCurrentLocale()
69
69
  */
70
70
  ampm: PropTypes.bool,
71
71
  /**
@@ -281,7 +281,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
281
281
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
282
282
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
283
283
  *
284
- * @default `false`
284
+ * @default false
285
285
  */
286
286
  shouldRespectLeadingZeros: PropTypes.bool,
287
287
  /**
@@ -74,7 +74,7 @@ StaticDateRangePicker.propTypes = {
74
74
  * Formats the day of week displayed in the calendar header.
75
75
  * @param {TDate} date The date of the day of week provided by the adapter.
76
76
  * @returns {string} The name to display.
77
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
77
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
78
78
  */
79
79
  dayOfWeekFormatter: PropTypes.func,
80
80
  /**
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.1.0
2
+ * @mui/x-date-pickers-pro v7.1.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -5,7 +5,7 @@ import { DateTimeRangeValidationError, RangeFieldSection, DateRange, RangeFieldS
5
5
  export interface UseDateTimeRangeFieldProps<TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean> extends MakeOptional<Omit<UseFieldInternalProps<DateRange<TDate>, TDate, RangeFieldSection, TEnableAccessibleFieldDOMStructure, DateTimeRangeValidationError>, 'unstableFieldRef'>, 'format'>, RangeFieldSeparatorProps, DayRangeValidationProps<TDate>, TimeValidationProps<TDate>, BaseDateValidationProps<TDate>, DateTimeValidationProps<TDate> {
6
6
  /**
7
7
  * 12h/24h view for hour selection clock.
8
- * @default `utils.is12HourCycleInCurrentLocale()`
8
+ * @default utils.is12HourCycleInCurrentLocale()
9
9
  */
10
10
  ampm?: boolean;
11
11
  }
@@ -4,7 +4,7 @@ import { TimeRangeValidationError, RangeFieldSection, DateRange, RangeFieldSepar
4
4
  export interface UseTimeRangeFieldProps<TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean> extends MakeOptional<Omit<UseFieldInternalProps<DateRange<TDate>, TDate, RangeFieldSection, TEnableAccessibleFieldDOMStructure, TimeRangeValidationError>, 'unstableFieldRef'>, 'format'>, RangeFieldSeparatorProps, TimeValidationProps<TDate>, BaseTimeValidationProps {
5
5
  /**
6
6
  * 12h/24h view for hour selection clock.
7
- * @default `utils.is12HourCycleInCurrentLocale()`
7
+ * @default utils.is12HourCycleInCurrentLocale()
8
8
  */
9
9
  ampm?: boolean;
10
10
  }
@@ -37,7 +37,7 @@ export function calculateRangeChange({
37
37
  nextSelection: 'end',
38
38
  newRange: [selectedDate, null]
39
39
  };
40
- return Boolean(start) && utils.isBefore(selectedDate, start) ? truthyResult : {
40
+ return Boolean(start) && utils.isBeforeDay(selectedDate, start) ? truthyResult : {
41
41
  nextSelection: 'start',
42
42
  newRange: [start, selectedDate]
43
43
  };
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcxMTU4MDQwMDAwMA==";
3
+ const releaseInfo = "MTcxMjI2NDQwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -508,7 +508,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
508
508
  * Formats the day of week displayed in the calendar header.
509
509
  * @param {TDate} date The date of the day of week provided by the adapter.
510
510
  * @returns {string} The name to display.
511
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
511
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
512
512
  */
513
513
  dayOfWeekFormatter: PropTypes.func,
514
514
  /**
@@ -74,7 +74,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
74
74
  * Formats the day of week displayed in the calendar header.
75
75
  * @param {TDate} date The date of the day of week provided by the adapter.
76
76
  * @returns {string} The name to display.
77
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
77
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
78
78
  */
79
79
  dayOfWeekFormatter: PropTypes.func,
80
80
  /**
@@ -49,7 +49,7 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
49
49
  // ----------------------------------------------------------------------
50
50
  /**
51
51
  * 12h/24h view for hour selection clock.
52
- * @default `utils.is12HourCycleInCurrentLocale()`
52
+ * @default utils.is12HourCycleInCurrentLocale()
53
53
  */
54
54
  ampm: PropTypes.bool,
55
55
  /**
@@ -79,7 +79,7 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
79
79
  * Formats the day of week displayed in the calendar header.
80
80
  * @param {TDate} date The date of the day of week provided by the adapter.
81
81
  * @returns {string} The name to display.
82
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
82
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
83
83
  */
84
84
  dayOfWeekFormatter: PropTypes.func,
85
85
  /**
@@ -85,7 +85,7 @@ DesktopDateRangePicker.propTypes = {
85
85
  * Formats the day of week displayed in the calendar header.
86
86
  * @param {TDate} date The date of the day of week provided by the adapter.
87
87
  * @returns {string} The name to display.
88
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
88
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
89
89
  */
90
90
  dayOfWeekFormatter: PropTypes.func,
91
91
  /**
@@ -125,7 +125,7 @@ DesktopDateTimeRangePicker.propTypes = {
125
125
  // ----------------------------------------------------------------------
126
126
  /**
127
127
  * 12h/24h view for hour selection clock.
128
- * @default `utils.is12HourCycleInCurrentLocale()`
128
+ * @default utils.is12HourCycleInCurrentLocale()
129
129
  */
130
130
  ampm: PropTypes.bool,
131
131
  /**
@@ -155,7 +155,7 @@ DesktopDateTimeRangePicker.propTypes = {
155
155
  * Formats the day of week displayed in the calendar header.
156
156
  * @param {TDate} date The date of the day of week provided by the adapter.
157
157
  * @returns {string} The name to display.
158
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
158
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
159
159
  */
160
160
  dayOfWeekFormatter: PropTypes.func,
161
161
  /**
@@ -81,7 +81,7 @@ MobileDateRangePicker.propTypes = {
81
81
  * Formats the day of week displayed in the calendar header.
82
82
  * @param {TDate} date The date of the day of week provided by the adapter.
83
83
  * @returns {string} The name to display.
84
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
84
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
85
85
  */
86
86
  dayOfWeekFormatter: PropTypes.func,
87
87
  /**
@@ -132,7 +132,7 @@ MobileDateTimeRangePicker.propTypes = {
132
132
  // ----------------------------------------------------------------------
133
133
  /**
134
134
  * 12h/24h view for hour selection clock.
135
- * @default `utils.is12HourCycleInCurrentLocale()`
135
+ * @default utils.is12HourCycleInCurrentLocale()
136
136
  */
137
137
  ampm: PropTypes.bool,
138
138
  /**
@@ -157,7 +157,7 @@ MobileDateTimeRangePicker.propTypes = {
157
157
  * Formats the day of week displayed in the calendar header.
158
158
  * @param {TDate} date The date of the day of week provided by the adapter.
159
159
  * @returns {string} The name to display.
160
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
160
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
161
161
  */
162
162
  dayOfWeekFormatter: PropTypes.func,
163
163
  /**
@@ -263,7 +263,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes = {
263
263
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
264
264
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
265
265
  *
266
- * @default `false`
266
+ * @default false
267
267
  */
268
268
  shouldRespectLeadingZeros: PropTypes.bool,
269
269
  /**
@@ -133,7 +133,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
133
133
  // ----------------------------------------------------------------------
134
134
  /**
135
135
  * 12h/24h view for hour selection clock.
136
- * @default `utils.is12HourCycleInCurrentLocale()`
136
+ * @default utils.is12HourCycleInCurrentLocale()
137
137
  */
138
138
  ampm: PropTypes.bool,
139
139
  /**
@@ -304,7 +304,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
304
304
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
305
305
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
306
306
  *
307
- * @default `false`
307
+ * @default false
308
308
  */
309
309
  shouldRespectLeadingZeros: PropTypes.bool,
310
310
  /**
@@ -133,7 +133,7 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
133
133
  // ----------------------------------------------------------------------
134
134
  /**
135
135
  * 12h/24h view for hour selection clock.
136
- * @default `utils.is12HourCycleInCurrentLocale()`
136
+ * @default utils.is12HourCycleInCurrentLocale()
137
137
  */
138
138
  ampm: PropTypes.bool,
139
139
  /**
@@ -277,7 +277,7 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
277
277
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
278
278
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
279
279
  *
280
- * @default `false`
280
+ * @default false
281
281
  */
282
282
  shouldRespectLeadingZeros: PropTypes.bool,
283
283
  /**
@@ -267,7 +267,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
267
267
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
268
268
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
269
269
  *
270
- * @default `false`
270
+ * @default false
271
271
  */
272
272
  shouldRespectLeadingZeros: PropTypes.bool,
273
273
  /**
@@ -65,7 +65,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
65
65
  // ----------------------------------------------------------------------
66
66
  /**
67
67
  * 12h/24h view for hour selection clock.
68
- * @default `utils.is12HourCycleInCurrentLocale()`
68
+ * @default utils.is12HourCycleInCurrentLocale()
69
69
  */
70
70
  ampm: PropTypes.bool,
71
71
  /**
@@ -308,7 +308,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
308
308
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
309
309
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
310
310
  *
311
- * @default `false`
311
+ * @default false
312
312
  */
313
313
  shouldRespectLeadingZeros: PropTypes.bool,
314
314
  /**
@@ -65,7 +65,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
65
65
  // ----------------------------------------------------------------------
66
66
  /**
67
67
  * 12h/24h view for hour selection clock.
68
- * @default `utils.is12HourCycleInCurrentLocale()`
68
+ * @default utils.is12HourCycleInCurrentLocale()
69
69
  */
70
70
  ampm: PropTypes.bool,
71
71
  /**
@@ -281,7 +281,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
281
281
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
282
282
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
283
283
  *
284
- * @default `false`
284
+ * @default false
285
285
  */
286
286
  shouldRespectLeadingZeros: PropTypes.bool,
287
287
  /**
@@ -74,7 +74,7 @@ StaticDateRangePicker.propTypes = {
74
74
  * Formats the day of week displayed in the calendar header.
75
75
  * @param {TDate} date The date of the day of week provided by the adapter.
76
76
  * @returns {string} The name to display.
77
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
77
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
78
78
  */
79
79
  dayOfWeekFormatter: PropTypes.func,
80
80
  /**
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.1.0
2
+ * @mui/x-date-pickers-pro v7.1.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -37,7 +37,7 @@ export function calculateRangeChange({
37
37
  nextSelection: 'end',
38
38
  newRange: [selectedDate, null]
39
39
  };
40
- return Boolean(start) && utils.isBefore(selectedDate, start) ? truthyResult : {
40
+ return Boolean(start) && utils.isBeforeDay(selectedDate, start) ? truthyResult : {
41
41
  nextSelection: 'start',
42
42
  newRange: [start, selectedDate]
43
43
  };
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcxMTU4MDQwMDAwMA==";
3
+ const releaseInfo = "MTcxMjI2NDQwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -516,7 +516,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
516
516
  * Formats the day of week displayed in the calendar header.
517
517
  * @param {TDate} date The date of the day of week provided by the adapter.
518
518
  * @returns {string} The name to display.
519
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
519
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
520
520
  */
521
521
  dayOfWeekFormatter: _propTypes.default.func,
522
522
  /**
@@ -83,7 +83,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
83
83
  * Formats the day of week displayed in the calendar header.
84
84
  * @param {TDate} date The date of the day of week provided by the adapter.
85
85
  * @returns {string} The name to display.
86
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
86
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
87
87
  */
88
88
  dayOfWeekFormatter: _propTypes.default.func,
89
89
  /**
@@ -58,7 +58,7 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
58
58
  // ----------------------------------------------------------------------
59
59
  /**
60
60
  * 12h/24h view for hour selection clock.
61
- * @default `utils.is12HourCycleInCurrentLocale()`
61
+ * @default utils.is12HourCycleInCurrentLocale()
62
62
  */
63
63
  ampm: _propTypes.default.bool,
64
64
  /**
@@ -88,7 +88,7 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
88
88
  * Formats the day of week displayed in the calendar header.
89
89
  * @param {TDate} date The date of the day of week provided by the adapter.
90
90
  * @returns {string} The name to display.
91
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
91
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
92
92
  */
93
93
  dayOfWeekFormatter: _propTypes.default.func,
94
94
  /**
@@ -94,7 +94,7 @@ DesktopDateRangePicker.propTypes = {
94
94
  * Formats the day of week displayed in the calendar header.
95
95
  * @param {TDate} date The date of the day of week provided by the adapter.
96
96
  * @returns {string} The name to display.
97
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
97
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
98
98
  */
99
99
  dayOfWeekFormatter: _propTypes.default.func,
100
100
  /**
@@ -133,7 +133,7 @@ DesktopDateTimeRangePicker.propTypes = {
133
133
  // ----------------------------------------------------------------------
134
134
  /**
135
135
  * 12h/24h view for hour selection clock.
136
- * @default `utils.is12HourCycleInCurrentLocale()`
136
+ * @default utils.is12HourCycleInCurrentLocale()
137
137
  */
138
138
  ampm: _propTypes.default.bool,
139
139
  /**
@@ -163,7 +163,7 @@ DesktopDateTimeRangePicker.propTypes = {
163
163
  * Formats the day of week displayed in the calendar header.
164
164
  * @param {TDate} date The date of the day of week provided by the adapter.
165
165
  * @returns {string} The name to display.
166
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
166
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
167
167
  */
168
168
  dayOfWeekFormatter: _propTypes.default.func,
169
169
  /**
@@ -90,7 +90,7 @@ MobileDateRangePicker.propTypes = {
90
90
  * Formats the day of week displayed in the calendar header.
91
91
  * @param {TDate} date The date of the day of week provided by the adapter.
92
92
  * @returns {string} The name to display.
93
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
93
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
94
94
  */
95
95
  dayOfWeekFormatter: _propTypes.default.func,
96
96
  /**
@@ -141,7 +141,7 @@ MobileDateTimeRangePicker.propTypes = {
141
141
  // ----------------------------------------------------------------------
142
142
  /**
143
143
  * 12h/24h view for hour selection clock.
144
- * @default `utils.is12HourCycleInCurrentLocale()`
144
+ * @default utils.is12HourCycleInCurrentLocale()
145
145
  */
146
146
  ampm: _propTypes.default.bool,
147
147
  /**
@@ -166,7 +166,7 @@ MobileDateTimeRangePicker.propTypes = {
166
166
  * Formats the day of week displayed in the calendar header.
167
167
  * @param {TDate} date The date of the day of week provided by the adapter.
168
168
  * @returns {string} The name to display.
169
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
169
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
170
170
  */
171
171
  dayOfWeekFormatter: _propTypes.default.func,
172
172
  /**
@@ -272,7 +272,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes = {
272
272
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
273
273
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
274
274
  *
275
- * @default `false`
275
+ * @default false
276
276
  */
277
277
  shouldRespectLeadingZeros: _propTypes.default.bool,
278
278
  /**
@@ -142,7 +142,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
142
142
  // ----------------------------------------------------------------------
143
143
  /**
144
144
  * 12h/24h view for hour selection clock.
145
- * @default `utils.is12HourCycleInCurrentLocale()`
145
+ * @default utils.is12HourCycleInCurrentLocale()
146
146
  */
147
147
  ampm: _propTypes.default.bool,
148
148
  /**
@@ -313,7 +313,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
313
313
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
314
314
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
315
315
  *
316
- * @default `false`
316
+ * @default false
317
317
  */
318
318
  shouldRespectLeadingZeros: _propTypes.default.bool,
319
319
  /**
@@ -142,7 +142,7 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
142
142
  // ----------------------------------------------------------------------
143
143
  /**
144
144
  * 12h/24h view for hour selection clock.
145
- * @default `utils.is12HourCycleInCurrentLocale()`
145
+ * @default utils.is12HourCycleInCurrentLocale()
146
146
  */
147
147
  ampm: _propTypes.default.bool,
148
148
  /**
@@ -286,7 +286,7 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
286
286
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
287
287
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
288
288
  *
289
- * @default `false`
289
+ * @default false
290
290
  */
291
291
  shouldRespectLeadingZeros: _propTypes.default.bool,
292
292
  /**
@@ -276,7 +276,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
276
276
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
277
277
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
278
278
  *
279
- * @default `false`
279
+ * @default false
280
280
  */
281
281
  shouldRespectLeadingZeros: _propTypes.default.bool,
282
282
  /**
@@ -74,7 +74,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
74
74
  // ----------------------------------------------------------------------
75
75
  /**
76
76
  * 12h/24h view for hour selection clock.
77
- * @default `utils.is12HourCycleInCurrentLocale()`
77
+ * @default utils.is12HourCycleInCurrentLocale()
78
78
  */
79
79
  ampm: _propTypes.default.bool,
80
80
  /**
@@ -317,7 +317,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
317
317
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
318
318
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
319
319
  *
320
- * @default `false`
320
+ * @default false
321
321
  */
322
322
  shouldRespectLeadingZeros: _propTypes.default.bool,
323
323
  /**
@@ -74,7 +74,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
74
74
  // ----------------------------------------------------------------------
75
75
  /**
76
76
  * 12h/24h view for hour selection clock.
77
- * @default `utils.is12HourCycleInCurrentLocale()`
77
+ * @default utils.is12HourCycleInCurrentLocale()
78
78
  */
79
79
  ampm: _propTypes.default.bool,
80
80
  /**
@@ -290,7 +290,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
290
290
  * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
291
291
  * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
292
292
  *
293
- * @default `false`
293
+ * @default false
294
294
  */
295
295
  shouldRespectLeadingZeros: _propTypes.default.bool,
296
296
  /**
@@ -83,7 +83,7 @@ StaticDateRangePicker.propTypes = {
83
83
  * Formats the day of week displayed in the calendar header.
84
84
  * @param {TDate} date The date of the day of week provided by the adapter.
85
85
  * @returns {string} The name to display.
86
- * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
86
+ * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
87
87
  */
88
88
  dayOfWeekFormatter: _propTypes.default.func,
89
89
  /**
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.1.0
2
+ * @mui/x-date-pickers-pro v7.1.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -44,7 +44,7 @@ function calculateRangeChange({
44
44
  nextSelection: 'end',
45
45
  newRange: [selectedDate, null]
46
46
  };
47
- return Boolean(start) && utils.isBefore(selectedDate, start) ? truthyResult : {
47
+ return Boolean(start) && utils.isBeforeDay(selectedDate, start) ? truthyResult : {
48
48
  nextSelection: 'start',
49
49
  newRange: [start, selectedDate]
50
50
  };
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTcxMTU4MDQwMDAwMA==";
9
+ const releaseInfo = "MTcxMjI2NDQwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers-pro",
3
- "version": "7.1.0",
4
- "description": "The commercial edition of the date picker components (MUI X).",
3
+ "version": "7.1.1",
4
+ "description": "The Pro plan edition of the Date and Time Picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
7
7
  "license": "SEE LICENSE IN LICENSE",
@@ -35,8 +35,8 @@
35
35
  "@mui/base": "^5.0.0-beta.40",
36
36
  "@mui/system": "^5.15.14",
37
37
  "@mui/utils": "^5.15.14",
38
- "@mui/x-date-pickers": "7.1.0",
39
- "@mui/x-license": "7.0.0",
38
+ "@mui/x-date-pickers": "7.1.1",
39
+ "@mui/x-license": "7.1.1",
40
40
  "clsx": "^2.1.0",
41
41
  "prop-types": "^15.8.1",
42
42
  "react-transition-group": "^4.4.5"