@mui/x-date-pickers-pro 7.0.0-beta.1 → 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 (293) hide show
  1. package/CHANGELOG.md +437 -4
  2. package/DateRangeCalendar/DateRangeCalendar.d.ts +2 -1
  3. package/DateRangeCalendar/DateRangeCalendar.js +9 -7
  4. package/DateRangeCalendar/DateRangeCalendar.types.d.ts +10 -7
  5. package/DateRangeCalendar/useDragRange.d.ts +4 -4
  6. package/DateRangePicker/DateRangePicker.d.ts +2 -1
  7. package/DateRangePicker/DateRangePicker.js +14 -14
  8. package/DateRangePicker/DateRangePicker.types.d.ts +5 -4
  9. package/DateRangePicker/DateRangePickerToolbar.d.ts +6 -2
  10. package/DateRangePicker/DateRangePickerToolbar.js +7 -1
  11. package/DateRangePicker/shared.d.ts +6 -5
  12. package/DateRangePickerDay/DateRangePickerDay.d.ts +3 -2
  13. package/DateRangePickerDay/DateRangePickerDay.js +2 -2
  14. package/DateTimeRangePicker/DateTimeRangePicker.d.ts +2 -1
  15. package/DateTimeRangePicker/DateTimeRangePicker.js +20 -21
  16. package/DateTimeRangePicker/DateTimeRangePicker.types.d.ts +5 -4
  17. package/DateTimeRangePicker/DateTimeRangePickerTabs.js +7 -1
  18. package/DateTimeRangePicker/DateTimeRangePickerTimeWrapper.d.ts +3 -2
  19. package/DateTimeRangePicker/DateTimeRangePickerToolbar.d.ts +6 -2
  20. package/DateTimeRangePicker/DateTimeRangePickerToolbar.js +7 -1
  21. package/DateTimeRangePicker/shared.d.ts +6 -5
  22. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +2 -1
  23. package/DesktopDateRangePicker/DesktopDateRangePicker.js +14 -14
  24. package/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +5 -4
  25. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.d.ts +2 -1
  26. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +20 -21
  27. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.types.d.ts +5 -4
  28. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePickerLayout.d.ts +2 -1
  29. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +2 -1
  30. package/MobileDateRangePicker/MobileDateRangePicker.js +14 -14
  31. package/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +5 -4
  32. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.d.ts +2 -1
  33. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +20 -21
  34. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.types.d.ts +5 -4
  35. package/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +2 -1
  36. package/MultiInputDateRangeField/MultiInputDateRangeField.js +22 -24
  37. package/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +12 -14
  38. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +2 -1
  39. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +26 -28
  40. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +13 -16
  41. package/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +2 -1
  42. package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +22 -24
  43. package/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +13 -16
  44. package/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +3 -2
  45. package/SingleInputDateRangeField/SingleInputDateRangeField.js +17 -15
  46. package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +11 -13
  47. package/SingleInputDateRangeField/index.d.ts +1 -1
  48. package/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts +3 -3
  49. package/SingleInputDateRangeField/useSingleInputDateRangeField.js +2 -15
  50. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +3 -2
  51. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +21 -19
  52. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +12 -14
  53. package/SingleInputDateTimeRangeField/index.d.ts +1 -1
  54. package/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts +3 -3
  55. package/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +2 -20
  56. package/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +3 -2
  57. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +16 -14
  58. package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +12 -14
  59. package/SingleInputTimeRangeField/index.d.ts +1 -1
  60. package/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts +3 -3
  61. package/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +2 -14
  62. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +2 -1
  63. package/StaticDateRangePicker/StaticDateRangePicker.js +5 -6
  64. package/StaticDateRangePicker/StaticDateRangePicker.types.d.ts +4 -3
  65. package/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +3 -2
  66. package/index.d.ts +7 -2
  67. package/index.js +8 -2
  68. package/internals/hooks/models/useRangePicker.d.ts +8 -7
  69. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +2 -1
  70. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +17 -8
  71. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +7 -6
  72. package/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +15 -15
  73. package/internals/hooks/useEnrichedRangePickerFieldProps.js +37 -40
  74. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +2 -1
  75. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +18 -9
  76. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +7 -6
  77. package/internals/hooks/useMultiInputFieldSelectedSections.d.ts +21 -0
  78. package/internals/hooks/useMultiInputFieldSelectedSections.js +43 -0
  79. package/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts +2 -1
  80. package/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +17 -12
  81. package/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts +3 -3
  82. package/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +23 -31
  83. package/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts +4 -4
  84. package/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts +3 -3
  85. package/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +23 -25
  86. package/internals/hooks/useRangePosition.d.ts +2 -4
  87. package/internals/hooks/useRangePosition.js +3 -6
  88. package/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +2 -1
  89. package/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +1 -0
  90. package/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +6 -6
  91. package/internals/models/dateRange.d.ts +5 -16
  92. package/internals/models/dateTimeRange.d.ts +5 -6
  93. package/internals/models/index.d.ts +0 -1
  94. package/internals/models/index.js +0 -1
  95. package/internals/models/timeRange.d.ts +4 -6
  96. package/internals/utils/date-fields-utils.d.ts +1 -5
  97. package/internals/utils/date-range-manager.d.ts +5 -5
  98. package/internals/utils/date-utils.d.ts +5 -5
  99. package/internals/utils/releaseInfo.js +1 -1
  100. package/internals/utils/validation/validateDateRange.d.ts +2 -2
  101. package/internals/utils/validation/validateDateTimeRange.d.ts +2 -2
  102. package/internals/utils/valueManagers.d.ts +3 -3
  103. package/internals/utils/valueManagers.js +11 -6
  104. package/models/fields.d.ts +69 -0
  105. package/models/index.d.ts +1 -0
  106. package/models/index.js +1 -0
  107. package/models/range.d.ts +3 -2
  108. package/modern/DateRangeCalendar/DateRangeCalendar.js +9 -7
  109. package/modern/DateRangePicker/DateRangePicker.js +14 -14
  110. package/modern/DateRangePicker/DateRangePickerToolbar.js +7 -1
  111. package/modern/DateRangePickerDay/DateRangePickerDay.js +2 -2
  112. package/modern/DateTimeRangePicker/DateTimeRangePicker.js +20 -21
  113. package/modern/DateTimeRangePicker/DateTimeRangePickerTabs.js +7 -1
  114. package/modern/DateTimeRangePicker/DateTimeRangePickerToolbar.js +7 -1
  115. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +14 -14
  116. package/modern/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +20 -21
  117. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +14 -14
  118. package/modern/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +20 -21
  119. package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +22 -24
  120. package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +26 -28
  121. package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +22 -24
  122. package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +17 -15
  123. package/modern/SingleInputDateRangeField/useSingleInputDateRangeField.js +2 -14
  124. package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +21 -19
  125. package/modern/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +2 -19
  126. package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +16 -14
  127. package/modern/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +2 -13
  128. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +5 -6
  129. package/modern/index.js +8 -2
  130. package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +17 -8
  131. package/modern/internals/hooks/useEnrichedRangePickerFieldProps.js +34 -37
  132. package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +18 -9
  133. package/modern/internals/hooks/useMultiInputFieldSelectedSections.js +40 -0
  134. package/modern/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +17 -12
  135. package/modern/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +23 -30
  136. package/modern/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +23 -24
  137. package/modern/internals/hooks/useRangePosition.js +3 -6
  138. package/modern/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +1 -0
  139. package/modern/internals/models/index.js +0 -1
  140. package/modern/internals/utils/releaseInfo.js +1 -1
  141. package/modern/internals/utils/valueManagers.js +11 -6
  142. package/modern/models/index.js +1 -0
  143. package/node/DateRangeCalendar/DateRangeCalendar.js +10 -8
  144. package/node/DateRangePicker/DateRangePicker.js +14 -14
  145. package/node/DateRangePicker/DateRangePickerToolbar.js +7 -1
  146. package/node/DateRangePickerDay/DateRangePickerDay.js +3 -3
  147. package/node/DateTimeRangePicker/DateTimeRangePicker.js +20 -21
  148. package/node/DateTimeRangePicker/DateTimeRangePickerTabs.js +7 -1
  149. package/node/DateTimeRangePicker/DateTimeRangePickerToolbar.js +7 -1
  150. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +14 -14
  151. package/node/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +20 -21
  152. package/node/MobileDateRangePicker/MobileDateRangePicker.js +14 -14
  153. package/node/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +22 -23
  154. package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +22 -24
  155. package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +26 -28
  156. package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +22 -24
  157. package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +17 -15
  158. package/node/SingleInputDateRangeField/useSingleInputDateRangeField.js +2 -16
  159. package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +24 -22
  160. package/node/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +2 -21
  161. package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +16 -14
  162. package/node/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +2 -15
  163. package/node/StaticDateRangePicker/StaticDateRangePicker.js +5 -6
  164. package/node/index.js +18 -9
  165. package/node/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +18 -9
  166. package/node/internals/hooks/useEnrichedRangePickerFieldProps.js +33 -36
  167. package/node/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +19 -10
  168. package/node/internals/hooks/useMultiInputFieldSelectedSections.js +50 -0
  169. package/node/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +16 -11
  170. package/node/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +23 -31
  171. package/node/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +23 -25
  172. package/node/internals/hooks/useRangePosition.js +3 -8
  173. package/node/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +1 -0
  174. package/node/internals/models/index.js +0 -11
  175. package/node/internals/utils/releaseInfo.js +1 -1
  176. package/node/internals/utils/valueManagers.js +10 -5
  177. package/node/models/index.js +11 -0
  178. package/package.json +6 -6
  179. package/themeAugmentation/props.d.ts +17 -17
  180. package/internals/models/fields.d.ts +0 -49
  181. package/legacy/AdapterDateFns/index.js +0 -1
  182. package/legacy/AdapterDateFnsJalali/index.js +0 -1
  183. package/legacy/AdapterDateFnsV3/index.js +0 -1
  184. package/legacy/AdapterDayjs/index.js +0 -1
  185. package/legacy/AdapterLuxon/index.js +0 -1
  186. package/legacy/AdapterMoment/index.js +0 -1
  187. package/legacy/AdapterMomentHijri/index.js +0 -1
  188. package/legacy/AdapterMomentJalaali/index.js +0 -1
  189. package/legacy/DateRangeCalendar/DateRangeCalendar.js +0 -764
  190. package/legacy/DateRangeCalendar/DateRangeCalendar.types.js +0 -1
  191. package/legacy/DateRangeCalendar/dateRangeCalendarClasses.js +0 -5
  192. package/legacy/DateRangeCalendar/index.js +0 -2
  193. package/legacy/DateRangeCalendar/useDragRange.js +0 -258
  194. package/legacy/DateRangePicker/DateRangePicker.js +0 -334
  195. package/legacy/DateRangePicker/DateRangePicker.types.js +0 -1
  196. package/legacy/DateRangePicker/DateRangePickerToolbar.js +0 -127
  197. package/legacy/DateRangePicker/dateRangePickerToolbarClasses.js +0 -5
  198. package/legacy/DateRangePicker/index.js +0 -3
  199. package/legacy/DateRangePicker/shared.js +0 -33
  200. package/legacy/DateRangePickerDay/DateRangePickerDay.js +0 -366
  201. package/legacy/DateRangePickerDay/dateRangePickerDayClasses.js +0 -5
  202. package/legacy/DateRangePickerDay/index.js +0 -2
  203. package/legacy/DateTimeRangePicker/DateTimeRangePicker.js +0 -413
  204. package/legacy/DateTimeRangePicker/DateTimeRangePicker.types.js +0 -1
  205. package/legacy/DateTimeRangePicker/DateTimeRangePickerTabs.js +0 -191
  206. package/legacy/DateTimeRangePicker/DateTimeRangePickerTimeWrapper.js +0 -57
  207. package/legacy/DateTimeRangePicker/DateTimeRangePickerToolbar.js +0 -184
  208. package/legacy/DateTimeRangePicker/dateTimeRangePickerTabsClasses.js +0 -6
  209. package/legacy/DateTimeRangePicker/dateTimeRangePickerToolbarClasses.js +0 -5
  210. package/legacy/DateTimeRangePicker/index.js +0 -5
  211. package/legacy/DateTimeRangePicker/shared.js +0 -54
  212. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -343
  213. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.types.js +0 -1
  214. package/legacy/DesktopDateRangePicker/index.js +0 -1
  215. package/legacy/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +0 -491
  216. package/legacy/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.types.js +0 -1
  217. package/legacy/DesktopDateTimeRangePicker/DesktopDateTimeRangePickerLayout.js +0 -48
  218. package/legacy/DesktopDateTimeRangePicker/index.js +0 -1
  219. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +0 -339
  220. package/legacy/MobileDateRangePicker/MobileDateRangePicker.types.js +0 -1
  221. package/legacy/MobileDateRangePicker/index.js +0 -1
  222. package/legacy/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +0 -484
  223. package/legacy/MobileDateTimeRangePicker/MobileDateTimeRangePicker.types.js +0 -1
  224. package/legacy/MobileDateTimeRangePicker/index.js +0 -1
  225. package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.js +0 -316
  226. package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.types.js +0 -1
  227. package/legacy/MultiInputDateRangeField/index.js +0 -2
  228. package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +0 -357
  229. package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.js +0 -1
  230. package/legacy/MultiInputDateTimeRangeField/index.js +0 -2
  231. package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.js +0 -330
  232. package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.types.js +0 -1
  233. package/legacy/MultiInputTimeRangeField/index.js +0 -2
  234. package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +0 -307
  235. package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.types.js +0 -1
  236. package/legacy/SingleInputDateRangeField/index.js +0 -2
  237. package/legacy/SingleInputDateRangeField/useSingleInputDateRangeField.js +0 -30
  238. package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +0 -348
  239. package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.js +0 -1
  240. package/legacy/SingleInputDateTimeRangeField/index.js +0 -2
  241. package/legacy/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +0 -35
  242. package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +0 -321
  243. package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.types.js +0 -1
  244. package/legacy/SingleInputTimeRangeField/index.js +0 -2
  245. package/legacy/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +0 -29
  246. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +0 -276
  247. package/legacy/StaticDateRangePicker/StaticDateRangePicker.types.js +0 -1
  248. package/legacy/StaticDateRangePicker/index.js +0 -1
  249. package/legacy/dateRangeViewRenderers/dateRangeViewRenderers.js +0 -87
  250. package/legacy/dateRangeViewRenderers/index.js +0 -1
  251. package/legacy/index.js +0 -33
  252. package/legacy/internals/constants/dimensions.js +0 -5
  253. package/legacy/internals/hooks/models/index.js +0 -1
  254. package/legacy/internals/hooks/models/useRangePicker.js +0 -1
  255. package/legacy/internals/hooks/useDesktopRangePicker/index.js +0 -1
  256. package/legacy/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +0 -154
  257. package/legacy/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.js +0 -1
  258. package/legacy/internals/hooks/useEnrichedRangePickerFieldProps.js +0 -258
  259. package/legacy/internals/hooks/useMobileRangePicker/index.js +0 -1
  260. package/legacy/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +0 -144
  261. package/legacy/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.js +0 -1
  262. package/legacy/internals/hooks/useMultiInputRangeField/shared.js +0 -9
  263. package/legacy/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +0 -102
  264. package/legacy/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +0 -115
  265. package/legacy/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.js +0 -1
  266. package/legacy/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +0 -109
  267. package/legacy/internals/hooks/useRangePosition.js +0 -39
  268. package/legacy/internals/hooks/useStaticRangePicker/index.js +0 -1
  269. package/legacy/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +0 -76
  270. package/legacy/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.js +0 -1
  271. package/legacy/internals/models/dateRange.js +0 -1
  272. package/legacy/internals/models/dateTimeRange.js +0 -1
  273. package/legacy/internals/models/index.js +0 -5
  274. package/legacy/internals/models/rangePickerProps.js +0 -1
  275. package/legacy/internals/models/timeRange.js +0 -1
  276. package/legacy/internals/utils/date-fields-utils.js +0 -26
  277. package/legacy/internals/utils/date-range-manager.js +0 -65
  278. package/legacy/internals/utils/date-utils.js +0 -12
  279. package/legacy/internals/utils/releaseInfo.js +0 -13
  280. package/legacy/internals/utils/validation/validateDateRange.js +0 -45
  281. package/legacy/internals/utils/validation/validateDateTimeRange.js +0 -45
  282. package/legacy/internals/utils/validation/validateTimeRange.js +0 -32
  283. package/legacy/internals/utils/valueManagers.js +0 -135
  284. package/legacy/locales/index.js +0 -1
  285. package/legacy/models/index.js +0 -3
  286. package/legacy/models/multiInputRangeFieldClasses.js +0 -1
  287. package/legacy/models/range.js +0 -1
  288. package/legacy/models/validation.js +0 -1
  289. package/legacy/themeAugmentation/index.js +0 -4
  290. package/modern/internals/models/fields.js +0 -1
  291. /package/{internals/models → models}/fields.js +0 -0
  292. /package/{legacy/internals → modern}/models/fields.js +0 -0
  293. /package/node/{internals/models → models}/fields.js +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,322 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.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
221
+
222
+ _Feb 9, 2024_
223
+
224
+ We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
225
+
226
+ - 🚀 Add slot typings on the Data Grid components (#11795) @romgrk
227
+ - 🎁 Support UTC date formatting in Charts tooltip (#11943) @shaharyar-shamshi
228
+ - 🌍 Improve Danish (da-DK) locale Data Grid (#11877) @ShahrazH
229
+ - 🐞 Bugfixes
230
+ - 📚 Documentation improvements
231
+
232
+ ### Data Grid
233
+
234
+ #### `@mui/x-data-grid@7.0.0-beta.2`
235
+
236
+ - [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
237
+ - [DataGrid] Add slot typings (#11795) @romgrk
238
+ - [DataGrid] Add support for dialogs in menu actions (#11909) @cherniavskii
239
+ - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11609) @pcorpet
240
+ - [DataGrid] Fix incorrect computation of `lastPage` in `GridPagination` (#11958) @MBilalShafi
241
+ - [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
242
+ - [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
243
+
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')
245
+
246
+ Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
247
+
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')
249
+
250
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.2`, plus:
251
+
252
+ - [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
253
+ - [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
254
+
255
+ ### Date Pickers
256
+
257
+ #### `@mui/x-date-pickers@7.0.0-beta.2`
258
+
259
+ - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
260
+ - [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
261
+
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')
263
+
264
+ Same changes as in `@mui/x-date-pickers@7.0.0-beta.2`.
265
+
266
+ ### Charts / `@mui/x-charts@7.0.0-beta.2`
267
+
268
+ - [charts] Add `reverse` property to axes (#11899) @alexfauquette
269
+ - [charts] Allow series ids to be numbers (#11941) @alexfauquette
270
+ - [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
271
+
272
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.2`
273
+
274
+ - [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
275
+ - [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
276
+
277
+ ### License
278
+
279
+ #### Breaking changes
280
+
281
+ - If you're using the [commercial license](https://next.mui.com/x/introduction/licensing), you need to update the import path:
282
+
283
+ ```diff
284
+ -import { LicenseInfo } from '@mui/x-license-pro';
285
+ +import { LicenseInfo } from '@mui/x-license';
286
+ ```
287
+
288
+ `@mui/x-license@7.0.0-beta.2`
289
+
290
+ - [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
291
+
292
+ ### Docs
293
+
294
+ - [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11985) @flaviendelangle
295
+ - [docs] Add missing `Charts` breaking change steps (#11971) @alexfauquette
296
+ - [docs] Fix `ChartsTooltip` typo (#11961) @thisisharsh7
297
+ - [docs] Refactor `Localization` documentation sections (#11989) @LukasTy
298
+ - [docs] Use "cannot" instead of "can't" or "can not" (#11986) @flaviendelangle
299
+ - [docs] Add quick fixes to the migration guide (#11806) @danilo-leal
300
+ - [docs] Avoid use of shorthand (#12000) @oliviertassinari
301
+ - [docs] Avoid the use of MUI Core @oliviertassinari
302
+ - [docs] Fix image size and dark mode @oliviertassinari
303
+ - [docs] Follow blank line convention with use client @oliviertassinari
304
+ - [docs] Stable layout between light and dark mode @oliviertassinari
305
+
306
+ ### Core
307
+
308
+ - [core] Add `docs:serve` script (#11935) @cherniavskii
309
+ - [core] Bump monorepo (#12001) @cherniavskii
310
+ - [core] Deprecate `LicenseInfo` re-exports (#11956) @cherniavskii
311
+ - [core] Fix `test_types` failing on the `next` branch (#11944) @cherniavskii
312
+ - [core] Fix failing `test_static` on the next branch (#11977) @cherniavskii
313
+ - [core] Flatten grid packages folder (#11946) @cherniavskii
314
+ - [core] Improve license info deprecation message (#11974) @cherniavskii
315
+ - [core] Integrate changes from Core #40842 PR (#11801) @michaldudak
316
+ - [core] Move next config to ESM (#11882) @Janpot
317
+ - [core] Add auto-message on closed issues (#11805) @michelengelen
318
+ - [core] Simplify bug reproduction (#11849) @oliviertassinari
319
+ - [core] Fix npm reference @oliviertassinari
320
+ - [core] Normalize issue template @oliviertassinari
321
+
6
322
  ## 7.0.0-beta.1
7
323
 
8
324
  _Feb 1, 2024_
@@ -170,7 +486,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
170
486
 
171
487
  _Jan 26, 2024_
172
488
 
173
- We are glad to announce MUI X v7 beta!
489
+ We are glad to announce MUI X v7 beta!
174
490
  This version has several improvements, bug fixes, and exciting features 🎉.
175
491
  We want to offer a big thanks to the 7 contributors who made this release possible ✨:
176
492
 
@@ -1187,7 +1503,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
1187
1503
 
1188
1504
  - The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
1189
1505
 
1190
- - 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.
1191
1507
 
1192
1508
  - The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
1193
1509
 
@@ -2036,6 +2352,123 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
2036
2352
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
2037
2353
  - [license] Correctly throw errors (#10924) @oliviertassinari
2038
2354
 
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
2417
+
2418
+ _Feb 9, 2024_
2419
+
2420
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
2421
+
2422
+ - 🌍 Improve Danish (da-DK) locale on the Data Grid (#11972) @ShahrazH
2423
+ - 🐞 Bugfixes
2424
+ - 📚 Documentation improvements
2425
+
2426
+ ### Data Grid
2427
+
2428
+ #### `@mui/x-data-grid@6.19.4`
2429
+
2430
+ - [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
2431
+ - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
2432
+ - [DataGrid] Fix row reorder with cell selection (#11878) @PEsteves8
2433
+ - [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
2434
+ - [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
2435
+
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')
2437
+
2438
+ Same changes as in `@mui/x-data-grid@6.19.4`.
2439
+
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')
2441
+
2442
+ Same changes as in `@mui/x-data-grid-pro@6.19.4`, plus:
2443
+
2444
+ - [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
2445
+ - [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
2446
+
2447
+ ### Date Pickers
2448
+
2449
+ #### `@mui/x-date-pickers@6.19.4`
2450
+
2451
+ - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
2452
+
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')
2454
+
2455
+ Same changes as in `@mui/x-date-pickers@6.19.4`.
2456
+
2457
+ ### Charts / `@mui/x-charts@6.19.4`
2458
+
2459
+ - [charts] Add `reverse` property to axes (#11959) @alexfauquette
2460
+ - [charts] Allow series ids to be numbers (#11960) @alexfauquette
2461
+ - [charts] Fix Proptypes error by supporting string values for axes (#11953) @alexfauquette
2462
+
2463
+ ### Docs
2464
+
2465
+ - [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11987) @flaviendelangle
2466
+ - [docs] Avoid the use of MUI Core @oliviertassinari
2467
+ - [docs] Fix API links (#11930) @alexfauquette
2468
+ - [docs] Fix `ChartsTooltip` typo (#11967) @thisisharsh7
2469
+ - [docs] Refactor `Localization` documentation sections (#11997) @LukasTy
2470
+ - [code] Simplify bug reproduction (#11932) @alexfauquette
2471
+
2039
2472
  ## 6.19.3
2040
2473
 
2041
2474
  _Feb 1, 2024_
@@ -2082,7 +2515,7 @@ Same changes as in `@mui/x-date-pickers@6.19.3`.
2082
2515
  - [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
2083
2516
  - [docs] Improve Support page (#11556) @oliviertassinari
2084
2517
  - [docs] Sync support page with core @oliviertassinari
2085
- - [docs] These API don't exist in MUI X v6 @oliviertassinari
2518
+ - [docs] These API don't exist in MUI X v6 @oliviertassinari
2086
2519
  - [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
2087
2520
 
2088
2521
  ## 6.19.2
@@ -7123,7 +7556,7 @@ You can find more information about the new api, including how to set those tran
7123
7556
  - [core] Add link to the security page on the `README` (#6073) @oliviertassinari
7124
7557
  - [core] Fix scroll restoration in the docs (#5938) @oliviertassinari
7125
7558
  - [core] Remove the Storybook (#6099) @flaviendelangle
7126
- - [core] Tag release as `next` in NPM (#6256) @m4theushw
7559
+ - [core] Tag release as `next` in npm (#6256) @m4theushw
7127
7560
  - [core] Update monorepo (#6180) @flaviendelangle
7128
7561
  - [core] Use the `next` branch for Prettier (#6097) @flaviendelangle
7129
7562
  - [core] Use the official repository for `@mui/monorepo` instead of a fork (#6189) @oliviertassinari
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
+ import { PickerValidDate } from '@mui/x-date-pickers/models';
2
3
  import { DateRangeCalendarProps } from './DateRangeCalendar.types';
3
- type DateRangeCalendarComponent = (<TDate>(props: DateRangeCalendarProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
+ type DateRangeCalendarComponent = (<TDate extends PickerValidDate>(props: DateRangeCalendarProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
5
  propTypes?: any;
5
6
  };
6
7
  /**
@@ -10,7 +10,7 @@ import useMediaQuery from '@mui/material/useMediaQuery';
10
10
  import { resolveComponentProps, useSlotProps } from '@mui/base/utils';
11
11
  import { styled, useThemeProps } from '@mui/material/styles';
12
12
  import { unstable_composeClasses as composeClasses } from '@mui/utils';
13
- import { Watermark } from '@mui/x-license-pro';
13
+ import { Watermark } from '@mui/x-license';
14
14
  import { PickersCalendarHeader } from '@mui/x-date-pickers/PickersCalendarHeader';
15
15
  import { applyDefaultDate, DayCalendar, useDefaultReduceAnimations, PickersArrowSwitcher, useCalendarState, useDefaultDates, useLocaleText, useNextMonthDisabled, usePreviousMonthDisabled, useUtils, useNow, DEFAULT_DESKTOP_MODE_MEDIA_QUERY, buildWarning, useControlledValueWithTimezone, useViews } from '@mui/x-date-pickers/internals';
16
16
  import { getReleaseInfo } from '../internals/utils/releaseInfo';
@@ -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
  /**
@@ -558,7 +561,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
558
561
  * The default selected value.
559
562
  * Used when the component is not controlled.
560
563
  */
561
- defaultValue: PropTypes.arrayOf(PropTypes.any),
564
+ defaultValue: PropTypes.arrayOf(PropTypes.object),
562
565
  /**
563
566
  * If `true`, after selecting `start` date calendar will not automatically switch to the month of `end` date.
564
567
  * @default false
@@ -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
  /**
@@ -612,11 +614,11 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
612
614
  /**
613
615
  * Maximal selectable date.
614
616
  */
615
- maxDate: PropTypes.any,
617
+ maxDate: PropTypes.object,
616
618
  /**
617
619
  * Minimal selectable date.
618
620
  */
619
- minDate: PropTypes.any,
621
+ minDate: PropTypes.object,
620
622
  /**
621
623
  * Callback fired when the value changes.
622
624
  * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
@@ -675,7 +677,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
675
677
  * The date used to generate the new value when both `value` and `defaultValue` are empty.
676
678
  * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`.
677
679
  */
678
- referenceDate: PropTypes.any,
680
+ referenceDate: PropTypes.object,
679
681
  /**
680
682
  * Component rendered on the "day" view when `props.loading` is true.
681
683
  * @returns {React.ReactNode} The node to render when loading.
@@ -730,7 +732,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
730
732
  * The selected value.
731
733
  * Used when the component is controlled.
732
734
  */
733
- value: PropTypes.arrayOf(PropTypes.any),
735
+ value: PropTypes.arrayOf(PropTypes.object),
734
736
  /**
735
737
  * The visible view.
736
738
  * Used when the component view is controlled.
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { SlotComponentProps } from '@mui/base/utils';
4
4
  import { Theme } from '@mui/material/styles';
5
- import { TimezoneProps } from '@mui/x-date-pickers/models';
5
+ import { PickerValidDate, TimezoneProps } from '@mui/x-date-pickers/models';
6
6
  import { PickersCalendarHeader, PickersCalendarHeaderProps, PickersCalendarHeaderSlots, PickersCalendarHeaderSlotProps } from '@mui/x-date-pickers/PickersCalendarHeader';
7
7
  import { BaseDateValidationProps, DefaultizedProps, ExportedDayCalendarProps, DayCalendarSlots, DayCalendarSlotProps, PickersArrowSwitcherSlots, PickersArrowSwitcherSlotProps, DayCalendarProps, ExportedUseViewsOptions } from '@mui/x-date-pickers/internals';
8
8
  import { DayRangeValidationProps } from '../internals/models';
@@ -11,7 +11,7 @@ import { DateRangeCalendarClasses } from './dateRangeCalendarClasses';
11
11
  import { DateRangePickerDay, DateRangePickerDayProps } from '../DateRangePickerDay';
12
12
  import { UseRangePositionProps } from '../internals/hooks/useRangePosition';
13
13
  export type DateRangePosition = 'start' | 'end';
14
- export interface DateRangeCalendarSlots<TDate> extends PickersArrowSwitcherSlots, Omit<DayCalendarSlots<TDate>, 'day'>, PickersCalendarHeaderSlots {
14
+ export interface DateRangeCalendarSlots<TDate extends PickerValidDate> extends PickersArrowSwitcherSlots, Omit<DayCalendarSlots<TDate>, 'day'>, PickersCalendarHeaderSlots {
15
15
  /**
16
16
  * Custom component for calendar header.
17
17
  * Check the [PickersCalendarHeader](https://mui.com/x/api/date-pickers/pickers-calendar-header/) component.
@@ -25,14 +25,14 @@ export interface DateRangeCalendarSlots<TDate> extends PickersArrowSwitcherSlots
25
25
  */
26
26
  day?: React.ElementType<DateRangePickerDayProps<TDate>>;
27
27
  }
28
- export interface DateRangeCalendarSlotProps<TDate> extends PickersArrowSwitcherSlotProps, Omit<DayCalendarSlotProps<TDate>, 'day'>, PickersCalendarHeaderSlotProps<TDate> {
28
+ export interface DateRangeCalendarSlotProps<TDate extends PickerValidDate> extends PickersArrowSwitcherSlotProps, Omit<DayCalendarSlotProps<TDate>, 'day'>, PickersCalendarHeaderSlotProps<TDate> {
29
29
  calendarHeader?: SlotComponentProps<typeof PickersCalendarHeader, {}, DateRangeCalendarProps<TDate>>;
30
30
  day?: SlotComponentProps<typeof DateRangePickerDay, {}, DayCalendarProps<TDate> & {
31
31
  day: TDate;
32
32
  selected: boolean;
33
33
  }>;
34
34
  }
35
- export interface ExportedDateRangeCalendarProps<TDate> extends ExportedDayCalendarProps<TDate>, BaseDateValidationProps<TDate>, DayRangeValidationProps<TDate>, TimezoneProps {
35
+ export interface ExportedDateRangeCalendarProps<TDate extends PickerValidDate> extends ExportedDayCalendarProps<TDate>, BaseDateValidationProps<TDate>, DayRangeValidationProps<TDate>, TimezoneProps {
36
36
  /**
37
37
  * If `true`, after selecting `start` date calendar will not automatically switch to the month of `end` date.
38
38
  * @default false
@@ -70,7 +70,7 @@ export interface ExportedDateRangeCalendarProps<TDate> extends ExportedDayCalend
70
70
  */
71
71
  disableDragEditing?: boolean;
72
72
  }
73
- export interface DateRangeCalendarProps<TDate> extends ExportedDateRangeCalendarProps<TDate>, UseRangePositionProps, ExportedUseViewsOptions<'day'> {
73
+ export interface DateRangeCalendarProps<TDate extends PickerValidDate> extends ExportedDateRangeCalendarProps<TDate>, UseRangePositionProps, ExportedUseViewsOptions<'day'> {
74
74
  /**
75
75
  * The selected value.
76
76
  * Used when the component is controlled.
@@ -92,6 +92,9 @@ export interface DateRangeCalendarProps<TDate> extends ExportedDateRangeCalendar
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.
@@ -116,7 +119,7 @@ export interface DateRangeCalendarProps<TDate> extends ExportedDateRangeCalendar
116
119
  */
117
120
  availableRangePositions?: DateRangePosition[];
118
121
  }
119
- export interface DateRangeCalendarOwnerState<TDate> extends DateRangeCalendarProps<TDate> {
122
+ export interface DateRangeCalendarOwnerState<TDate extends PickerValidDate> extends DateRangeCalendarProps<TDate> {
120
123
  isDragging: boolean;
121
124
  }
122
- export type DateRangeCalendarDefaultizedProps<TDate> = DefaultizedProps<DateRangeCalendarProps<TDate>, 'views' | 'openTo' | 'reduceAnimations' | 'calendars' | 'disableDragEditing' | 'availableRangePositions' | keyof BaseDateValidationProps<TDate>>;
125
+ export type DateRangeCalendarDefaultizedProps<TDate extends PickerValidDate> = DefaultizedProps<DateRangeCalendarProps<TDate>, 'views' | 'openTo' | 'reduceAnimations' | 'calendars' | 'disableDragEditing' | 'availableRangePositions' | keyof BaseDateValidationProps<TDate>>;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import { MuiPickersAdapter, PickersTimezone } from '@mui/x-date-pickers/models';
2
+ import { MuiPickersAdapter, PickersTimezone, PickerValidDate } from '@mui/x-date-pickers/models';
3
3
  import { DateRangePosition } from './DateRangeCalendar.types';
4
4
  import { DateRange } from '../models';
5
- interface UseDragRangeParams<TDate> {
5
+ interface UseDragRangeParams<TDate extends PickerValidDate> {
6
6
  disableDragEditing?: boolean;
7
7
  utils: MuiPickersAdapter<TDate>;
8
8
  setRangeDragDay: (value: TDate | null) => void;
@@ -24,10 +24,10 @@ interface UseDragRangeEvents {
24
24
  onTouchMove?: React.TouchEventHandler<HTMLButtonElement>;
25
25
  onTouchEnd?: React.TouchEventHandler<HTMLButtonElement>;
26
26
  }
27
- interface UseDragRangeResponse<TDate> extends UseDragRangeEvents {
27
+ interface UseDragRangeResponse<TDate extends PickerValidDate> extends UseDragRangeEvents {
28
28
  isDragging: boolean;
29
29
  rangeDragDay: TDate | null;
30
30
  draggingDatePosition: DateRangePosition | null;
31
31
  }
32
- export declare const useDragRange: <TDate>({ disableDragEditing, utils, onDatePositionChange, onDrop, dateRange, timezone, }: Omit<UseDragRangeParams<TDate>, "isDragging" | "setRangeDragDay" | "setIsDragging">) => UseDragRangeResponse<TDate>;
32
+ export declare const useDragRange: <TDate extends PickerValidDate>({ disableDragEditing, utils, onDatePositionChange, onDrop, dateRange, timezone, }: Omit<UseDragRangeParams<TDate>, "isDragging" | "setRangeDragDay" | "setIsDragging">) => UseDragRangeResponse<TDate>;
33
33
  export {};
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
+ import { PickerValidDate } from '@mui/x-date-pickers/models';
2
3
  import { DateRangePickerProps } from './DateRangePicker.types';
3
- type DatePickerComponent = (<TDate>(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) & {
4
5
  propTypes?: any;
5
6
  };
6
7
  /**