@mui/x-date-pickers-pro 9.0.0-rc.0 → 9.0.2

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 (26) hide show
  1. package/CHANGELOG.md +328 -6892
  2. package/DateRangeCalendar/DateRangeCalendar.js +2 -2
  3. package/DateRangeCalendar/DateRangeCalendar.mjs +2 -2
  4. package/DateRangePickerDay/DateRangePickerDay.js +2 -2
  5. package/DateRangePickerDay/DateRangePickerDay.mjs +2 -2
  6. package/SingleInputDateRangeField/SingleInputDateRangeField.js +6 -24
  7. package/SingleInputDateRangeField/SingleInputDateRangeField.mjs +6 -24
  8. package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.mts +1 -1
  9. package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +1 -1
  10. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +6 -24
  11. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.mjs +6 -24
  12. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.mts +1 -1
  13. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +1 -1
  14. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +6 -24
  15. package/SingleInputTimeRangeField/SingleInputTimeRangeField.mjs +6 -24
  16. package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.mts +1 -1
  17. package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +1 -1
  18. package/index.js +1 -1
  19. package/index.mjs +1 -1
  20. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -2
  21. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.mjs +2 -2
  22. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +2 -2
  23. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.mjs +2 -2
  24. package/internals/utils/createMultiInputRangeField/useTextFieldProps.js +7 -5
  25. package/internals/utils/createMultiInputRangeField/useTextFieldProps.mjs +7 -5
  26. package/package.json +7 -7
@@ -37,8 +37,8 @@ var _jsxRuntime = require("react/jsx-runtime");
37
37
  const _excluded = ["value", "defaultValue", "referenceDate", "onChange", "className", "classes", "disableFuture", "disablePast", "minDate", "maxDate", "shouldDisableDate", "reduceAnimations", "onMonthChange", "rangePosition", "defaultRangePosition", "onRangePositionChange", "calendars", "currentMonthCalendarPosition", "slots", "slotProps", "loading", "renderLoading", "disableHighlightToday", "focusedView", "onFocusedViewChange", "readOnly", "disabled", "showDaysOutsideCurrentMonth", "dayOfWeekFormatter", "disableAutoMonthSwitching", "autoFocus", "fixedWeekNumber", "disableDragEditing", "displayWeekNumber", "timezone", "availableRangePositions", "views", "view", "openTo", "onViewChange"],
38
38
  _excluded2 = ["isDragging", "rangeDragDay", "draggingDatePosition"];
39
39
  const packageInfo = {
40
- releaseDate: "MTc3NTUyMDAwMDAwMA==",
41
- version: "9.0.0-rc.0",
40
+ releaseDate: "MTc3NjIxMTIwMDAwMA==",
41
+ version: "9.0.2",
42
42
  name: 'x-date-pickers-pro'
43
43
  };
44
44
  const DateRangeCalendarRoot = (0, _styles.styled)('div', {
@@ -30,8 +30,8 @@ import { PickersRangeCalendarHeader } from "../PickersRangeCalendarHeader/index.
30
30
  import { useNullablePickerRangePositionContext } from "../internals/hooks/useNullablePickerRangePositionContext.mjs";
31
31
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
32
32
  const packageInfo = {
33
- releaseDate: "MTc3NTUyMDAwMDAwMA==",
34
- version: "9.0.0-rc.0",
33
+ releaseDate: "MTc3NjIxMTIwMDAwMA==",
34
+ version: "9.0.2",
35
35
  name: 'x-date-pickers-pro'
36
36
  };
37
37
  const DateRangeCalendarRoot = styled('div', {
@@ -322,8 +322,8 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
322
322
  name: 'MuiDateRangePickerDay'
323
323
  });
324
324
  (0, _internals.useLicenseVerifier)({
325
- releaseDate: "MTc3NTUyMDAwMDAwMA==",
326
- version: "9.0.0-rc.0",
325
+ releaseDate: "MTc3NjIxMTIwMDAwMA==",
326
+ version: "9.0.2",
327
327
  name: 'x-date-pickers-pro'
328
328
  });
329
329
  const adapter = (0, _hooks.usePickerAdapter)();
@@ -315,8 +315,8 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
315
315
  name: 'MuiDateRangePickerDay'
316
316
  });
317
317
  useLicenseVerifier({
318
- releaseDate: "MTc3NTUyMDAwMDAwMA==",
319
- version: "9.0.0-rc.0",
318
+ releaseDate: "MTc3NjIxMTIwMDAwMA==",
319
+ version: "9.0.2",
320
320
  name: 'x-date-pickers-pro'
321
321
  });
322
322
  const adapter = usePickerAdapter();
@@ -143,11 +143,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
143
143
  * @default "dense"
144
144
  */
145
145
  formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
146
- /**
147
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
148
- * @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.
149
- */
150
- FormHelperTextProps: _propTypes.default.object,
151
146
  /**
152
147
  * If `true`, the input will take up the full width of its container.
153
148
  * @default false
@@ -168,25 +163,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
168
163
  * The id of the `input` element.
169
164
  */
170
165
  id: _propTypes.default.string,
171
- /**
172
- * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
173
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
174
- * @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.
175
- */
176
- InputLabelProps: _propTypes.default.object,
177
- /**
178
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
179
- * @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.
180
- */
181
- inputProps: _propTypes.default.object,
182
- /**
183
- * Props applied to the Input element.
184
- * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
185
- * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
186
- * component depending on the `variant` prop value.
187
- * @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.
188
- */
189
- InputProps: _propTypes.default.object,
190
166
  /**
191
167
  * Pass a ref to the `input` element.
192
168
  */
@@ -247,6 +223,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
247
223
  * @param {FieldSelectedSections} newValue The new selected sections.
248
224
  */
249
225
  onSelectedSectionsChange: _propTypes.default.func,
226
+ /**
227
+ * The position at which the opening button is placed.
228
+ * If there is no Picker to open, the button is not rendered
229
+ * @default 'end'
230
+ */
231
+ openPickerButtonPosition: _propTypes.default.oneOf(['end', 'start']),
250
232
  /**
251
233
  * If `true`, the component is read-only.
252
234
  * When read-only, the value cannot be changed but the user can interact with the interface.
@@ -136,11 +136,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
136
136
  * @default "dense"
137
137
  */
138
138
  formatDensity: PropTypes.oneOf(['dense', 'spacious']),
139
- /**
140
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
141
- * @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.
142
- */
143
- FormHelperTextProps: PropTypes.object,
144
139
  /**
145
140
  * If `true`, the input will take up the full width of its container.
146
141
  * @default false
@@ -161,25 +156,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
161
156
  * The id of the `input` element.
162
157
  */
163
158
  id: PropTypes.string,
164
- /**
165
- * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
166
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
167
- * @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.
168
- */
169
- InputLabelProps: PropTypes.object,
170
- /**
171
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
172
- * @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.
173
- */
174
- inputProps: PropTypes.object,
175
- /**
176
- * Props applied to the Input element.
177
- * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
178
- * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
179
- * component depending on the `variant` prop value.
180
- * @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.
181
- */
182
- InputProps: PropTypes.object,
183
159
  /**
184
160
  * Pass a ref to the `input` element.
185
161
  */
@@ -240,6 +216,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
240
216
  * @param {FieldSelectedSections} newValue The new selected sections.
241
217
  */
242
218
  onSelectedSectionsChange: PropTypes.func,
219
+ /**
220
+ * The position at which the opening button is placed.
221
+ * If there is no Picker to open, the button is not rendered
222
+ * @default 'end'
223
+ */
224
+ openPickerButtonPosition: PropTypes.oneOf(['end', 'start']),
243
225
  /**
244
226
  * If `true`, the component is read-only.
245
227
  * When read-only, the value cannot be changed but the user can interact with the interface.
@@ -1,7 +1,7 @@
1
1
  import { ExportedPickerFieldUIProps, PickerFieldUISlots, PickerFieldUISlotProps } from '@mui/x-date-pickers/internals';
2
2
  import { BuiltInFieldTextFieldProps } from '@mui/x-date-pickers/models';
3
3
  import { DateRangeManagerFieldInternalProps } from "../managers/useDateRangeManager.mjs";
4
- export interface UseSingleInputDateRangeFieldProps extends DateRangeManagerFieldInternalProps, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
4
+ export interface UseSingleInputDateRangeFieldProps extends DateRangeManagerFieldInternalProps, ExportedPickerFieldUIProps {}
5
5
  export type SingleInputDateRangeFieldProps = Omit<BuiltInFieldTextFieldProps, keyof UseSingleInputDateRangeFieldProps> & UseSingleInputDateRangeFieldProps & {
6
6
  /**
7
7
  * Overridable component slots.
@@ -1,7 +1,7 @@
1
1
  import { ExportedPickerFieldUIProps, PickerFieldUISlots, PickerFieldUISlotProps } from '@mui/x-date-pickers/internals';
2
2
  import { BuiltInFieldTextFieldProps } from '@mui/x-date-pickers/models';
3
3
  import { DateRangeManagerFieldInternalProps } from "../managers/useDateRangeManager.js";
4
- export interface UseSingleInputDateRangeFieldProps extends DateRangeManagerFieldInternalProps, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
4
+ export interface UseSingleInputDateRangeFieldProps extends DateRangeManagerFieldInternalProps, ExportedPickerFieldUIProps {}
5
5
  export type SingleInputDateRangeFieldProps = Omit<BuiltInFieldTextFieldProps, keyof UseSingleInputDateRangeFieldProps> & UseSingleInputDateRangeFieldProps & {
6
6
  /**
7
7
  * Overridable component slots.
@@ -153,11 +153,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
153
153
  * @default "dense"
154
154
  */
155
155
  formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
156
- /**
157
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
158
- * @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.
159
- */
160
- FormHelperTextProps: _propTypes.default.object,
161
156
  /**
162
157
  * If `true`, the input will take up the full width of its container.
163
158
  * @default false
@@ -178,25 +173,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
178
173
  * The id of the `input` element.
179
174
  */
180
175
  id: _propTypes.default.string,
181
- /**
182
- * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
183
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
184
- * @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.
185
- */
186
- InputLabelProps: _propTypes.default.object,
187
- /**
188
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
189
- * @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.
190
- */
191
- inputProps: _propTypes.default.object,
192
- /**
193
- * Props applied to the Input element.
194
- * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
195
- * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
196
- * component depending on the `variant` prop value.
197
- * @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.
198
- */
199
- InputProps: _propTypes.default.object,
200
176
  /**
201
177
  * Pass a ref to the `input` element.
202
178
  */
@@ -280,6 +256,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
280
256
  * @param {FieldSelectedSections} newValue The new selected sections.
281
257
  */
282
258
  onSelectedSectionsChange: _propTypes.default.func,
259
+ /**
260
+ * The position at which the opening button is placed.
261
+ * If there is no Picker to open, the button is not rendered
262
+ * @default 'end'
263
+ */
264
+ openPickerButtonPosition: _propTypes.default.oneOf(['end', 'start']),
283
265
  /**
284
266
  * If `true`, the component is read-only.
285
267
  * When read-only, the value cannot be changed but the user can interact with the interface.
@@ -146,11 +146,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
146
146
  * @default "dense"
147
147
  */
148
148
  formatDensity: PropTypes.oneOf(['dense', 'spacious']),
149
- /**
150
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
151
- * @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.
152
- */
153
- FormHelperTextProps: PropTypes.object,
154
149
  /**
155
150
  * If `true`, the input will take up the full width of its container.
156
151
  * @default false
@@ -171,25 +166,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
171
166
  * The id of the `input` element.
172
167
  */
173
168
  id: PropTypes.string,
174
- /**
175
- * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
176
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
177
- * @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.
178
- */
179
- InputLabelProps: PropTypes.object,
180
- /**
181
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
182
- * @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.
183
- */
184
- inputProps: PropTypes.object,
185
- /**
186
- * Props applied to the Input element.
187
- * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
188
- * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
189
- * component depending on the `variant` prop value.
190
- * @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.
191
- */
192
- InputProps: PropTypes.object,
193
169
  /**
194
170
  * Pass a ref to the `input` element.
195
171
  */
@@ -273,6 +249,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
273
249
  * @param {FieldSelectedSections} newValue The new selected sections.
274
250
  */
275
251
  onSelectedSectionsChange: PropTypes.func,
252
+ /**
253
+ * The position at which the opening button is placed.
254
+ * If there is no Picker to open, the button is not rendered
255
+ * @default 'end'
256
+ */
257
+ openPickerButtonPosition: PropTypes.oneOf(['end', 'start']),
276
258
  /**
277
259
  * If `true`, the component is read-only.
278
260
  * When read-only, the value cannot be changed but the user can interact with the interface.
@@ -1,7 +1,7 @@
1
1
  import { ExportedPickerFieldUIProps, PickerFieldUISlots, PickerFieldUISlotProps } from '@mui/x-date-pickers/internals';
2
2
  import { BuiltInFieldTextFieldProps } from '@mui/x-date-pickers/models';
3
3
  import { DateTimeRangeManagerFieldInternalProps } from "../managers/useDateTimeRangeManager.mjs";
4
- export interface UseSingleInputDateTimeRangeFieldProps extends DateTimeRangeManagerFieldInternalProps, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
4
+ export interface UseSingleInputDateTimeRangeFieldProps extends DateTimeRangeManagerFieldInternalProps, ExportedPickerFieldUIProps {}
5
5
  export type SingleInputDateTimeRangeFieldProps = Omit<BuiltInFieldTextFieldProps, keyof UseSingleInputDateTimeRangeFieldProps> & UseSingleInputDateTimeRangeFieldProps & {
6
6
  /**
7
7
  * Overridable component slots.
@@ -1,7 +1,7 @@
1
1
  import { ExportedPickerFieldUIProps, PickerFieldUISlots, PickerFieldUISlotProps } from '@mui/x-date-pickers/internals';
2
2
  import { BuiltInFieldTextFieldProps } from '@mui/x-date-pickers/models';
3
3
  import { DateTimeRangeManagerFieldInternalProps } from "../managers/useDateTimeRangeManager.js";
4
- export interface UseSingleInputDateTimeRangeFieldProps extends DateTimeRangeManagerFieldInternalProps, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
4
+ export interface UseSingleInputDateTimeRangeFieldProps extends DateTimeRangeManagerFieldInternalProps, ExportedPickerFieldUIProps {}
5
5
  export type SingleInputDateTimeRangeFieldProps = Omit<BuiltInFieldTextFieldProps, keyof UseSingleInputDateTimeRangeFieldProps> & UseSingleInputDateTimeRangeFieldProps & {
6
6
  /**
7
7
  * Overridable component slots.
@@ -153,11 +153,6 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
153
153
  * @default "dense"
154
154
  */
155
155
  formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
156
- /**
157
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
158
- * @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.
159
- */
160
- FormHelperTextProps: _propTypes.default.object,
161
156
  /**
162
157
  * If `true`, the input will take up the full width of its container.
163
158
  * @default false
@@ -178,25 +173,6 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
178
173
  * The id of the `input` element.
179
174
  */
180
175
  id: _propTypes.default.string,
181
- /**
182
- * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
183
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
184
- * @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.
185
- */
186
- InputLabelProps: _propTypes.default.object,
187
- /**
188
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
189
- * @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.
190
- */
191
- inputProps: _propTypes.default.object,
192
- /**
193
- * Props applied to the Input element.
194
- * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
195
- * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
196
- * component depending on the `variant` prop value.
197
- * @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.
198
- */
199
- InputProps: _propTypes.default.object,
200
176
  /**
201
177
  * Pass a ref to the `input` element.
202
178
  */
@@ -262,6 +238,12 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
262
238
  * @param {FieldSelectedSections} newValue The new selected sections.
263
239
  */
264
240
  onSelectedSectionsChange: _propTypes.default.func,
241
+ /**
242
+ * The position at which the opening button is placed.
243
+ * If there is no Picker to open, the button is not rendered
244
+ * @default 'end'
245
+ */
246
+ openPickerButtonPosition: _propTypes.default.oneOf(['end', 'start']),
265
247
  /**
266
248
  * If `true`, the component is read-only.
267
249
  * When read-only, the value cannot be changed but the user can interact with the interface.
@@ -146,11 +146,6 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
146
146
  * @default "dense"
147
147
  */
148
148
  formatDensity: PropTypes.oneOf(['dense', 'spacious']),
149
- /**
150
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
151
- * @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.
152
- */
153
- FormHelperTextProps: PropTypes.object,
154
149
  /**
155
150
  * If `true`, the input will take up the full width of its container.
156
151
  * @default false
@@ -171,25 +166,6 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
171
166
  * The id of the `input` element.
172
167
  */
173
168
  id: PropTypes.string,
174
- /**
175
- * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
176
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
177
- * @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.
178
- */
179
- InputLabelProps: PropTypes.object,
180
- /**
181
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
182
- * @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.
183
- */
184
- inputProps: PropTypes.object,
185
- /**
186
- * Props applied to the Input element.
187
- * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
188
- * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
189
- * component depending on the `variant` prop value.
190
- * @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.
191
- */
192
- InputProps: PropTypes.object,
193
169
  /**
194
170
  * Pass a ref to the `input` element.
195
171
  */
@@ -255,6 +231,12 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
255
231
  * @param {FieldSelectedSections} newValue The new selected sections.
256
232
  */
257
233
  onSelectedSectionsChange: PropTypes.func,
234
+ /**
235
+ * The position at which the opening button is placed.
236
+ * If there is no Picker to open, the button is not rendered
237
+ * @default 'end'
238
+ */
239
+ openPickerButtonPosition: PropTypes.oneOf(['end', 'start']),
258
240
  /**
259
241
  * If `true`, the component is read-only.
260
242
  * When read-only, the value cannot be changed but the user can interact with the interface.
@@ -1,7 +1,7 @@
1
1
  import { ExportedPickerFieldUIProps, PickerFieldUISlots, PickerFieldUISlotProps } from '@mui/x-date-pickers/internals';
2
2
  import { BuiltInFieldTextFieldProps } from '@mui/x-date-pickers/models';
3
3
  import { TimeRangeManagerFieldInternalProps } from "../managers/useTimeRangeManager.mjs";
4
- export interface UseSingleInputTimeRangeFieldProps extends TimeRangeManagerFieldInternalProps, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
4
+ export interface UseSingleInputTimeRangeFieldProps extends TimeRangeManagerFieldInternalProps, ExportedPickerFieldUIProps {}
5
5
  export type SingleInputTimeRangeFieldProps = Omit<BuiltInFieldTextFieldProps, keyof UseSingleInputTimeRangeFieldProps> & UseSingleInputTimeRangeFieldProps & {
6
6
  /**
7
7
  * Overridable component slots.
@@ -1,7 +1,7 @@
1
1
  import { ExportedPickerFieldUIProps, PickerFieldUISlots, PickerFieldUISlotProps } from '@mui/x-date-pickers/internals';
2
2
  import { BuiltInFieldTextFieldProps } from '@mui/x-date-pickers/models';
3
3
  import { TimeRangeManagerFieldInternalProps } from "../managers/useTimeRangeManager.js";
4
- export interface UseSingleInputTimeRangeFieldProps extends TimeRangeManagerFieldInternalProps, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
4
+ export interface UseSingleInputTimeRangeFieldProps extends TimeRangeManagerFieldInternalProps, ExportedPickerFieldUIProps {}
5
5
  export type SingleInputTimeRangeFieldProps = Omit<BuiltInFieldTextFieldProps, keyof UseSingleInputTimeRangeFieldProps> & UseSingleInputTimeRangeFieldProps & {
6
6
  /**
7
7
  * Overridable component slots.
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v9.0.0-rc.0
2
+ * @mui/x-date-pickers-pro v9.0.2
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v9.0.0-rc.0
2
+ * @mui/x-date-pickers-pro v9.0.2
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
@@ -26,8 +26,8 @@ const useDesktopRangePicker = _ref => {
26
26
  } = _ref,
27
27
  pickerParams = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
28
28
  (0, _internals.useLicenseVerifier)({
29
- releaseDate: "MTc3NTUyMDAwMDAwMA==",
30
- version: "9.0.0-rc.0",
29
+ releaseDate: "MTc3NjIxMTIwMDAwMA==",
30
+ version: "9.0.2",
31
31
  name: 'x-date-pickers-pro'
32
32
  });
33
33
  const {
@@ -19,8 +19,8 @@ export const useDesktopRangePicker = _ref => {
19
19
  } = _ref,
20
20
  pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
21
21
  useLicenseVerifier({
22
- releaseDate: "MTc3NTUyMDAwMDAwMA==",
23
- version: "9.0.0-rc.0",
22
+ releaseDate: "MTc3NjIxMTIwMDAwMA==",
23
+ version: "9.0.2",
24
24
  name: 'x-date-pickers-pro'
25
25
  });
26
26
  const {
@@ -28,8 +28,8 @@ const useMobileRangePicker = _ref => {
28
28
  } = _ref,
29
29
  pickerParams = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
30
30
  (0, _internals.useLicenseVerifier)({
31
- releaseDate: "MTc3NTUyMDAwMDAwMA==",
32
- version: "9.0.0-rc.0",
31
+ releaseDate: "MTc3NjIxMTIwMDAwMA==",
32
+ version: "9.0.2",
33
33
  name: 'x-date-pickers-pro'
34
34
  });
35
35
  const {
@@ -21,8 +21,8 @@ export const useMobileRangePicker = _ref => {
21
21
  } = _ref,
22
22
  pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
23
23
  useLicenseVerifier({
24
- releaseDate: "MTc3NTUyMDAwMDAwMA==",
25
- version: "9.0.0-rc.0",
24
+ releaseDate: "MTc3NjIxMTIwMDAwMA==",
25
+ version: "9.0.2",
26
26
  name: 'x-date-pickers-pro'
27
27
  });
28
28
  const {
@@ -36,18 +36,20 @@ function useTextFieldProps({
36
36
  position
37
37
  })
38
38
  });
39
- if (!textFieldProps.InputProps) {
40
- textFieldProps.InputProps = {};
39
+ if (!textFieldProps.slotProps) {
40
+ textFieldProps.slotProps = {};
41
41
  }
42
+ const inputSlotProps = (0, _extends2.default)({}, textFieldProps.slotProps.input);
42
43
  if (pickerContext) {
43
44
  if (!allowTriggerShifting) {
44
45
  if (position === 'start') {
45
- textFieldProps.InputProps.ref = pickerContext.triggerRef;
46
+ inputSlotProps.ref = pickerContext.triggerRef;
46
47
  }
47
48
  } else if (rangePositionContext?.rangePosition === position) {
48
- textFieldProps.InputProps.ref = pickerContext.triggerRef;
49
+ inputSlotProps.ref = pickerContext.triggerRef;
49
50
  }
50
51
  }
51
- textFieldProps.InputProps['data-multi-input'] = position;
52
+ inputSlotProps['data-multi-input'] = position;
53
+ textFieldProps.slotProps.input = inputSlotProps;
52
54
  return textFieldProps;
53
55
  }
@@ -29,18 +29,20 @@ export function useTextFieldProps({
29
29
  position
30
30
  })
31
31
  });
32
- if (!textFieldProps.InputProps) {
33
- textFieldProps.InputProps = {};
32
+ if (!textFieldProps.slotProps) {
33
+ textFieldProps.slotProps = {};
34
34
  }
35
+ const inputSlotProps = _extends({}, textFieldProps.slotProps.input);
35
36
  if (pickerContext) {
36
37
  if (!allowTriggerShifting) {
37
38
  if (position === 'start') {
38
- textFieldProps.InputProps.ref = pickerContext.triggerRef;
39
+ inputSlotProps.ref = pickerContext.triggerRef;
39
40
  }
40
41
  } else if (rangePositionContext?.rangePosition === position) {
41
- textFieldProps.InputProps.ref = pickerContext.triggerRef;
42
+ inputSlotProps.ref = pickerContext.triggerRef;
42
43
  }
43
44
  }
44
- textFieldProps.InputProps['data-multi-input'] = position;
45
+ inputSlotProps['data-multi-input'] = position;
46
+ textFieldProps.slotProps.input = inputSlotProps;
45
47
  return textFieldProps;
46
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers-pro",
3
- "version": "9.0.0-rc.0",
3
+ "version": "9.0.2",
4
4
  "author": "MUI Team",
5
5
  "description": "The Pro plan edition of the MUI X Date and Time Picker components.",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -31,19 +31,19 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.28.6",
34
- "@mui/utils": "9.0.0-beta.1",
34
+ "@mui/utils": "9.0.0",
35
35
  "clsx": "^2.1.1",
36
36
  "prop-types": "^15.8.1",
37
37
  "react-transition-group": "^4.4.5",
38
- "@mui/x-internals": "9.0.0-rc.0",
39
- "@mui/x-date-pickers": "9.0.0-rc.0",
40
- "@mui/x-license": "9.0.0-rc.0"
38
+ "@mui/x-date-pickers": "^9.0.2",
39
+ "@mui/x-license": "^9.0.2",
40
+ "@mui/x-internals": "^9.0.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@emotion/react": "^11.9.0",
44
44
  "@emotion/styled": "^11.8.1",
45
- "@mui/material": "^7.3.0 || ^9.0.0-beta.0 || ^9.0.0",
46
- "@mui/system": "^7.3.0 || ^9.0.0-beta.1",
45
+ "@mui/material": "^7.3.0 || ^9.0.0",
46
+ "@mui/system": "^7.3.0 || ^9.0.0",
47
47
  "date-fns": "^2.25.0 || ^3.2.0 || ^4.0.0",
48
48
  "date-fns-jalali": "^2.13.0-0 || ^3.2.0-0 || ^4.0.0-0",
49
49
  "dayjs": "^1.10.7",