@mui/x-date-pickers-pro 8.0.0-beta.2 → 8.0.0-beta.3
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 +141 -0
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -1
- package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +9 -1
- package/DesktopTimeRangePicker/DesktopTimeRangePicker.js +9 -1
- package/MobileDateRangePicker/MobileDateRangePicker.js +2 -1
- package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +15 -1
- package/MobileTimeRangePicker/MobileTimeRangePicker.js +9 -1
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -4
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +4 -4
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +4 -4
- package/StaticDateRangePicker/StaticDateRangePicker.js +2 -1
- package/esm/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -1
- package/esm/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +9 -1
- package/esm/DesktopTimeRangePicker/DesktopTimeRangePicker.js +9 -1
- package/esm/MobileDateRangePicker/MobileDateRangePicker.js +2 -1
- package/esm/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +16 -2
- package/esm/MobileTimeRangePicker/MobileTimeRangePicker.js +9 -1
- package/esm/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -4
- package/esm/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +4 -4
- package/esm/SingleInputTimeRangeField/SingleInputTimeRangeField.js +4 -4
- package/esm/StaticDateRangePicker/StaticDateRangePicker.js +2 -1
- package/esm/index.js +1 -1
- package/esm/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +1 -0
- package/esm/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +10 -3
- package/esm/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +3 -3
- package/esm/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +1 -0
- package/esm/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +10 -3
- package/esm/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +3 -3
- package/esm/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +1 -0
- package/esm/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +10 -3
- package/esm/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +7 -0
- package/esm/internals/models/rangePickerProps.d.ts +14 -0
- package/esm/internals/utils/createRangePickerStepNavigation.d.ts +16 -0
- package/esm/internals/utils/createRangePickerStepNavigation.js +31 -0
- package/esm/internals/utils/releaseInfo.js +1 -1
- package/index.js +1 -1
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +1 -0
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +10 -3
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +3 -3
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +1 -0
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +10 -3
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +3 -3
- package/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +1 -0
- package/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +10 -3
- package/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +7 -0
- package/internals/models/rangePickerProps.d.ts +14 -0
- package/internals/utils/createRangePickerStepNavigation.d.ts +16 -0
- package/internals/utils/createRangePickerStepNavigation.js +37 -0
- package/internals/utils/releaseInfo.js +1 -1
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -1
- package/modern/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +9 -1
- package/modern/DesktopTimeRangePicker/DesktopTimeRangePicker.js +9 -1
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +2 -1
- package/modern/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +16 -2
- package/modern/MobileTimeRangePicker/MobileTimeRangePicker.js +9 -1
- package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -4
- package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +4 -4
- package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +4 -4
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +2 -1
- package/modern/index.js +1 -1
- package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +1 -0
- package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +10 -3
- package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +3 -3
- package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +1 -0
- package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +10 -3
- package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +3 -3
- package/modern/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +1 -0
- package/modern/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +10 -3
- package/modern/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +7 -0
- package/modern/internals/models/rangePickerProps.d.ts +14 -0
- package/modern/internals/utils/createRangePickerStepNavigation.d.ts +16 -0
- package/modern/internals/utils/createRangePickerStepNavigation.js +31 -0
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/package.json +8 -8
- package/tsconfig.build.tsbuildinfo +1 -1
- package/esm/internals/hooks/models/index.d.ts +0 -1
- package/esm/internals/hooks/models/index.js +0 -1
- package/esm/internals/hooks/models/useRangePicker.d.ts +0 -8
- package/esm/internals/hooks/models/useRangePicker.js +0 -1
- package/internals/hooks/models/index.d.ts +0 -1
- package/internals/hooks/models/index.js +0 -5
- package/internals/hooks/models/useRangePicker.d.ts +0 -8
- package/internals/hooks/models/useRangePicker.js +0 -5
- package/modern/internals/hooks/models/index.d.ts +0 -1
- package/modern/internals/hooks/models/index.js +0 -1
- package/modern/internals/hooks/models/useRangePicker.d.ts +0 -8
- package/modern/internals/hooks/models/useRangePicker.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,147 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.0.0-beta.3
|
|
9
|
+
|
|
10
|
+
_Apr 3, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🚫 Removed `react-spring` as a dependency of `@mui/x-charts`
|
|
15
|
+
- 📦 Data Grid list view feature is now stable
|
|
16
|
+
- 💫 Support title in Data Grid
|
|
17
|
+
- 📚 Documentation improvements
|
|
18
|
+
- 🐞 Bugfixes
|
|
19
|
+
|
|
20
|
+
Team members who have contributed to this release:
|
|
21
|
+
@bernardobelchior, @cherniavskii, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @noraleonte, @romgrk, @alexfauquette.
|
|
22
|
+
|
|
23
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
24
|
+
|
|
25
|
+
### Data Grid
|
|
26
|
+
|
|
27
|
+
#### Breaking changes
|
|
28
|
+
|
|
29
|
+
- The list view feature and its related props are now stable.
|
|
30
|
+
|
|
31
|
+
The `unstable_listColumn` prop has been renamed to `listViewColumn`.
|
|
32
|
+
|
|
33
|
+
The `GridListColDef` type has been renamed to `GridListViewColDef`.
|
|
34
|
+
|
|
35
|
+
```diff
|
|
36
|
+
-const listViewColDef: GridListColDef = {
|
|
37
|
+
+const listViewColDef: GridListViewColDef = {
|
|
38
|
+
field: 'listColumn',
|
|
39
|
+
renderCell: ListViewCell,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
<DataGridPro
|
|
43
|
+
- unstable_listView
|
|
44
|
+
- unstable_listColumn={listViewColDef}
|
|
45
|
+
+ listView
|
|
46
|
+
+ listViewColumn={listViewColDef}
|
|
47
|
+
/>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
- The `useGridApiEventHandler()` hook has been renamed to `useGridEvent()`.
|
|
51
|
+
- The `useGridApiOptionHandler()` hook has been renamed to `useGridEventPriority()`.
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-data-grid@8.0.0-beta.3`
|
|
54
|
+
|
|
55
|
+
- [DataGrid] Fix "is any of" autocomplete rendering (#17226) @KenanYusuf
|
|
56
|
+
- [DataGrid] Rename `useGridApiEventHandler()` to `useGridEvent()` (#17159) @romgrk
|
|
57
|
+
- [DataGrid] Support adding a label to the grid (#17147) @KenanYusuf
|
|
58
|
+
- [DataGrid] Refactor: remove material typings (#17119) @romgrk
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-data-grid-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
61
|
+
|
|
62
|
+
Same changes as in `@mui/x-data-grid@8.0.0-beta.3`, plus:
|
|
63
|
+
|
|
64
|
+
- [DataGridPro] Make list view feature stable (#17217) @KenanYusuf
|
|
65
|
+
- [DataGridPro] Always refetch lazy-loading rows (#16827) @MBilalShafi
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-data-grid-premium@8.0.0-beta.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-beta.3`.
|
|
70
|
+
|
|
71
|
+
### Date and Time Pickers
|
|
72
|
+
|
|
73
|
+
#### `@mui/x-date-pickers@8.0.0-beta.3`
|
|
74
|
+
|
|
75
|
+
- [pickers] Add new `nextOrAccept` action bar action (#17037) @flaviendelangle
|
|
76
|
+
- [pickers] Improve the Multi Section Digital Clock scrollbar thickness (#16774) @oliviertassinari
|
|
77
|
+
- [TimePicker] Align the Digital Clock scrollbar thickness (#17203) @LukasTy
|
|
78
|
+
|
|
79
|
+
#### `@mui/x-date-pickers-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
80
|
+
|
|
81
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-beta.3`.
|
|
82
|
+
|
|
83
|
+
### Charts
|
|
84
|
+
|
|
85
|
+
#### Breaking changes
|
|
86
|
+
|
|
87
|
+
- Removed `react-spring` as a dependency of `@mui/x-charts`.
|
|
88
|
+
A consequence of this change is that the props of some slots have been changed because the `SpringValue` wrapper has been removed. The affected slots and props are:
|
|
89
|
+
|
|
90
|
+
- the type of the `x`, `y`, `width` and `height` props of the `bar` slot are now `number`;
|
|
91
|
+
- the type of `startAngle`, `endAngle`, `innerRadius`, `outerRadius`, `arcLabelRadius`, `cornerRadius` and `paddingAngle` props of `pieArc` and `pieArcLabel` slot are now `number`.
|
|
92
|
+
|
|
93
|
+
Additionally, the `pieArc` slot now receives a `skipAnimation` prop to configure whether animations should be enabled or disabled.
|
|
94
|
+
|
|
95
|
+
- Tick labels in the y-axis of cartesian charts will now have an ellipsis applied to prevent overflow.
|
|
96
|
+
If your tick labels are being clipped sooner than you would like, you can increase the y-axis size by increasing its width property.
|
|
97
|
+
|
|
98
|
+
- The tooltip DOM structure is modified to improve accessibility. If you relied on it to apply some style or run tests, you might be impacted by this modification.
|
|
99
|
+
- The axis tooltip displays a table per axis with the axis value in a caption.
|
|
100
|
+
- Cells containing the series label and the color mark got merged in a th cell.
|
|
101
|
+
|
|
102
|
+
#### `@mui/x-charts@8.0.0-beta.3`
|
|
103
|
+
|
|
104
|
+
- [charts] Adjust color palettes (#17209) @noraleonte
|
|
105
|
+
- [charts] Allow multiple axes in the tooltip (#17058) @alexfauquette
|
|
106
|
+
- [charts] Improve custom legend docs (#17231) @JCQuintas
|
|
107
|
+
- [charts] Fix crash when item shown in tooltip is unmounted (#17169) @bernardobelchior
|
|
108
|
+
- [charts] Migrate some animations from `react-spring` (#16961) @bernardobelchior
|
|
109
|
+
- [charts] Remove `react-spring` (#17123) @bernardobelchior
|
|
110
|
+
- [charts] Fix y-axis tick label overflow (#16846) @bernardobelchior
|
|
111
|
+
|
|
112
|
+
#### `@mui/x-charts-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
113
|
+
|
|
114
|
+
Same changes as in `@mui/x-charts@8.0.0-beta.3`.
|
|
115
|
+
|
|
116
|
+
### Tree View
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-tree-view@8.0.0-beta.3`
|
|
119
|
+
|
|
120
|
+
Internal changes.
|
|
121
|
+
|
|
122
|
+
#### `@mui/x-tree-view-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
123
|
+
|
|
124
|
+
Same changes as in `@mui/x-tree-view@8.0.0-beta.3`.
|
|
125
|
+
|
|
126
|
+
### `@mui/x-codemod@8.0.0-beta.3`
|
|
127
|
+
|
|
128
|
+
- [codemod] Add `listView` prop rename codemod (#17220) @MBilalShafi
|
|
129
|
+
|
|
130
|
+
### Docs
|
|
131
|
+
|
|
132
|
+
- [docs] Add "Usage with Material UI v5/v6" guide (#17164) @cherniavskii
|
|
133
|
+
- [docs] Fix 301 link @oliviertassinari
|
|
134
|
+
- [docs] Fix redirection getting-started (#17200) @oliviertassinari
|
|
135
|
+
- [docs] Sync Stack Overflow docs with reality (#17198) @oliviertassinari
|
|
136
|
+
- [docs] Update Localization Provider JSDoc link (#17207) @LukasTy
|
|
137
|
+
|
|
138
|
+
### Core
|
|
139
|
+
|
|
140
|
+
- [core] Cleanup `@mui` dependency versions (#17160) @LukasTy
|
|
141
|
+
- [core] Sync scorecards.yml across codebase @oliviertassinari
|
|
142
|
+
- [core] Revert upgrade to React 19.1 (#17206) @bernardobelchior
|
|
143
|
+
- [code-infra] Fix `test:unit` warning (#17224) @JCQuintas
|
|
144
|
+
- [code-infra] Fix pickers failing test after clock=fake removal (#17202) @JCQuintas
|
|
145
|
+
- [code-infra] Remove clock=fake from `describeValidation` (#17150) @JCQuintas
|
|
146
|
+
- [code-infra] Remove clock=fake from `describeValue` (#17199) @JCQuintas
|
|
147
|
+
- [infra] Add write permission for actions in issue status label handler (#17161) @michelengelen
|
|
148
|
+
|
|
8
149
|
## 8.0.0-beta.2
|
|
9
150
|
|
|
10
151
|
_Mar 27, 2025_
|
|
@@ -67,7 +67,8 @@ const DesktopDateRangePicker = exports.DesktopDateRangePicker = /*#__PURE__*/Rea
|
|
|
67
67
|
props,
|
|
68
68
|
valueManager: _valueManagers.rangeValueManager,
|
|
69
69
|
valueType: 'date',
|
|
70
|
-
validator: _validation2.validateDateRange
|
|
70
|
+
validator: _validation2.validateDateRange,
|
|
71
|
+
steps: null
|
|
71
72
|
});
|
|
72
73
|
return renderPicker();
|
|
73
74
|
});
|
|
@@ -31,6 +31,13 @@ var _dimensions = require("../internals/constants/dimensions");
|
|
|
31
31
|
var _hooks = require("../hooks");
|
|
32
32
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
33
|
const _excluded = ["openTo"];
|
|
34
|
+
const STEPS = [{
|
|
35
|
+
views: null,
|
|
36
|
+
rangePosition: 'start'
|
|
37
|
+
}, {
|
|
38
|
+
views: null,
|
|
39
|
+
rangePosition: 'end'
|
|
40
|
+
}];
|
|
34
41
|
const rendererInterceptor = function RendererInterceptor(props) {
|
|
35
42
|
const {
|
|
36
43
|
viewRenderers,
|
|
@@ -135,7 +142,8 @@ const DesktopDateTimeRangePicker = exports.DesktopDateTimeRangePicker = /*#__PUR
|
|
|
135
142
|
valueManager: _valueManagers.rangeValueManager,
|
|
136
143
|
valueType: 'date-time',
|
|
137
144
|
validator: _validation2.validateDateTimeRange,
|
|
138
|
-
rendererInterceptor
|
|
145
|
+
rendererInterceptor,
|
|
146
|
+
steps: STEPS
|
|
139
147
|
});
|
|
140
148
|
return renderPicker();
|
|
141
149
|
});
|
|
@@ -27,6 +27,13 @@ var _dimensions = require("../internals/constants/dimensions");
|
|
|
27
27
|
var _TimeRangePickerTimeWrapper = require("../TimeRangePicker/TimeRangePickerTimeWrapper");
|
|
28
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
29
|
const _excluded = ["openTo"];
|
|
30
|
+
const STEPS = [{
|
|
31
|
+
views: null,
|
|
32
|
+
rangePosition: 'start'
|
|
33
|
+
}, {
|
|
34
|
+
views: null,
|
|
35
|
+
rangePosition: 'end'
|
|
36
|
+
}];
|
|
30
37
|
const rendererInterceptor = function RendererInterceptor(props) {
|
|
31
38
|
const {
|
|
32
39
|
viewRenderers,
|
|
@@ -108,7 +115,8 @@ const DesktopTimeRangePicker = exports.DesktopTimeRangePicker = /*#__PURE__*/Rea
|
|
|
108
115
|
valueManager: _valueManagers.rangeValueManager,
|
|
109
116
|
valueType: 'time',
|
|
110
117
|
validator: _validateTimeRange.validateTimeRange,
|
|
111
|
-
rendererInterceptor
|
|
118
|
+
rendererInterceptor,
|
|
119
|
+
steps: STEPS
|
|
112
120
|
});
|
|
113
121
|
return renderPicker();
|
|
114
122
|
});
|
|
@@ -64,7 +64,8 @@ const MobileDateRangePicker = exports.MobileDateRangePicker = /*#__PURE__*/React
|
|
|
64
64
|
props,
|
|
65
65
|
valueManager: _valueManagers.rangeValueManager,
|
|
66
66
|
valueType: 'date',
|
|
67
|
-
validator: _validation2.validateDateRange
|
|
67
|
+
validator: _validation2.validateDateRange,
|
|
68
|
+
steps: null
|
|
68
69
|
});
|
|
69
70
|
return renderPicker();
|
|
70
71
|
});
|
|
@@ -29,6 +29,19 @@ var _dimensions = require("../internals/constants/dimensions");
|
|
|
29
29
|
var _hooks = require("../hooks");
|
|
30
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
31
|
const _excluded = ["view", "openTo"];
|
|
32
|
+
const STEPS = [{
|
|
33
|
+
views: ['day'],
|
|
34
|
+
rangePosition: 'start'
|
|
35
|
+
}, {
|
|
36
|
+
views: _internals.TIME_VIEWS,
|
|
37
|
+
rangePosition: 'start'
|
|
38
|
+
}, {
|
|
39
|
+
views: ['day'],
|
|
40
|
+
rangePosition: 'end'
|
|
41
|
+
}, {
|
|
42
|
+
views: _internals.TIME_VIEWS,
|
|
43
|
+
rangePosition: 'end'
|
|
44
|
+
}];
|
|
32
45
|
const rendererInterceptor = function RendererInterceptor(props) {
|
|
33
46
|
const {
|
|
34
47
|
viewRenderers,
|
|
@@ -140,7 +153,8 @@ const MobileDateTimeRangePicker = exports.MobileDateTimeRangePicker = /*#__PURE_
|
|
|
140
153
|
valueManager: _valueManagers.rangeValueManager,
|
|
141
154
|
valueType: 'date-time',
|
|
142
155
|
validator: _validation2.validateDateTimeRange,
|
|
143
|
-
rendererInterceptor
|
|
156
|
+
rendererInterceptor,
|
|
157
|
+
steps: STEPS
|
|
144
158
|
});
|
|
145
159
|
return renderPicker();
|
|
146
160
|
});
|
|
@@ -25,6 +25,13 @@ var _validateTimeRange = require("../validation/validateTimeRange");
|
|
|
25
25
|
var _dimensions = require("../internals/constants/dimensions");
|
|
26
26
|
var _TimeRangePickerTimeWrapper = require("../TimeRangePicker/TimeRangePickerTimeWrapper");
|
|
27
27
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
28
|
+
const STEPS = [{
|
|
29
|
+
views: null,
|
|
30
|
+
rangePosition: 'start'
|
|
31
|
+
}, {
|
|
32
|
+
views: null,
|
|
33
|
+
rangePosition: 'end'
|
|
34
|
+
}];
|
|
28
35
|
const rendererInterceptor = function rendererInterceptor(props) {
|
|
29
36
|
const {
|
|
30
37
|
viewRenderers,
|
|
@@ -98,7 +105,8 @@ const MobileTimeRangePicker = exports.MobileTimeRangePicker = /*#__PURE__*/React
|
|
|
98
105
|
valueManager: _valueManagers.rangeValueManager,
|
|
99
106
|
valueType: 'time',
|
|
100
107
|
validator: _validateTimeRange.validateTimeRange,
|
|
101
|
-
rendererInterceptor
|
|
108
|
+
rendererInterceptor,
|
|
109
|
+
steps: STEPS
|
|
102
110
|
});
|
|
103
111
|
return renderPicker();
|
|
104
112
|
});
|
|
@@ -126,7 +126,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
126
126
|
formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
|
|
127
127
|
/**
|
|
128
128
|
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
129
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in
|
|
129
|
+
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
130
130
|
*/
|
|
131
131
|
FormHelperTextProps: _propTypes.default.object,
|
|
132
132
|
/**
|
|
@@ -153,12 +153,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
153
153
|
/**
|
|
154
154
|
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
155
155
|
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
156
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in
|
|
156
|
+
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
157
157
|
*/
|
|
158
158
|
InputLabelProps: _propTypes.default.object,
|
|
159
159
|
/**
|
|
160
160
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
161
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in
|
|
161
|
+
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
162
162
|
*/
|
|
163
163
|
inputProps: _propTypes.default.object,
|
|
164
164
|
/**
|
|
@@ -166,7 +166,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
166
166
|
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
167
167
|
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
168
168
|
* component depending on the `variant` prop value.
|
|
169
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
169
|
+
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
170
170
|
*/
|
|
171
171
|
InputProps: _propTypes.default.object,
|
|
172
172
|
/**
|
|
@@ -136,7 +136,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
136
136
|
formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
|
|
137
137
|
/**
|
|
138
138
|
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
139
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in
|
|
139
|
+
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
140
140
|
*/
|
|
141
141
|
FormHelperTextProps: _propTypes.default.object,
|
|
142
142
|
/**
|
|
@@ -163,12 +163,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
163
163
|
/**
|
|
164
164
|
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
165
165
|
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
166
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in
|
|
166
|
+
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
167
167
|
*/
|
|
168
168
|
InputLabelProps: _propTypes.default.object,
|
|
169
169
|
/**
|
|
170
170
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
171
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in
|
|
171
|
+
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
172
172
|
*/
|
|
173
173
|
inputProps: _propTypes.default.object,
|
|
174
174
|
/**
|
|
@@ -176,7 +176,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
176
176
|
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
177
177
|
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
178
178
|
* component depending on the `variant` prop value.
|
|
179
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
179
|
+
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
180
180
|
*/
|
|
181
181
|
InputProps: _propTypes.default.object,
|
|
182
182
|
/**
|
|
@@ -136,7 +136,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
136
136
|
formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
|
|
137
137
|
/**
|
|
138
138
|
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
139
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in
|
|
139
|
+
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
140
140
|
*/
|
|
141
141
|
FormHelperTextProps: _propTypes.default.object,
|
|
142
142
|
/**
|
|
@@ -163,12 +163,12 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
163
163
|
/**
|
|
164
164
|
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
165
165
|
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
166
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in
|
|
166
|
+
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
167
167
|
*/
|
|
168
168
|
InputLabelProps: _propTypes.default.object,
|
|
169
169
|
/**
|
|
170
170
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
171
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in
|
|
171
|
+
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
172
172
|
*/
|
|
173
173
|
inputProps: _propTypes.default.object,
|
|
174
174
|
/**
|
|
@@ -176,7 +176,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
176
176
|
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
177
177
|
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
178
178
|
* component depending on the `variant` prop value.
|
|
179
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
179
|
+
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
180
180
|
*/
|
|
181
181
|
InputProps: _propTypes.default.object,
|
|
182
182
|
/**
|
|
@@ -52,7 +52,8 @@ const StaticDateRangePicker = exports.StaticDateRangePicker = /*#__PURE__*/React
|
|
|
52
52
|
props,
|
|
53
53
|
valueManager: _valueManagers.rangeValueManager,
|
|
54
54
|
valueType: 'date',
|
|
55
|
-
validator: _validation.validateDateRange
|
|
55
|
+
validator: _validation.validateDateRange,
|
|
56
|
+
steps: null
|
|
56
57
|
});
|
|
57
58
|
return renderPicker();
|
|
58
59
|
});
|
|
@@ -60,7 +60,8 @@ const DesktopDateRangePicker = /*#__PURE__*/React.forwardRef(function DesktopDat
|
|
|
60
60
|
props,
|
|
61
61
|
valueManager: rangeValueManager,
|
|
62
62
|
valueType: 'date',
|
|
63
|
-
validator: validateDateRange
|
|
63
|
+
validator: validateDateRange,
|
|
64
|
+
steps: null
|
|
64
65
|
});
|
|
65
66
|
return renderPicker();
|
|
66
67
|
});
|
|
@@ -24,6 +24,13 @@ import { DateTimeRangePickerTimeWrapper } from "../DateTimeRangePicker/DateTimeR
|
|
|
24
24
|
import { RANGE_VIEW_HEIGHT } from "../internals/constants/dimensions.js";
|
|
25
25
|
import { usePickerRangePositionContext } from "../hooks/index.js";
|
|
26
26
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
+
const STEPS = [{
|
|
28
|
+
views: null,
|
|
29
|
+
rangePosition: 'start'
|
|
30
|
+
}, {
|
|
31
|
+
views: null,
|
|
32
|
+
rangePosition: 'end'
|
|
33
|
+
}];
|
|
27
34
|
const rendererInterceptor = function RendererInterceptor(props) {
|
|
28
35
|
const {
|
|
29
36
|
viewRenderers,
|
|
@@ -128,7 +135,8 @@ const DesktopDateTimeRangePicker = /*#__PURE__*/React.forwardRef(function Deskto
|
|
|
128
135
|
valueManager: rangeValueManager,
|
|
129
136
|
valueType: 'date-time',
|
|
130
137
|
validator: validateDateTimeRange,
|
|
131
|
-
rendererInterceptor
|
|
138
|
+
rendererInterceptor,
|
|
139
|
+
steps: STEPS
|
|
132
140
|
});
|
|
133
141
|
return renderPicker();
|
|
134
142
|
});
|
|
@@ -20,6 +20,13 @@ import { validateTimeRange } from "../validation/validateTimeRange.js";
|
|
|
20
20
|
import { RANGE_VIEW_HEIGHT } from "../internals/constants/dimensions.js";
|
|
21
21
|
import { TimeRangePickerTimeWrapper } from "../TimeRangePicker/TimeRangePickerTimeWrapper.js";
|
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
+
const STEPS = [{
|
|
24
|
+
views: null,
|
|
25
|
+
rangePosition: 'start'
|
|
26
|
+
}, {
|
|
27
|
+
views: null,
|
|
28
|
+
rangePosition: 'end'
|
|
29
|
+
}];
|
|
23
30
|
const rendererInterceptor = function RendererInterceptor(props) {
|
|
24
31
|
const {
|
|
25
32
|
viewRenderers,
|
|
@@ -101,7 +108,8 @@ const DesktopTimeRangePicker = /*#__PURE__*/React.forwardRef(function DesktopTim
|
|
|
101
108
|
valueManager: rangeValueManager,
|
|
102
109
|
valueType: 'time',
|
|
103
110
|
validator: validateTimeRange,
|
|
104
|
-
rendererInterceptor
|
|
111
|
+
rendererInterceptor,
|
|
112
|
+
steps: STEPS
|
|
105
113
|
});
|
|
106
114
|
return renderPicker();
|
|
107
115
|
});
|
|
@@ -57,7 +57,8 @@ const MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateR
|
|
|
57
57
|
props,
|
|
58
58
|
valueManager: rangeValueManager,
|
|
59
59
|
valueType: 'date',
|
|
60
|
-
validator: validateDateRange
|
|
60
|
+
validator: validateDateRange,
|
|
61
|
+
steps: null
|
|
61
62
|
});
|
|
62
63
|
return renderPicker();
|
|
63
64
|
});
|
|
@@ -6,7 +6,7 @@ const _excluded = ["view", "openTo"];
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { refType } from '@mui/utils';
|
|
9
|
-
import { DIALOG_WIDTH, VIEW_HEIGHT, isInternalTimeView, isDatePickerView, resolveDateTimeFormat, useUtils } from '@mui/x-date-pickers/internals';
|
|
9
|
+
import { DIALOG_WIDTH, VIEW_HEIGHT, isInternalTimeView, isDatePickerView, resolveDateTimeFormat, useUtils, TIME_VIEWS } from '@mui/x-date-pickers/internals';
|
|
10
10
|
import { extractValidationProps } from '@mui/x-date-pickers/validation';
|
|
11
11
|
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
12
12
|
import { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from '@mui/x-date-pickers/timeViewRenderers';
|
|
@@ -22,6 +22,19 @@ import { DateTimeRangePickerTimeWrapper } from "../DateTimeRangePicker/DateTimeR
|
|
|
22
22
|
import { RANGE_VIEW_HEIGHT } from "../internals/constants/dimensions.js";
|
|
23
23
|
import { usePickerRangePositionContext } from "../hooks/index.js";
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
+
const STEPS = [{
|
|
26
|
+
views: ['day'],
|
|
27
|
+
rangePosition: 'start'
|
|
28
|
+
}, {
|
|
29
|
+
views: TIME_VIEWS,
|
|
30
|
+
rangePosition: 'start'
|
|
31
|
+
}, {
|
|
32
|
+
views: ['day'],
|
|
33
|
+
rangePosition: 'end'
|
|
34
|
+
}, {
|
|
35
|
+
views: TIME_VIEWS,
|
|
36
|
+
rangePosition: 'end'
|
|
37
|
+
}];
|
|
25
38
|
const rendererInterceptor = function RendererInterceptor(props) {
|
|
26
39
|
const {
|
|
27
40
|
viewRenderers,
|
|
@@ -133,7 +146,8 @@ const MobileDateTimeRangePicker = /*#__PURE__*/React.forwardRef(function MobileD
|
|
|
133
146
|
valueManager: rangeValueManager,
|
|
134
147
|
valueType: 'date-time',
|
|
135
148
|
validator: validateDateTimeRange,
|
|
136
|
-
rendererInterceptor
|
|
149
|
+
rendererInterceptor,
|
|
150
|
+
steps: STEPS
|
|
137
151
|
});
|
|
138
152
|
return renderPicker();
|
|
139
153
|
});
|
|
@@ -18,6 +18,13 @@ import { validateTimeRange } from "../validation/validateTimeRange.js";
|
|
|
18
18
|
import { RANGE_VIEW_HEIGHT } from "../internals/constants/dimensions.js";
|
|
19
19
|
import { TimeRangePickerTimeWrapper } from "../TimeRangePicker/TimeRangePickerTimeWrapper.js";
|
|
20
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
+
const STEPS = [{
|
|
22
|
+
views: null,
|
|
23
|
+
rangePosition: 'start'
|
|
24
|
+
}, {
|
|
25
|
+
views: null,
|
|
26
|
+
rangePosition: 'end'
|
|
27
|
+
}];
|
|
21
28
|
const rendererInterceptor = function rendererInterceptor(props) {
|
|
22
29
|
const {
|
|
23
30
|
viewRenderers,
|
|
@@ -91,7 +98,8 @@ const MobileTimeRangePicker = /*#__PURE__*/React.forwardRef(function MobileTimeR
|
|
|
91
98
|
valueManager: rangeValueManager,
|
|
92
99
|
valueType: 'time',
|
|
93
100
|
validator: validateTimeRange,
|
|
94
|
-
rendererInterceptor
|
|
101
|
+
rendererInterceptor,
|
|
102
|
+
steps: STEPS
|
|
95
103
|
});
|
|
96
104
|
return renderPicker();
|
|
97
105
|
});
|
|
@@ -119,7 +119,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
119
119
|
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
120
120
|
/**
|
|
121
121
|
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
122
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in
|
|
122
|
+
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
123
123
|
*/
|
|
124
124
|
FormHelperTextProps: PropTypes.object,
|
|
125
125
|
/**
|
|
@@ -146,12 +146,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
146
146
|
/**
|
|
147
147
|
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
148
148
|
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
149
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in
|
|
149
|
+
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
150
150
|
*/
|
|
151
151
|
InputLabelProps: PropTypes.object,
|
|
152
152
|
/**
|
|
153
153
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
154
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in
|
|
154
|
+
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
155
155
|
*/
|
|
156
156
|
inputProps: PropTypes.object,
|
|
157
157
|
/**
|
|
@@ -159,7 +159,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
159
159
|
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
160
160
|
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
161
161
|
* component depending on the `variant` prop value.
|
|
162
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
162
|
+
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
163
163
|
*/
|
|
164
164
|
InputProps: PropTypes.object,
|
|
165
165
|
/**
|
|
@@ -129,7 +129,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
129
129
|
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
130
130
|
/**
|
|
131
131
|
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
132
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in
|
|
132
|
+
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
133
133
|
*/
|
|
134
134
|
FormHelperTextProps: PropTypes.object,
|
|
135
135
|
/**
|
|
@@ -156,12 +156,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
156
156
|
/**
|
|
157
157
|
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
158
158
|
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
159
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in
|
|
159
|
+
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
160
160
|
*/
|
|
161
161
|
InputLabelProps: PropTypes.object,
|
|
162
162
|
/**
|
|
163
163
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
164
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in
|
|
164
|
+
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
165
165
|
*/
|
|
166
166
|
inputProps: PropTypes.object,
|
|
167
167
|
/**
|
|
@@ -169,7 +169,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
169
169
|
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
170
170
|
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
171
171
|
* component depending on the `variant` prop value.
|
|
172
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
172
|
+
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
173
173
|
*/
|
|
174
174
|
InputProps: PropTypes.object,
|
|
175
175
|
/**
|
|
@@ -129,7 +129,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
129
129
|
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
130
130
|
/**
|
|
131
131
|
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
132
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in
|
|
132
|
+
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
133
133
|
*/
|
|
134
134
|
FormHelperTextProps: PropTypes.object,
|
|
135
135
|
/**
|
|
@@ -156,12 +156,12 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
156
156
|
/**
|
|
157
157
|
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
158
158
|
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
159
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in
|
|
159
|
+
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
160
160
|
*/
|
|
161
161
|
InputLabelProps: PropTypes.object,
|
|
162
162
|
/**
|
|
163
163
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
164
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in
|
|
164
|
+
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
165
165
|
*/
|
|
166
166
|
inputProps: PropTypes.object,
|
|
167
167
|
/**
|
|
@@ -169,7 +169,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
169
169
|
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
170
170
|
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
171
171
|
* component depending on the `variant` prop value.
|
|
172
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
172
|
+
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
173
173
|
*/
|
|
174
174
|
InputProps: PropTypes.object,
|
|
175
175
|
/**
|
|
@@ -45,7 +45,8 @@ const StaticDateRangePicker = /*#__PURE__*/React.forwardRef(function StaticDateR
|
|
|
45
45
|
props,
|
|
46
46
|
valueManager: rangeValueManager,
|
|
47
47
|
valueType: 'date',
|
|
48
|
-
validator: validateDateRange
|
|
48
|
+
validator: validateDateRange,
|
|
49
|
+
steps: null
|
|
49
50
|
});
|
|
50
51
|
return renderPicker();
|
|
51
52
|
});
|