@mui/x-date-pickers-pro 7.0.0-beta.2 → 7.0.0-beta.4

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 (274) hide show
  1. package/CHANGELOG.md +298 -23
  2. package/DateRangeCalendar/DateRangeCalendar.js +3 -1
  3. package/DateRangeCalendar/DateRangeCalendar.types.d.ts +3 -0
  4. package/DateRangePicker/DateRangePicker.d.ts +1 -1
  5. package/DateRangePicker/DateRangePicker.js +9 -9
  6. package/DateRangePicker/DateRangePicker.types.d.ts +3 -3
  7. package/DateRangePicker/DateRangePickerToolbar.d.ts +3 -0
  8. package/DateRangePicker/DateRangePickerToolbar.js +6 -0
  9. package/DateTimeRangePicker/DateTimeRangePicker.d.ts +1 -1
  10. package/DateTimeRangePicker/DateTimeRangePicker.js +11 -12
  11. package/DateTimeRangePicker/DateTimeRangePicker.types.d.ts +3 -3
  12. package/DateTimeRangePicker/DateTimeRangePickerTabs.js +7 -1
  13. package/DateTimeRangePicker/DateTimeRangePickerToolbar.d.ts +3 -0
  14. package/DateTimeRangePicker/DateTimeRangePickerToolbar.js +6 -0
  15. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +1 -1
  16. package/DesktopDateRangePicker/DesktopDateRangePicker.js +9 -9
  17. package/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +3 -3
  18. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.d.ts +1 -1
  19. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +11 -12
  20. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.types.d.ts +3 -3
  21. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +1 -1
  22. package/MobileDateRangePicker/MobileDateRangePicker.js +9 -9
  23. package/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +3 -3
  24. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.d.ts +1 -1
  25. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +11 -12
  26. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.types.d.ts +3 -3
  27. package/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +1 -1
  28. package/MultiInputDateRangeField/MultiInputDateRangeField.js +17 -19
  29. package/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +11 -14
  30. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +1 -1
  31. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +17 -19
  32. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +12 -16
  33. package/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +1 -1
  34. package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +17 -19
  35. package/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +12 -16
  36. package/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +2 -2
  37. package/SingleInputDateRangeField/SingleInputDateRangeField.js +12 -10
  38. package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +11 -14
  39. package/SingleInputDateRangeField/index.d.ts +1 -1
  40. package/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts +2 -3
  41. package/SingleInputDateRangeField/useSingleInputDateRangeField.js +2 -15
  42. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +2 -2
  43. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +12 -10
  44. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +12 -15
  45. package/SingleInputDateTimeRangeField/index.d.ts +1 -1
  46. package/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts +2 -3
  47. package/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +2 -20
  48. package/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +2 -2
  49. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +11 -9
  50. package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +12 -15
  51. package/SingleInputTimeRangeField/index.d.ts +1 -1
  52. package/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts +2 -3
  53. package/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +2 -14
  54. package/StaticDateRangePicker/StaticDateRangePicker.js +0 -1
  55. package/index.d.ts +0 -1
  56. package/index.js +2 -1
  57. package/internals/hooks/models/useRangePicker.d.ts +5 -5
  58. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +1 -1
  59. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +16 -7
  60. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +5 -5
  61. package/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +15 -15
  62. package/internals/hooks/useEnrichedRangePickerFieldProps.js +37 -40
  63. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +1 -1
  64. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +17 -8
  65. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +5 -5
  66. package/internals/hooks/useMultiInputFieldSelectedSections.d.ts +21 -0
  67. package/internals/hooks/useMultiInputFieldSelectedSections.js +43 -0
  68. package/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts +1 -1
  69. package/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +17 -12
  70. package/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts +2 -3
  71. package/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +23 -31
  72. package/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts +4 -4
  73. package/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts +2 -3
  74. package/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +23 -25
  75. package/internals/hooks/useRangePosition.d.ts +2 -4
  76. package/internals/hooks/useRangePosition.js +3 -6
  77. package/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +1 -0
  78. package/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +1 -2
  79. package/internals/models/dateRange.d.ts +3 -15
  80. package/internals/models/dateTimeRange.d.ts +4 -6
  81. package/internals/models/index.d.ts +0 -1
  82. package/internals/models/index.js +0 -1
  83. package/internals/models/timeRange.d.ts +3 -6
  84. package/internals/utils/date-fields-utils.d.ts +1 -5
  85. package/internals/utils/releaseInfo.js +1 -1
  86. package/internals/utils/valueManagers.d.ts +1 -2
  87. package/internals/utils/valueManagers.js +11 -6
  88. package/models/fields.d.ts +69 -0
  89. package/models/index.d.ts +1 -0
  90. package/models/index.js +1 -0
  91. package/modern/DateRangeCalendar/DateRangeCalendar.js +3 -1
  92. package/modern/DateRangePicker/DateRangePicker.js +9 -9
  93. package/modern/DateRangePicker/DateRangePickerToolbar.js +6 -0
  94. package/modern/DateTimeRangePicker/DateTimeRangePicker.js +11 -12
  95. package/modern/DateTimeRangePicker/DateTimeRangePickerTabs.js +7 -1
  96. package/modern/DateTimeRangePicker/DateTimeRangePickerToolbar.js +6 -0
  97. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +9 -9
  98. package/modern/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +11 -12
  99. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +9 -9
  100. package/modern/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +11 -12
  101. package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +17 -19
  102. package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +17 -19
  103. package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +17 -19
  104. package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +12 -10
  105. package/modern/SingleInputDateRangeField/useSingleInputDateRangeField.js +2 -14
  106. package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +12 -10
  107. package/modern/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +2 -19
  108. package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +11 -9
  109. package/modern/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +2 -13
  110. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +0 -1
  111. package/modern/index.js +2 -1
  112. package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +16 -7
  113. package/modern/internals/hooks/useEnrichedRangePickerFieldProps.js +34 -37
  114. package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +17 -8
  115. package/modern/internals/hooks/useMultiInputFieldSelectedSections.js +40 -0
  116. package/modern/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +17 -12
  117. package/modern/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +23 -30
  118. package/modern/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +23 -24
  119. package/modern/internals/hooks/useRangePosition.js +3 -6
  120. package/modern/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +1 -0
  121. package/modern/internals/models/index.js +0 -1
  122. package/modern/internals/utils/releaseInfo.js +1 -1
  123. package/modern/internals/utils/valueManagers.js +11 -6
  124. package/modern/models/index.js +1 -0
  125. package/node/DateRangeCalendar/DateRangeCalendar.js +3 -1
  126. package/node/DateRangePicker/DateRangePicker.js +9 -9
  127. package/node/DateRangePicker/DateRangePickerToolbar.js +6 -0
  128. package/node/DateTimeRangePicker/DateTimeRangePicker.js +11 -12
  129. package/node/DateTimeRangePicker/DateTimeRangePickerTabs.js +7 -1
  130. package/node/DateTimeRangePicker/DateTimeRangePickerToolbar.js +6 -0
  131. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +9 -9
  132. package/node/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +11 -12
  133. package/node/MobileDateRangePicker/MobileDateRangePicker.js +9 -9
  134. package/node/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +13 -14
  135. package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +17 -19
  136. package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +17 -19
  137. package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +17 -19
  138. package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +12 -10
  139. package/node/SingleInputDateRangeField/useSingleInputDateRangeField.js +2 -16
  140. package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +15 -13
  141. package/node/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +2 -21
  142. package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +11 -9
  143. package/node/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +2 -15
  144. package/node/StaticDateRangePicker/StaticDateRangePicker.js +0 -1
  145. package/node/index.js +1 -1
  146. package/node/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +16 -7
  147. package/node/internals/hooks/useEnrichedRangePickerFieldProps.js +33 -36
  148. package/node/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +17 -8
  149. package/node/internals/hooks/useMultiInputFieldSelectedSections.js +50 -0
  150. package/node/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +16 -11
  151. package/node/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +23 -31
  152. package/node/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +23 -25
  153. package/node/internals/hooks/useRangePosition.js +3 -8
  154. package/node/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +1 -0
  155. package/node/internals/models/index.js +0 -11
  156. package/node/internals/utils/releaseInfo.js +1 -1
  157. package/node/internals/utils/valueManagers.js +10 -5
  158. package/node/models/index.js +11 -0
  159. package/package.json +5 -5
  160. package/themeAugmentation/props.d.ts +12 -12
  161. package/internals/models/fields.d.ts +0 -49
  162. package/legacy/AdapterDateFns/index.js +0 -1
  163. package/legacy/AdapterDateFnsJalali/index.js +0 -1
  164. package/legacy/AdapterDateFnsV3/index.js +0 -1
  165. package/legacy/AdapterDayjs/index.js +0 -1
  166. package/legacy/AdapterLuxon/index.js +0 -1
  167. package/legacy/AdapterMoment/index.js +0 -1
  168. package/legacy/AdapterMomentHijri/index.js +0 -1
  169. package/legacy/AdapterMomentJalaali/index.js +0 -1
  170. package/legacy/DateRangeCalendar/DateRangeCalendar.js +0 -764
  171. package/legacy/DateRangeCalendar/DateRangeCalendar.types.js +0 -1
  172. package/legacy/DateRangeCalendar/dateRangeCalendarClasses.js +0 -5
  173. package/legacy/DateRangeCalendar/index.js +0 -2
  174. package/legacy/DateRangeCalendar/useDragRange.js +0 -258
  175. package/legacy/DateRangePicker/DateRangePicker.js +0 -334
  176. package/legacy/DateRangePicker/DateRangePicker.types.js +0 -1
  177. package/legacy/DateRangePicker/DateRangePickerToolbar.js +0 -127
  178. package/legacy/DateRangePicker/dateRangePickerToolbarClasses.js +0 -5
  179. package/legacy/DateRangePicker/index.js +0 -3
  180. package/legacy/DateRangePicker/shared.js +0 -33
  181. package/legacy/DateRangePickerDay/DateRangePickerDay.js +0 -366
  182. package/legacy/DateRangePickerDay/dateRangePickerDayClasses.js +0 -5
  183. package/legacy/DateRangePickerDay/index.js +0 -2
  184. package/legacy/DateTimeRangePicker/DateTimeRangePicker.js +0 -413
  185. package/legacy/DateTimeRangePicker/DateTimeRangePicker.types.js +0 -1
  186. package/legacy/DateTimeRangePicker/DateTimeRangePickerTabs.js +0 -191
  187. package/legacy/DateTimeRangePicker/DateTimeRangePickerTimeWrapper.js +0 -57
  188. package/legacy/DateTimeRangePicker/DateTimeRangePickerToolbar.js +0 -184
  189. package/legacy/DateTimeRangePicker/dateTimeRangePickerTabsClasses.js +0 -6
  190. package/legacy/DateTimeRangePicker/dateTimeRangePickerToolbarClasses.js +0 -5
  191. package/legacy/DateTimeRangePicker/index.js +0 -5
  192. package/legacy/DateTimeRangePicker/shared.js +0 -54
  193. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -343
  194. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.types.js +0 -1
  195. package/legacy/DesktopDateRangePicker/index.js +0 -1
  196. package/legacy/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +0 -491
  197. package/legacy/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.types.js +0 -1
  198. package/legacy/DesktopDateTimeRangePicker/DesktopDateTimeRangePickerLayout.js +0 -48
  199. package/legacy/DesktopDateTimeRangePicker/index.js +0 -1
  200. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +0 -339
  201. package/legacy/MobileDateRangePicker/MobileDateRangePicker.types.js +0 -1
  202. package/legacy/MobileDateRangePicker/index.js +0 -1
  203. package/legacy/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +0 -484
  204. package/legacy/MobileDateTimeRangePicker/MobileDateTimeRangePicker.types.js +0 -1
  205. package/legacy/MobileDateTimeRangePicker/index.js +0 -1
  206. package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.js +0 -316
  207. package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.types.js +0 -1
  208. package/legacy/MultiInputDateRangeField/index.js +0 -2
  209. package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +0 -357
  210. package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.js +0 -1
  211. package/legacy/MultiInputDateTimeRangeField/index.js +0 -2
  212. package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.js +0 -330
  213. package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.types.js +0 -1
  214. package/legacy/MultiInputTimeRangeField/index.js +0 -2
  215. package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +0 -307
  216. package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.types.js +0 -1
  217. package/legacy/SingleInputDateRangeField/index.js +0 -2
  218. package/legacy/SingleInputDateRangeField/useSingleInputDateRangeField.js +0 -30
  219. package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +0 -348
  220. package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.js +0 -1
  221. package/legacy/SingleInputDateTimeRangeField/index.js +0 -2
  222. package/legacy/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +0 -35
  223. package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +0 -321
  224. package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.types.js +0 -1
  225. package/legacy/SingleInputTimeRangeField/index.js +0 -2
  226. package/legacy/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +0 -29
  227. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +0 -276
  228. package/legacy/StaticDateRangePicker/StaticDateRangePicker.types.js +0 -1
  229. package/legacy/StaticDateRangePicker/index.js +0 -1
  230. package/legacy/dateRangeViewRenderers/dateRangeViewRenderers.js +0 -87
  231. package/legacy/dateRangeViewRenderers/index.js +0 -1
  232. package/legacy/index.js +0 -52
  233. package/legacy/internals/constants/dimensions.js +0 -5
  234. package/legacy/internals/hooks/models/index.js +0 -1
  235. package/legacy/internals/hooks/models/useRangePicker.js +0 -1
  236. package/legacy/internals/hooks/useDesktopRangePicker/index.js +0 -1
  237. package/legacy/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +0 -154
  238. package/legacy/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.js +0 -1
  239. package/legacy/internals/hooks/useEnrichedRangePickerFieldProps.js +0 -258
  240. package/legacy/internals/hooks/useMobileRangePicker/index.js +0 -1
  241. package/legacy/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +0 -144
  242. package/legacy/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.js +0 -1
  243. package/legacy/internals/hooks/useMultiInputRangeField/shared.js +0 -9
  244. package/legacy/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +0 -102
  245. package/legacy/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +0 -115
  246. package/legacy/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.js +0 -1
  247. package/legacy/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +0 -109
  248. package/legacy/internals/hooks/useRangePosition.js +0 -39
  249. package/legacy/internals/hooks/useStaticRangePicker/index.js +0 -1
  250. package/legacy/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +0 -76
  251. package/legacy/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.js +0 -1
  252. package/legacy/internals/models/dateRange.js +0 -1
  253. package/legacy/internals/models/dateTimeRange.js +0 -1
  254. package/legacy/internals/models/index.js +0 -5
  255. package/legacy/internals/models/rangePickerProps.js +0 -1
  256. package/legacy/internals/models/timeRange.js +0 -1
  257. package/legacy/internals/utils/date-fields-utils.js +0 -26
  258. package/legacy/internals/utils/date-range-manager.js +0 -65
  259. package/legacy/internals/utils/date-utils.js +0 -12
  260. package/legacy/internals/utils/releaseInfo.js +0 -13
  261. package/legacy/internals/utils/validation/validateDateRange.js +0 -45
  262. package/legacy/internals/utils/validation/validateDateTimeRange.js +0 -45
  263. package/legacy/internals/utils/validation/validateTimeRange.js +0 -32
  264. package/legacy/internals/utils/valueManagers.js +0 -135
  265. package/legacy/locales/index.js +0 -1
  266. package/legacy/models/index.js +0 -3
  267. package/legacy/models/multiInputRangeFieldClasses.js +0 -1
  268. package/legacy/models/range.js +0 -1
  269. package/legacy/models/validation.js +0 -1
  270. package/legacy/themeAugmentation/index.js +0 -4
  271. package/modern/internals/models/fields.js +0 -1
  272. /package/{internals/models → models}/fields.js +0 -0
  273. /package/{legacy/internals → modern}/models/fields.js +0 -0
  274. /package/node/{internals/models → models}/fields.js +0 -0
package/CHANGELOG.md CHANGED
@@ -3,7 +3,221 @@
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
- ## v7.0.0-beta.2
6
+ ## 7.0.0-beta.4
7
+
8
+ _Feb 23, 2024_
9
+
10
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 Introduce a new DOM structure for the field components that provides a better accessibility
13
+ - 🚀 Simplify Data Grid DOM structure for improved performance (#12013) @romgrk
14
+ - 🕥 The support for IE11 has been removed (#12151) @flaviendelangle
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ ### Breaking changes
19
+
20
+ - 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.
21
+
22
+ ### Data Grid
23
+
24
+ #### Breaking changes
25
+
26
+ - The cell inner wrapper `.MuiDataGrid-cellContent` has been removed, use `.MuiDataGrid-cell` to style the cells.
27
+
28
+ #### `@mui/x-data-grid@7.0.0-beta.4`
29
+
30
+ - [DataGrid] Simplify cell DOM structure (#12013) @romgrk
31
+ - [DataGrid] Fix values labels in `is any of` filter operator (#11939) @gitstart
32
+
33
+ #### `@mui/x-data-grid-pro@7.0.0-beta.4` [![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.0.0-beta.4`.
36
+
37
+ #### `@mui/x-data-grid-premium@7.0.0-beta.4` [![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.0.0-beta.4`.
40
+
41
+ ### Date Pickers
42
+
43
+ #### Breaking changes
44
+
45
+ - The `selectedSections` prop no longer accepts start and end indexes.
46
+ When selecting several — but not all — sections, the field components were not behaving correctly, you can now only select one or all sections:
47
+
48
+ ```diff
49
+ <DateField
50
+ - selectedSections={{ startIndex: 0, endIndex: 0 }}
51
+ + selectedSections={0}
52
+
53
+ // If the field has 3 sections
54
+ - selectedSections={{ startIndex: 0, endIndex: 2 }}
55
+ + selectedSections="all"
56
+ />
57
+ ```
58
+
59
+ - The headless field hooks (e.g.: `useDateField`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
60
+ This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure. Learn more about this new [accessible DOM structure](/x/react-date-pickers/fields/#accessible-dom-structure).
61
+
62
+ When building a custom UI, you are most-likely only supporting one DOM structure, so you can remove `enableAccessibleFieldDOMStructure` before it is passed to the DOM:
63
+
64
+ ```diff
65
+ function MyCustomTextField(props) {
66
+ const {
67
+ + // Should be ignored
68
+ + enableAccessibleFieldDOMStructure,
69
+ // ... rest of the props you are using
70
+ } = props;
71
+
72
+ return ( /* Some UI to edit the date */ )
73
+ }
74
+
75
+ function MyCustomField(props) {
76
+ const fieldResponse = useDateField<Dayjs, false, typeof textFieldProps>({
77
+ ...props,
78
+ + // If you only support one DOM structure, we advise you to hardcode it here to avoid unwanted switches in your application
79
+ + enableAccessibleFieldDOMStructure: false,
80
+ });
81
+
82
+ return <MyCustomTextField ref={ref} {...fieldResponse} />;
83
+ }
84
+
85
+ function App() {
86
+ return <DatePicker slots={{ field: MyCustomField }} />;
87
+ }
88
+ ```
89
+
90
+ - The following internal types were exported by mistake and have been removed from the public API:
91
+
92
+ - `UseDateFieldDefaultizedProps`
93
+ - `UseTimeFieldDefaultizedProps`
94
+ - `UseDateTimeFieldDefaultizedProps`
95
+ - `UseSingleInputDateRangeFieldComponentProps`
96
+ - `UseSingleInputTimeRangeFieldComponentProps`
97
+ - `UseSingleInputDateTimeRangeFieldComponentProps`
98
+
99
+ #### `@mui/x-date-pickers@7.0.0-beta.4`
100
+
101
+ - [fields] Add a11y support to multi-HTML field (#12173) @LukasTy
102
+ - [fields] Use the `PickersTextField` component in the fields (#10649) @flaviendelangle
103
+ - [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12096) @LukasTy
104
+
105
+ #### `@mui/x-date-pickers-pro@7.0.0-beta.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
106
+
107
+ Same changes as in `@mui/x-date-pickers@7.0.0-beta.4`.
108
+
109
+ ### Charts / `@mui/x-charts@7.0.0-beta.4`
110
+
111
+ #### Breaking changes
112
+
113
+ These components are no longer exported from `@mui/x-charts`:
114
+
115
+ - `CartesianContextProvider`
116
+ - `DrawingProvider`
117
+
118
+ #### `@mui/x-charts@7.0.0-beta.4`
119
+
120
+ - [charts] Don't display text if no value is provided (#12127) @alexfauquette
121
+ - [charts] Remove export of context providers (#12123) @oliviertassinari
122
+
123
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.4`
124
+
125
+ - [TreeView] Stop using custom `findIndex` to support IE11 (#12129) @flaviendelangle
126
+
127
+ ### Docs
128
+
129
+ - [docs] Add recipe for hiding separator on non-resizable columns (#12134) @michelengelen
130
+ - [docs] Add small improvements to the Gauge Chart page (#12076) @danilo-leal
131
+ - [docs] Add the 'point' scaleType to the axis documentation (#12179) @alexfauquette
132
+ - [docs] Clarify Pickers 'Component composition' section (#12097) @LukasTy
133
+ - [docs] Fix "Licensing" page link (#12156) @LukasTy
134
+ - [docs] Fix the Treemap illustration (#12185) @danilo-leal
135
+ - [docs] Fix error raised by Grammarly on the page @oliviertassinari
136
+ - [docs] Improve performance on Charts entry point @oliviertassinari
137
+ - [docs] Link to React Transition Group with https @oliviertassinari
138
+ - [docs] Move Heatmap to `pro` plan (#12047) @alexfauquette
139
+ - [docs] Reduce number of Vale errors @oliviertassinari
140
+ - [docs] Remove default value set to `undefined` (#12128) @alexfauquette
141
+
142
+ ### Core
143
+
144
+ - [core] Fix docs link check (#12135) @LukasTy
145
+ - [core] Fix missing context display names (#12124) @oliviertassinari
146
+ - [core] Fix shortcuts when Caps Lock enabled (#12121) @oliviertassinari
147
+ - [core] Remove IE 11 compat logic (#12119) @oliviertassinari
148
+ - [core] Simplify key utils (#12120) @oliviertassinari
149
+ - [core] Use the @mui/internal-scripts package (#12142) @michaldudak
150
+ - [all components] Remove legacy IE 11 bundle (#12151) @flaviendelangle
151
+ - [code-infra] Bump monorepo (#11880) @Janpot
152
+ - [code-infra] Use `experimental.cpus` to control amount of export workers in Next.js (#12095) @Janpot
153
+ - [docs-infra] Remove randomized API page layout (#11876) @alexfauquette
154
+ - [test] Create local wrapper over `describeConformance` (#12130) @michaldudak
155
+
156
+ ## 7.0.0-beta.3
157
+
158
+ _Feb 16, 2024_
159
+
160
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
161
+
162
+ - 🎁 Charts get a [built in grid](https://next.mui.com/x/react-charts/axis/#grid)
163
+
164
+ <img src="https://github.com/mui/mui-x/assets/45398769/74299f54-f020-4135-b38c-dc88a230db30" width="510" alt="Charts Grid" />
165
+
166
+ - 🎛️ Charts get a [Gauge component](https://next.mui.com/x/react-charts/gauge/).
167
+
168
+ <img src="https://github.com/mui/mui-x/assets/45398769/fb7a94b5-bef6-4fc2-a0cd-d6ff5b60fa8b" width="510" alt="Guage Chart" />
169
+
170
+ - 🐞 Bugfixes
171
+
172
+ - 📚 Documentation improvements
173
+
174
+ ### Data Grid
175
+
176
+ #### Breaking changes
177
+
178
+ - The `rowEditCommit` event and the related prop `onRowEditCommit` was removed. The [`processRowUpdate`](https://next.mui.com/x/react-data-grid/editing/#the-processrowupdate-callback) prop can be used in place.
179
+
180
+ #### `@mui/x-data-grid@7.0.0-beta.3`
181
+
182
+ - [DataGrid] Performance: avoid style invalidation (#12019) @romgrk
183
+ - [DataGrid] Remove legacy editing API event: `rowEditCommit` (#12073) @MBilalShafi
184
+ - [DataGrid] Fix styling grid filter input single select (#11520) @FreakDroid
185
+
186
+ #### `@mui/x-data-grid-pro@7.0.0-beta.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
187
+
188
+ Same changes as in `@mui/x-data-grid@7.0.0-beta.3`.
189
+
190
+ #### `@mui/x-data-grid-premium@7.0.0-beta.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
191
+
192
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.3`.
193
+
194
+ ### Charts / `@mui/x-charts@7.0.0-beta.3`
195
+
196
+ - [charts] Add Gauge component (#11996) @alexfauquette
197
+ - [charts] Add a `ChartsGrid` component (#11034) @alexfauquette
198
+
199
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.3`
200
+
201
+ - [TreeView] Remove instance existence checks (#12066) @flaviendelangle
202
+
203
+ ### Docs
204
+
205
+ - [docs] Complete charts API pages (#12038) @alexfauquette
206
+ - [docs] Add more illustrations to the charts overview page (#12041) @danilo-leal
207
+ - [docs] Fix 301 redirection to StackBlitz @oliviertassinari
208
+ - [docs] Fix Tree space to match the reset of the docs @oliviertassinari
209
+ - [docs] Fix `dayOfWeekFormatter` typo in the pickers v6 to v7 migration document (#12043) @StylesTrip
210
+ - [docs] Fix redirection @oliviertassinari
211
+ - [docs] Fix typo for `AdapterDateFnsV3` (#12036) @flaviendelangle
212
+ - [docs] Removed `focused` prop from demo (#12092) @michelengelen
213
+
214
+ ### Core
215
+
216
+ - [core] Fix CodeSandbox CI template @oliviertassinari
217
+ - [core] Sort prop asc (#12033) @oliviertassinari
218
+ - [core] Bump monorepo (#12055) @alexfauquette
219
+
220
+ ## 7.0.0-beta.2
7
221
 
8
222
  _Feb 9, 2024_
9
223
 
@@ -17,7 +231,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
17
231
 
18
232
  ### Data Grid
19
233
 
20
- #### `@mui/x-data-grid@v7.0.0-beta.2`
234
+ #### `@mui/x-data-grid@7.0.0-beta.2`
21
235
 
22
236
  - [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
23
237
  - [DataGrid] Add slot typings (#11795) @romgrk
@@ -27,35 +241,35 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
27
241
  - [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
28
242
  - [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
29
243
 
30
- #### `@mui/x-data-grid-pro@v7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
244
+ #### `@mui/x-data-grid-pro@7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
31
245
 
32
246
  Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
33
247
 
34
248
  #### `@mui/x-data-grid-premium@v7.0.0-beta.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
35
249
 
36
- Same changes as in `@mui/x-data-grid-pro@v7.0.0-beta.2`, plus:
250
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.2`, plus:
37
251
 
38
252
  - [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
39
253
  - [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
40
254
 
41
255
  ### Date Pickers
42
256
 
43
- #### `@mui/x-date-pickers@v7.0.0-beta.2`
257
+ #### `@mui/x-date-pickers@7.0.0-beta.2`
44
258
 
45
259
  - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
46
260
  - [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
47
261
 
48
- #### `@mui/x-date-pickers-pro@v7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
262
+ #### `@mui/x-date-pickers-pro@7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
49
263
 
50
- Same changes as in `@mui/x-date-pickers@v7.0.0-beta.2`.
264
+ Same changes as in `@mui/x-date-pickers@7.0.0-beta.2`.
51
265
 
52
- ### Charts / `@mui/x-charts@v7.0.0-beta.2`
266
+ ### Charts / `@mui/x-charts@7.0.0-beta.2`
53
267
 
54
268
  - [charts] Add `reverse` property to axes (#11899) @alexfauquette
55
269
  - [charts] Allow series ids to be numbers (#11941) @alexfauquette
56
270
  - [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
57
271
 
58
- ### Tree View / `@mui/x-tree-view@v7.0.0-beta.2`
272
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.2`
59
273
 
60
274
  - [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
61
275
  - [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
@@ -71,7 +285,7 @@ Same changes as in `@mui/x-date-pickers@v7.0.0-beta.2`.
71
285
  +import { LicenseInfo } from '@mui/x-license';
72
286
  ```
73
287
 
74
- `@mui/x-license@v7.0.0-beta.2`
288
+ `@mui/x-license@7.0.0-beta.2`
75
289
 
76
290
  - [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
77
291
 
@@ -272,7 +486,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
272
486
 
273
487
  _Jan 26, 2024_
274
488
 
275
- We are glad to announce MUI X v7 beta!
489
+ We are glad to announce MUI X v7 beta!
276
490
  This version has several improvements, bug fixes, and exciting features 🎉.
277
491
  We want to offer a big thanks to the 7 contributors who made this release possible ✨:
278
492
 
@@ -1289,7 +1503,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
1289
1503
 
1290
1504
  - The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
1291
1505
 
1292
- - The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#DataGrid-prop-filterDebounceMs) prop to customize filter debounce time.
1506
+ - The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#data-grid-prop-filterDebounceMs) prop to customize filter debounce time.
1293
1507
 
1294
1508
  - The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
1295
1509
 
@@ -2138,7 +2352,68 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
2138
2352
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
2139
2353
  - [license] Correctly throw errors (#10924) @oliviertassinari
2140
2354
 
2141
- ## v6.19.4
2355
+ ## 6.19.5
2356
+
2357
+ _Feb 23, 2024_
2358
+
2359
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
2360
+
2361
+ - 🐞 Bugfixes
2362
+ - 📚 Documentation improvements
2363
+
2364
+ ### Data Grid
2365
+
2366
+ #### `@mui/x-data-grid@6.19.5`
2367
+
2368
+ - [DataGrid] Fix styling grid filter input single select (#12079) @FreakDroid
2369
+
2370
+ #### `@mui/x-data-grid-pro@6.19.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2371
+
2372
+ Same changes as in `@mui/x-data-grid@6.19.5`.
2373
+
2374
+ #### `@mui/x-data-grid-premium@6.19.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2375
+
2376
+ Same changes as in `@mui/x-data-grid-pro@6.19.5`.
2377
+
2378
+ ### Date Pickers
2379
+
2380
+ #### `@mui/x-date-pickers@6.19.5`
2381
+
2382
+ - [pickers] Fix `referenceDate` day calendar focus (#12136) @LukasTy
2383
+ - [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12131) @LukasTy
2384
+
2385
+ #### `@mui/x-date-pickers-pro@6.19.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2386
+
2387
+ Same changes as in `@mui/x-date-pickers@6.19.5`.
2388
+
2389
+ ### Charts / `@mui/x-charts@6.19.5`
2390
+
2391
+ - [charts] Allow to skip animation on sparkline bar (#12160) @alexfauquette
2392
+
2393
+ ### Docs
2394
+
2395
+ - [docs] Clarify Pickers 'Component composition' section (#12147) @LukasTy
2396
+ - [docs] Fix 301 redirection to StackBlitz @oliviertassinari
2397
+ - [docs] Fix 301 to Material UI @oliviertassinari
2398
+ - [docs] Fix 301 to Material UI @oliviertassinari
2399
+ - [docs] Fix 404 links to translation source @oliviertassinari
2400
+ - [docs] Fix dead link to translations @oliviertassinari
2401
+ - [docs] Fix the Treemap illustration (#12189) @danilo-leal
2402
+ - [docs] Fix typo for `AdapterDateFnsV3` (#12037) @flaviendelangle
2403
+ - [docs] Improve performance on Charts entry point @oliviertassinari
2404
+ - [docs] Move Heatmap to pro (#12170) @alexfauquette
2405
+ - [docs] Remove Charts installation next tag call-out (#12133) @LukasTy
2406
+ - [docs] Removed `focused` prop from demo (#12126) @michelengelen
2407
+ - [docs] Add missing Heatmap pro icon @oliviertassinari
2408
+ - [docs] Add more illustrations to the Overview page (#12041) @danilo-leal
2409
+ - [docs] Avoid use of shorthand (#12009) @oliviertassinari
2410
+
2411
+ ### Core
2412
+
2413
+ - [core] Fix CI @oliviertassinari
2414
+ - [core] Fix docs link check (#12137) @LukasTy
2415
+
2416
+ ## 6.19.4
2142
2417
 
2143
2418
  _Feb 9, 2024_
2144
2419
 
@@ -2150,7 +2425,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
2150
2425
 
2151
2426
  ### Data Grid
2152
2427
 
2153
- #### `@mui/x-data-grid@v6.19.4`
2428
+ #### `@mui/x-data-grid@6.19.4`
2154
2429
 
2155
2430
  - [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
2156
2431
  - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
@@ -2158,28 +2433,28 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
2158
2433
  - [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
2159
2434
  - [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
2160
2435
 
2161
- #### `@mui/x-data-grid-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2436
+ #### `@mui/x-data-grid-pro@6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2162
2437
 
2163
- Same changes as in `@mui/x-data-grid@v6.19.4`.
2438
+ Same changes as in `@mui/x-data-grid@6.19.4`.
2164
2439
 
2165
- #### `@mui/x-data-grid-premium@v6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2440
+ #### `@mui/x-data-grid-premium@6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2166
2441
 
2167
- Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
2442
+ Same changes as in `@mui/x-data-grid-pro@6.19.4`, plus:
2168
2443
 
2169
2444
  - [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
2170
2445
  - [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
2171
2446
 
2172
2447
  ### Date Pickers
2173
2448
 
2174
- #### `@mui/x-date-pickers@v6.19.4`
2449
+ #### `@mui/x-date-pickers@6.19.4`
2175
2450
 
2176
2451
  - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
2177
2452
 
2178
- #### `@mui/x-date-pickers-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2453
+ #### `@mui/x-date-pickers-pro@6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2179
2454
 
2180
- Same changes as in `@mui/x-date-pickers@v6.19.4`.
2455
+ Same changes as in `@mui/x-date-pickers@6.19.4`.
2181
2456
 
2182
- ### Charts / `@mui/x-charts@v6.19.4`
2457
+ ### Charts / `@mui/x-charts@6.19.4`
2183
2458
 
2184
2459
  - [charts] Add `reverse` property to axes (#11959) @alexfauquette
2185
2460
  - [charts] Allow series ids to be numbers (#11960) @alexfauquette
@@ -2240,7 +2515,7 @@ Same changes as in `@mui/x-date-pickers@6.19.3`.
2240
2515
  - [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
2241
2516
  - [docs] Improve Support page (#11556) @oliviertassinari
2242
2517
  - [docs] Sync support page with core @oliviertassinari
2243
- - [docs] These API don't exist in MUI X v6 @oliviertassinari
2518
+ - [docs] These API don't exist in MUI X v6 @oliviertassinari
2244
2519
  - [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
2245
2520
 
2246
2521
  ## 6.19.2
@@ -534,6 +534,9 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
534
534
  * @default 2
535
535
  */
536
536
  calendars: PropTypes.oneOf([1, 2, 3]),
537
+ /**
538
+ * Override or extend the styles applied to the component.
539
+ */
537
540
  classes: PropTypes.object,
538
541
  className: PropTypes.string,
539
542
  /**
@@ -596,7 +599,6 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
596
599
  /**
597
600
  * The day view will show as many weeks as needed after the end of the current month to match this value.
598
601
  * Put it to 6 to have a fixed number of weeks in Gregorian calendars
599
- * @default undefined
600
602
  */
601
603
  fixedWeekNumber: PropTypes.number,
602
604
  /**
@@ -92,6 +92,9 @@ export interface DateRangeCalendarProps<TDate extends PickerValidDate> extends E
92
92
  */
93
93
  calendars?: 1 | 2 | 3;
94
94
  className?: string;
95
+ /**
96
+ * Override or extend the styles applied to the component.
97
+ */
95
98
  classes?: Partial<DateRangeCalendarClasses>;
96
99
  /**
97
100
  * The system prop that allows defining system overrides as well as additional CSS styles.
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { PickerValidDate } from '@mui/x-date-pickers/models';
3
3
  import { DateRangePickerProps } from './DateRangePicker.types';
4
- type DatePickerComponent = (<TDate extends PickerValidDate>(props: DateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
+ type DatePickerComponent = (<TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean = false>(props: DateRangePickerProps<TDate, TEnableAccessibleFieldDOMStructure> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
5
5
  propTypes?: any;
6
6
  };
7
7
  /**
@@ -133,10 +133,13 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
133
133
  * If `true`, the week number will be display in the calendar.
134
134
  */
135
135
  displayWeekNumber: PropTypes.bool,
136
+ /**
137
+ * @default false
138
+ */
139
+ enableAccessibleFieldDOMStructure: PropTypes.any,
136
140
  /**
137
141
  * The day view will show as many weeks as needed after the end of the current month to match this value.
138
142
  * Put it to 6 to have a fixed number of weeks in Gregorian calendars
139
- * @default undefined
140
143
  */
141
144
  fixedWeekNumber: PropTypes.number,
142
145
  /**
@@ -263,17 +266,14 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
263
266
  renderLoading: PropTypes.func,
264
267
  /**
265
268
  * The currently selected sections.
266
- * This prop accept four formats:
269
+ * This prop accepts four formats:
267
270
  * 1. If a number is provided, the section at this index will be selected.
268
- * 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
269
- * 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
270
- * 4. If `null` is provided, no section will be selected
271
+ * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
272
+ * 3. If `"all"` is provided, all the sections will be selected.
273
+ * 4. If `null` is provided, no section will be selected.
271
274
  * If not provided, the selected sections will be handled internally.
272
275
  */
273
- selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number, PropTypes.shape({
274
- endIndex: PropTypes.number.isRequired,
275
- startIndex: PropTypes.number.isRequired
276
- })]),
276
+ selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),
277
277
  /**
278
278
  * Disable specific date.
279
279
  *
@@ -3,9 +3,9 @@ import { DesktopDateRangePickerProps, DesktopDateRangePickerSlots, DesktopDateRa
3
3
  import { MobileDateRangePickerProps, MobileDateRangePickerSlots, MobileDateRangePickerSlotProps } from '../MobileDateRangePicker';
4
4
  export interface DateRangePickerSlots<TDate extends PickerValidDate> extends DesktopDateRangePickerSlots<TDate>, MobileDateRangePickerSlots<TDate> {
5
5
  }
6
- export interface DateRangePickerSlotProps<TDate extends PickerValidDate> extends DesktopDateRangePickerSlotProps<TDate>, MobileDateRangePickerSlotProps<TDate> {
6
+ export interface DateRangePickerSlotProps<TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean> extends DesktopDateRangePickerSlotProps<TDate, TEnableAccessibleFieldDOMStructure>, MobileDateRangePickerSlotProps<TDate, TEnableAccessibleFieldDOMStructure> {
7
7
  }
8
- export interface DateRangePickerProps<TDate extends PickerValidDate> extends DesktopDateRangePickerProps<TDate>, MobileDateRangePickerProps<TDate> {
8
+ export interface DateRangePickerProps<TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean = false> extends DesktopDateRangePickerProps<TDate, TEnableAccessibleFieldDOMStructure>, MobileDateRangePickerProps<TDate, TEnableAccessibleFieldDOMStructure> {
9
9
  /**
10
10
  * CSS media query when `Mobile` mode will be changed to `Desktop`.
11
11
  * @default '@media (pointer: fine)'
@@ -21,5 +21,5 @@ export interface DateRangePickerProps<TDate extends PickerValidDate> extends Des
21
21
  * The props used for each component slot.
22
22
  * @default {}
23
23
  */
24
- slotProps?: DateRangePickerSlotProps<TDate>;
24
+ slotProps?: DateRangePickerSlotProps<TDate, TEnableAccessibleFieldDOMStructure>;
25
25
  }
@@ -5,6 +5,9 @@ import { DateRange } from '../models';
5
5
  import { UseRangePositionResponse } from '../internals/hooks/useRangePosition';
6
6
  import { DateRangePickerToolbarClasses } from './dateRangePickerToolbarClasses';
7
7
  export interface DateRangePickerToolbarProps<TDate extends PickerValidDate> extends Omit<BaseToolbarProps<DateRange<TDate>, 'day'>, 'views' | 'view' | 'onViewChange' | 'onChange' | 'isLandscape'>, Pick<UseRangePositionResponse, 'rangePosition' | 'onRangePositionChange'> {
8
+ /**
9
+ * Override or extend the styles applied to the component.
10
+ */
8
11
  classes?: Partial<DateRangePickerToolbarClasses>;
9
12
  }
10
13
  export interface ExportedDateRangePickerToolbarProps extends ExportedBaseToolbarProps {
@@ -93,6 +93,9 @@ process.env.NODE_ENV !== "production" ? DateRangePickerToolbar.propTypes = {
93
93
  // | These PropTypes are generated from the TypeScript type definitions |
94
94
  // | To update them edit the TypeScript types and run "yarn proptypes" |
95
95
  // ----------------------------------------------------------------------
96
+ /**
97
+ * Override or extend the styles applied to the component.
98
+ */
96
99
  classes: PropTypes.object,
97
100
  className: PropTypes.string,
98
101
  disabled: PropTypes.bool,
@@ -104,6 +107,9 @@ process.env.NODE_ENV !== "production" ? DateRangePickerToolbar.propTypes = {
104
107
  onRangePositionChange: PropTypes.func.isRequired,
105
108
  rangePosition: PropTypes.oneOf(['end', 'start']).isRequired,
106
109
  readOnly: PropTypes.bool,
110
+ /**
111
+ * The system prop that allows defining system overrides as well as additional CSS styles.
112
+ */
107
113
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
108
114
  titleId: PropTypes.string,
109
115
  /**
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { PickerValidDate } from '@mui/x-date-pickers/models';
3
3
  import { DateTimeRangePickerProps } from './DateTimeRangePicker.types';
4
- type DateTimeRangePickerComponent = (<TDate extends PickerValidDate>(props: DateTimeRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
+ type DateTimeRangePickerComponent = (<TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean = false>(props: DateTimeRangePickerProps<TDate, TEnableAccessibleFieldDOMStructure> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
5
5
  propTypes?: any;
6
6
  };
7
7
  declare const DateTimeRangePicker: DateTimeRangePickerComponent;
@@ -3,6 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["desktopModeMediaQuery"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
+ import { refType } from '@mui/utils';
6
7
  import useMediaQuery from '@mui/material/useMediaQuery';
7
8
  import { useThemeProps } from '@mui/material/styles';
8
9
  import { DesktopDateTimeRangePicker } from '../DesktopDateTimeRangePicker';
@@ -132,10 +133,13 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
132
133
  * If `true`, the week number will be display in the calendar.
133
134
  */
134
135
  displayWeekNumber: PropTypes.bool,
136
+ /**
137
+ * @default false
138
+ */
139
+ enableAccessibleFieldDOMStructure: PropTypes.any,
135
140
  /**
136
141
  * The day view will show as many weeks as needed after the end of the current month to match this value.
137
142
  * Put it to 6 to have a fixed number of weeks in Gregorian calendars
138
- * @default undefined
139
143
  */
140
144
  fixedWeekNumber: PropTypes.number,
141
145
  /**
@@ -153,9 +157,7 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
153
157
  * Pass a ref to the `input` element.
154
158
  * Ignored if the field has several inputs.
155
159
  */
156
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
157
- current: PropTypes.object
158
- })]),
160
+ inputRef: refType,
159
161
  /**
160
162
  * The label content.
161
163
  * Ignored if the field has several inputs.
@@ -299,17 +301,14 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
299
301
  renderLoading: PropTypes.func,
300
302
  /**
301
303
  * The currently selected sections.
302
- * This prop accept four formats:
304
+ * This prop accepts four formats:
303
305
  * 1. If a number is provided, the section at this index will be selected.
304
- * 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
305
- * 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
306
- * 4. If `null` is provided, no section will be selected
306
+ * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
307
+ * 3. If `"all"` is provided, all the sections will be selected.
308
+ * 4. If `null` is provided, no section will be selected.
307
309
  * If not provided, the selected sections will be handled internally.
308
310
  */
309
- selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number, PropTypes.shape({
310
- endIndex: PropTypes.number.isRequired,
311
- startIndex: PropTypes.number.isRequired
312
- })]),
311
+ selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),
313
312
  /**
314
313
  * Disable specific date.
315
314
  *
@@ -3,9 +3,9 @@ import { DesktopDateTimeRangePickerProps, DesktopDateTimeRangePickerSlots, Deskt
3
3
  import { MobileDateTimeRangePickerProps, MobileDateTimeRangePickerSlots, MobileDateTimeRangePickerSlotProps } from '../MobileDateTimeRangePicker';
4
4
  export interface DateTimeRangePickerSlots<TDate extends PickerValidDate> extends DesktopDateTimeRangePickerSlots<TDate>, MobileDateTimeRangePickerSlots<TDate> {
5
5
  }
6
- export interface DateTimeRangePickerSlotProps<TDate extends PickerValidDate> extends DesktopDateTimeRangePickerSlotProps<TDate>, MobileDateTimeRangePickerSlotProps<TDate> {
6
+ export interface DateTimeRangePickerSlotProps<TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean> extends DesktopDateTimeRangePickerSlotProps<TDate, TEnableAccessibleFieldDOMStructure>, MobileDateTimeRangePickerSlotProps<TDate, TEnableAccessibleFieldDOMStructure> {
7
7
  }
8
- export interface DateTimeRangePickerProps<TDate extends PickerValidDate> extends DesktopDateTimeRangePickerProps<TDate>, MobileDateTimeRangePickerProps<TDate> {
8
+ export interface DateTimeRangePickerProps<TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean = false> extends DesktopDateTimeRangePickerProps<TDate, TEnableAccessibleFieldDOMStructure>, MobileDateTimeRangePickerProps<TDate, TEnableAccessibleFieldDOMStructure> {
9
9
  /**
10
10
  * CSS media query when `Mobile` mode will be changed to `Desktop`.
11
11
  * @default '@media (pointer: fine)'
@@ -21,5 +21,5 @@ export interface DateTimeRangePickerProps<TDate extends PickerValidDate> extends
21
21
  * The props used for each component slot.
22
22
  * @default {}
23
23
  */
24
- slotProps?: DateTimeRangePickerSlotProps<TDate>;
24
+ slotProps?: DateTimeRangePickerSlotProps<TDate, TEnableAccessibleFieldDOMStructure>;
25
25
  }