@mui/x-date-pickers 9.2.0 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,123 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.3.0
4
+
5
+ _May 21, 2026_
6
+
7
+ We'd like to extend a big thank you to the 16 contributors who made this release possible. Here are some highlights ✨:
8
+
9
+ - 📆 Refactor Calendar Range drag editing to use Pointer Events instead of drag and touch events combination (#22279)
10
+ - ✨ Apply lazy loading to `EventTimelinePremium` (#22308)
11
+ - 🐞 Bugfixes
12
+ - 📚 Documentation improvements
13
+ - 🌎 Added Norwegian bokmål (nb-NO) locale to the Scheduler
14
+ - 🌎 Improved Swedish (sv-SE) locale on the Data Grid
15
+
16
+ Special thanks go out to these community members for their valuable contributions:
17
+ @Anexus5919, @jvskriubakken, @oscar-b, @rin, @viktormelin
18
+
19
+ The following team members contributed to this release:
20
+ @aemartos, @alexfauquette, @arminmeh, @Janpot, @JCQuintas, @LukasTy, @mj12albert, @oliviertassinari, @rita-codes, @romgrk, @sai6855
21
+
22
+ ### Data Grid
23
+
24
+ #### `@mui/x-data-grid@9.3.0`
25
+
26
+ - [DataGrid] Fix scrollbar disappearing after multiple resizes (#22512) @LukasTy
27
+ - [DataGrid] Revert "Add support for pinned columns in `GridVirtualScroller`" (#22467) @oliviertassinari
28
+ - [l10n] Improve Swedish (svSE) locale (#21851) @viktormelin
29
+
30
+ #### `@mui/x-data-grid-pro@9.3.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
31
+
32
+ Same changes as in `@mui/x-data-grid@9.3.0`.
33
+
34
+ #### `@mui/x-data-grid-premium@9.3.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
35
+
36
+ Same changes as in `@mui/x-data-grid-pro@9.3.0`.
37
+
38
+ ### Date and Time Pickers
39
+
40
+ #### `@mui/x-date-pickers@9.3.0`
41
+
42
+ - [pickers] Fix disabled state styling for `PickersTextField` standard and filled variants (#22189) @LukasTy
43
+ - [pickers] Fix previous month disabled state calculation (#22524) @mj12albert
44
+ - [pickers] Merge `slotProps.sectionContent` in `PickersInputBase` (#22324) @rin
45
+
46
+ #### `@mui/x-date-pickers-pro@9.3.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
47
+
48
+ Same changes as in `@mui/x-date-pickers@9.3.0`, plus:
49
+
50
+ - [DateRangeCalendar] Use Pointer Events for drag editing (#22279) @LukasTy
51
+
52
+ ### Charts
53
+
54
+ #### `@mui/x-charts@9.3.0`
55
+
56
+ - [charts] Add `data-series` to elements of radar chart (#22523) @alexfauquette
57
+ - [charts] Add environment check for warning messages in axis and radar hooks (#22506) @sai6855
58
+ - [charts] Chart `seriesConfig` deduplication for lines and bars (#22257) @sai6855
59
+ - [charts] Fix highlighted item crash (#22539) @oscar-b
60
+ - [charts] Fix the line and mark class (#22526) @alexfauquette
61
+ - [charts] Fix use of deprecated API in docs (#22469) @oliviertassinari
62
+ - [charts] Improve performance of `evaluateCurveY` function (#22407) @sai6855
63
+
64
+ #### `@mui/x-charts-pro@9.3.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
65
+
66
+ Same changes as in `@mui/x-charts@9.3.0`.
67
+
68
+ #### `@mui/x-charts-premium@9.3.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
69
+
70
+ Same changes as in `@mui/x-charts-pro@9.3.0`, plus:
71
+
72
+ - [charts-premium] Add `closePath` option to the radial line series (#22517) @alexfauquette
73
+
74
+ ### Tree View
75
+
76
+ #### `@mui/x-tree-view-pro@9.3.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
77
+
78
+ Internal changes.
79
+
80
+ ### Scheduler
81
+
82
+ #### `@mui/x-scheduler@9.0.0-alpha.7`
83
+
84
+ - [I10n] Add Norwegian bokmål (nb-NO) locale (#22415) @jvskriubakken
85
+
86
+ #### `@mui/x-scheduler-premium@9.0.0-alpha.7` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
87
+
88
+ Same changes as in `@mui/x-scheduler@9.0.0-alpha.7`, plus:
89
+
90
+ - [scheduler] Apply lazy loading to `EventTimelinePremium` (#22308) @rita-codes
91
+ - [scheduler] Deduplicate staged ranges within the debounce window (#22476) @Anexus5919
92
+ - [scheduler] Pass full event objects to `dataSource.updateEvents` (#22462) @rita-codes
93
+
94
+ ### Docs
95
+
96
+ - [docs] Automatically update supported versions (#21850) @arminmeh
97
+ - [docs] Fix `New` label on bar charts docs (#22473) @oliviertassinari
98
+ - [docs] Improve premium page header for charts (#22474) @oliviertassinari
99
+ - [docs] Sync `README` with licensing/licensing.md in scheduler (#22468) @oliviertassinari
100
+
101
+ ### Core
102
+
103
+ - [code-infra] Cover docs overview composites with Argos (#22283) @LukasTy
104
+ - [code-infra] Enable `mui/no-presentation-role` lint rule (#22360) @Janpot
105
+ - [code-infra] Make generated `propTypes` union order deterministic (#22521) @JCQuintas
106
+ - [code-infra] Make screenshots stable across different ordering of the tests (#22449) @Janpot
107
+ - [code-infra] Optimize visual regression testing (#22447) @Janpot
108
+ - [code-infra] Replace markdownlint with remark from code-infra (#22255) @Janpot
109
+
110
+ ### Miscellaneous
111
+
112
+ - [virtualizer] Improve `controlled` mode performance (#22123) @romgrk
113
+ - [data-grid-generator] Include `tree-data` params in `useDemoData` cache key (#22456) @Janpot
114
+ - [test] Fix flaky browser tests and optimize (#22431) @Janpot
115
+ - [test] Speed up `test_types` job (#22442) @Janpot
116
+ - [test] Trim ffmpeg install in `test_regressions` (#22459) @Janpot
117
+ - [test] Add WebGL performance benchmarks for charts (#22471) @JCQuintas
118
+ - [test] Expand chart performance benchmarks for charts (#22472) @JCQuintas
119
+ - [x-license] use workspace dep for v9 in cross-major compat tests (#22504) @aemartos
120
+
3
121
  ## 9.2.0
4
122
 
5
123
  _May 13, 2026_
@@ -131,7 +131,7 @@ function PickersSlideTransition(inProps) {
131
131
  childFactory: element => /*#__PURE__*/React.cloneElement(element, {
132
132
  classNames: transitionClasses
133
133
  }),
134
- role: "presentation",
134
+ role: "none",
135
135
  ownerState: ownerState,
136
136
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, (0, _extends2.default)({
137
137
  mountOnEnter: true,
@@ -123,7 +123,7 @@ export function PickersSlideTransition(inProps) {
123
123
  childFactory: element => /*#__PURE__*/React.cloneElement(element, {
124
124
  classNames: transitionClasses
125
125
  }),
126
- role: "presentation",
126
+ role: "none",
127
127
  ownerState: ownerState,
128
128
  children: /*#__PURE__*/_jsx(CSSTransition, _extends({
129
129
  mountOnEnter: true,
@@ -197,7 +197,7 @@ const PickersCalendarHeader = exports.PickersCalendarHeader = /*#__PURE__*/React
197
197
  className: (0, _clsx.default)(classes.root, className),
198
198
  ref: ref,
199
199
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(PickersCalendarHeaderLabelContainer, {
200
- role: "presentation",
200
+ role: "none",
201
201
  onClick: handleToggleView,
202
202
  ownerState: ownerState
203
203
  // putting this on the label item element below breaks when using transition
@@ -190,7 +190,7 @@ const PickersCalendarHeader = /*#__PURE__*/React.forwardRef(function PickersCale
190
190
  className: clsx(classes.root, className),
191
191
  ref: ref,
192
192
  children: [/*#__PURE__*/_jsxs(PickersCalendarHeaderLabelContainer, {
193
- role: "presentation",
193
+ role: "none",
194
194
  onClick: handleToggleView,
195
195
  ownerState: ownerState
196
196
  // putting this on the label item element below breaks when using transition
@@ -12,6 +12,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
12
12
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
13
  var React = _interopRequireWildcard(require("react"));
14
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
15
+ var _clsx = _interopRequireDefault(require("clsx"));
15
16
  var _FormControl = require("@mui/material/FormControl");
16
17
  var _styles = require("@mui/material/styles");
17
18
  var _useForkRef = _interopRequireDefault(require("@mui/utils/useForkRef"));
@@ -19,6 +20,7 @@ var _refType = _interopRequireDefault(require("@mui/utils/refType"));
19
20
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
20
21
  var _capitalize = _interopRequireDefault(require("@mui/utils/capitalize"));
21
22
  var _useSlotProps = _interopRequireDefault(require("@mui/utils/useSlotProps"));
23
+ var _resolveComponentProps = _interopRequireDefault(require("@mui/utils/resolveComponentProps"));
22
24
  var _visuallyHidden = _interopRequireDefault(require("@mui/utils/visuallyHidden"));
23
25
  var _pickersInputBaseClasses = require("./pickersInputBaseClasses");
24
26
  var _PickersSectionList = require("../../PickersSectionList");
@@ -26,6 +28,14 @@ var _usePickerTextFieldOwnerState = require("../usePickerTextFieldOwnerState");
26
28
  var _jsxRuntime = require("react/jsx-runtime");
27
29
  const _excluded = ["elements", "areAllSectionsEmpty", "defaultValue", "label", "value", "onChange", "id", "autoFocus", "endAdornment", "startAdornment", "renderSuffix", "slots", "slotProps", "contentEditable", "tabIndex", "onInput", "onPaste", "onKeyDown", "fullWidth", "name", "readOnly", "inputRef", "sectionListRef", "onFocus", "onBlur", "classes", "ownerState"],
28
30
  _excluded2 = ["ref"];
31
+ function mergePickersInputBaseSectionContentSlotProps(consumerSlotProps, baseClassName) {
32
+ return ownerState => {
33
+ const resolved = (0, _resolveComponentProps.default)(consumerSlotProps, ownerState) ?? {};
34
+ return (0, _extends2.default)({}, resolved, {
35
+ className: (0, _clsx.default)(baseClassName, resolved.className)
36
+ });
37
+ };
38
+ }
29
39
  const round = value => Math.round(value * 1e5) / 1e5;
30
40
  const PickersInputBaseRoot = exports.PickersInputBaseRoot = (0, _styles.styled)('div', {
31
41
  name: 'MuiPickersInputBase',
@@ -43,6 +53,10 @@ const PickersInputBaseRoot = exports.PickersInputBaseRoot = (0, _styles.styled)(
43
53
  boxSizing: 'border-box',
44
54
  // Prevent padding issue with fullWidth.
45
55
  letterSpacing: `${round(0.15 / 16)}em`,
56
+ [`&.${_pickersInputBaseClasses.pickersInputBaseClasses.disabled}`]: {
57
+ color: (theme.vars || theme).palette.action.disabled,
58
+ cursor: 'default'
59
+ },
46
60
  variants: [{
47
61
  props: {
48
62
  isInputInFullWidth: true
@@ -391,9 +405,7 @@ const PickersInputBase = exports.PickersInputBase = /*#__PURE__*/React.forwardRe
391
405
  root: (0, _extends2.default)({}, slotProps?.input, {
392
406
  ownerState
393
407
  }),
394
- sectionContent: {
395
- className: _pickersInputBaseClasses.pickersInputBaseClasses.sectionContent
396
- },
408
+ sectionContent: mergePickersInputBaseSectionContentSlotProps(slotProps?.sectionContent, _pickersInputBaseClasses.pickersInputBaseClasses.sectionContent),
397
409
  sectionSeparator: ({
398
410
  separatorPosition
399
411
  }) => ({
@@ -7,6 +7,7 @@ const _excluded = ["elements", "areAllSectionsEmpty", "defaultValue", "label", "
7
7
  _excluded2 = ["ref"];
8
8
  import * as React from 'react';
9
9
  import PropTypes from 'prop-types';
10
+ import clsx from 'clsx';
10
11
  import { useFormControl } from '@mui/material/FormControl';
11
12
  import { styled, useThemeProps } from '@mui/material/styles';
12
13
  import useForkRef from '@mui/utils/useForkRef';
@@ -14,11 +15,20 @@ import refType from '@mui/utils/refType';
14
15
  import composeClasses from '@mui/utils/composeClasses';
15
16
  import capitalize from '@mui/utils/capitalize';
16
17
  import useSlotProps from '@mui/utils/useSlotProps';
18
+ import resolveComponentProps from '@mui/utils/resolveComponentProps';
17
19
  import visuallyHidden from '@mui/utils/visuallyHidden';
18
20
  import { pickersInputBaseClasses, getPickersInputBaseUtilityClass } from "./pickersInputBaseClasses.mjs";
19
21
  import { Unstable_PickersSectionList as PickersSectionList, Unstable_PickersSectionListRoot as PickersSectionListRoot, Unstable_PickersSectionListSection as PickersSectionListSection, Unstable_PickersSectionListSectionSeparator as PickersSectionListSectionSeparator, Unstable_PickersSectionListSectionContent as PickersSectionListSectionContent } from "../../PickersSectionList/index.mjs";
20
22
  import { usePickerTextFieldOwnerState } from "../usePickerTextFieldOwnerState.mjs";
21
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ function mergePickersInputBaseSectionContentSlotProps(consumerSlotProps, baseClassName) {
25
+ return ownerState => {
26
+ const resolved = resolveComponentProps(consumerSlotProps, ownerState) ?? {};
27
+ return _extends({}, resolved, {
28
+ className: clsx(baseClassName, resolved.className)
29
+ });
30
+ };
31
+ }
22
32
  const round = value => Math.round(value * 1e5) / 1e5;
23
33
  export const PickersInputBaseRoot = styled('div', {
24
34
  name: 'MuiPickersInputBase',
@@ -36,6 +46,10 @@ export const PickersInputBaseRoot = styled('div', {
36
46
  boxSizing: 'border-box',
37
47
  // Prevent padding issue with fullWidth.
38
48
  letterSpacing: `${round(0.15 / 16)}em`,
49
+ [`&.${pickersInputBaseClasses.disabled}`]: {
50
+ color: (theme.vars || theme).palette.action.disabled,
51
+ cursor: 'default'
52
+ },
39
53
  variants: [{
40
54
  props: {
41
55
  isInputInFullWidth: true
@@ -384,9 +398,7 @@ const PickersInputBase = /*#__PURE__*/React.forwardRef(function PickersInputBase
384
398
  root: _extends({}, slotProps?.input, {
385
399
  ownerState
386
400
  }),
387
- sectionContent: {
388
- className: pickersInputBaseClasses.sectionContent
389
- },
401
+ sectionContent: mergePickersInputBaseSectionContentSlotProps(slotProps?.sectionContent, pickersInputBaseClasses.sectionContent),
390
402
  sectionSeparator: ({
391
403
  separatorPosition
392
404
  }) => ({
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps, Theme } from '@mui/material/styles';
3
3
  import { MuiEvent } from '@mui/x-internals/types';
4
- import { PickersSectionListProps } from "../../PickersSectionList/index.mjs";
4
+ import { PickersSectionListProps, PickersSectionListSlotProps } from "../../PickersSectionList/index.mjs";
5
5
  import { PickerTextFieldOwnerState } from "../../models/fields.mjs";
6
6
  export interface PickersInputPropsUsedByField extends Pick<PickersSectionListProps, 'elements' | 'sectionListRef' | 'contentEditable' | 'tabIndex'> {
7
7
  /**
@@ -70,6 +70,11 @@ export interface PickersInputBaseSlotProps {
70
70
  root?: PickersInputBaseRootSlotProps;
71
71
  input?: PickersInputBaseInputSlotProps;
72
72
  htmlInput?: React.ComponentPropsWithRef<'input'>;
73
+ /**
74
+ * Props forwarded to each section's content element inside `PickersSectionList`.
75
+ * Merged with the built-in section content styles.
76
+ */
77
+ sectionContent?: PickersSectionListSlotProps['sectionContent'];
73
78
  }
74
79
  export interface PickersInputBaseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, keyof PickersInputPropsUsedByField>, PickersInputPropsUsedByField {
75
80
  ownerState?: PickerTextFieldOwnerState;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps, Theme } from '@mui/material/styles';
3
3
  import { MuiEvent } from '@mui/x-internals/types';
4
- import { PickersSectionListProps } from "../../PickersSectionList/index.js";
4
+ import { PickersSectionListProps, PickersSectionListSlotProps } from "../../PickersSectionList/index.js";
5
5
  import { PickerTextFieldOwnerState } from "../../models/fields.js";
6
6
  export interface PickersInputPropsUsedByField extends Pick<PickersSectionListProps, 'elements' | 'sectionListRef' | 'contentEditable' | 'tabIndex'> {
7
7
  /**
@@ -70,6 +70,11 @@ export interface PickersInputBaseSlotProps {
70
70
  root?: PickersInputBaseRootSlotProps;
71
71
  input?: PickersInputBaseInputSlotProps;
72
72
  htmlInput?: React.ComponentPropsWithRef<'input'>;
73
+ /**
74
+ * Props forwarded to each section's content element inside `PickersSectionList`.
75
+ * Merged with the built-in section content styles.
76
+ */
77
+ sectionContent?: PickersSectionListSlotProps['sectionContent'];
73
78
  }
74
79
  export interface PickersInputBaseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, keyof PickersInputPropsUsedByField>, PickersInputPropsUsedByField {
75
80
  ownerState?: PickerTextFieldOwnerState;
@@ -50,9 +50,6 @@ const PickersOutlinedInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersI
50
50
  [`&.${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.disabled}`]: {
51
51
  [`& .${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.notchedOutline}`]: {
52
52
  borderColor: (theme.vars || theme).palette.action.disabled
53
- },
54
- '*': {
55
- color: (theme.vars || theme).palette.action.disabled
56
53
  }
57
54
  },
58
55
  variants: Object.keys((theme.vars ?? theme).palette)
@@ -43,9 +43,6 @@ const PickersOutlinedInputRoot = styled(PickersInputBaseRoot, {
43
43
  [`&.${pickersOutlinedInputClasses.disabled}`]: {
44
44
  [`& .${pickersOutlinedInputClasses.notchedOutline}`]: {
45
45
  borderColor: (theme.vars || theme).palette.action.disabled
46
- },
47
- '*': {
48
- color: (theme.vars || theme).palette.action.disabled
49
46
  }
50
47
  },
51
48
  variants: Object.keys((theme.vars ?? theme).palette)
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v9.2.0
2
+ * @mui/x-date-pickers v9.3.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v9.2.0
2
+ * @mui/x-date-pickers v9.3.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -31,7 +31,7 @@ function usePreviousMonthDisabled(month, {
31
31
  return React.useMemo(() => {
32
32
  const now = adapter.date(undefined, timezone);
33
33
  const firstEnabledMonth = adapter.startOfMonth(disablePast && adapter.isAfter(now, minDate) ? now : minDate);
34
- return !adapter.isBefore(firstEnabledMonth, month);
34
+ return !adapter.isBefore(firstEnabledMonth, adapter.startOfMonth(month));
35
35
  }, [disablePast, minDate, month, adapter, timezone]);
36
36
  }
37
37
  function useMeridiemMode(date, ampm, onChange, selectionState) {
@@ -22,7 +22,7 @@ export function usePreviousMonthDisabled(month, {
22
22
  return React.useMemo(() => {
23
23
  const now = adapter.date(undefined, timezone);
24
24
  const firstEnabledMonth = adapter.startOfMonth(disablePast && adapter.isAfter(now, minDate) ? now : minDate);
25
- return !adapter.isBefore(firstEnabledMonth, month);
25
+ return !adapter.isBefore(firstEnabledMonth, adapter.startOfMonth(month));
26
26
  }, [disablePast, minDate, month, adapter, timezone]);
27
27
  }
28
28
  export function useMeridiemMode(date, ampm, onChange, selectionState) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "9.2.0",
3
+ "version": "9.3.0",
4
4
  "author": "MUI Team",
5
5
  "description": "The community edition of the MUI X Date and Time Picker components.",
6
6
  "license": "MIT",