@mui/x-date-pickers 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 (44) hide show
  1. package/CHANGELOG.md +328 -6892
  2. package/DateField/DateField.js +0 -24
  3. package/DateField/DateField.mjs +0 -24
  4. package/DateTimeField/DateTimeField.js +0 -24
  5. package/DateTimeField/DateTimeField.mjs +0 -24
  6. package/LocalizationProvider/LocalizationProvider.d.mts +0 -6
  7. package/LocalizationProvider/LocalizationProvider.d.ts +0 -6
  8. package/LocalizationProvider/LocalizationProvider.js +1 -10
  9. package/LocalizationProvider/LocalizationProvider.mjs +0 -9
  10. package/LocalizationProvider/index.d.mts +1 -1
  11. package/LocalizationProvider/index.d.ts +1 -1
  12. package/LocalizationProvider/index.js +0 -6
  13. package/LocalizationProvider/index.mjs +1 -1
  14. package/PickersTextField/PickersFilledInput/PickersFilledInput.js +14 -19
  15. package/PickersTextField/PickersFilledInput/PickersFilledInput.mjs +14 -19
  16. package/PickersTextField/PickersInput/PickersInput.js +12 -17
  17. package/PickersTextField/PickersInput/PickersInput.mjs +12 -17
  18. package/PickersTextField/PickersInputBase/PickersInputBase.js +16 -12
  19. package/PickersTextField/PickersInputBase/PickersInputBase.mjs +16 -12
  20. package/PickersTextField/PickersInputBase/PickersInputBase.types.d.mts +34 -17
  21. package/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +34 -17
  22. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +10 -14
  23. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.mjs +10 -14
  24. package/PickersTextField/PickersTextField.js +68 -55
  25. package/PickersTextField/PickersTextField.mjs +68 -55
  26. package/PickersTextField/PickersTextField.types.d.mts +52 -40
  27. package/PickersTextField/PickersTextField.types.d.ts +52 -40
  28. package/PickersTextField/index.d.mts +1 -1
  29. package/PickersTextField/index.d.ts +1 -1
  30. package/TimeField/TimeField.js +1 -25
  31. package/TimeField/TimeField.mjs +1 -25
  32. package/index.js +1 -1
  33. package/index.mjs +1 -1
  34. package/internals/components/PickerFieldUI.d.mts +4 -20
  35. package/internals/components/PickerFieldUI.d.ts +4 -20
  36. package/internals/components/PickerFieldUI.js +57 -49
  37. package/internals/components/PickerFieldUI.mjs +57 -49
  38. package/internals/hooks/useField/useField.js +15 -2
  39. package/internals/hooks/useField/useField.mjs +15 -2
  40. package/internals/hooks/useField/useField.utils.js +3 -9
  41. package/internals/hooks/useField/useField.utils.mjs +3 -9
  42. package/models/fields.d.mts +1 -1
  43. package/models/fields.d.ts +1 -1
  44. package/package.json +125 -125
@@ -137,11 +137,6 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
137
137
  * @default "dense"
138
138
  */
139
139
  formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
140
- /**
141
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
142
- * @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.
143
- */
144
- FormHelperTextProps: _propTypes.default.object,
145
140
  /**
146
141
  * If `true`, the input will take up the full width of its container.
147
142
  * @default false
@@ -162,25 +157,6 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
162
157
  * The id of the `input` element.
163
158
  */
164
159
  id: _propTypes.default.string,
165
- /**
166
- * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
167
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
168
- * @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.
169
- */
170
- InputLabelProps: _propTypes.default.object,
171
- /**
172
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
173
- * @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.
174
- */
175
- inputProps: _propTypes.default.object,
176
- /**
177
- * Props applied to the Input element.
178
- * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
179
- * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
180
- * component depending on the `variant` prop value.
181
- * @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.
182
- */
183
- InputProps: _propTypes.default.object,
184
160
  /**
185
161
  * Pass a ref to the `input` element.
186
162
  */
@@ -130,11 +130,6 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
130
130
  * @default "dense"
131
131
  */
132
132
  formatDensity: PropTypes.oneOf(['dense', 'spacious']),
133
- /**
134
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
135
- * @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.
136
- */
137
- FormHelperTextProps: PropTypes.object,
138
133
  /**
139
134
  * If `true`, the input will take up the full width of its container.
140
135
  * @default false
@@ -155,25 +150,6 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
155
150
  * The id of the `input` element.
156
151
  */
157
152
  id: PropTypes.string,
158
- /**
159
- * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
160
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
161
- * @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.
162
- */
163
- InputLabelProps: PropTypes.object,
164
- /**
165
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
166
- * @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.
167
- */
168
- inputProps: PropTypes.object,
169
- /**
170
- * Props applied to the Input element.
171
- * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
172
- * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
173
- * component depending on the `variant` prop value.
174
- * @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.
175
- */
176
- InputProps: PropTypes.object,
177
153
  /**
178
154
  * Pass a ref to the `input` element.
179
155
  */
@@ -147,11 +147,6 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
147
147
  * @default "dense"
148
148
  */
149
149
  formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
150
- /**
151
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
152
- * @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.
153
- */
154
- FormHelperTextProps: _propTypes.default.object,
155
150
  /**
156
151
  * If `true`, the input will take up the full width of its container.
157
152
  * @default false
@@ -172,25 +167,6 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
172
167
  * The id of the `input` element.
173
168
  */
174
169
  id: _propTypes.default.string,
175
- /**
176
- * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
177
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
178
- * @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.
179
- */
180
- InputLabelProps: _propTypes.default.object,
181
- /**
182
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
183
- * @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.
184
- */
185
- inputProps: _propTypes.default.object,
186
- /**
187
- * Props applied to the Input element.
188
- * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
189
- * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
190
- * component depending on the `variant` prop value.
191
- * @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.
192
- */
193
- InputProps: _propTypes.default.object,
194
170
  /**
195
171
  * Pass a ref to the `input` element.
196
172
  */
@@ -140,11 +140,6 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
140
140
  * @default "dense"
141
141
  */
142
142
  formatDensity: PropTypes.oneOf(['dense', 'spacious']),
143
- /**
144
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
145
- * @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.
146
- */
147
- FormHelperTextProps: PropTypes.object,
148
143
  /**
149
144
  * If `true`, the input will take up the full width of its container.
150
145
  * @default false
@@ -165,25 +160,6 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
165
160
  * The id of the `input` element.
166
161
  */
167
162
  id: PropTypes.string,
168
- /**
169
- * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
170
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
171
- * @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.
172
- */
173
- InputLabelProps: PropTypes.object,
174
- /**
175
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
176
- * @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.
177
- */
178
- inputProps: PropTypes.object,
179
- /**
180
- * Props applied to the Input element.
181
- * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
182
- * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
183
- * component depending on the `variant` prop value.
184
- * @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.
185
- */
186
- InputProps: PropTypes.object,
187
163
  /**
188
164
  * Pass a ref to the `input` element.
189
165
  */
@@ -6,17 +6,11 @@ export interface PickersAdapterContextValue {
6
6
  minDate: PickerValidDate;
7
7
  maxDate: PickerValidDate;
8
8
  };
9
- utils: MuiPickersAdapter;
10
9
  adapter: MuiPickersAdapter;
11
10
  localeText: PickersInputLocaleText | undefined;
12
11
  }
13
12
  export type PickerAdapterContextNullableValue = { [K in keyof PickersAdapterContextValue]: PickersAdapterContextValue[K] | null };
14
13
  export declare const PickerAdapterContext: React.Context<PickerAdapterContextNullableValue | null>;
15
- /**
16
- * The context that provides the date adapter and default dates to the pickers.
17
- * @deprecated Use `usePickersAdapter` hook if you need access to the adapter instead.
18
- */
19
- export declare const MuiPickersAdapterContext: React.Context<PickerAdapterContextNullableValue | null>;
20
14
  export interface LocalizationProviderProps<TLocale> {
21
15
  children?: React.ReactNode;
22
16
  /**
@@ -6,17 +6,11 @@ export interface PickersAdapterContextValue {
6
6
  minDate: PickerValidDate;
7
7
  maxDate: PickerValidDate;
8
8
  };
9
- utils: MuiPickersAdapter;
10
9
  adapter: MuiPickersAdapter;
11
10
  localeText: PickersInputLocaleText | undefined;
12
11
  }
13
12
  export type PickerAdapterContextNullableValue = { [K in keyof PickersAdapterContextValue]: PickersAdapterContextValue[K] | null };
14
13
  export declare const PickerAdapterContext: React.Context<PickerAdapterContextNullableValue | null>;
15
- /**
16
- * The context that provides the date adapter and default dates to the pickers.
17
- * @deprecated Use `usePickersAdapter` hook if you need access to the adapter instead.
18
- */
19
- export declare const MuiPickersAdapterContext: React.Context<PickerAdapterContextNullableValue | null>;
20
14
  export interface LocalizationProviderProps<TLocale> {
21
15
  children?: React.ReactNode;
22
16
  /**
@@ -6,7 +6,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
6
6
  Object.defineProperty(exports, "__esModule", {
7
7
  value: true
8
8
  });
9
- exports.PickerAdapterContext = exports.MuiPickersAdapterContext = exports.LocalizationProvider = void 0;
9
+ exports.PickerAdapterContext = exports.LocalizationProvider = void 0;
10
10
  var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
11
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
12
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
@@ -16,14 +16,7 @@ var _styles = require("@mui/material/styles");
16
16
  var _jsxRuntime = require("react/jsx-runtime");
17
17
  const _excluded = ["localeText"];
18
18
  const PickerAdapterContext = exports.PickerAdapterContext = /*#__PURE__*/React.createContext(null);
19
-
20
- // TODO v9: Remove this public export
21
- /**
22
- * The context that provides the date adapter and default dates to the pickers.
23
- * @deprecated Use `usePickersAdapter` hook if you need access to the adapter instead.
24
- */
25
19
  if (process.env.NODE_ENV !== "production") PickerAdapterContext.displayName = "PickerAdapterContext";
26
- const MuiPickersAdapterContext = exports.MuiPickersAdapterContext = PickerAdapterContext;
27
20
  /**
28
21
  * Demos:
29
22
  *
@@ -45,7 +38,6 @@ const LocalizationProvider = exports.LocalizationProvider = function Localizatio
45
38
  adapter: parentAdapter,
46
39
  localeText: parentLocaleText
47
40
  } = React.useContext(PickerAdapterContext) ?? {
48
- utils: undefined,
49
41
  adapter: undefined,
50
42
  localeText: undefined
51
43
  };
@@ -92,7 +84,6 @@ const LocalizationProvider = exports.LocalizationProvider = function Localizatio
92
84
  }, [adapter]);
93
85
  const contextValue = React.useMemo(() => {
94
86
  return {
95
- utils: adapter,
96
87
  adapter,
97
88
  defaultDates,
98
89
  localeText
@@ -9,14 +9,7 @@ import PropTypes from 'prop-types';
9
9
  import { useThemeProps } from '@mui/material/styles';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  export const PickerAdapterContext = /*#__PURE__*/React.createContext(null);
12
-
13
- // TODO v9: Remove this public export
14
- /**
15
- * The context that provides the date adapter and default dates to the pickers.
16
- * @deprecated Use `usePickersAdapter` hook if you need access to the adapter instead.
17
- */
18
12
  if (process.env.NODE_ENV !== "production") PickerAdapterContext.displayName = "PickerAdapterContext";
19
- export const MuiPickersAdapterContext = PickerAdapterContext;
20
13
  /**
21
14
  * Demos:
22
15
  *
@@ -38,7 +31,6 @@ export const LocalizationProvider = function LocalizationProvider(inProps) {
38
31
  adapter: parentAdapter,
39
32
  localeText: parentLocaleText
40
33
  } = React.useContext(PickerAdapterContext) ?? {
41
- utils: undefined,
42
34
  adapter: undefined,
43
35
  localeText: undefined
44
36
  };
@@ -85,7 +77,6 @@ export const LocalizationProvider = function LocalizationProvider(inProps) {
85
77
  }, [adapter]);
86
78
  const contextValue = React.useMemo(() => {
87
79
  return {
88
- utils: adapter,
89
80
  adapter,
90
81
  defaultDates,
91
82
  localeText
@@ -1,2 +1,2 @@
1
- export { LocalizationProvider, MuiPickersAdapterContext } from "./LocalizationProvider.mjs";
1
+ export { LocalizationProvider } from "./LocalizationProvider.mjs";
2
2
  export type { LocalizationProviderProps } from "./LocalizationProvider.mjs";
@@ -1,2 +1,2 @@
1
- export { LocalizationProvider, MuiPickersAdapterContext } from "./LocalizationProvider.js";
1
+ export { LocalizationProvider } from "./LocalizationProvider.js";
2
2
  export type { LocalizationProviderProps } from "./LocalizationProvider.js";
@@ -9,10 +9,4 @@ Object.defineProperty(exports, "LocalizationProvider", {
9
9
  return _LocalizationProvider.LocalizationProvider;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "MuiPickersAdapterContext", {
13
- enumerable: true,
14
- get: function () {
15
- return _LocalizationProvider.MuiPickersAdapterContext;
16
- }
17
- });
18
12
  var _LocalizationProvider = require("./LocalizationProvider");
@@ -1 +1 @@
1
- export { LocalizationProvider, MuiPickersAdapterContext } from "./LocalizationProvider.mjs";
1
+ export { LocalizationProvider } from "./LocalizationProvider.mjs";
@@ -20,7 +20,7 @@ var _PickersInputBase = require("../PickersInputBase");
20
20
  var _PickersInputBase2 = require("../PickersInputBase/PickersInputBase");
21
21
  var _usePickerTextFieldOwnerState = require("../usePickerTextFieldOwnerState");
22
22
  var _jsxRuntime = require("react/jsx-runtime");
23
- const _excluded = ["label", "autoFocus", "disableUnderline", "hiddenLabel", "classes"];
23
+ const _excluded = ["label", "autoFocus", "disableUnderline", "hiddenLabel", "classes", "slots", "slotProps"];
24
24
  const PickersFilledInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersInputBaseRoot, {
25
25
  name: 'MuiPickersFilledInput',
26
26
  slot: 'Root',
@@ -207,7 +207,9 @@ const PickersFilledInput = exports.PickersFilledInput = /*#__PURE__*/React.forwa
207
207
  label,
208
208
  disableUnderline = false,
209
209
  hiddenLabel = false,
210
- classes: classesProp
210
+ classes: classesProp,
211
+ slots: inSlots,
212
+ slotProps: inSlotProps
211
213
  } = props,
212
214
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
213
215
  const pickerTextFieldOwnerState = (0, _usePickerTextFieldOwnerState.usePickerTextFieldOwnerState)();
@@ -215,20 +217,19 @@ const PickersFilledInput = exports.PickersFilledInput = /*#__PURE__*/React.forwa
215
217
  inputHasUnderline: !disableUnderline
216
218
  });
217
219
  const classes = useUtilityClasses(classesProp, ownerState);
218
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersInputBase.PickersInputBase, (0, _extends2.default)({
219
- slots: {
220
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersInputBase.PickersInputBase, (0, _extends2.default)({}, other, {
221
+ slots: (0, _extends2.default)({
220
222
  root: PickersFilledInputRoot,
221
223
  input: PickersFilledSectionsContainer
222
- },
223
- slotProps: {
224
- root: {
224
+ }, inSlots),
225
+ slotProps: (0, _extends2.default)({}, inSlotProps, {
226
+ root: (0, _extends2.default)({
225
227
  disableUnderline
226
- },
227
- input: {
228
+ }, inSlotProps?.root),
229
+ input: (0, _extends2.default)({
228
230
  hiddenLabel
229
- }
230
- }
231
- }, other, {
231
+ }, inSlotProps?.input)
232
+ }),
232
233
  label: label,
233
234
  classes: classes,
234
235
  ref: ref,
@@ -247,8 +248,8 @@ process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
247
248
  * For a range value, it means that `value === [null, null]`
248
249
  */
249
250
  areAllSectionsEmpty: _propTypes.default.bool.isRequired,
251
+ classes: _propTypes.default.object,
250
252
  className: _propTypes.default.string,
251
- component: _propTypes.default.elementType,
252
253
  /**
253
254
  * If true, the whole element is editable.
254
255
  * Useful when all the sections are selected.
@@ -280,11 +281,6 @@ process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
280
281
  * The id of the `input` element.
281
282
  */
282
283
  id: _propTypes.default.string,
283
- /**
284
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
285
- * @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.
286
- */
287
- inputProps: _propTypes.default.object,
288
284
  /**
289
285
  * Pass a ref to the `input` element.
290
286
  */
@@ -329,7 +325,6 @@ process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
329
325
  * Start `InputAdornment` for this component.
330
326
  */
331
327
  startAdornment: _propTypes.default.node,
332
- style: _propTypes.default.object,
333
328
  /**
334
329
  * The system prop that allows defining system overrides as well as additional CSS styles.
335
330
  */
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
- const _excluded = ["label", "autoFocus", "disableUnderline", "hiddenLabel", "classes"];
5
+ const _excluded = ["label", "autoFocus", "disableUnderline", "hiddenLabel", "classes", "slots", "slotProps"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import { styled, useThemeProps } from '@mui/material/styles';
@@ -200,7 +200,9 @@ const PickersFilledInput = /*#__PURE__*/React.forwardRef(function PickersFilledI
200
200
  label,
201
201
  disableUnderline = false,
202
202
  hiddenLabel = false,
203
- classes: classesProp
203
+ classes: classesProp,
204
+ slots: inSlots,
205
+ slotProps: inSlotProps
204
206
  } = props,
205
207
  other = _objectWithoutPropertiesLoose(props, _excluded);
206
208
  const pickerTextFieldOwnerState = usePickerTextFieldOwnerState();
@@ -208,20 +210,19 @@ const PickersFilledInput = /*#__PURE__*/React.forwardRef(function PickersFilledI
208
210
  inputHasUnderline: !disableUnderline
209
211
  });
210
212
  const classes = useUtilityClasses(classesProp, ownerState);
211
- return /*#__PURE__*/_jsx(PickersInputBase, _extends({
212
- slots: {
213
+ return /*#__PURE__*/_jsx(PickersInputBase, _extends({}, other, {
214
+ slots: _extends({
213
215
  root: PickersFilledInputRoot,
214
216
  input: PickersFilledSectionsContainer
215
- },
216
- slotProps: {
217
- root: {
217
+ }, inSlots),
218
+ slotProps: _extends({}, inSlotProps, {
219
+ root: _extends({
218
220
  disableUnderline
219
- },
220
- input: {
221
+ }, inSlotProps?.root),
222
+ input: _extends({
221
223
  hiddenLabel
222
- }
223
- }
224
- }, other, {
224
+ }, inSlotProps?.input)
225
+ }),
225
226
  label: label,
226
227
  classes: classes,
227
228
  ref: ref,
@@ -240,8 +241,8 @@ process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
240
241
  * For a range value, it means that `value === [null, null]`
241
242
  */
242
243
  areAllSectionsEmpty: PropTypes.bool.isRequired,
244
+ classes: PropTypes.object,
243
245
  className: PropTypes.string,
244
- component: PropTypes.elementType,
245
246
  /**
246
247
  * If true, the whole element is editable.
247
248
  * Useful when all the sections are selected.
@@ -273,11 +274,6 @@ process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
273
274
  * The id of the `input` element.
274
275
  */
275
276
  id: PropTypes.string,
276
- /**
277
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
278
- * @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.
279
- */
280
- inputProps: PropTypes.object,
281
277
  /**
282
278
  * Pass a ref to the `input` element.
283
279
  */
@@ -322,7 +318,6 @@ process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
322
318
  * Start `InputAdornment` for this component.
323
319
  */
324
320
  startAdornment: PropTypes.node,
325
- style: PropTypes.object,
326
321
  /**
327
322
  * The system prop that allows defining system overrides as well as additional CSS styles.
328
323
  */
@@ -20,7 +20,7 @@ var _PickersInputBase = require("../PickersInputBase");
20
20
  var _PickersInputBase2 = require("../PickersInputBase/PickersInputBase");
21
21
  var _usePickerTextFieldOwnerState = require("../usePickerTextFieldOwnerState");
22
22
  var _jsxRuntime = require("react/jsx-runtime");
23
- const _excluded = ["label", "autoFocus", "disableUnderline", "ownerState", "classes"];
23
+ const _excluded = ["label", "autoFocus", "disableUnderline", "ownerState", "classes", "slots", "slotProps"];
24
24
  const PickersInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersInputBaseRoot, {
25
25
  name: 'MuiPickersInput',
26
26
  slot: 'Root',
@@ -130,7 +130,9 @@ const PickersInput = exports.PickersInput = /*#__PURE__*/React.forwardRef(functi
130
130
  const {
131
131
  label,
132
132
  disableUnderline = false,
133
- classes: classesProp
133
+ classes: classesProp,
134
+ slots: inSlots,
135
+ slotProps: inSlotProps
134
136
  } = props,
135
137
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
136
138
  const pickerTextFieldOwnerState = (0, _usePickerTextFieldOwnerState.usePickerTextFieldOwnerState)();
@@ -138,16 +140,15 @@ const PickersInput = exports.PickersInput = /*#__PURE__*/React.forwardRef(functi
138
140
  inputHasUnderline: !disableUnderline
139
141
  });
140
142
  const classes = useUtilityClasses(classesProp, ownerState);
141
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersInputBase.PickersInputBase, (0, _extends2.default)({
142
- slots: {
143
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersInputBase.PickersInputBase, (0, _extends2.default)({}, other, {
144
+ slots: (0, _extends2.default)({
143
145
  root: PickersInputRoot
144
- },
145
- slotProps: {
146
- root: {
146
+ }, inSlots),
147
+ slotProps: (0, _extends2.default)({}, inSlotProps, {
148
+ root: (0, _extends2.default)({
147
149
  disableUnderline
148
- }
149
- }
150
- }, other, {
150
+ }, inSlotProps?.root)
151
+ }),
151
152
  ownerState: ownerState,
152
153
  label: label,
153
154
  classes: classes,
@@ -166,8 +167,8 @@ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
166
167
  * For a range value, it means that `value === [null, null]`
167
168
  */
168
169
  areAllSectionsEmpty: _propTypes.default.bool.isRequired,
170
+ classes: _propTypes.default.object,
169
171
  className: _propTypes.default.string,
170
- component: _propTypes.default.elementType,
171
172
  /**
172
173
  * If true, the whole element is editable.
173
174
  * Useful when all the sections are selected.
@@ -198,11 +199,6 @@ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
198
199
  * The id of the `input` element.
199
200
  */
200
201
  id: _propTypes.default.string,
201
- /**
202
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
203
- * @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.
204
- */
205
- inputProps: _propTypes.default.object,
206
202
  /**
207
203
  * Pass a ref to the `input` element.
208
204
  */
@@ -247,7 +243,6 @@ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
247
243
  * Start `InputAdornment` for this component.
248
244
  */
249
245
  startAdornment: _propTypes.default.node,
250
- style: _propTypes.default.object,
251
246
  /**
252
247
  * The system prop that allows defining system overrides as well as additional CSS styles.
253
248
  */
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
- const _excluded = ["label", "autoFocus", "disableUnderline", "ownerState", "classes"];
5
+ const _excluded = ["label", "autoFocus", "disableUnderline", "ownerState", "classes", "slots", "slotProps"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import { styled, useThemeProps } from '@mui/material/styles';
@@ -123,7 +123,9 @@ const PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(inProps
123
123
  const {
124
124
  label,
125
125
  disableUnderline = false,
126
- classes: classesProp
126
+ classes: classesProp,
127
+ slots: inSlots,
128
+ slotProps: inSlotProps
127
129
  } = props,
128
130
  other = _objectWithoutPropertiesLoose(props, _excluded);
129
131
  const pickerTextFieldOwnerState = usePickerTextFieldOwnerState();
@@ -131,16 +133,15 @@ const PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(inProps
131
133
  inputHasUnderline: !disableUnderline
132
134
  });
133
135
  const classes = useUtilityClasses(classesProp, ownerState);
134
- return /*#__PURE__*/_jsx(PickersInputBase, _extends({
135
- slots: {
136
+ return /*#__PURE__*/_jsx(PickersInputBase, _extends({}, other, {
137
+ slots: _extends({
136
138
  root: PickersInputRoot
137
- },
138
- slotProps: {
139
- root: {
139
+ }, inSlots),
140
+ slotProps: _extends({}, inSlotProps, {
141
+ root: _extends({
140
142
  disableUnderline
141
- }
142
- }
143
- }, other, {
143
+ }, inSlotProps?.root)
144
+ }),
144
145
  ownerState: ownerState,
145
146
  label: label,
146
147
  classes: classes,
@@ -159,8 +160,8 @@ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
159
160
  * For a range value, it means that `value === [null, null]`
160
161
  */
161
162
  areAllSectionsEmpty: PropTypes.bool.isRequired,
163
+ classes: PropTypes.object,
162
164
  className: PropTypes.string,
163
- component: PropTypes.elementType,
164
165
  /**
165
166
  * If true, the whole element is editable.
166
167
  * Useful when all the sections are selected.
@@ -191,11 +192,6 @@ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
191
192
  * The id of the `input` element.
192
193
  */
193
194
  id: PropTypes.string,
194
- /**
195
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
196
- * @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.
197
- */
198
- inputProps: PropTypes.object,
199
195
  /**
200
196
  * Pass a ref to the `input` element.
201
197
  */
@@ -240,7 +236,6 @@ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
240
236
  * Start `InputAdornment` for this component.
241
237
  */
242
238
  startAdornment: PropTypes.node,
243
- style: PropTypes.object,
244
239
  /**
245
240
  * The system prop that allows defining system overrides as well as additional CSS styles.
246
241
  */