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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/CHANGELOG.md +267 -1
  2. package/DateRangeCalendar/DateRangeCalendar.js +9 -21
  3. package/DateRangeCalendar/DateRangeCalendar.mjs +9 -21
  4. package/DateRangeCalendar/DateRangeCalendar.types.d.mts +3 -3
  5. package/DateRangeCalendar/DateRangeCalendar.types.d.ts +3 -3
  6. package/DateRangePicker/DateRangePicker.d.mts +1 -1
  7. package/DateRangePicker/DateRangePicker.d.ts +1 -1
  8. package/DateRangePicker/DateRangePicker.js +1 -5
  9. package/DateRangePicker/DateRangePicker.mjs +1 -5
  10. package/DateRangePicker/DateRangePicker.types.d.mts +3 -3
  11. package/DateRangePicker/DateRangePicker.types.d.ts +3 -3
  12. package/DateRangePickerDay/DateRangePickerDay.d.mts +3 -3
  13. package/DateRangePickerDay/DateRangePickerDay.d.ts +3 -3
  14. package/DateRangePickerDay/DateRangePickerDay.js +416 -212
  15. package/DateRangePickerDay/DateRangePickerDay.mjs +418 -214
  16. package/DateRangePickerDay/DateRangePickerDay.types.d.mts +71 -23
  17. package/DateRangePickerDay/DateRangePickerDay.types.d.ts +71 -23
  18. package/DateRangePickerDay/dateRangePickerDayClasses.d.mts +35 -31
  19. package/DateRangePickerDay/dateRangePickerDayClasses.d.ts +35 -31
  20. package/DateRangePickerDay/dateRangePickerDayClasses.js +1 -1
  21. package/DateRangePickerDay/dateRangePickerDayClasses.mjs +1 -1
  22. package/DateTimeRangePicker/DateTimeRangePicker.d.mts +1 -1
  23. package/DateTimeRangePicker/DateTimeRangePicker.d.ts +1 -1
  24. package/DateTimeRangePicker/DateTimeRangePicker.js +1 -5
  25. package/DateTimeRangePicker/DateTimeRangePicker.mjs +1 -5
  26. package/DateTimeRangePicker/DateTimeRangePicker.types.d.mts +3 -3
  27. package/DateTimeRangePicker/DateTimeRangePicker.types.d.ts +3 -3
  28. package/DesktopDateRangePicker/DesktopDateRangePicker.d.mts +1 -1
  29. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +1 -1
  30. package/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -5
  31. package/DesktopDateRangePicker/DesktopDateRangePicker.mjs +1 -5
  32. package/DesktopDateRangePicker/DesktopDateRangePicker.types.d.mts +3 -3
  33. package/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +3 -3
  34. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.d.mts +1 -1
  35. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.d.ts +1 -1
  36. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +1 -5
  37. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.mjs +1 -5
  38. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.types.d.mts +3 -3
  39. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.types.d.ts +3 -3
  40. package/DesktopTimeRangePicker/DesktopTimeRangePicker.d.mts +1 -1
  41. package/DesktopTimeRangePicker/DesktopTimeRangePicker.d.ts +1 -1
  42. package/DesktopTimeRangePicker/DesktopTimeRangePicker.js +0 -4
  43. package/DesktopTimeRangePicker/DesktopTimeRangePicker.mjs +0 -4
  44. package/DesktopTimeRangePicker/DesktopTimeRangePicker.types.d.mts +3 -3
  45. package/DesktopTimeRangePicker/DesktopTimeRangePicker.types.d.ts +3 -3
  46. package/MobileDateRangePicker/MobileDateRangePicker.d.mts +1 -1
  47. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +1 -1
  48. package/MobileDateRangePicker/MobileDateRangePicker.js +1 -5
  49. package/MobileDateRangePicker/MobileDateRangePicker.mjs +1 -5
  50. package/MobileDateRangePicker/MobileDateRangePicker.types.d.mts +3 -3
  51. package/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +3 -3
  52. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.d.mts +1 -1
  53. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.d.ts +1 -1
  54. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +1 -5
  55. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.mjs +1 -5
  56. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.types.d.mts +3 -3
  57. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.types.d.ts +3 -3
  58. package/MobileTimeRangePicker/MobileTimeRangePicker.d.mts +1 -1
  59. package/MobileTimeRangePicker/MobileTimeRangePicker.d.ts +1 -1
  60. package/MobileTimeRangePicker/MobileTimeRangePicker.js +0 -4
  61. package/MobileTimeRangePicker/MobileTimeRangePicker.mjs +0 -4
  62. package/MobileTimeRangePicker/MobileTimeRangePicker.types.d.mts +3 -3
  63. package/MobileTimeRangePicker/MobileTimeRangePicker.types.d.ts +3 -3
  64. package/MultiInputDateRangeField/MultiInputDateRangeField.d.mts +2 -2
  65. package/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +2 -2
  66. package/MultiInputDateRangeField/MultiInputDateRangeField.js +0 -4
  67. package/MultiInputDateRangeField/MultiInputDateRangeField.mjs +0 -4
  68. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.mts +2 -2
  69. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +2 -2
  70. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +0 -4
  71. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.mjs +0 -4
  72. package/MultiInputTimeRangeField/MultiInputTimeRangeField.d.mts +2 -2
  73. package/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +2 -2
  74. package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +0 -4
  75. package/MultiInputTimeRangeField/MultiInputTimeRangeField.mjs +0 -4
  76. package/SingleInputDateRangeField/SingleInputDateRangeField.d.mts +1 -1
  77. package/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +1 -1
  78. package/SingleInputDateRangeField/SingleInputDateRangeField.js +22 -28
  79. package/SingleInputDateRangeField/SingleInputDateRangeField.mjs +22 -28
  80. package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.mts +2 -2
  81. package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +2 -2
  82. package/SingleInputDateRangeField/useSingleInputDateRangeField.d.mts +1 -1
  83. package/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts +1 -1
  84. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.mts +1 -1
  85. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +1 -1
  86. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +22 -28
  87. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.mjs +22 -28
  88. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.mts +2 -2
  89. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +2 -2
  90. package/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.mts +1 -1
  91. package/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts +1 -1
  92. package/SingleInputTimeRangeField/SingleInputTimeRangeField.d.mts +1 -1
  93. package/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +1 -1
  94. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +22 -28
  95. package/SingleInputTimeRangeField/SingleInputTimeRangeField.mjs +22 -28
  96. package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.mts +2 -2
  97. package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +2 -2
  98. package/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.mts +1 -1
  99. package/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts +1 -1
  100. package/StaticDateRangePicker/StaticDateRangePicker.js +1 -1
  101. package/StaticDateRangePicker/StaticDateRangePicker.mjs +1 -1
  102. package/TimeRangePicker/TimeRangePicker.d.mts +1 -1
  103. package/TimeRangePicker/TimeRangePicker.d.ts +1 -1
  104. package/TimeRangePicker/TimeRangePicker.js +0 -4
  105. package/TimeRangePicker/TimeRangePicker.mjs +0 -4
  106. package/TimeRangePicker/TimeRangePicker.types.d.mts +3 -3
  107. package/TimeRangePicker/TimeRangePicker.types.d.ts +3 -3
  108. package/hooks/useMultiInputRangeField/useMultiInputRangeField.d.mts +8 -9
  109. package/hooks/useMultiInputRangeField/useMultiInputRangeField.d.ts +8 -9
  110. package/hooks/useMultiInputRangeField/useMultiInputRangeField.js +4 -7
  111. package/hooks/useMultiInputRangeField/useMultiInputRangeField.mjs +4 -7
  112. package/hooks/useMultiInputRangeField/useMultiInputRangeFieldSelectedSections.d.mts +1 -1
  113. package/hooks/useMultiInputRangeField/useMultiInputRangeFieldSelectedSections.d.ts +1 -1
  114. package/hooks/useMultiInputRangeField/useTextFieldProps.d.mts +3 -3
  115. package/hooks/useMultiInputRangeField/useTextFieldProps.d.ts +3 -3
  116. package/hooks/useMultiInputRangeField/useTextFieldProps.js +1 -3
  117. package/hooks/useMultiInputRangeField/useTextFieldProps.mjs +1 -3
  118. package/index.d.mts +0 -1
  119. package/index.d.ts +0 -1
  120. package/index.js +1 -12
  121. package/index.mjs +1 -2
  122. package/internals/constants/dimensions.d.mts +1 -2
  123. package/internals/constants/dimensions.d.ts +1 -2
  124. package/internals/constants/dimensions.js +7 -2
  125. package/internals/constants/dimensions.mjs +2 -2
  126. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.mts +2 -2
  127. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +2 -2
  128. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -2
  129. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.mjs +2 -2
  130. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.mts +5 -5
  131. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +5 -5
  132. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.mts +2 -2
  133. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +2 -2
  134. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +2 -2
  135. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.mjs +2 -2
  136. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.mts +6 -6
  137. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +6 -6
  138. package/internals/models/fields.d.mts +1 -1
  139. package/internals/models/fields.d.ts +1 -1
  140. package/internals/models/managers.d.mts +1 -1
  141. package/internals/models/managers.d.ts +1 -1
  142. package/internals/utils/createMultiInputRangeField/createMultiInputRangeField.js +7 -6
  143. package/internals/utils/createMultiInputRangeField/createMultiInputRangeField.mjs +7 -6
  144. package/internals/utils/createMultiInputRangeField/createMultiInputRangeField.types.d.mts +4 -7
  145. package/internals/utils/createMultiInputRangeField/createMultiInputRangeField.types.d.ts +4 -7
  146. package/internals/utils/createMultiInputRangeField/useTextFieldProps.js +7 -5
  147. package/internals/utils/createMultiInputRangeField/useTextFieldProps.mjs +7 -5
  148. package/internals/utils/valueManagers.js +2 -6
  149. package/internals/utils/valueManagers.mjs +3 -7
  150. package/managers/useDateRangeManager.d.mts +4 -6
  151. package/managers/useDateRangeManager.d.ts +4 -6
  152. package/managers/useDateRangeManager.js +1 -3
  153. package/managers/useDateRangeManager.mjs +1 -3
  154. package/managers/useDateTimeRangeManager.d.mts +4 -6
  155. package/managers/useDateTimeRangeManager.d.ts +4 -6
  156. package/managers/useDateTimeRangeManager.js +1 -3
  157. package/managers/useDateTimeRangeManager.mjs +1 -3
  158. package/managers/useTimeRangeManager.d.mts +4 -6
  159. package/managers/useTimeRangeManager.d.ts +4 -6
  160. package/managers/useTimeRangeManager.js +1 -3
  161. package/managers/useTimeRangeManager.mjs +1 -3
  162. package/models/fields.d.mts +2 -2
  163. package/models/fields.d.ts +2 -2
  164. package/package.json +7 -21
  165. package/themeAugmentation/components.d.mts +0 -4
  166. package/themeAugmentation/components.d.ts +0 -4
  167. package/themeAugmentation/overrides.d.mts +0 -2
  168. package/themeAugmentation/overrides.d.ts +0 -2
  169. package/themeAugmentation/props.d.mts +12 -14
  170. package/themeAugmentation/props.d.ts +12 -14
  171. package/DateRangePickerDay2/DateRangePickerDay2.d.mts +0 -7
  172. package/DateRangePickerDay2/DateRangePickerDay2.d.ts +0 -7
  173. package/DateRangePickerDay2/DateRangePickerDay2.js +0 -605
  174. package/DateRangePickerDay2/DateRangePickerDay2.mjs +0 -598
  175. package/DateRangePickerDay2/DateRangePickerDay2.types.d.mts +0 -92
  176. package/DateRangePickerDay2/DateRangePickerDay2.types.d.ts +0 -92
  177. package/DateRangePickerDay2/DateRangePickerDay2.types.js +0 -5
  178. package/DateRangePickerDay2/DateRangePickerDay2.types.mjs +0 -1
  179. package/DateRangePickerDay2/dateRangePickerDay2Classes.d.mts +0 -29
  180. package/DateRangePickerDay2/dateRangePickerDay2Classes.d.ts +0 -29
  181. package/DateRangePickerDay2/dateRangePickerDay2Classes.js +0 -14
  182. package/DateRangePickerDay2/dateRangePickerDay2Classes.mjs +0 -6
  183. package/DateRangePickerDay2/index.d.mts +0 -4
  184. package/DateRangePickerDay2/index.d.ts +0 -4
  185. package/DateRangePickerDay2/index.js +0 -25
  186. package/DateRangePickerDay2/index.mjs +0 -2
@@ -82,10 +82,6 @@ MultiInputDateTimeRangeField.propTypes = {
82
82
  * Add an element between each child.
83
83
  */
84
84
  divider: PropTypes.node,
85
- /**
86
- * @default true
87
- */
88
- enableAccessibleFieldDOMStructure: PropTypes.bool,
89
85
  /**
90
86
  * The ref object used to interact with the end field imperatively.
91
87
  */
@@ -2,13 +2,13 @@ import * as React from 'react';
2
2
  import { UseTimeRangeManagerReturnValue } from "../managers/index.mjs";
3
3
  import { MultiInputRangeFieldProps } from "../internals/utils/createMultiInputRangeField/index.mjs";
4
4
  import { MultiInputTimeRangeFieldClasses } from "./multiInputTimeRangeFieldClasses.mjs";
5
- export interface MultiInputTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure extends boolean> extends MultiInputRangeFieldProps<UseTimeRangeManagerReturnValue<TEnableAccessibleFieldDOMStructure>> {
5
+ export interface MultiInputTimeRangeFieldProps extends MultiInputRangeFieldProps<UseTimeRangeManagerReturnValue> {
6
6
  /**
7
7
  * Override or extend the styles applied to the component.
8
8
  */
9
9
  classes?: Partial<MultiInputTimeRangeFieldClasses>;
10
10
  }
11
- type MultiInputTimeRangeFieldComponent = (<TEnableAccessibleFieldDOMStructure extends boolean = true>(props: MultiInputTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
11
+ type MultiInputTimeRangeFieldComponent = ((props: MultiInputTimeRangeFieldProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
12
12
  propTypes?: any;
13
13
  };
14
14
  /**
@@ -2,13 +2,13 @@ import * as React from 'react';
2
2
  import { UseTimeRangeManagerReturnValue } from "../managers/index.js";
3
3
  import { MultiInputRangeFieldProps } from "../internals/utils/createMultiInputRangeField/index.js";
4
4
  import { MultiInputTimeRangeFieldClasses } from "./multiInputTimeRangeFieldClasses.js";
5
- export interface MultiInputTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure extends boolean> extends MultiInputRangeFieldProps<UseTimeRangeManagerReturnValue<TEnableAccessibleFieldDOMStructure>> {
5
+ export interface MultiInputTimeRangeFieldProps extends MultiInputRangeFieldProps<UseTimeRangeManagerReturnValue> {
6
6
  /**
7
7
  * Override or extend the styles applied to the component.
8
8
  */
9
9
  classes?: Partial<MultiInputTimeRangeFieldClasses>;
10
10
  }
11
- type MultiInputTimeRangeFieldComponent = (<TEnableAccessibleFieldDOMStructure extends boolean = true>(props: MultiInputTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
11
+ type MultiInputTimeRangeFieldComponent = ((props: MultiInputTimeRangeFieldProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
12
12
  propTypes?: any;
13
13
  };
14
14
  /**
@@ -87,10 +87,6 @@ MultiInputTimeRangeField.propTypes = {
87
87
  * Add an element between each child.
88
88
  */
89
89
  divider: _propTypes.default.node,
90
- /**
91
- * @default true
92
- */
93
- enableAccessibleFieldDOMStructure: _propTypes.default.bool,
94
90
  /**
95
91
  * The ref object used to interact with the end field imperatively.
96
92
  */
@@ -83,10 +83,6 @@ MultiInputTimeRangeField.propTypes = {
83
83
  * Add an element between each child.
84
84
  */
85
85
  divider: PropTypes.node,
86
- /**
87
- * @default true
88
- */
89
- enableAccessibleFieldDOMStructure: PropTypes.bool,
90
86
  /**
91
87
  * The ref object used to interact with the end field imperatively.
92
88
  */
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SingleInputDateRangeFieldProps } from "./SingleInputDateRangeField.types.mjs";
3
3
  import { FieldType } from "../models/index.mjs";
4
- type DateRangeFieldComponent = (<TEnableAccessibleFieldDOMStructure extends boolean = true>(props: SingleInputDateRangeFieldProps<TEnableAccessibleFieldDOMStructure> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
+ type DateRangeFieldComponent = ((props: SingleInputDateRangeFieldProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
5
5
  propTypes?: any;
6
6
  fieldType?: FieldType;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SingleInputDateRangeFieldProps } from "./SingleInputDateRangeField.types.js";
3
3
  import { FieldType } from "../models/index.js";
4
- type DateRangeFieldComponent = (<TEnableAccessibleFieldDOMStructure extends boolean = true>(props: SingleInputDateRangeFieldProps<TEnableAccessibleFieldDOMStructure> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
+ type DateRangeFieldComponent = ((props: SingleInputDateRangeFieldProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
5
5
  propTypes?: any;
6
6
  fieldType?: FieldType;
7
7
  };
@@ -60,6 +60,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
60
60
  // | These PropTypes are generated from the TypeScript type definitions |
61
61
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
62
62
  // ----------------------------------------------------------------------
63
+ /**
64
+ * Is `true` if the current values equals the empty value.
65
+ * For a single item value, it means that `value === null`
66
+ * For a range value, it means that `value === [null, null]`
67
+ */
68
+ areAllSectionsEmpty: _propTypes.default.bool,
63
69
  /**
64
70
  * If `true`, the `input` element is focused during the first mount.
65
71
  * @default false
@@ -111,9 +117,14 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
111
117
  */
112
118
  disablePast: _propTypes.default.bool,
113
119
  /**
114
- * @default true
120
+ * End `InputAdornment` for this component.
121
+ */
122
+ endAdornment: _propTypes.default.node,
123
+ /**
124
+ * If `true`, the `input` will indicate an error.
125
+ * @default false
115
126
  */
116
- enableAccessibleFieldDOMStructure: _propTypes.default.bool,
127
+ error: _propTypes.default.bool,
117
128
  /**
118
129
  * The ref object used to imperatively interact with the field.
119
130
  */
@@ -132,11 +143,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
132
143
  * @default "dense"
133
144
  */
134
145
  formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
135
- /**
136
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
137
- * @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.
138
- */
139
- FormHelperTextProps: _propTypes.default.object,
140
146
  /**
141
147
  * If `true`, the input will take up the full width of its container.
142
148
  * @default false
@@ -155,28 +161,8 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
155
161
  hiddenLabel: _propTypes.default.bool,
156
162
  /**
157
163
  * The id of the `input` element.
158
- * Use this prop to make `label` and `helperText` accessible for screen readers.
159
164
  */
160
165
  id: _propTypes.default.string,
161
- /**
162
- * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
163
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
164
- * @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.
165
- */
166
- InputLabelProps: _propTypes.default.object,
167
- /**
168
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
169
- * @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.
170
- */
171
- inputProps: _propTypes.default.object,
172
- /**
173
- * Props applied to the Input element.
174
- * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
175
- * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
176
- * component depending on the `variant` prop value.
177
- * @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.
178
- */
179
- InputProps: _propTypes.default.object,
180
166
  /**
181
167
  * Pass a ref to the `input` element.
182
168
  */
@@ -217,6 +203,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
217
203
  * Callback fired when the clear button is clicked.
218
204
  */
219
205
  onClear: _propTypes.default.func,
206
+ onClick: _propTypes.default.func,
220
207
  /**
221
208
  * Callback fired when the error associated with the current value changes.
222
209
  * When a validation error is detected, the `error` parameter contains a non-null value.
@@ -228,6 +215,9 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
228
215
  */
229
216
  onError: _propTypes.default.func,
230
217
  onFocus: _propTypes.default.func,
218
+ onInput: _propTypes.default.func,
219
+ onKeyDown: _propTypes.default.func,
220
+ onPaste: _propTypes.default.func,
231
221
  /**
232
222
  * Callback fired when the selected sections change.
233
223
  * @param {FieldSelectedSections} newValue The new selected sections.
@@ -246,7 +236,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
246
236
  */
247
237
  referenceDate: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.object), _propTypes.default.object]),
248
238
  /**
249
- * If `true`, the label is displayed as required and the `input` element is required.
239
+ * If `true`, the label will indicate that the `input` is required.
250
240
  * @default false
251
241
  */
252
242
  required: _propTypes.default.bool,
@@ -300,6 +290,10 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
300
290
  * @default {}
301
291
  */
302
292
  slots: _propTypes.default.object,
293
+ /**
294
+ * Start `InputAdornment` for this component.
295
+ */
296
+ startAdornment: _propTypes.default.node,
303
297
  style: _propTypes.default.object,
304
298
  /**
305
299
  * The system prop that allows defining system overrides as well as additional CSS styles.
@@ -53,6 +53,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
53
53
  // | These PropTypes are generated from the TypeScript type definitions |
54
54
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
55
55
  // ----------------------------------------------------------------------
56
+ /**
57
+ * Is `true` if the current values equals the empty value.
58
+ * For a single item value, it means that `value === null`
59
+ * For a range value, it means that `value === [null, null]`
60
+ */
61
+ areAllSectionsEmpty: PropTypes.bool,
56
62
  /**
57
63
  * If `true`, the `input` element is focused during the first mount.
58
64
  * @default false
@@ -104,9 +110,14 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
104
110
  */
105
111
  disablePast: PropTypes.bool,
106
112
  /**
107
- * @default true
113
+ * End `InputAdornment` for this component.
114
+ */
115
+ endAdornment: PropTypes.node,
116
+ /**
117
+ * If `true`, the `input` will indicate an error.
118
+ * @default false
108
119
  */
109
- enableAccessibleFieldDOMStructure: PropTypes.bool,
120
+ error: PropTypes.bool,
110
121
  /**
111
122
  * The ref object used to imperatively interact with the field.
112
123
  */
@@ -125,11 +136,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
125
136
  * @default "dense"
126
137
  */
127
138
  formatDensity: PropTypes.oneOf(['dense', 'spacious']),
128
- /**
129
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
130
- * @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.
131
- */
132
- FormHelperTextProps: PropTypes.object,
133
139
  /**
134
140
  * If `true`, the input will take up the full width of its container.
135
141
  * @default false
@@ -148,28 +154,8 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
148
154
  hiddenLabel: PropTypes.bool,
149
155
  /**
150
156
  * The id of the `input` element.
151
- * Use this prop to make `label` and `helperText` accessible for screen readers.
152
157
  */
153
158
  id: PropTypes.string,
154
- /**
155
- * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
156
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
157
- * @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.
158
- */
159
- InputLabelProps: PropTypes.object,
160
- /**
161
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
162
- * @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.
163
- */
164
- inputProps: PropTypes.object,
165
- /**
166
- * Props applied to the Input element.
167
- * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
168
- * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
169
- * component depending on the `variant` prop value.
170
- * @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.
171
- */
172
- InputProps: PropTypes.object,
173
159
  /**
174
160
  * Pass a ref to the `input` element.
175
161
  */
@@ -210,6 +196,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
210
196
  * Callback fired when the clear button is clicked.
211
197
  */
212
198
  onClear: PropTypes.func,
199
+ onClick: PropTypes.func,
213
200
  /**
214
201
  * Callback fired when the error associated with the current value changes.
215
202
  * When a validation error is detected, the `error` parameter contains a non-null value.
@@ -221,6 +208,9 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
221
208
  */
222
209
  onError: PropTypes.func,
223
210
  onFocus: PropTypes.func,
211
+ onInput: PropTypes.func,
212
+ onKeyDown: PropTypes.func,
213
+ onPaste: PropTypes.func,
224
214
  /**
225
215
  * Callback fired when the selected sections change.
226
216
  * @param {FieldSelectedSections} newValue The new selected sections.
@@ -239,7 +229,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
239
229
  */
240
230
  referenceDate: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object]),
241
231
  /**
242
- * If `true`, the label is displayed as required and the `input` element is required.
232
+ * If `true`, the label will indicate that the `input` is required.
243
233
  * @default false
244
234
  */
245
235
  required: PropTypes.bool,
@@ -293,6 +283,10 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
293
283
  * @default {}
294
284
  */
295
285
  slots: PropTypes.object,
286
+ /**
287
+ * Start `InputAdornment` for this component.
288
+ */
289
+ startAdornment: PropTypes.node,
296
290
  style: PropTypes.object,
297
291
  /**
298
292
  * The system prop that allows defining system overrides as well as additional CSS styles.
@@ -1,8 +1,8 @@
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<TEnableAccessibleFieldDOMStructure extends boolean> extends DateRangeManagerFieldInternalProps<TEnableAccessibleFieldDOMStructure>, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
5
- export type SingleInputDateRangeFieldProps<TEnableAccessibleFieldDOMStructure extends boolean = true> = Omit<BuiltInFieldTextFieldProps<TEnableAccessibleFieldDOMStructure>, keyof UseSingleInputDateRangeFieldProps<TEnableAccessibleFieldDOMStructure>> & UseSingleInputDateRangeFieldProps<TEnableAccessibleFieldDOMStructure> & {
4
+ export interface UseSingleInputDateRangeFieldProps extends DateRangeManagerFieldInternalProps, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
5
+ export type SingleInputDateRangeFieldProps = Omit<BuiltInFieldTextFieldProps, keyof UseSingleInputDateRangeFieldProps> & UseSingleInputDateRangeFieldProps & {
6
6
  /**
7
7
  * Overridable component slots.
8
8
  * @default {}
@@ -1,8 +1,8 @@
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<TEnableAccessibleFieldDOMStructure extends boolean> extends DateRangeManagerFieldInternalProps<TEnableAccessibleFieldDOMStructure>, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
5
- export type SingleInputDateRangeFieldProps<TEnableAccessibleFieldDOMStructure extends boolean = true> = Omit<BuiltInFieldTextFieldProps<TEnableAccessibleFieldDOMStructure>, keyof UseSingleInputDateRangeFieldProps<TEnableAccessibleFieldDOMStructure>> & UseSingleInputDateRangeFieldProps<TEnableAccessibleFieldDOMStructure> & {
4
+ export interface UseSingleInputDateRangeFieldProps extends DateRangeManagerFieldInternalProps, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
5
+ export type SingleInputDateRangeFieldProps = Omit<BuiltInFieldTextFieldProps, keyof UseSingleInputDateRangeFieldProps> & UseSingleInputDateRangeFieldProps & {
6
6
  /**
7
7
  * Overridable component slots.
8
8
  * @default {}
@@ -1,2 +1,2 @@
1
1
  import { UseSingleInputDateRangeFieldProps } from "./SingleInputDateRangeField.types.mjs";
2
- export declare const useSingleInputDateRangeField: <TEnableAccessibleFieldDOMStructure extends boolean, TProps extends UseSingleInputDateRangeFieldProps<TEnableAccessibleFieldDOMStructure>>(props: TProps) => import("@mui/x-date-pickers/internals").UseFieldReturnValue<TEnableAccessibleFieldDOMStructure, TProps>;
2
+ export declare const useSingleInputDateRangeField: <TProps extends UseSingleInputDateRangeFieldProps>(props: TProps) => import("@mui/x-date-pickers/internals").UseFieldReturnValue<TProps>;
@@ -1,2 +1,2 @@
1
1
  import { UseSingleInputDateRangeFieldProps } from "./SingleInputDateRangeField.types.js";
2
- export declare const useSingleInputDateRangeField: <TEnableAccessibleFieldDOMStructure extends boolean, TProps extends UseSingleInputDateRangeFieldProps<TEnableAccessibleFieldDOMStructure>>(props: TProps) => import("@mui/x-date-pickers/internals").UseFieldReturnValue<TEnableAccessibleFieldDOMStructure, TProps>;
2
+ export declare const useSingleInputDateRangeField: <TProps extends UseSingleInputDateRangeFieldProps>(props: TProps) => import("@mui/x-date-pickers/internals").UseFieldReturnValue<TProps>;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SingleInputDateTimeRangeFieldProps } from "./SingleInputDateTimeRangeField.types.mjs";
3
3
  import { FieldType } from "../models/index.mjs";
4
- type DateRangeFieldComponent = (<TEnableAccessibleFieldDOMStructure extends boolean = true>(props: SingleInputDateTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
+ type DateRangeFieldComponent = ((props: SingleInputDateTimeRangeFieldProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
5
5
  propTypes?: any;
6
6
  fieldType?: FieldType;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SingleInputDateTimeRangeFieldProps } from "./SingleInputDateTimeRangeField.types.js";
3
3
  import { FieldType } from "../models/index.js";
4
- type DateRangeFieldComponent = (<TEnableAccessibleFieldDOMStructure extends boolean = true>(props: SingleInputDateTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
+ type DateRangeFieldComponent = ((props: SingleInputDateTimeRangeFieldProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
5
5
  propTypes?: any;
6
6
  fieldType?: FieldType;
7
7
  };
@@ -65,6 +65,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
65
65
  * @default adapter.is12HourCycleInCurrentLocale()
66
66
  */
67
67
  ampm: _propTypes.default.bool,
68
+ /**
69
+ * Is `true` if the current values equals the empty value.
70
+ * For a single item value, it means that `value === null`
71
+ * For a range value, it means that `value === [null, null]`
72
+ */
73
+ areAllSectionsEmpty: _propTypes.default.bool,
68
74
  /**
69
75
  * If `true`, the `input` element is focused during the first mount.
70
76
  * @default false
@@ -121,9 +127,14 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
121
127
  */
122
128
  disablePast: _propTypes.default.bool,
123
129
  /**
124
- * @default true
130
+ * End `InputAdornment` for this component.
131
+ */
132
+ endAdornment: _propTypes.default.node,
133
+ /**
134
+ * If `true`, the `input` will indicate an error.
135
+ * @default false
125
136
  */
126
- enableAccessibleFieldDOMStructure: _propTypes.default.bool,
137
+ error: _propTypes.default.bool,
127
138
  /**
128
139
  * The ref object used to imperatively interact with the field.
129
140
  */
@@ -142,11 +153,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
142
153
  * @default "dense"
143
154
  */
144
155
  formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
145
- /**
146
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
147
- * @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.
148
- */
149
- FormHelperTextProps: _propTypes.default.object,
150
156
  /**
151
157
  * If `true`, the input will take up the full width of its container.
152
158
  * @default false
@@ -165,28 +171,8 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
165
171
  hiddenLabel: _propTypes.default.bool,
166
172
  /**
167
173
  * The id of the `input` element.
168
- * Use this prop to make `label` and `helperText` accessible for screen readers.
169
174
  */
170
175
  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
176
  /**
191
177
  * Pass a ref to the `input` element.
192
178
  */
@@ -250,6 +236,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
250
236
  * Callback fired when the clear button is clicked.
251
237
  */
252
238
  onClear: _propTypes.default.func,
239
+ onClick: _propTypes.default.func,
253
240
  /**
254
241
  * Callback fired when the error associated with the current value changes.
255
242
  * When a validation error is detected, the `error` parameter contains a non-null value.
@@ -261,6 +248,9 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
261
248
  */
262
249
  onError: _propTypes.default.func,
263
250
  onFocus: _propTypes.default.func,
251
+ onInput: _propTypes.default.func,
252
+ onKeyDown: _propTypes.default.func,
253
+ onPaste: _propTypes.default.func,
264
254
  /**
265
255
  * Callback fired when the selected sections change.
266
256
  * @param {FieldSelectedSections} newValue The new selected sections.
@@ -279,7 +269,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
279
269
  */
280
270
  referenceDate: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.object), _propTypes.default.object]),
281
271
  /**
282
- * If `true`, the label is displayed as required and the `input` element is required.
272
+ * If `true`, the label will indicate that the `input` is required.
283
273
  * @default false
284
274
  */
285
275
  required: _propTypes.default.bool,
@@ -340,6 +330,10 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
340
330
  * @default {}
341
331
  */
342
332
  slots: _propTypes.default.object,
333
+ /**
334
+ * Start `InputAdornment` for this component.
335
+ */
336
+ startAdornment: _propTypes.default.node,
343
337
  style: _propTypes.default.object,
344
338
  /**
345
339
  * The system prop that allows defining system overrides as well as additional CSS styles.
@@ -58,6 +58,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
58
58
  * @default adapter.is12HourCycleInCurrentLocale()
59
59
  */
60
60
  ampm: PropTypes.bool,
61
+ /**
62
+ * Is `true` if the current values equals the empty value.
63
+ * For a single item value, it means that `value === null`
64
+ * For a range value, it means that `value === [null, null]`
65
+ */
66
+ areAllSectionsEmpty: PropTypes.bool,
61
67
  /**
62
68
  * If `true`, the `input` element is focused during the first mount.
63
69
  * @default false
@@ -114,9 +120,14 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
114
120
  */
115
121
  disablePast: PropTypes.bool,
116
122
  /**
117
- * @default true
123
+ * End `InputAdornment` for this component.
124
+ */
125
+ endAdornment: PropTypes.node,
126
+ /**
127
+ * If `true`, the `input` will indicate an error.
128
+ * @default false
118
129
  */
119
- enableAccessibleFieldDOMStructure: PropTypes.bool,
130
+ error: PropTypes.bool,
120
131
  /**
121
132
  * The ref object used to imperatively interact with the field.
122
133
  */
@@ -135,11 +146,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
135
146
  * @default "dense"
136
147
  */
137
148
  formatDensity: PropTypes.oneOf(['dense', 'spacious']),
138
- /**
139
- * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
140
- * @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.
141
- */
142
- FormHelperTextProps: PropTypes.object,
143
149
  /**
144
150
  * If `true`, the input will take up the full width of its container.
145
151
  * @default false
@@ -158,28 +164,8 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
158
164
  hiddenLabel: PropTypes.bool,
159
165
  /**
160
166
  * The id of the `input` element.
161
- * Use this prop to make `label` and `helperText` accessible for screen readers.
162
167
  */
163
168
  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
169
  /**
184
170
  * Pass a ref to the `input` element.
185
171
  */
@@ -243,6 +229,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
243
229
  * Callback fired when the clear button is clicked.
244
230
  */
245
231
  onClear: PropTypes.func,
232
+ onClick: PropTypes.func,
246
233
  /**
247
234
  * Callback fired when the error associated with the current value changes.
248
235
  * When a validation error is detected, the `error` parameter contains a non-null value.
@@ -254,6 +241,9 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
254
241
  */
255
242
  onError: PropTypes.func,
256
243
  onFocus: PropTypes.func,
244
+ onInput: PropTypes.func,
245
+ onKeyDown: PropTypes.func,
246
+ onPaste: PropTypes.func,
257
247
  /**
258
248
  * Callback fired when the selected sections change.
259
249
  * @param {FieldSelectedSections} newValue The new selected sections.
@@ -272,7 +262,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
272
262
  */
273
263
  referenceDate: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object]),
274
264
  /**
275
- * If `true`, the label is displayed as required and the `input` element is required.
265
+ * If `true`, the label will indicate that the `input` is required.
276
266
  * @default false
277
267
  */
278
268
  required: PropTypes.bool,
@@ -333,6 +323,10 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
333
323
  * @default {}
334
324
  */
335
325
  slots: PropTypes.object,
326
+ /**
327
+ * Start `InputAdornment` for this component.
328
+ */
329
+ startAdornment: PropTypes.node,
336
330
  style: PropTypes.object,
337
331
  /**
338
332
  * The system prop that allows defining system overrides as well as additional CSS styles.
@@ -1,8 +1,8 @@
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<TEnableAccessibleFieldDOMStructure extends boolean> extends DateTimeRangeManagerFieldInternalProps<TEnableAccessibleFieldDOMStructure>, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
5
- export type SingleInputDateTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure extends boolean = true> = Omit<BuiltInFieldTextFieldProps<TEnableAccessibleFieldDOMStructure>, keyof UseSingleInputDateTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure>> & UseSingleInputDateTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure> & {
4
+ export interface UseSingleInputDateTimeRangeFieldProps extends DateTimeRangeManagerFieldInternalProps, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
5
+ export type SingleInputDateTimeRangeFieldProps = Omit<BuiltInFieldTextFieldProps, keyof UseSingleInputDateTimeRangeFieldProps> & UseSingleInputDateTimeRangeFieldProps & {
6
6
  /**
7
7
  * Overridable component slots.
8
8
  * @default {}
@@ -1,8 +1,8 @@
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<TEnableAccessibleFieldDOMStructure extends boolean> extends DateTimeRangeManagerFieldInternalProps<TEnableAccessibleFieldDOMStructure>, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
5
- export type SingleInputDateTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure extends boolean = true> = Omit<BuiltInFieldTextFieldProps<TEnableAccessibleFieldDOMStructure>, keyof UseSingleInputDateTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure>> & UseSingleInputDateTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure> & {
4
+ export interface UseSingleInputDateTimeRangeFieldProps extends DateTimeRangeManagerFieldInternalProps, Omit<ExportedPickerFieldUIProps, 'openPickerButtonPosition'> {}
5
+ export type SingleInputDateTimeRangeFieldProps = Omit<BuiltInFieldTextFieldProps, keyof UseSingleInputDateTimeRangeFieldProps> & UseSingleInputDateTimeRangeFieldProps & {
6
6
  /**
7
7
  * Overridable component slots.
8
8
  * @default {}
@@ -1,2 +1,2 @@
1
1
  import { UseSingleInputDateTimeRangeFieldProps } from "./SingleInputDateTimeRangeField.types.mjs";
2
- export declare const useSingleInputDateTimeRangeField: <TEnableAccessibleFieldDOMStructure extends boolean, TProps extends UseSingleInputDateTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure>>(props: TProps) => import("@mui/x-date-pickers/internals").UseFieldReturnValue<TEnableAccessibleFieldDOMStructure, TProps>;
2
+ export declare const useSingleInputDateTimeRangeField: <TProps extends UseSingleInputDateTimeRangeFieldProps>(props: TProps) => import("@mui/x-date-pickers/internals").UseFieldReturnValue<TProps>;
@@ -1,2 +1,2 @@
1
1
  import { UseSingleInputDateTimeRangeFieldProps } from "./SingleInputDateTimeRangeField.types.js";
2
- export declare const useSingleInputDateTimeRangeField: <TEnableAccessibleFieldDOMStructure extends boolean, TProps extends UseSingleInputDateTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure>>(props: TProps) => import("@mui/x-date-pickers/internals").UseFieldReturnValue<TEnableAccessibleFieldDOMStructure, TProps>;
2
+ export declare const useSingleInputDateTimeRangeField: <TProps extends UseSingleInputDateTimeRangeFieldProps>(props: TProps) => import("@mui/x-date-pickers/internals").UseFieldReturnValue<TProps>;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SingleInputTimeRangeFieldProps } from "./SingleInputTimeRangeField.types.mjs";
3
3
  import { FieldType } from "../models/index.mjs";
4
- type DateRangeFieldComponent = (<TEnableAccessibleFieldDOMStructure extends boolean = true>(props: SingleInputTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
+ type DateRangeFieldComponent = ((props: SingleInputTimeRangeFieldProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
5
5
  propTypes?: any;
6
6
  fieldType?: FieldType;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { SingleInputTimeRangeFieldProps } from "./SingleInputTimeRangeField.types.js";
3
3
  import { FieldType } from "../models/index.js";
4
- type DateRangeFieldComponent = (<TEnableAccessibleFieldDOMStructure extends boolean = true>(props: SingleInputTimeRangeFieldProps<TEnableAccessibleFieldDOMStructure> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
+ type DateRangeFieldComponent = ((props: SingleInputTimeRangeFieldProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
5
5
  propTypes?: any;
6
6
  fieldType?: FieldType;
7
7
  };