@mui/lab 5.0.0-alpha.84 → 5.0.0-alpha.87

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 (203) hide show
  1. package/CHANGELOG.md +225 -8
  2. package/CalendarPicker/CalendarPicker.d.ts +10 -0
  3. package/CalendarPicker/CalendarPicker.js +23 -0
  4. package/CalendarPicker/index.d.ts +2 -1
  5. package/CalendarPicker/index.js +2 -1
  6. package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +10 -0
  7. package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +37 -0
  8. package/CalendarPickerSkeleton/index.d.ts +2 -1
  9. package/CalendarPickerSkeleton/index.js +2 -1
  10. package/ClockPicker/ClockPicker.d.ts +10 -0
  11. package/ClockPicker/ClockPicker.js +23 -0
  12. package/ClockPicker/index.d.ts +2 -1
  13. package/ClockPicker/index.js +2 -1
  14. package/DatePicker/DatePicker.d.ts +10 -0
  15. package/DatePicker/DatePicker.js +463 -0
  16. package/DatePicker/index.d.ts +1 -1
  17. package/DatePicker/index.js +1 -1
  18. package/DateRangePicker/DateRangePicker.js +0 -14
  19. package/DateTimePicker/DateTimePicker.d.ts +10 -0
  20. package/DateTimePicker/DateTimePicker.js +551 -0
  21. package/DateTimePicker/index.d.ts +1 -1
  22. package/DateTimePicker/index.js +1 -1
  23. package/DesktopDatePicker/DesktopDatePicker.d.ts +10 -0
  24. package/DesktopDatePicker/DesktopDatePicker.js +427 -0
  25. package/DesktopDatePicker/index.d.ts +1 -1
  26. package/DesktopDatePicker/index.js +1 -1
  27. package/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -14
  28. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +10 -0
  29. package/DesktopDateTimePicker/DesktopDateTimePicker.js +515 -0
  30. package/DesktopDateTimePicker/index.d.ts +1 -1
  31. package/DesktopDateTimePicker/index.js +1 -1
  32. package/DesktopTimePicker/DesktopTimePicker.d.ts +10 -0
  33. package/DesktopTimePicker/DesktopTimePicker.js +345 -0
  34. package/LocalizationProvider/LocalizationProvider.d.ts +10 -0
  35. package/LocalizationProvider/LocalizationProvider.js +37 -0
  36. package/LocalizationProvider/index.d.ts +1 -1
  37. package/LocalizationProvider/index.js +1 -1
  38. package/Masonry/Masonry.js +8 -3
  39. package/MobileDatePicker/MobileDatePicker.d.ts +10 -0
  40. package/MobileDatePicker/MobileDatePicker.js +441 -0
  41. package/MobileDatePicker/index.d.ts +1 -1
  42. package/MobileDatePicker/index.js +1 -1
  43. package/MobileDateRangePicker/MobileDateRangePicker.js +0 -14
  44. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +10 -0
  45. package/MobileDateTimePicker/MobileDateTimePicker.js +529 -0
  46. package/MobileDateTimePicker/index.d.ts +1 -1
  47. package/MobileDateTimePicker/index.js +1 -1
  48. package/MobileTimePicker/MobileTimePicker.d.ts +10 -0
  49. package/MobileTimePicker/MobileTimePicker.js +359 -0
  50. package/MobileTimePicker/index.d.ts +1 -1
  51. package/MobileTimePicker/index.js +1 -1
  52. package/MonthPicker/MonthPicker.d.ts +10 -0
  53. package/MonthPicker/MonthPicker.js +23 -0
  54. package/MonthPicker/index.d.ts +2 -1
  55. package/MonthPicker/index.js +2 -1
  56. package/PickersDay/PickersDay.d.ts +10 -0
  57. package/PickersDay/PickersDay.js +37 -0
  58. package/PickersDay/index.d.ts +2 -1
  59. package/PickersDay/index.js +2 -1
  60. package/README.md +1 -1
  61. package/StaticDatePicker/StaticDatePicker.d.ts +10 -0
  62. package/StaticDatePicker/StaticDatePicker.js +401 -0
  63. package/StaticDatePicker/index.d.ts +1 -1
  64. package/StaticDatePicker/index.js +1 -1
  65. package/StaticDateRangePicker/StaticDateRangePicker.js +0 -14
  66. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +10 -0
  67. package/StaticDateTimePicker/StaticDateTimePicker.js +489 -0
  68. package/StaticDateTimePicker/index.d.ts +1 -1
  69. package/StaticDateTimePicker/index.js +1 -1
  70. package/StaticTimePicker/StaticTimePicker.d.ts +10 -0
  71. package/StaticTimePicker/StaticTimePicker.js +319 -0
  72. package/TimePicker/TimePicker.d.ts +10 -0
  73. package/TimePicker/TimePicker.js +381 -0
  74. package/TimePicker/index.d.ts +1 -1
  75. package/TimePicker/index.js +1 -1
  76. package/Timeline/Timeline.d.ts +1 -1
  77. package/YearPicker/YearPicker.d.ts +10 -0
  78. package/YearPicker/YearPicker.js +22 -0
  79. package/index.js +1 -1
  80. package/legacy/CalendarPicker/CalendarPicker.js +23 -0
  81. package/legacy/CalendarPicker/index.js +2 -1
  82. package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +37 -0
  83. package/legacy/CalendarPickerSkeleton/index.js +2 -1
  84. package/legacy/ClockPicker/ClockPicker.js +23 -0
  85. package/legacy/ClockPicker/index.js +2 -1
  86. package/legacy/DatePicker/DatePicker.js +463 -0
  87. package/legacy/DatePicker/index.js +1 -1
  88. package/legacy/DateRangePicker/DateRangePicker.js +0 -14
  89. package/legacy/DateTimePicker/DateTimePicker.js +551 -0
  90. package/legacy/DateTimePicker/index.js +1 -1
  91. package/legacy/DesktopDatePicker/DesktopDatePicker.js +427 -0
  92. package/legacy/DesktopDatePicker/index.js +1 -1
  93. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -14
  94. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +515 -0
  95. package/legacy/DesktopDateTimePicker/index.js +1 -1
  96. package/legacy/DesktopTimePicker/DesktopTimePicker.js +345 -0
  97. package/legacy/LocalizationProvider/LocalizationProvider.js +37 -0
  98. package/legacy/LocalizationProvider/index.js +1 -1
  99. package/legacy/Masonry/Masonry.js +8 -3
  100. package/legacy/MobileDatePicker/MobileDatePicker.js +441 -0
  101. package/legacy/MobileDatePicker/index.js +1 -1
  102. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +0 -14
  103. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +529 -0
  104. package/legacy/MobileDateTimePicker/index.js +1 -1
  105. package/legacy/MobileTimePicker/MobileTimePicker.js +359 -0
  106. package/legacy/MobileTimePicker/index.js +1 -1
  107. package/legacy/MonthPicker/MonthPicker.js +23 -0
  108. package/legacy/MonthPicker/index.js +2 -1
  109. package/legacy/PickersDay/PickersDay.js +37 -0
  110. package/legacy/PickersDay/index.js +2 -1
  111. package/legacy/StaticDatePicker/StaticDatePicker.js +401 -0
  112. package/legacy/StaticDatePicker/index.js +1 -1
  113. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +0 -14
  114. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +489 -0
  115. package/legacy/StaticDateTimePicker/index.js +1 -1
  116. package/legacy/StaticTimePicker/StaticTimePicker.js +319 -0
  117. package/legacy/TimePicker/TimePicker.js +381 -0
  118. package/legacy/TimePicker/index.js +1 -1
  119. package/legacy/YearPicker/YearPicker.js +22 -0
  120. package/legacy/index.js +1 -1
  121. package/modern/CalendarPicker/CalendarPicker.js +23 -0
  122. package/modern/CalendarPicker/index.js +2 -1
  123. package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +37 -0
  124. package/modern/CalendarPickerSkeleton/index.js +2 -1
  125. package/modern/ClockPicker/ClockPicker.js +23 -0
  126. package/modern/ClockPicker/index.js +2 -1
  127. package/modern/DatePicker/DatePicker.js +463 -0
  128. package/modern/DatePicker/index.js +1 -1
  129. package/modern/DateRangePicker/DateRangePicker.js +0 -14
  130. package/modern/DateTimePicker/DateTimePicker.js +551 -0
  131. package/modern/DateTimePicker/index.js +1 -1
  132. package/modern/DesktopDatePicker/DesktopDatePicker.js +427 -0
  133. package/modern/DesktopDatePicker/index.js +1 -1
  134. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -14
  135. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +515 -0
  136. package/modern/DesktopDateTimePicker/index.js +1 -1
  137. package/modern/DesktopTimePicker/DesktopTimePicker.js +345 -0
  138. package/modern/LocalizationProvider/LocalizationProvider.js +37 -0
  139. package/modern/LocalizationProvider/index.js +1 -1
  140. package/modern/Masonry/Masonry.js +8 -3
  141. package/modern/MobileDatePicker/MobileDatePicker.js +441 -0
  142. package/modern/MobileDatePicker/index.js +1 -1
  143. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +0 -14
  144. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +529 -0
  145. package/modern/MobileDateTimePicker/index.js +1 -1
  146. package/modern/MobileTimePicker/MobileTimePicker.js +359 -0
  147. package/modern/MobileTimePicker/index.js +1 -1
  148. package/modern/MonthPicker/MonthPicker.js +23 -0
  149. package/modern/MonthPicker/index.js +2 -1
  150. package/modern/PickersDay/PickersDay.js +37 -0
  151. package/modern/PickersDay/index.js +2 -1
  152. package/modern/StaticDatePicker/StaticDatePicker.js +401 -0
  153. package/modern/StaticDatePicker/index.js +1 -1
  154. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +0 -14
  155. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +489 -0
  156. package/modern/StaticDateTimePicker/index.js +1 -1
  157. package/modern/StaticTimePicker/StaticTimePicker.js +319 -0
  158. package/modern/TimePicker/TimePicker.js +381 -0
  159. package/modern/TimePicker/index.js +1 -1
  160. package/modern/YearPicker/YearPicker.js +22 -0
  161. package/modern/index.js +1 -1
  162. package/node/CalendarPicker/CalendarPicker.js +41 -0
  163. package/node/CalendarPicker/index.js +7 -3
  164. package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +56 -0
  165. package/node/CalendarPickerSkeleton/index.js +8 -4
  166. package/node/ClockPicker/ClockPicker.js +41 -0
  167. package/node/ClockPicker/index.js +7 -3
  168. package/node/DatePicker/DatePicker.js +482 -0
  169. package/node/DatePicker/index.js +4 -2
  170. package/node/DateRangePicker/DateRangePicker.js +0 -17
  171. package/node/DateTimePicker/DateTimePicker.js +570 -0
  172. package/node/DateTimePicker/index.js +4 -2
  173. package/node/DesktopDatePicker/DesktopDatePicker.js +446 -0
  174. package/node/DesktopDatePicker/index.js +4 -2
  175. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -17
  176. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +534 -0
  177. package/node/DesktopDateTimePicker/index.js +4 -2
  178. package/node/DesktopTimePicker/DesktopTimePicker.js +364 -0
  179. package/node/LocalizationProvider/LocalizationProvider.js +56 -0
  180. package/node/LocalizationProvider/index.js +4 -2
  181. package/node/Masonry/Masonry.js +9 -3
  182. package/node/MobileDatePicker/MobileDatePicker.js +460 -0
  183. package/node/MobileDatePicker/index.js +4 -2
  184. package/node/MobileDateRangePicker/MobileDateRangePicker.js +0 -17
  185. package/node/MobileDateTimePicker/MobileDateTimePicker.js +548 -0
  186. package/node/MobileDateTimePicker/index.js +4 -2
  187. package/node/MobileTimePicker/MobileTimePicker.js +378 -0
  188. package/node/MobileTimePicker/index.js +4 -2
  189. package/node/MonthPicker/MonthPicker.js +41 -0
  190. package/node/MonthPicker/index.js +8 -4
  191. package/node/PickersDay/PickersDay.js +56 -0
  192. package/node/PickersDay/index.js +8 -4
  193. package/node/StaticDatePicker/StaticDatePicker.js +420 -0
  194. package/node/StaticDatePicker/index.js +4 -2
  195. package/node/StaticDateRangePicker/StaticDateRangePicker.js +0 -17
  196. package/node/StaticDateTimePicker/StaticDateTimePicker.js +508 -0
  197. package/node/StaticDateTimePicker/index.js +4 -2
  198. package/node/StaticTimePicker/StaticTimePicker.js +338 -0
  199. package/node/TimePicker/TimePicker.js +400 -0
  200. package/node/TimePicker/index.js +4 -2
  201. package/node/YearPicker/YearPicker.js +40 -0
  202. package/node/index.js +1 -1
  203. package/package.json +4 -4
@@ -0,0 +1,515 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import * as React from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import { DesktopDateTimePicker as XDesktopDateTimePicker } from '@mui/x-date-pickers/DesktopDateTimePicker';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ let warnedOnce = false;
7
+
8
+ const warn = () => {
9
+ if (!warnedOnce) {
10
+ console.warn(['MUI: The DesktopDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', 'The component will no longer be exported from `@mui/lab` in the first release of July 2022.', '', "You should use `import { DesktopDateTimePicker } from '@mui/x-date-pickers'`", "or `import { DesktopDateTimePicker } from '@mui/x-date-pickers/DesktopDateTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
11
+ warnedOnce = true;
12
+ }
13
+ };
14
+
15
+ /**
16
+ * @ignore - do not document.
17
+ */
18
+ const DesktopDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDesktopDateTimePicker(props, ref) {
19
+ warn();
20
+ return /*#__PURE__*/_jsx(XDesktopDateTimePicker, _extends({
21
+ ref: ref
22
+ }, props));
23
+ });
24
+ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
25
+ /* remove-proptypes */
26
+ = {
27
+ // ----------------------------- Warning --------------------------------
28
+ // | These PropTypes are generated from the TypeScript type definitions |
29
+ // | To update them edit TypeScript types and run "yarn proptypes" |
30
+ // ----------------------------------------------------------------------
31
+
32
+ /**
33
+ * Regular expression to detect "accepted" symbols.
34
+ * @default /\dap/gi
35
+ */
36
+ acceptRegex: PropTypes.instanceOf(RegExp),
37
+
38
+ /**
39
+ * If `true`, `onChange` is fired on click even if the same date is selected.
40
+ * @default false
41
+ */
42
+ allowSameDateSelection: PropTypes.bool,
43
+
44
+ /**
45
+ * 12h/24h view for hour selection clock.
46
+ * @default false
47
+ */
48
+ ampm: PropTypes.bool,
49
+
50
+ /**
51
+ * Display ampm controls under the clock (instead of in the toolbar).
52
+ * @default false
53
+ */
54
+ ampmInClock: PropTypes.bool,
55
+
56
+ /**
57
+ * @ignore
58
+ */
59
+ autoFocus: PropTypes.bool,
60
+
61
+ /**
62
+ * @ignore
63
+ */
64
+ children: PropTypes.node,
65
+
66
+ /**
67
+ * className applied to the root component.
68
+ */
69
+ className: PropTypes.string,
70
+
71
+ /**
72
+ * If `true`, it shows the clear action in the picker dialog.
73
+ * @default false
74
+ */
75
+ clearable: PropTypes.bool,
76
+
77
+ /**
78
+ * Clear text message.
79
+ * @default 'Clear'
80
+ */
81
+ clearText: PropTypes.node,
82
+
83
+ /**
84
+ * The components used for each slot.
85
+ * Either a string to use an HTML element or a component.
86
+ * @default {}
87
+ */
88
+ components: PropTypes.shape({
89
+ LeftArrowButton: PropTypes.elementType,
90
+ LeftArrowIcon: PropTypes.elementType,
91
+ OpenPickerIcon: PropTypes.elementType,
92
+ RightArrowButton: PropTypes.elementType,
93
+ RightArrowIcon: PropTypes.elementType,
94
+ SwitchViewButton: PropTypes.elementType,
95
+ SwitchViewIcon: PropTypes.elementType
96
+ }),
97
+
98
+ /**
99
+ * The props used for each slot inside.
100
+ * @default {}
101
+ */
102
+ componentsProps: PropTypes.shape({
103
+ leftArrowButton: PropTypes.object,
104
+ rightArrowButton: PropTypes.object,
105
+ switchViewButton: PropTypes.object
106
+ }),
107
+
108
+ /**
109
+ * Date tab icon.
110
+ */
111
+ dateRangeIcon: PropTypes.node,
112
+
113
+ /**
114
+ * Default calendar month displayed when `value={null}`.
115
+ */
116
+ defaultCalendarMonth: PropTypes.any,
117
+
118
+ /**
119
+ * If `true` the popup or dialog will immediately close after submitting full date.
120
+ * @default `true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).
121
+ */
122
+ disableCloseOnSelect: PropTypes.bool,
123
+
124
+ /**
125
+ * If `true`, the picker and text field are disabled.
126
+ * @default false
127
+ */
128
+ disabled: PropTypes.bool,
129
+
130
+ /**
131
+ * @default false
132
+ */
133
+ disableFuture: PropTypes.bool,
134
+
135
+ /**
136
+ * If `true`, todays date is rendering without highlighting with circle.
137
+ * @default false
138
+ */
139
+ disableHighlightToday: PropTypes.bool,
140
+
141
+ /**
142
+ * Do not ignore date part when validating min/max time.
143
+ * @default false
144
+ */
145
+ disableIgnoringDatePartForTimeValidation: PropTypes.bool,
146
+
147
+ /**
148
+ * Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.
149
+ * @default false
150
+ */
151
+ disableMaskedInput: PropTypes.bool,
152
+
153
+ /**
154
+ * Do not render open picker button (renders only text field with validation).
155
+ * @default false
156
+ */
157
+ disableOpenPicker: PropTypes.bool,
158
+
159
+ /**
160
+ * @default false
161
+ */
162
+ disablePast: PropTypes.bool,
163
+
164
+ /**
165
+ * Accessible text that helps user to understand which time and view is selected.
166
+ * @template TDate
167
+ * @param {ClockPickerView} view The current view rendered.
168
+ * @param {TDate | null} time The current time.
169
+ * @param {MuiPickersAdapter<TDate>} adapter The current date adapter.
170
+ * @returns {string} The clock label.
171
+ * @default <TDate extends any>(
172
+ * view: ClockView,
173
+ * time: TDate | null,
174
+ * adapter: MuiPickersAdapter<TDate>,
175
+ * ) =>
176
+ * `Select ${view}. ${
177
+ * time === null ? 'No time selected' : `Selected time is ${adapter.format(time, 'fullTime')}`
178
+ * }`
179
+ */
180
+ getClockLabelText: PropTypes.func,
181
+
182
+ /**
183
+ * Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType
184
+ * @template TDateValue
185
+ * @param {ParseableDate<TDateValue>} value The date from which we want to add an aria-text.
186
+ * @param {MuiPickersAdapter<TDateValue>} utils The utils to manipulate the date.
187
+ * @returns {string} The aria-text to render inside the dialog.
188
+ * @default (value, utils) => `Choose date, selected date is ${utils.format(utils.date(value), 'fullDate')}`
189
+ */
190
+ getOpenDialogAriaText: PropTypes.func,
191
+
192
+ /**
193
+ * Get aria-label text for switching between views button.
194
+ * @param {CalendarPickerView} currentView The view from which we want to get the button text.
195
+ * @returns {string} The label of the view.
196
+ */
197
+ getViewSwitchingButtonText: PropTypes.func,
198
+
199
+ /**
200
+ * To show tabs.
201
+ */
202
+ hideTabs: PropTypes.bool,
203
+
204
+ /**
205
+ * @ignore
206
+ */
207
+ ignoreInvalidInputs: PropTypes.bool,
208
+
209
+ /**
210
+ * Props to pass to keyboard input adornment.
211
+ */
212
+ InputAdornmentProps: PropTypes.object,
213
+
214
+ /**
215
+ * Format string.
216
+ */
217
+ inputFormat: PropTypes.string,
218
+
219
+ /**
220
+ * @ignore
221
+ */
222
+ InputProps: PropTypes.object,
223
+
224
+ /**
225
+ * Pass a ref to the `input` element.
226
+ */
227
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
228
+ current: PropTypes.object
229
+ })]),
230
+
231
+ /**
232
+ * @ignore
233
+ */
234
+ label: PropTypes.node,
235
+
236
+ /**
237
+ * Left arrow icon aria-label text.
238
+ */
239
+ leftArrowButtonText: PropTypes.string,
240
+
241
+ /**
242
+ * If `true` renders `LoadingComponent` in calendar instead of calendar view.
243
+ * Can be used to preload information and show it in calendar.
244
+ * @default false
245
+ */
246
+ loading: PropTypes.bool,
247
+
248
+ /**
249
+ * Custom mask. Can be used to override generate from format. (e.g. `__/__/____ __:__` or `__/__/____ __:__ _M`).
250
+ */
251
+ mask: PropTypes.string,
252
+
253
+ /**
254
+ * Max selectable date. @DateIOType
255
+ */
256
+ maxDate: PropTypes.any,
257
+
258
+ /**
259
+ * Minimal selectable moment of time with binding to date, to set max time in each day use `maxTime`.
260
+ */
261
+ maxDateTime: PropTypes.any,
262
+
263
+ /**
264
+ * Max time acceptable time.
265
+ * For input validation date part of passed object will be ignored if `disableIgnoringDatePartForTimeValidation` not specified.
266
+ */
267
+ maxTime: PropTypes.any,
268
+
269
+ /**
270
+ * Min selectable date. @DateIOType
271
+ */
272
+ minDate: PropTypes.any,
273
+
274
+ /**
275
+ * Minimal selectable moment of time with binding to date, to set min time in each day use `minTime`.
276
+ */
277
+ minDateTime: PropTypes.any,
278
+
279
+ /**
280
+ * Min time acceptable time.
281
+ * For input validation date part of passed object will be ignored if `disableIgnoringDatePartForTimeValidation` not specified.
282
+ */
283
+ minTime: PropTypes.any,
284
+
285
+ /**
286
+ * Step over minutes.
287
+ * @default 1
288
+ */
289
+ minutesStep: PropTypes.number,
290
+
291
+ /**
292
+ * Callback fired when date is accepted @DateIOType.
293
+ * @template TDateValue
294
+ * @param {TDateValue} date The date that was just accepted.
295
+ */
296
+ onAccept: PropTypes.func,
297
+
298
+ /**
299
+ * Callback fired when the value (the selected date) changes @DateIOType.
300
+ * @template TDate
301
+ * @param {DateRange<TDate>} date The new parsed date.
302
+ * @param {string} keyboardInputValue The current value of the keyboard input.
303
+ */
304
+ onChange: PropTypes.func.isRequired,
305
+
306
+ /**
307
+ * Callback fired when the popup requests to be closed.
308
+ * Use in controlled mode (see open).
309
+ */
310
+ onClose: PropTypes.func,
311
+
312
+ /**
313
+ * Callback that fired when input value or new `value` prop validation returns **new** validation error (or value is valid after error).
314
+ * In case of validation error detected `reason` prop return non-null value and `TextField` must be displayed in `error` state.
315
+ * This can be used to render appropriate form error.
316
+ *
317
+ * [Read the guide](https://next.material-ui-pickers.dev/guides/forms) about form integration and error displaying.
318
+ * @DateIOType
319
+ *
320
+ * @template TError, TDateValue
321
+ * @param {TError} reason The reason why the current value is not valid.
322
+ * @param {TDateValue} value The invalid value.
323
+ */
324
+ onError: PropTypes.func,
325
+
326
+ /**
327
+ * Callback firing on month change. @DateIOType
328
+ * @template TDate
329
+ * @param {TDate} month The new month.
330
+ */
331
+ onMonthChange: PropTypes.func,
332
+
333
+ /**
334
+ * Callback fired when the popup requests to be opened.
335
+ * Use in controlled mode (see open).
336
+ */
337
+ onOpen: PropTypes.func,
338
+
339
+ /**
340
+ * Callback fired on view change.
341
+ * @param {CalendarOrClockPickerView} view The new view.
342
+ */
343
+ onViewChange: PropTypes.func,
344
+
345
+ /**
346
+ * Callback firing on year change @DateIOType.
347
+ * @template TDate
348
+ * @param {TDate} year The new year.
349
+ */
350
+ onYearChange: PropTypes.func,
351
+
352
+ /**
353
+ * Control the popup or dialog open state.
354
+ */
355
+ open: PropTypes.bool,
356
+
357
+ /**
358
+ * Props to pass to keyboard adornment button.
359
+ */
360
+ OpenPickerButtonProps: PropTypes.object,
361
+
362
+ /**
363
+ * First view to show.
364
+ */
365
+ openTo: PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']),
366
+
367
+ /**
368
+ * Force rendering in particular orientation.
369
+ */
370
+ orientation: PropTypes.oneOf(['landscape', 'portrait']),
371
+
372
+ /**
373
+ * Paper props passed down to [Paper](https://mui.com/material-ui/api/paper/) component.
374
+ */
375
+ PaperProps: PropTypes.object,
376
+
377
+ /**
378
+ * Popper props passed down to [Popper](https://mui.com/material-ui/api/popper/) component.
379
+ */
380
+ PopperProps: PropTypes.object,
381
+
382
+ /**
383
+ * Make picker read only.
384
+ * @default false
385
+ */
386
+ readOnly: PropTypes.bool,
387
+
388
+ /**
389
+ * Disable heavy animations.
390
+ * @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
391
+ */
392
+ reduceAnimations: PropTypes.bool,
393
+
394
+ /**
395
+ * Custom renderer for day. Check the [PickersDay](https://mui.com/x/api/date-pickers/pickers-day/) component.
396
+ * @template TDate
397
+ * @param {TDate} day The day to render.
398
+ * @param {Array<TDate | null>} selectedDates The dates currently selected.
399
+ * @param {PickersDayProps<TDate>} pickersDayProps The props of the day to render.
400
+ * @returns {JSX.Element} The element representing the day.
401
+ */
402
+ renderDay: PropTypes.func,
403
+
404
+ /**
405
+ * The `renderInput` prop allows you to customize the rendered input.
406
+ * The `props` argument of this render prop contains props of [TextField](https://mui.com/material-ui/api/text-field/#props) that you need to forward.
407
+ * Pay specific attention to the `ref` and `inputProps` keys.
408
+ * @example ```jsx
409
+ * renderInput={props => <TextField {...props} />}
410
+ * ````
411
+ * @param {MuiTextFieldPropsType} props The props of the input.
412
+ * @returns {React.ReactNode} The node to render as the input.
413
+ */
414
+ renderInput: PropTypes.func.isRequired,
415
+
416
+ /**
417
+ * Component displaying when passed `loading` true.
418
+ * @returns {React.ReactNode} The node to render when loading.
419
+ * @default () => <span data-mui-test="loading-progress">...</span>
420
+ */
421
+ renderLoading: PropTypes.func,
422
+
423
+ /**
424
+ * Custom formatter to be passed into Rifm component.
425
+ * @param {string} str The un-formatted string.
426
+ * @returns {string} The formatted string.
427
+ */
428
+ rifmFormatter: PropTypes.func,
429
+
430
+ /**
431
+ * Right arrow icon aria-label text.
432
+ */
433
+ rightArrowButtonText: PropTypes.string,
434
+
435
+ /**
436
+ * Disable specific date. @DateIOType
437
+ * @template TDate
438
+ * @param {TDate} day The date to check.
439
+ * @returns {boolean} If `true` the day will be disabled.
440
+ */
441
+ shouldDisableDate: PropTypes.func,
442
+
443
+ /**
444
+ * Dynamically check if time is disabled or not.
445
+ * If returns `false` appropriate time point will ot be acceptable.
446
+ * @param {number} timeValue The value to check.
447
+ * @param {ClockPickerView} clockType The clock type of the timeValue.
448
+ * @returns {boolean} Returns `true` if the time should be disabled
449
+ */
450
+ shouldDisableTime: PropTypes.func,
451
+
452
+ /**
453
+ * Disable specific years dynamically.
454
+ * Works like `shouldDisableDate` but for year selection view @DateIOType.
455
+ * @template TDate
456
+ * @param {TDate} year The year to test.
457
+ * @returns {boolean} Return `true` if the year should be disabled.
458
+ */
459
+ shouldDisableYear: PropTypes.func,
460
+
461
+ /**
462
+ * If `true`, days that have `outsideCurrentMonth={true}` are displayed.
463
+ * @default false
464
+ */
465
+ showDaysOutsideCurrentMonth: PropTypes.bool,
466
+
467
+ /**
468
+ * If `true`, show the toolbar even in desktop mode.
469
+ */
470
+ showToolbar: PropTypes.bool,
471
+
472
+ /**
473
+ * Time tab icon.
474
+ */
475
+ timeIcon: PropTypes.node,
476
+
477
+ /**
478
+ * Component that will replace default toolbar renderer.
479
+ * @default DateTimePickerToolbar
480
+ */
481
+ ToolbarComponent: PropTypes.elementType,
482
+
483
+ /**
484
+ * Date format, that is displaying in toolbar.
485
+ */
486
+ toolbarFormat: PropTypes.string,
487
+
488
+ /**
489
+ * Mobile picker date value placeholder, displaying if `value` === `null`.
490
+ * @default '–'
491
+ */
492
+ toolbarPlaceholder: PropTypes.node,
493
+
494
+ /**
495
+ * Mobile picker title, displaying in the toolbar.
496
+ * @default 'Select date & time'
497
+ */
498
+ toolbarTitle: PropTypes.node,
499
+
500
+ /**
501
+ * Custom component for popper [Transition](https://mui.com/material-ui/transitions/#transitioncomponent-prop).
502
+ */
503
+ TransitionComponent: PropTypes.elementType,
504
+
505
+ /**
506
+ * The value of the picker.
507
+ */
508
+ value: PropTypes.oneOfType([PropTypes.any, PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]),
509
+
510
+ /**
511
+ * Array of views to show.
512
+ */
513
+ views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']).isRequired)
514
+ } : void 0;
515
+ export default DesktopDateTimePicker;
@@ -1,2 +1,2 @@
1
- export { DesktopDateTimePicker as default } from '@mui/x-date-pickers/DesktopDateTimePicker';
1
+ export { default } from './DesktopDateTimePicker';
2
2
  export type { DesktopDateTimePickerProps } from '@mui/x-date-pickers/DesktopDateTimePicker';
@@ -1 +1 @@
1
- export { DesktopDateTimePicker as default } from '@mui/x-date-pickers/DesktopDateTimePicker';
1
+ export { default } from './DesktopDateTimePicker';
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { DesktopTimePickerProps } from '@mui/x-date-pickers/DesktopTimePicker';
3
+ declare type DesktopTimePickerComponent = (<TDate>(props: DesktopTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
4
+ propTypes?: any;
5
+ };
6
+ /**
7
+ * @ignore - do not document.
8
+ */
9
+ declare const DesktopTimePicker: DesktopTimePickerComponent;
10
+ export default DesktopTimePicker;