@mui/x-date-pickers-pro 6.0.0-beta.5 → 6.0.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 (90) hide show
  1. package/CHANGELOG.md +175 -36
  2. package/DateRangeCalendar/DateRangeCalendar.js +2 -2
  3. package/DateRangeCalendar/DateRangeCalendar.types.d.ts +2 -2
  4. package/DateRangePicker/DateRangePicker.js +2 -2
  5. package/DateRangePicker/DateRangePicker.types.d.ts +2 -2
  6. package/DateRangePicker/shared.d.ts +2 -2
  7. package/DateRangePickerDay/DateRangePickerDay.js +50 -15
  8. package/DateRangePickerDay/dateRangePickerDayClasses.d.ts +16 -4
  9. package/DateRangePickerDay/dateRangePickerDayClasses.js +1 -1
  10. package/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -2
  11. package/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +2 -2
  12. package/MobileDateRangePicker/MobileDateRangePicker.js +2 -2
  13. package/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +2 -2
  14. package/MultiInputDateRangeField/MultiInputDateRangeField.js +2 -2
  15. package/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +2 -2
  16. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +2 -2
  17. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +2 -2
  18. package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +2 -2
  19. package/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +2 -2
  20. package/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -2
  21. package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +2 -2
  22. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
  23. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +2 -2
  24. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
  25. package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +2 -2
  26. package/StaticDateRangePicker/StaticDateRangePicker.js +8 -2
  27. package/StaticDateRangePicker/StaticDateRangePicker.types.d.ts +2 -2
  28. package/index.js +1 -1
  29. package/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +20 -23
  30. package/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +1 -1
  31. package/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +14 -17
  32. package/internal/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +1 -1
  33. package/internal/hooks/useStaticRangePicker/useStaticRangePicker.js +10 -13
  34. package/internal/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +1 -1
  35. package/internal/utils/releaseInfo.js +1 -1
  36. package/legacy/DateRangeCalendar/DateRangeCalendar.js +2 -2
  37. package/legacy/DateRangePicker/DateRangePicker.js +2 -2
  38. package/legacy/DateRangePickerDay/DateRangePickerDay.js +47 -25
  39. package/legacy/DateRangePickerDay/dateRangePickerDayClasses.js +1 -1
  40. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -2
  41. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +2 -2
  42. package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.js +2 -2
  43. package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +2 -2
  44. package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.js +2 -2
  45. package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -2
  46. package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
  47. package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
  48. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +8 -2
  49. package/legacy/index.js +1 -1
  50. package/legacy/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +20 -23
  51. package/legacy/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +14 -17
  52. package/legacy/internal/hooks/useStaticRangePicker/useStaticRangePicker.js +11 -13
  53. package/legacy/internal/utils/releaseInfo.js +1 -1
  54. package/modern/DateRangeCalendar/DateRangeCalendar.js +2 -2
  55. package/modern/DateRangePicker/DateRangePicker.js +2 -2
  56. package/modern/DateRangePickerDay/DateRangePickerDay.js +50 -15
  57. package/modern/DateRangePickerDay/dateRangePickerDayClasses.js +1 -1
  58. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -2
  59. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +2 -2
  60. package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +2 -2
  61. package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +2 -2
  62. package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +2 -2
  63. package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -2
  64. package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
  65. package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
  66. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +8 -2
  67. package/modern/index.js +1 -1
  68. package/modern/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +20 -23
  69. package/modern/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +14 -17
  70. package/modern/internal/hooks/useStaticRangePicker/useStaticRangePicker.js +9 -12
  71. package/modern/internal/utils/releaseInfo.js +1 -1
  72. package/node/DateRangeCalendar/DateRangeCalendar.js +2 -2
  73. package/node/DateRangePicker/DateRangePicker.js +2 -2
  74. package/node/DateRangePickerDay/DateRangePickerDay.js +49 -14
  75. package/node/DateRangePickerDay/dateRangePickerDayClasses.js +1 -1
  76. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -2
  77. package/node/MobileDateRangePicker/MobileDateRangePicker.js +2 -2
  78. package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +2 -2
  79. package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +2 -2
  80. package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +2 -2
  81. package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -2
  82. package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
  83. package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
  84. package/node/StaticDateRangePicker/StaticDateRangePicker.js +8 -2
  85. package/node/index.js +1 -1
  86. package/node/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +19 -22
  87. package/node/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +13 -16
  88. package/node/internal/hooks/useStaticRangePicker/useStaticRangePicker.js +8 -11
  89. package/node/internal/utils/releaseInfo.js +1 -1
  90. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,145 @@
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
+ ## 6.0.1
7
+
8
+ _Mar 9, 2023_
9
+
10
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Improve French (fr-FR) locale (#8122) @MaherSamiGMC
13
+ - 📚 Documentation improvements
14
+ - 🐞 Bugfixes
15
+
16
+ ### `@mui/x-data-grid@v6.0.1` / `@mui/x-data-grid-pro@v6.0.1` / `@mui/x-data-grid-premium@v6.0.1`
17
+
18
+ #### Changes
19
+
20
+ - [DataGrid] Fix `MenuProps.onClose` being overridden for single select edit component (#8174) @rohitnatesh
21
+ - [DataGrid] Simplify `buildPrintWindow` (#8142) @oliviertassinari
22
+ - [l10n] Improve French (fr-FR) locale (#8122) @MaherSamiGMC
23
+
24
+ ### `@mui/x-date-pickers@v6.0.1` / `@mui/x-date-pickers-pro@v6.0.1`
25
+
26
+ #### Changes
27
+
28
+ - [pickers] Add a runtime warning when a `renderInput` prop is passed to a picker (#8183) @flaviendelangle
29
+ - [pickers] Don't pass `ownerState` to the `inputAdornment` slot (#8165) @flaviendelangle
30
+
31
+ ### Docs
32
+
33
+ - [docs] Fix a typo in the migration guide (#8152) @flaviendelangle
34
+ - [docs] Fix package version used in CodeSandbox demos (#8125) @cherniavskii
35
+ - [docs] Fix typos across codebase (#8126) @stavares843
36
+ - [docs] Improve Data Grid quick filter documentation (#8109) @MBilalShafi
37
+ - [docs] Improve link from npm to docs (#8141) @oliviertassinari
38
+ - [docs] Remove test sections (#8177) @m4theushw
39
+
40
+ ### Core
41
+
42
+ - [core] Upgrade monorepo (#8162) @m4theushw
43
+
44
+ ## 6.0.0
45
+
46
+ _Mar 3, 2023_
47
+
48
+ We're happy to announce the first v6 stable release! 🎉🚀
49
+
50
+ This is now the officially supported major version, where we'll keep rolling out new features, bug fixes, and improvements.
51
+ Head over to the [what's new](https://mui.com/x/whats-new/) page to check the highlighted new features.
52
+
53
+ Migration guides are available with a complete list of the breaking changes:
54
+
55
+ - [Data Grid](https://mui.com/x/migration/migration-data-grid-v5/)
56
+ - [Date Pickers](https://mui.com/x/migration/migration-pickers-v5/)
57
+
58
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
59
+
60
+ - 🎁 The row pinning is no longer experimental (#8055) @MBilalShafi
61
+
62
+ You can now use the row pinning without the `experimentalFeatures.rowPinning` flag enabled.
63
+
64
+ ```diff
65
+ <DataGridPro
66
+ - experimentalFeatures={{ rowPinning: true }}
67
+ />
68
+ ```
69
+ - ⚡️ Improved grid performance by rows and cells memoization (#7846) @m4theushw
70
+ - ✨ Fields have a distinct visual state when empty (#8069) @LukasTy
71
+ - 🌍 Improve Czech (cs-CZ) locale (#8113) @BlastyCZ
72
+ - 🌍 Improve Arabic (ar-SD) locale (#8100) @atf98
73
+ - 📚 Documentation improvements
74
+ - 🐞 Bugfixes
75
+
76
+ ### `@mui/x-data-grid@v6.0.0` / `@mui/x-data-grid-pro@v6.0.0` / `@mui/x-data-grid-premium@v6.0.0`
77
+
78
+ #### Breaking changes
79
+
80
+ - The `componentsProps` and `slotProps` props are now typed for better DX
81
+ - The `cellFocus`, `cellTabIndex` and `editRowsState` props are not passed to the component used in the row slot. You can use the new `focusedCell` and `tabbableCell` props instead. For the editing state, use the API methods.
82
+ The flag `experimentalFeatures.rowPinning` is no longer needed.
83
+
84
+ #### Changes
85
+
86
+ - [DataGrid] Add typing for `componentsProps` (#7968) @MBilalShafi
87
+ - [DataGrid] Allow multiple modules' augmentation (#8098) @MBilalShafi
88
+ - [DataGrid] Extract `BaseInputLabel` slot (#8068) @cherniavskii
89
+ - [DataGrid] Extract `BaseSelectOption` slot (#8072) @cherniavskii
90
+ - [DataGrid] Make possible to memoize rows and cells (#7846) @m4theushw
91
+ - [DataGrid] Register `getLocaleText` synchronously (#8029) @m4theushw
92
+ - [DataGrid] Start extracting material slots to a separate directory (#8004) @cherniavskii
93
+ - [DataGrid] Use `styled` from system (#8032) @siriwatknp
94
+ - [DataGridPro] Improve typing for `getColumnForNewFilter` method (#8043) @MBilalShafi
95
+ - [DataGridPro] Remove row pinning from experimental features (#8055) @MBilalShafi
96
+ - [l10n] Improve Czech (cs-CZ) locale (#8113) @BlastyCZ
97
+ - [l10n] Improve Arabic (ar-SD) locale (#8100) @atf98
98
+
99
+ ### `@mui/x-date-pickers@v6.0.0` / `@mui/x-date-pickers-pro@v6.0.0`
100
+
101
+ #### Breaking changes
102
+
103
+ On desktop, `DateTimePicker` shows the am/pm controls in the toolbar instead of the clock by default.
104
+ It can be overridden by specifying `ampmInClock` prop.
105
+
106
+ #### Changes
107
+
108
+ - [DateRangePicker] Generalize the highlight between months (#8079) @alexfauquette
109
+ - [fields] Clean the order of the tokens in the `formatTokenMap` of each adapter (#8112) @flaviendelangle
110
+ - [fields] Implement empty visual state (#8069) @LukasTy
111
+ - [fields] Replace `sectionOrder` state with a memoized variable (#8090) @flaviendelangle
112
+ - [pickers] Add support for UTC on `moment` adapter (#8031) @flaviendelangle
113
+ - [pickers] Document and deprecate `onClose` callback on static pickers (#8021) @LukasTy
114
+ - [pickers] Fix am/pm buttons position and responsiveness (#5149) @alexfauquette
115
+ - [pickers] Fix layout `sx` propagation (#8064) @alexfauquette
116
+ - [pickers] Increase `moment` peer dependency minimum version (#8046) @oliviertassinari
117
+ - [pickers] Remove `WrapperVariantContext` (#8088) @LukasTy
118
+ - [pickers] Stop using `WrapperVariantContext` in `Clock` (#8083) @LukasTy
119
+
120
+ ### Docs
121
+
122
+ - [docs] Add `aggregation` experimental flag removal to the migration guide (#8056) @MBilalShafi
123
+ - [docs] Add expansion state behavioral change to v6 migration guide (#8108) @MBilalShafi
124
+ - [docs] Change default date from 4th of April to 17th of April for readability (#8089) @flaviendelangle
125
+ - [docs] Clarify the MIT license restriction for grid pagination (#8045) @arunkp
126
+ - [docs] Fix typo replacing "bellow" by "below" (#8080) @TheBox193
127
+ - [docs] Link `API object` in the `apiRef` sections (#8106) @MBilalShafi
128
+ - [docs] Link to demonstrations in the interfaces API docs (#8028) @cherniavskii
129
+ - [docs] Remove the `@next` tag from installation instructions (#8102) @cherniavskii
130
+ - [docs] Start enforcing consistency in documentation vocabulary (#6871) @alexfauquette
131
+ - [docs] Update accessibility guidelines (#7970) @oliviertassinari
132
+ - [docs] Update the DataGrid demo to leverage the latest features (#7863) @joserodolfofreitas
133
+ - [docs] Update migration guide for stable release (#8092) @joserodolfofreitas
134
+
135
+ ### Core
136
+
137
+ - [core] Add modified docs page links in the PR (#7848) @alexfauquette
138
+ - [core] Add test on value timezone (#7867) @alexfauquette
139
+ - [core] Bump monorepo (#8006) @LukasTy
140
+ - [core] Change default branch back to `master` (#8081) @m4theushw
141
+ - [core] Upgrade monorepo (#8115) @MBilalShafi
142
+ - [core] Mention the use of Support key as an alternative to the OrderID (#6968) @joserodolfofreitas
143
+ - [test] Fix flaky tests (#8097) @cherniavskii
144
+
6
145
  ## 6.0.0-beta.5
7
146
 
8
147
  _Feb 23, 2023_
@@ -290,17 +429,17 @@ We encourage you to try out this version, packed with improvements, bug fixes, a
290
429
 
291
430
  **Data Grid**
292
431
 
293
- - [Access to the API Object in the community version](https://next.mui.com/x/react-data-grid/api-object/)
294
- - [Improved column menu](https://next.mui.com/x/react-data-grid/column-menu/)
295
- - [Cell selection range](https://next.mui.com/x/react-data-grid/cell-selection/) (Premium)
432
+ - [Access to the API Object in the community version](https://mui.com/x/react-data-grid/api-object/)
433
+ - [Improved column menu](https://mui.com/x/react-data-grid/column-menu/)
434
+ - [Cell selection range](https://mui.com/x/react-data-grid/cell-selection/) (Premium)
296
435
 
297
436
  **Date and Time pickers**
298
437
 
299
- - [Fields: the new default input for pickers](https://next.mui.com/x/react-date-pickers/fields/).
300
- - [Improved layout customization](https://next.mui.com/x/react-date-pickers/custom-layout/)
301
- - [Edit date ranges with drag and drop](https://next.mui.com/x/react-date-pickers/date-range-calendar/) (Pro)
438
+ - [Fields: the new default input for pickers](https://mui.com/x/react-date-pickers/fields/).
439
+ - [Improved layout customization](https://mui.com/x/react-date-pickers/custom-layout/)
440
+ - [Edit date ranges with drag and drop](https://mui.com/x/react-date-pickers/date-range-calendar/) (Pro)
302
441
 
303
- You can check the migration guides for the [Data Grid](https://next.mui.com/x/migration/migration-data-grid-v5/) and [Date Pickers](https://next.mui.com/x/migration/migration-pickers-v5/) in the documentation.
442
+ You can check the migration guides for the [Data Grid](https://mui.com/x/migration/migration-data-grid-v5/) and [Date Pickers](https://mui.com/x/migration/migration-pickers-v5/) in the documentation.
304
443
 
305
444
  We'd like to offer a big thanks to the 10 contributors who made this release possible.
306
445
 
@@ -447,7 +586,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
447
586
  // Same for all the other pickers with an `Unstable_` prefix
448
587
  ```
449
588
 
450
- If you were still using the legacy picker (`DatePicker`, `DesktopDatePicker`, ...), please take a look at our [migration guide](https://next.mui.com/x/migration/migration-pickers-v5/#picker-components) for detailed explanations on how to start using the new ones.
589
+ If you were still using the legacy picker (`DatePicker`, `DesktopDatePicker`, ...), please take a look at our [migration guide](https://mui.com/x/migration/migration-pickers-v5/#picker-components) for detailed explanations on how to start using the new ones.
451
590
 
452
591
  - The fields components are no longer unstable
453
592
 
@@ -878,7 +1017,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
878
1017
  return <DataGrid apiRef={apiRef} {...other} />;
879
1018
  ```
880
1019
 
881
- See [the documentation](https://next.mui.com/x/react-data-grid/api-object/) for more information.
1020
+ See [the documentation](https://mui.com/x/react-data-grid/api-object/) for more information.
882
1021
 
883
1022
  - 🎁 The `DataGridPremium` now supports cell selection:
884
1023
 
@@ -886,7 +1025,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
886
1025
  <DataGridPremium unstable_cellSelection />
887
1026
  ```
888
1027
 
889
- See [the documentation](https://next.mui.com/x/react-data-grid/selection/#cell-selection) for more information
1028
+ See [the documentation](https://mui.com/x/react-data-grid/selection/#cell-selection) for more information
890
1029
 
891
1030
  - 🌍 Support the Right To Left orientation on the fields components
892
1031
  - 📚 Documentation improvements
@@ -1147,7 +1286,7 @@ _Nov 24, 2022_
1147
1286
 
1148
1287
  We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
1149
1288
 
1150
- - 🎁 Introduce the v6 pickers, built on top of the field components [DatePicker](https://next.mui.com/x/react-date-pickers/date-picker/), [TimePicker](https://next.mui.com/x/react-date-pickers/time-picker/), [DateTimePicker](https://next.mui.com/x/react-date-pickers/date-time-picker/), [DateRangePicker](https://next.mui.com/x/react-date-pickers/date-range-picker/).
1289
+ - 🎁 Introduce the v6 pickers, built on top of the field components [DatePicker](https://mui.com/x/react-date-pickers/date-picker/), [TimePicker](https://mui.com/x/react-date-pickers/time-picker/), [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/), [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/).
1151
1290
 
1152
1291
  The old (legacy) components will be removed at the end of the v6 beta.
1153
1292
 
@@ -1518,7 +1657,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
1518
1657
  The renamed props are the following:
1519
1658
 
1520
1659
  | Old name | New name |
1521
- | -------------------------- | ----------------------------- |
1660
+ | :------------------------- | :---------------------------- |
1522
1661
  | `selectionModel` | `rowSelectionModel` |
1523
1662
  | `onSelectionModelChange` | `onRowSelectionModelChange` |
1524
1663
  | `disableSelectionOnClick` | `disableRowSelectionOnClick` |
@@ -1637,20 +1776,20 @@ _Oct 13, 2022_
1637
1776
  We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
1638
1777
 
1639
1778
  - ⌚️ New components to edit date and time with <kbd>keyboard</kbd>—without using any modal or dropdown UI.
1640
- Please check out our [documentation](https://next.mui.com/x/react-date-pickers/fields/) to discover those new components.
1779
+ Please check out our [documentation](https://mui.com/x/react-date-pickers/fields/) to discover those new components.
1641
1780
 
1642
- - [`DateField`](https://next.mui.com/x/react-date-pickers/date-field/) to edit date
1643
- - [`TimeField`](https://next.mui.com/x/react-date-pickers/time-field/) to edit time
1644
- - [`DateTimeField`](https://next.mui.com/x/react-date-pickers/date-time-field/) to edit date and time
1645
- - [`MultiInputDateRangeField` / `SingleInputDateRangeField`](https://next.mui.com/x/react-date-pickers/date-range-field/) to edit date range
1646
- - [`MultiInputTimeRangeField`](https://next.mui.com/x/react-date-pickers/time-range-field/) to edit time range with two inputs
1647
- - [`MultiInputDateTimeRangeField`](https://next.mui.com/x/react-date-pickers/date-time-range-field/) to edit date and time range with two inputs
1781
+ - [`DateField`](https://mui.com/x/react-date-pickers/date-field/) to edit date
1782
+ - [`TimeField`](https://mui.com/x/react-date-pickers/time-field/) to edit time
1783
+ - [`DateTimeField`](https://mui.com/x/react-date-pickers/date-time-field/) to edit date and time
1784
+ - [`MultiInputDateRangeField` / `SingleInputDateRangeField`](https://mui.com/x/react-date-pickers/date-range-field/) to edit date range
1785
+ - [`MultiInputTimeRangeField`](https://mui.com/x/react-date-pickers/time-range-field/) to edit time range with two inputs
1786
+ - [`MultiInputDateTimeRangeField`](https://mui.com/x/react-date-pickers/date-time-range-field/) to edit date and time range with two inputs
1648
1787
 
1649
1788
  ⚠️ These components are unstable.
1650
1789
  They might receive breaking changes on their props to have the best components possible by the time of the stable release.
1651
1790
 
1652
1791
  - 📝 Allow to limit to one filter per column for `DataGridPro` and `DataGridPremium` (#6333) @MBilalShafi
1653
- - 📚 New [page describing the validation props on each picker](https://next.mui.com/x/react-date-pickers/validation/) (#6064) @flaviendelangle
1792
+ - 📚 New [page describing the validation props on each picker](https://mui.com/x/react-date-pickers/validation/) (#6064) @flaviendelangle
1654
1793
  - 📚 Documentation improvements
1655
1794
  - 🐞 Bugfixes
1656
1795
 
@@ -1671,14 +1810,14 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
1671
1810
  For users that didn't migrate to the new editing API in v5, additional work may be needed because the new API is not equivalent to the legacy API. Although, some migration steps are available to help in this task.
1672
1811
 
1673
1812
  - The `editCellPropsChange` event was removed. If you still need it please file a new issue so we can propose an alternative.
1674
- - The `cellEditCommit` event was removed and the `processRowUpdate` prop can be used in place. More information, check the [docs](https://next.mui.com/x/react-data-grid/editing/#persistence) section about the topic.
1675
- - The `editRowsModel` and `onEditRowsModelChange` props were removed. The [`cellModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) or [`rowModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) props can be used to achieve the same goal.
1813
+ - The `cellEditCommit` event was removed and the `processRowUpdate` prop can be used in place. More information, check the [docs](https://mui.com/x/react-data-grid/editing/#persistence) section about the topic.
1814
+ - The `editRowsModel` and `onEditRowsModelChange` props were removed. The [`cellModesModel`](https://mui.com/x/react-data-grid/editing/#controlled-mode) or [`rowModesModel`](https://mui.com/x/react-data-grid/editing/#controlled-mode) props can be used to achieve the same goal.
1676
1815
  - The following API methods were removed:
1677
1816
  - Use `apiRef.current.stopCellEditMode` to replace `apiRef.current.commitCellChange`
1678
1817
  - Use `apiRef.current.startCellEditMode` to replace `apiRef.current.setCellMode(id, field, 'edit')`
1679
1818
  - Use `apiRef.current.stopRowEditMode` to replace `apiRef.current.commitRowChange`
1680
1819
  - Use `apiRef.current.startRowMode` to replace `apiRef.current.setRowMode(id, 'edit')`
1681
- - Use the [`cellModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) or [`rowModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) props to replace `apiRef.current.setEditRowsModel`
1820
+ - Use the [`cellModesModel`](https://mui.com/x/react-data-grid/editing/#controlled-mode) or [`rowModesModel`](https://mui.com/x/react-data-grid/editing/#controlled-mode) props to replace `apiRef.current.setEditRowsModel`
1682
1821
 
1683
1822
  #### Changes
1684
1823
 
@@ -2079,7 +2218,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
2079
2218
  />
2080
2219
  ```
2081
2220
 
2082
- You can find more information about this new API on our [documentation](https://next.mui.com/x/react-data-grid/column-visibility/).
2221
+ You can find more information about this new API on our [documentation](https://mui.com/x/react-data-grid/column-visibility/).
2083
2222
 
2084
2223
  - The `GridEvents` enum is now a TypeScript type.
2085
2224
 
@@ -2105,7 +2244,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
2105
2244
  You can now use the `localText` prop available on all picker components:
2106
2245
 
2107
2246
  | Removed prop | Property in the new `localText` prop |
2108
- | ---------------------------- | --------------------------------------------------------------------------------- |
2247
+ | :--------------------------- | :-------------------------------------------------------------------------------- |
2109
2248
  | `endText` | `end` |
2110
2249
  | `getClockLabelText` | `clockLabelText` |
2111
2250
  | `getHoursClockNumberText` | `hoursClockNumberText` |
@@ -2129,7 +2268,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
2129
2268
  />
2130
2269
  ```
2131
2270
 
2132
- You can find more information about the new api, including how to set those translations on all your components at once in the [documentation](https://next.mui.com/x/react-date-pickers/localization/)
2271
+ You can find more information about the new api, including how to set those translations on all your components at once in the [documentation](https://mui.com/x/react-date-pickers/localization/)
2133
2272
 
2134
2273
  - The deprecated `locale` prop of the `LocalizationProvider` component have been renamed `adapterLocale`:
2135
2274
 
@@ -2728,7 +2867,7 @@ We'd like to offer a big thanks to the 5 contributors who made this release poss
2728
2867
 
2729
2868
  - [CalendarPicker] Don't move to closest enabled date when `props.date` contains a disabled date (#6537) @flaviendelangle
2730
2869
  - [DateRangePicker] Fix calendar day outside of month layout shifting on hover (pick #6448) (#6538) @alexfauquette
2731
- - [pickers] Fix typescript issues (#6510) @flaviendelangle
2870
+ - [pickers] Fix Typescript issues (#6510) @flaviendelangle
2732
2871
 
2733
2872
  ### Docs
2734
2873
 
@@ -2874,7 +3013,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
2874
3013
 
2875
3014
  ### Core
2876
3015
 
2877
- - [core] Update to typescript 4.8.3 (#6136) @flaviendelangle
3016
+ - [core] Update to Typescript 4.8.3 (#6136) @flaviendelangle
2878
3017
  - [core] Update RFC template (#6100) @bytasv
2879
3018
 
2880
3019
  ## 5.17.2
@@ -3083,7 +3222,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
3083
3222
 
3084
3223
  #### Changes
3085
3224
 
3086
- - [DataGrid] Fix <kbd>Enter</kbd> causing Select to re-open when commiting value (#5756) @m4theushw
3225
+ - [DataGrid] Fix <kbd>Enter</kbd> causing Select to re-open when committing value (#5756) @m4theushw
3087
3226
  - [DataGrid] Fix `GridOverlays` bypassing pointer events (#5674) @philjones88
3088
3227
 
3089
3228
  ### `@mui/x-date-pickers@v5.0.0-beta.6` / `@mui/x-date-picker-pro@v5.0.0-beta.6`
@@ -3127,7 +3266,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
3127
3266
  #### Changes
3128
3267
 
3129
3268
  - [DataGrid] Catch errors if rows freezing is not supported (#5711) @cherniavskii
3130
- - [DataGrid] Preserve cell mode when entering edit mode while commiting (#5686) @m4theushw
3269
+ - [DataGrid] Preserve cell mode when entering edit mode while committing (#5686) @m4theushw
3131
3270
  - [DataGridPremium] Let quick filter search in row grouping children (#5701) @alexfauquette
3132
3271
 
3133
3272
  ### `@mui/x-date-pickers@v5.0.0-beta.5` / `@mui/x-date-picker-pro@5.0.0-beta.5`
@@ -4054,7 +4193,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
4054
4193
  - [core] Remove dead code (#4283) @oliviertassinari
4055
4194
  - [core] Rename the "pre-processing" concept "pipe-processing" (#4261) @flaviendelangle
4056
4195
  - [core] Reuse previous state when updating the columns prop (#4229) @m4theushw
4057
- - [core] Fix Argos flakyness for pickers tests (#4312) @flaviendelangle
4196
+ - [core] Fix Argos flakiness for pickers tests (#4312) @flaviendelangle
4058
4197
 
4059
4198
  ## 5.7.0
4060
4199
 
@@ -4190,7 +4329,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
4190
4329
  Here are the new names and the modifications needed to get the same information with the new selectors.
4191
4330
 
4192
4331
  | Old name | New name |
4193
- | ------------------------------- | ----------------------------------------- |
4332
+ | :------------------------------ | :---------------------------------------- |
4194
4333
  | `allGridColumnsFieldsSelector` | `gridColumnFieldsSelector` |
4195
4334
  | `allGridColumnsSelector` | `gridColumnDefinitionsSelector` |
4196
4335
  | `visibleGridColumnsSelector` | `gridVisibleColumnDefinitionsSelector` |
@@ -5604,7 +5743,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
5604
5743
 
5605
5744
  - [docs] Add section for controlled selection and server-side pagination (#2602) @DanailH
5606
5745
  - [docs] Fix Algolia search (#2655) @oliviertassinari
5607
- - [docs] Improve the seach results relevance (#2656) @oliviertassinari
5746
+ - [docs] Improve the search results relevance (#2656) @oliviertassinari
5608
5747
  - [docs] Update installation instructions (#2663) @m4theushw
5609
5748
 
5610
5749
  ### Core
@@ -6968,7 +7107,7 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
6968
7107
  }
6969
7108
  ```
6970
7109
 
6971
- - [DataGrid] Upgrade mininum supported version of React to 17.0.0 (#1410) @m4theushw
7110
+ - [DataGrid] Upgrade minimum supported version of React to 17.0.0 (#1410) @m4theushw
6972
7111
 
6973
7112
  #### Changes
6974
7113
 
@@ -7098,7 +7237,7 @@ Big thanks to the 6 contributors who made this release possible. Here are some h
7098
7237
 
7099
7238
  - [docs] Add demo page (#1147) @DanailH
7100
7239
  - [docs] Fix typo in localization.md (#1155) @michael-martin-al
7101
- - [docs] Improve the desciption of the individual packages (#1139) @oliviertassinari
7240
+ - [docs] Improve the description of the individual packages (#1139) @oliviertassinari
7102
7241
  - [docs] Fix rendering docs to solve custom pagination issue (#1159) @consDev
7103
7242
 
7104
7243
  ### Core
@@ -7275,7 +7414,7 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
7275
7414
  - [DataGrid] Fix footer visual regression (#932) @dtassone
7276
7415
  - [DataGrid] Fix strict mode issue with apiRef (#933) @dtassone
7277
7416
  - [DataGrid] Work on the accessibility of the column menu (#900) @zj9495
7278
- - [DataGrid] Fix timing guarentee (#981) @oliviertassinari
7417
+ - [DataGrid] Fix timing guarantee (#981) @oliviertassinari
7279
7418
  - [DataGrid] Fix unstable footer height (#937) @oliviertassinari
7280
7419
  - [DataGrid] Fix usage of the prop-types API (#955) @oliviertassinari
7281
7420
  - [DataGrid] Fix duplicate aria-label (#953) @oliviertassinari
@@ -466,7 +466,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
466
466
  classes: PropTypes.object,
467
467
  className: PropTypes.string,
468
468
  /**
469
- * Overrideable components.
469
+ * Overridable components.
470
470
  * @default {}
471
471
  * @deprecated Please use `slots`.
472
472
  */
@@ -617,7 +617,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
617
617
  */
618
618
  slotProps: PropTypes.object,
619
619
  /**
620
- * Overrideable component slots.
620
+ * Overridable component slots.
621
621
  * @default {}
622
622
  */
623
623
  slots: PropTypes.object,
@@ -89,7 +89,7 @@ export interface DateRangeCalendarProps<TDate> extends ExportedDateRangeCalendar
89
89
  */
90
90
  sx?: SxProps<Theme>;
91
91
  /**
92
- * Overrideable components.
92
+ * Overridable components.
93
93
  * @default {}
94
94
  * @deprecated Please use `slots`.
95
95
  */
@@ -101,7 +101,7 @@ export interface DateRangeCalendarProps<TDate> extends ExportedDateRangeCalendar
101
101
  */
102
102
  componentsProps?: DateRangeCalendarSlotsComponentsProps<TDate>;
103
103
  /**
104
- * Overrideable component slots.
104
+ * Overridable component slots.
105
105
  * @default {}
106
106
  */
107
107
  slots?: UncapitalizeObjectKeys<DateRangeCalendarSlotsComponent<TDate>>;
@@ -58,7 +58,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
58
58
  */
59
59
  closeOnSelect: PropTypes.bool,
60
60
  /**
61
- * Overrideable components.
61
+ * Overridable components.
62
62
  * @default {}
63
63
  * @deprecated Please use `slots`.
64
64
  */
@@ -276,7 +276,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
276
276
  */
277
277
  slotProps: PropTypes.object,
278
278
  /**
279
- * Overrideable component slots.
279
+ * Overridable component slots.
280
280
  * @default {}
281
281
  */
282
282
  slots: PropTypes.object,
@@ -13,7 +13,7 @@ export interface DateRangePickerProps<TDate> extends DesktopDateRangePickerProps
13
13
  */
14
14
  desktopModeMediaQuery?: string;
15
15
  /**
16
- * Overrideable components.
16
+ * Overridable components.
17
17
  * @default {}
18
18
  * @deprecated Please use `slots`.
19
19
  */
@@ -25,7 +25,7 @@ export interface DateRangePickerProps<TDate> extends DesktopDateRangePickerProps
25
25
  */
26
26
  componentsProps?: DateRangePickerSlotsComponentsProps<TDate>;
27
27
  /**
28
- * Overrideable component slots.
28
+ * Overridable component slots.
29
29
  * @default {}
30
30
  */
31
31
  slots?: UncapitalizeObjectKeys<DateRangePickerSlotsComponents<TDate>>;
@@ -18,7 +18,7 @@ export interface BaseDateRangePickerSlotsComponentsProps<TDate> extends DateRang
18
18
  }
19
19
  export interface BaseDateRangePickerProps<TDate> extends Omit<BasePickerInputProps<DateRange<TDate>, TDate, 'day', DateRangeValidationError>, 'view' | 'views' | 'openTo' | 'onViewChange' | 'orientation'>, ExportedDateRangeCalendarProps<TDate>, BaseDateValidationProps<TDate> {
20
20
  /**
21
- * Overrideable components.
21
+ * Overridable components.
22
22
  * @default {}
23
23
  * @deprecated Please use `slots`.
24
24
  */
@@ -30,7 +30,7 @@ export interface BaseDateRangePickerProps<TDate> extends Omit<BasePickerInputPro
30
30
  */
31
31
  componentsProps?: BaseDateRangePickerSlotsComponentsProps<TDate>;
32
32
  /**
33
- * Overrideable component slots.
33
+ * Overridable component slots.
34
34
  * @default {}
35
35
  */
36
36
  slots?: UncapitalizeObjectKeys<BaseDateRangePickerSlotsComponent<TDate>>;
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["className", "day", "outsideCurrentMonth", "isEndOfHighlighting", "isEndOfPreviewing", "isHighlighting", "isPreviewing", "isStartOfHighlighting", "isStartOfPreviewing", "selected", "isVisuallySelected", "sx", "draggable"];
3
+ const _excluded = ["className", "day", "outsideCurrentMonth", "isEndOfHighlighting", "isEndOfPreviewing", "isHighlighting", "isPreviewing", "isStartOfHighlighting", "isStartOfPreviewing", "selected", "isVisuallySelected", "sx", "draggable", "isFirstVisibleCell", "isLastVisibleCell"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
@@ -8,7 +8,7 @@ import { useLicenseVerifier } from '@mui/x-license-pro';
8
8
  import { alpha, styled, useThemeProps } from '@mui/material/styles';
9
9
  import { unstable_composeClasses as composeClasses } from '@mui/utils';
10
10
  import { useUtils } from '@mui/x-date-pickers/internals';
11
- import { PickersDay } from '@mui/x-date-pickers/PickersDay';
11
+ import { PickersDay, pickersDayClasses } from '@mui/x-date-pickers/PickersDay';
12
12
  import { getDateRangePickerDayUtilityClass, dateRangePickerDayClasses } from './dateRangePickerDayClasses';
13
13
  import { getReleaseInfo } from '../internal/utils/releaseInfo';
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -24,12 +24,15 @@ const useUtilityClasses = ownerState => {
24
24
  isPreviewing,
25
25
  isStartOfPreviewing,
26
26
  isEndOfPreviewing,
27
+ isFirstVisibleCell,
28
+ isLastVisibleCell,
29
+ isHiddenDayFiller,
27
30
  selected,
28
31
  classes
29
32
  } = ownerState;
30
33
  const slots = {
31
- root: ['root', isHighlighting && !outsideCurrentMonth && 'rangeIntervalDayHighlight', (isStartOfHighlighting || isStartOfMonth) && 'rangeIntervalDayHighlightStart', (isEndOfHighlighting || isEndOfMonth) && 'rangeIntervalDayHighlightEnd'],
32
- rangeIntervalPreview: ['rangeIntervalPreview', isPreviewing && !outsideCurrentMonth && 'rangeIntervalDayPreview', (isStartOfPreviewing || isStartOfMonth) && 'rangeIntervalDayPreviewStart', (isEndOfPreviewing || isEndOfMonth) && 'rangeIntervalDayPreviewEnd'],
34
+ root: ['root', isHighlighting && 'rangeIntervalDayHighlight', isStartOfHighlighting && 'rangeIntervalDayHighlightStart', isEndOfHighlighting && 'rangeIntervalDayHighlightEnd', outsideCurrentMonth && 'outsideCurrentMonth', isStartOfMonth && 'startOfMonth', isEndOfMonth && 'endOfMonth', isFirstVisibleCell && 'firstVisibleCell', isLastVisibleCell && 'lastVisibleCell', isHiddenDayFiller && 'hiddenDayFiller'],
35
+ rangeIntervalPreview: ['rangeIntervalPreview', isPreviewing && 'rangeIntervalDayPreview', (isStartOfPreviewing || isStartOfMonth) && 'rangeIntervalDayPreviewStart', (isEndOfPreviewing || isEndOfMonth) && 'rangeIntervalDayPreviewEnd'],
33
36
  day: ['day', !selected && 'notSelectedDate', !isHighlighting && 'dayOutsideRangeInterval', !selected && isHighlighting && 'dayInsideRangeInterval']
34
37
  };
35
38
  return composeClasses(slots, getDateRangePickerDayUtilityClass, classes);
@@ -51,26 +54,38 @@ const DateRangePickerDayRoot = styled('div', {
51
54
  [`&.${dateRangePickerDayClasses.rangeIntervalDayHighlightStart}`]: styles.rangeIntervalDayHighlightStart
52
55
  }, {
53
56
  [`&.${dateRangePickerDayClasses.rangeIntervalDayHighlightEnd}`]: styles.rangeIntervalDayHighlightEnd
57
+ }, {
58
+ [`&.${dateRangePickerDayClasses.firstVisibleCell}`]: styles.firstVisibleCell
59
+ }, {
60
+ [`&.${dateRangePickerDayClasses.lastVisibleCell}`]: styles.lastVisibleCell
61
+ }, {
62
+ [`&.${dateRangePickerDayClasses.startOfMonth}`]: styles.startOfMonth
63
+ }, {
64
+ [`&.${dateRangePickerDayClasses.endOfMonth}`]: styles.endOfMonth
65
+ }, {
66
+ [`&.${dateRangePickerDayClasses.outsideCurrentMonth}`]: styles.outsideCurrentMonth
67
+ }, {
68
+ [`&.${dateRangePickerDayClasses.hiddenDayFiller}`]: styles.hiddenDayFiller
54
69
  }, styles.root]
55
70
  })(({
56
71
  theme,
57
72
  ownerState
58
- }) => _extends({
73
+ }) => ownerState.isHiddenDayFiller ? {} : _extends({
59
74
  [`&:first-of-type .${dateRangePickerDayClasses.rangeIntervalDayPreview}`]: _extends({}, startBorderStyle, {
60
75
  borderLeftColor: (theme.vars || theme).palette.divider
61
76
  }),
62
77
  [`&:last-of-type .${dateRangePickerDayClasses.rangeIntervalDayPreview}`]: _extends({}, endBorderStyle, {
63
78
  borderRightColor: (theme.vars || theme).palette.divider
64
79
  })
65
- }, ownerState.isHighlighting && !ownerState.outsideCurrentMonth && {
80
+ }, ownerState.isHighlighting && {
66
81
  borderRadius: 0,
67
82
  color: (theme.vars || theme).palette.primary.contrastText,
68
83
  backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.lightChannel} / 0.6)` : alpha(theme.palette.primary.light, 0.6),
69
84
  '&:first-of-type': startBorderStyle,
70
85
  '&:last-of-type': endBorderStyle
71
- }, (ownerState.isStartOfHighlighting || ownerState.isStartOfMonth) && _extends({}, startBorderStyle, {
86
+ }, (ownerState.isStartOfHighlighting || ownerState.isFirstVisibleCell) && _extends({}, startBorderStyle, {
72
87
  paddingLeft: 0
73
- }), (ownerState.isEndOfHighlighting || ownerState.isEndOfMonth) && _extends({}, endBorderStyle, {
88
+ }), (ownerState.isEndOfHighlighting || ownerState.isLastVisibleCell) && _extends({}, endBorderStyle, {
74
89
  paddingRight: 0
75
90
  })));
76
91
  DateRangePickerDayRoot.propTypes = {
@@ -96,14 +111,14 @@ const DateRangePickerDayRangeIntervalPreview = styled('div', {
96
111
  }) => _extends({
97
112
  // replace default day component margin with transparent border to avoid jumping on preview
98
113
  border: '2px solid transparent'
99
- }, ownerState.isPreviewing && !ownerState.outsideCurrentMonth && _extends({
114
+ }, ownerState.isPreviewing && !ownerState.isHiddenDayFiller && _extends({
100
115
  borderRadius: 0,
101
116
  border: `2px dashed ${(theme.vars || theme).palette.divider}`,
102
117
  borderLeftColor: 'transparent',
103
118
  borderRightColor: 'transparent'
104
- }, (ownerState.isStartOfPreviewing || ownerState.isStartOfMonth) && _extends({
119
+ }, (ownerState.isStartOfPreviewing || ownerState.isFirstVisibleCell) && _extends({
105
120
  borderLeftColor: (theme.vars || theme).palette.divider
106
- }, startBorderStyle), (ownerState.isEndOfPreviewing || ownerState.isEndOfMonth) && _extends({
121
+ }, startBorderStyle), (ownerState.isEndOfPreviewing || ownerState.isLastVisibleCell) && _extends({
107
122
  borderRightColor: (theme.vars || theme).palette.divider
108
123
  }, endBorderStyle))));
109
124
  DateRangePickerDayRangeIntervalPreview.propTypes = {
@@ -135,7 +150,10 @@ const DateRangePickerDayDay = styled(PickersDay, {
135
150
  }, !ownerState.selected && {
136
151
  backgroundColor: 'transparent'
137
152
  }, !ownerState.selected && ownerState.isHighlighting && {
138
- color: theme.palette.getContrastText(alpha(theme.palette.primary.light, 0.6))
153
+ color: theme.palette.getContrastText(alpha(theme.palette.primary.light, 0.6)),
154
+ [`&.${pickersDayClasses.dayOutsideMonth}`]: {
155
+ color: alpha(theme.palette.getContrastText(theme.palette.primary.light), 0.4)
156
+ }
139
157
  }, ownerState.draggable && {
140
158
  cursor: 'grab'
141
159
  }, ownerState.draggable && {
@@ -155,7 +173,9 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
155
173
  selected = false,
156
174
  isVisuallySelected,
157
175
  sx,
158
- draggable
176
+ draggable,
177
+ isFirstVisibleCell,
178
+ isLastVisibleCell
159
179
  } = props,
160
180
  other = _objectWithoutPropertiesLoose(props, _excluded);
161
181
  useLicenseVerifier('x-date-pickers-pro', releaseInfo);
@@ -168,7 +188,10 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
168
188
  selected,
169
189
  isStartOfMonth,
170
190
  isEndOfMonth,
171
- draggable
191
+ draggable,
192
+ isFirstVisibleCell,
193
+ isLastVisibleCell,
194
+ isHiddenDayFiller: outsideCurrentMonth && !other.showDaysOutsideCurrentMonth
172
195
  });
173
196
  const classes = useUtilityClasses(ownerState);
174
197
  return /*#__PURE__*/_jsx(DateRangePickerDayRoot, {
@@ -186,7 +209,9 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
186
209
  outsideCurrentMonth: outsideCurrentMonth,
187
210
  className: classes.day,
188
211
  ownerState: ownerState,
189
- draggable: draggable
212
+ draggable: draggable,
213
+ isFirstVisibleCell: isFirstVisibleCell,
214
+ isLastVisibleCell: isLastVisibleCell
190
215
  }))
191
216
  })
192
217
  });
@@ -271,10 +296,20 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDayRaw.propTypes = {
271
296
  * Set to `true` if the `day` is the start of a previewing date range.
272
297
  */
273
298
  isEndOfPreviewing: PropTypes.bool.isRequired,
299
+ /**
300
+ * If `true`, day is the first visible cell of the month.
301
+ * Either the first day of the month or the first day of the week depending on `showDaysOutsideCurrentMonth`.
302
+ */
303
+ isFirstVisibleCell: PropTypes.bool.isRequired,
274
304
  /**
275
305
  * Set to `true` if the `day` is in a highlighted date range.
276
306
  */
277
307
  isHighlighting: PropTypes.bool.isRequired,
308
+ /**
309
+ * If `true`, day is the last visible cell of the month.
310
+ * Either the last day of the month or the last day of the week depending on `showDaysOutsideCurrentMonth`.
311
+ */
312
+ isLastVisibleCell: PropTypes.bool.isRequired,
278
313
  /**
279
314
  * Set to `true` if the `day` is in a preview date range.
280
315
  */