@mui/lab 5.0.0-alpha.82 → 5.0.0-alpha.85

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 (229) hide show
  1. package/AdapterDateFns/index.d.ts +1 -1
  2. package/AdapterDayjs/index.d.ts +1 -1
  3. package/AdapterLuxon/index.d.ts +1 -1
  4. package/AdapterMoment/index.d.ts +1 -1
  5. package/CHANGELOG.md +203 -6
  6. package/CalendarPicker/CalendarPicker.d.ts +10 -0
  7. package/CalendarPicker/CalendarPicker.js +21 -0
  8. package/CalendarPicker/index.d.ts +3 -2
  9. package/CalendarPicker/index.js +2 -1
  10. package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +10 -0
  11. package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +35 -0
  12. package/CalendarPickerSkeleton/index.d.ts +3 -2
  13. package/CalendarPickerSkeleton/index.js +2 -1
  14. package/ClockPicker/ClockPicker.d.ts +10 -0
  15. package/ClockPicker/ClockPicker.js +21 -0
  16. package/ClockPicker/index.d.ts +3 -2
  17. package/ClockPicker/index.js +2 -1
  18. package/DatePicker/DatePicker.d.ts +10 -0
  19. package/DatePicker/DatePicker.js +466 -0
  20. package/DatePicker/index.d.ts +2 -2
  21. package/DatePicker/index.js +1 -1
  22. package/DateRangePicker/DateRangePicker.d.ts +11 -11
  23. package/DateRangePicker/index.d.ts +2 -2
  24. package/DateRangePickerDay/DateRangePickerDay.d.ts +13 -13
  25. package/DateRangePickerDay/index.d.ts +2 -2
  26. package/DateTimePicker/DateTimePicker.d.ts +10 -0
  27. package/DateTimePicker/DateTimePicker.js +554 -0
  28. package/DateTimePicker/index.d.ts +2 -2
  29. package/DateTimePicker/index.js +1 -1
  30. package/DesktopDatePicker/DesktopDatePicker.d.ts +10 -0
  31. package/DesktopDatePicker/DesktopDatePicker.js +430 -0
  32. package/DesktopDatePicker/index.d.ts +2 -2
  33. package/DesktopDatePicker/index.js +1 -1
  34. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +10 -10
  35. package/DesktopDateRangePicker/index.d.ts +2 -2
  36. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +10 -0
  37. package/DesktopDateTimePicker/DesktopDateTimePicker.js +518 -0
  38. package/DesktopDateTimePicker/index.d.ts +2 -2
  39. package/DesktopDateTimePicker/index.js +1 -1
  40. package/DesktopTimePicker/DesktopTimePicker.d.ts +10 -0
  41. package/DesktopTimePicker/DesktopTimePicker.js +348 -0
  42. package/DesktopTimePicker/index.d.ts +2 -2
  43. package/LoadingButton/loadingButtonClasses.d.ts +22 -22
  44. package/LocalizationProvider/LocalizationProvider.d.ts +10 -0
  45. package/LocalizationProvider/LocalizationProvider.js +35 -0
  46. package/LocalizationProvider/index.d.ts +2 -2
  47. package/LocalizationProvider/index.js +1 -1
  48. package/Masonry/Masonry.js +9 -9
  49. package/Masonry/masonryClasses.d.ts +8 -8
  50. package/MobileDatePicker/MobileDatePicker.d.ts +10 -0
  51. package/MobileDatePicker/MobileDatePicker.js +444 -0
  52. package/MobileDatePicker/index.d.ts +2 -2
  53. package/MobileDatePicker/index.js +1 -1
  54. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +10 -10
  55. package/MobileDateRangePicker/index.d.ts +2 -2
  56. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +10 -0
  57. package/MobileDateTimePicker/MobileDateTimePicker.js +532 -0
  58. package/MobileDateTimePicker/index.d.ts +2 -2
  59. package/MobileDateTimePicker/index.js +1 -1
  60. package/MobileTimePicker/MobileTimePicker.d.ts +10 -0
  61. package/MobileTimePicker/MobileTimePicker.js +362 -0
  62. package/MobileTimePicker/index.d.ts +2 -2
  63. package/MobileTimePicker/index.js +1 -1
  64. package/MonthPicker/MonthPicker.d.ts +10 -0
  65. package/MonthPicker/MonthPicker.js +21 -0
  66. package/MonthPicker/index.d.ts +3 -2
  67. package/MonthPicker/index.js +2 -1
  68. package/PickersDay/PickersDay.d.ts +10 -0
  69. package/PickersDay/PickersDay.js +35 -0
  70. package/PickersDay/index.d.ts +3 -2
  71. package/PickersDay/index.js +2 -1
  72. package/StaticDatePicker/StaticDatePicker.d.ts +10 -0
  73. package/StaticDatePicker/StaticDatePicker.js +404 -0
  74. package/StaticDatePicker/index.d.ts +2 -2
  75. package/StaticDatePicker/index.js +1 -1
  76. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +10 -10
  77. package/StaticDateRangePicker/index.d.ts +2 -2
  78. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +10 -0
  79. package/StaticDateTimePicker/StaticDateTimePicker.js +492 -0
  80. package/StaticDateTimePicker/index.d.ts +2 -2
  81. package/StaticDateTimePicker/index.js +1 -1
  82. package/StaticTimePicker/StaticTimePicker.d.ts +10 -0
  83. package/StaticTimePicker/StaticTimePicker.js +322 -0
  84. package/StaticTimePicker/index.d.ts +2 -2
  85. package/TabPanel/tabPanelClasses.d.ts +8 -8
  86. package/TimePicker/TimePicker.d.ts +10 -0
  87. package/TimePicker/TimePicker.js +384 -0
  88. package/TimePicker/index.d.ts +2 -2
  89. package/TimePicker/index.js +1 -1
  90. package/Timeline/Timeline.d.ts +59 -59
  91. package/Timeline/TimelineContext.d.ts +6 -6
  92. package/Timeline/index.d.ts +5 -5
  93. package/Timeline/timelineClasses.d.ts +3 -3
  94. package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
  95. package/TimelineContent/timelineContentClasses.d.ts +14 -14
  96. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  97. package/TimelineItem/timelineItemClasses.d.ts +16 -16
  98. package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
  99. package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
  100. package/TreeItem/TreeItem.js +1 -1
  101. package/TreeItem/treeItemClasses.d.ts +24 -24
  102. package/TreeView/treeViewClasses.d.ts +8 -8
  103. package/YearPicker/YearPicker.d.ts +10 -0
  104. package/YearPicker/YearPicker.js +21 -0
  105. package/YearPicker/index.d.ts +2 -2
  106. package/index.js +1 -1
  107. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  108. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  109. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  110. package/internal/svg-icons/Calendar.d.ts +7 -7
  111. package/internal/svg-icons/Clock.d.ts +7 -7
  112. package/internal/svg-icons/DateRange.d.ts +7 -7
  113. package/internal/svg-icons/Pen.d.ts +7 -7
  114. package/internal/svg-icons/Time.d.ts +7 -7
  115. package/legacy/CalendarPicker/CalendarPicker.js +21 -0
  116. package/legacy/CalendarPicker/index.js +2 -1
  117. package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +35 -0
  118. package/legacy/CalendarPickerSkeleton/index.js +2 -1
  119. package/legacy/ClockPicker/ClockPicker.js +21 -0
  120. package/legacy/ClockPicker/index.js +2 -1
  121. package/legacy/DatePicker/DatePicker.js +466 -0
  122. package/legacy/DatePicker/index.js +1 -1
  123. package/legacy/DateTimePicker/DateTimePicker.js +554 -0
  124. package/legacy/DateTimePicker/index.js +1 -1
  125. package/legacy/DesktopDatePicker/DesktopDatePicker.js +430 -0
  126. package/legacy/DesktopDatePicker/index.js +1 -1
  127. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +518 -0
  128. package/legacy/DesktopDateTimePicker/index.js +1 -1
  129. package/legacy/DesktopTimePicker/DesktopTimePicker.js +348 -0
  130. package/legacy/LocalizationProvider/LocalizationProvider.js +35 -0
  131. package/legacy/LocalizationProvider/index.js +1 -1
  132. package/legacy/Masonry/Masonry.js +9 -9
  133. package/legacy/MobileDatePicker/MobileDatePicker.js +444 -0
  134. package/legacy/MobileDatePicker/index.js +1 -1
  135. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +532 -0
  136. package/legacy/MobileDateTimePicker/index.js +1 -1
  137. package/legacy/MobileTimePicker/MobileTimePicker.js +362 -0
  138. package/legacy/MobileTimePicker/index.js +1 -1
  139. package/legacy/MonthPicker/MonthPicker.js +21 -0
  140. package/legacy/MonthPicker/index.js +2 -1
  141. package/legacy/PickersDay/PickersDay.js +35 -0
  142. package/legacy/PickersDay/index.js +2 -1
  143. package/legacy/StaticDatePicker/StaticDatePicker.js +404 -0
  144. package/legacy/StaticDatePicker/index.js +1 -1
  145. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +492 -0
  146. package/legacy/StaticDateTimePicker/index.js +1 -1
  147. package/legacy/StaticTimePicker/StaticTimePicker.js +322 -0
  148. package/legacy/TimePicker/TimePicker.js +384 -0
  149. package/legacy/TimePicker/index.js +1 -1
  150. package/legacy/TreeItem/TreeItem.js +1 -1
  151. package/legacy/YearPicker/YearPicker.js +21 -0
  152. package/legacy/index.js +1 -1
  153. package/modern/CalendarPicker/CalendarPicker.js +21 -0
  154. package/modern/CalendarPicker/index.js +2 -1
  155. package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +35 -0
  156. package/modern/CalendarPickerSkeleton/index.js +2 -1
  157. package/modern/ClockPicker/ClockPicker.js +21 -0
  158. package/modern/ClockPicker/index.js +2 -1
  159. package/modern/DatePicker/DatePicker.js +466 -0
  160. package/modern/DatePicker/index.js +1 -1
  161. package/modern/DateTimePicker/DateTimePicker.js +554 -0
  162. package/modern/DateTimePicker/index.js +1 -1
  163. package/modern/DesktopDatePicker/DesktopDatePicker.js +430 -0
  164. package/modern/DesktopDatePicker/index.js +1 -1
  165. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +518 -0
  166. package/modern/DesktopDateTimePicker/index.js +1 -1
  167. package/modern/DesktopTimePicker/DesktopTimePicker.js +348 -0
  168. package/modern/LocalizationProvider/LocalizationProvider.js +35 -0
  169. package/modern/LocalizationProvider/index.js +1 -1
  170. package/modern/Masonry/Masonry.js +9 -9
  171. package/modern/MobileDatePicker/MobileDatePicker.js +444 -0
  172. package/modern/MobileDatePicker/index.js +1 -1
  173. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +532 -0
  174. package/modern/MobileDateTimePicker/index.js +1 -1
  175. package/modern/MobileTimePicker/MobileTimePicker.js +362 -0
  176. package/modern/MobileTimePicker/index.js +1 -1
  177. package/modern/MonthPicker/MonthPicker.js +21 -0
  178. package/modern/MonthPicker/index.js +2 -1
  179. package/modern/PickersDay/PickersDay.js +35 -0
  180. package/modern/PickersDay/index.js +2 -1
  181. package/modern/StaticDatePicker/StaticDatePicker.js +404 -0
  182. package/modern/StaticDatePicker/index.js +1 -1
  183. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +492 -0
  184. package/modern/StaticDateTimePicker/index.js +1 -1
  185. package/modern/StaticTimePicker/StaticTimePicker.js +322 -0
  186. package/modern/TimePicker/TimePicker.js +384 -0
  187. package/modern/TimePicker/index.js +1 -1
  188. package/modern/TreeItem/TreeItem.js +1 -1
  189. package/modern/YearPicker/YearPicker.js +21 -0
  190. package/modern/index.js +1 -1
  191. package/node/CalendarPicker/CalendarPicker.js +39 -0
  192. package/node/CalendarPicker/index.js +7 -3
  193. package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +54 -0
  194. package/node/CalendarPickerSkeleton/index.js +8 -4
  195. package/node/ClockPicker/ClockPicker.js +39 -0
  196. package/node/ClockPicker/index.js +7 -3
  197. package/node/DatePicker/DatePicker.js +485 -0
  198. package/node/DatePicker/index.js +4 -2
  199. package/node/DateTimePicker/DateTimePicker.js +573 -0
  200. package/node/DateTimePicker/index.js +4 -2
  201. package/node/DesktopDatePicker/DesktopDatePicker.js +449 -0
  202. package/node/DesktopDatePicker/index.js +4 -2
  203. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +537 -0
  204. package/node/DesktopDateTimePicker/index.js +4 -2
  205. package/node/DesktopTimePicker/DesktopTimePicker.js +367 -0
  206. package/node/LocalizationProvider/LocalizationProvider.js +54 -0
  207. package/node/LocalizationProvider/index.js +4 -2
  208. package/node/Masonry/Masonry.js +9 -9
  209. package/node/MobileDatePicker/MobileDatePicker.js +463 -0
  210. package/node/MobileDatePicker/index.js +4 -2
  211. package/node/MobileDateTimePicker/MobileDateTimePicker.js +551 -0
  212. package/node/MobileDateTimePicker/index.js +4 -2
  213. package/node/MobileTimePicker/MobileTimePicker.js +381 -0
  214. package/node/MobileTimePicker/index.js +4 -2
  215. package/node/MonthPicker/MonthPicker.js +39 -0
  216. package/node/MonthPicker/index.js +8 -4
  217. package/node/PickersDay/PickersDay.js +54 -0
  218. package/node/PickersDay/index.js +8 -4
  219. package/node/StaticDatePicker/StaticDatePicker.js +423 -0
  220. package/node/StaticDatePicker/index.js +4 -2
  221. package/node/StaticDateTimePicker/StaticDateTimePicker.js +511 -0
  222. package/node/StaticDateTimePicker/index.js +4 -2
  223. package/node/StaticTimePicker/StaticTimePicker.js +341 -0
  224. package/node/TimePicker/TimePicker.js +403 -0
  225. package/node/TimePicker/index.js +4 -2
  226. package/node/TreeItem/TreeItem.js +1 -1
  227. package/node/YearPicker/YearPicker.js +39 -0
  228. package/node/index.js +1 -1
  229. package/package.json +12 -4
@@ -0,0 +1,362 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import * as React from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import { MobileTimePicker as XMobileTimePicker } from '@mui/x-date-pickers/MobileTimePicker';
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 MobileTimePicker 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 { MobileTimePicker } from '@mui/x-date-pickers'`", "or `import { MobileTimePicker } from '@mui/x-date-pickers/MobileTimePicker'`", '', '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 MobileTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileTimePicker(props) {
19
+ warn();
20
+ return /*#__PURE__*/_jsx(XMobileTimePicker, _extends({}, props));
21
+ });
22
+ process.env.NODE_ENV !== "production" ? MobileTimePicker.propTypes
23
+ /* remove-proptypes */
24
+ = {
25
+ // ----------------------------- Warning --------------------------------
26
+ // | These PropTypes are generated from the TypeScript type definitions |
27
+ // | To update them edit TypeScript types and run "yarn proptypes" |
28
+ // ----------------------------------------------------------------------
29
+
30
+ /**
31
+ * Regular expression to detect "accepted" symbols.
32
+ * @default /\dap/gi
33
+ */
34
+ acceptRegex: PropTypes.instanceOf(RegExp),
35
+
36
+ /**
37
+ * 12h/24h view for hour selection clock.
38
+ * @default false
39
+ */
40
+ ampm: PropTypes.bool,
41
+
42
+ /**
43
+ * Display ampm controls under the clock (instead of in the toolbar).
44
+ * @default false
45
+ */
46
+ ampmInClock: PropTypes.bool,
47
+
48
+ /**
49
+ * Cancel text message.
50
+ * @default 'Cancel'
51
+ */
52
+ cancelText: PropTypes.node,
53
+
54
+ /**
55
+ * @ignore
56
+ */
57
+ children: PropTypes.node,
58
+
59
+ /**
60
+ * className applied to the root component.
61
+ */
62
+ className: PropTypes.string,
63
+
64
+ /**
65
+ * If `true`, it shows the clear action in the picker dialog.
66
+ * @default false
67
+ */
68
+ clearable: PropTypes.bool,
69
+
70
+ /**
71
+ * Clear text message.
72
+ * @default 'Clear'
73
+ */
74
+ clearText: PropTypes.node,
75
+
76
+ /**
77
+ * The components used for each slot.
78
+ * Either a string to use an HTML element or a component.
79
+ */
80
+ components: PropTypes.shape({
81
+ OpenPickerIcon: PropTypes.elementType
82
+ }),
83
+
84
+ /**
85
+ * Props applied to the [`Dialog`](https://mui.com/material-ui/api/dialog/) element.
86
+ */
87
+ DialogProps: PropTypes.object,
88
+
89
+ /**
90
+ * If `true` the popup or dialog will immediately close after submitting full date.
91
+ * @default `true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).
92
+ */
93
+ disableCloseOnSelect: PropTypes.bool,
94
+
95
+ /**
96
+ * If `true`, the picker and text field are disabled.
97
+ */
98
+ disabled: PropTypes.bool,
99
+
100
+ /**
101
+ * Do not ignore date part when validating min/max time.
102
+ * @default false
103
+ */
104
+ disableIgnoringDatePartForTimeValidation: PropTypes.bool,
105
+
106
+ /**
107
+ * Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.
108
+ * @default false
109
+ */
110
+ disableMaskedInput: PropTypes.bool,
111
+
112
+ /**
113
+ * Do not render open picker button (renders only text field with validation).
114
+ * @default false
115
+ */
116
+ disableOpenPicker: PropTypes.bool,
117
+
118
+ /**
119
+ * Accessible text that helps user to understand which time and view is selected.
120
+ * @template TDate
121
+ * @param {ClockPickerView} view The current view rendered.
122
+ * @param {TDate | null} time The current time.
123
+ * @param {MuiPickersAdapter<TDate>} adapter The current date adapter.
124
+ * @returns {string} The clock label.
125
+ * @default <TDate extends any>(
126
+ * view: ClockView,
127
+ * time: TDate | null,
128
+ * adapter: MuiPickersAdapter<TDate>,
129
+ * ) =>
130
+ * `Select ${view}. ${
131
+ * time === null ? 'No time selected' : `Selected time is ${adapter.format(time, 'fullTime')}`
132
+ * }`
133
+ */
134
+ getClockLabelText: PropTypes.func,
135
+
136
+ /**
137
+ * Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType
138
+ * @template TDateValue
139
+ * @param {ParseableDate<TDateValue>} value The date from which we want to add an aria-text.
140
+ * @param {MuiPickersAdapter<TDateValue>} utils The utils to manipulate the date.
141
+ * @returns {string} The aria-text to render inside the dialog.
142
+ * @default (value, utils) => `Choose date, selected date is ${utils.format(utils.date(value), 'fullDate')}`
143
+ */
144
+ getOpenDialogAriaText: PropTypes.func,
145
+
146
+ /**
147
+ * @ignore
148
+ */
149
+ ignoreInvalidInputs: PropTypes.bool,
150
+
151
+ /**
152
+ * Props to pass to keyboard input adornment.
153
+ */
154
+ InputAdornmentProps: PropTypes.object,
155
+
156
+ /**
157
+ * Format string.
158
+ */
159
+ inputFormat: PropTypes.string,
160
+
161
+ /**
162
+ * @ignore
163
+ */
164
+ InputProps: PropTypes.object,
165
+
166
+ /**
167
+ * Pass a ref to the `input` element.
168
+ */
169
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
170
+ current: PropTypes.object
171
+ })]),
172
+
173
+ /**
174
+ * @ignore
175
+ */
176
+ key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
177
+
178
+ /**
179
+ * @ignore
180
+ */
181
+ label: PropTypes.node,
182
+
183
+ /**
184
+ * Custom mask. Can be used to override generate from format. (e.g. `__/__/____ __:__` or `__/__/____ __:__ _M`).
185
+ */
186
+ mask: PropTypes.string,
187
+
188
+ /**
189
+ * Max time acceptable time.
190
+ * For input validation date part of passed object will be ignored if `disableIgnoringDatePartForTimeValidation` not specified.
191
+ */
192
+ maxTime: PropTypes.any,
193
+
194
+ /**
195
+ * Min time acceptable time.
196
+ * For input validation date part of passed object will be ignored if `disableIgnoringDatePartForTimeValidation` not specified.
197
+ */
198
+ minTime: PropTypes.any,
199
+
200
+ /**
201
+ * Step over minutes.
202
+ * @default 1
203
+ */
204
+ minutesStep: PropTypes.number,
205
+
206
+ /**
207
+ * Ok button text.
208
+ * @default 'OK'
209
+ */
210
+ okText: PropTypes.node,
211
+
212
+ /**
213
+ * Callback fired when date is accepted @DateIOType.
214
+ * @template TDateValue
215
+ * @param {TDateValue} date The date that was just accepted.
216
+ */
217
+ onAccept: PropTypes.func,
218
+
219
+ /**
220
+ * Callback fired when the value (the selected date) changes @DateIOType.
221
+ * @template TDate
222
+ * @param {DateRange<TDate>} date The new parsed date.
223
+ * @param {string} keyboardInputValue The current value of the keyboard input.
224
+ */
225
+ onChange: PropTypes.func.isRequired,
226
+
227
+ /**
228
+ * Callback fired when the popup requests to be closed.
229
+ * Use in controlled mode (see open).
230
+ */
231
+ onClose: PropTypes.func,
232
+
233
+ /**
234
+ * Callback that fired when input value or new `value` prop validation returns **new** validation error (or value is valid after error).
235
+ * In case of validation error detected `reason` prop return non-null value and `TextField` must be displayed in `error` state.
236
+ * This can be used to render appropriate form error.
237
+ *
238
+ * [Read the guide](https://next.material-ui-pickers.dev/guides/forms) about form integration and error displaying.
239
+ * @DateIOType
240
+ *
241
+ * @template TError, TDateValue
242
+ * @param {TError} reason The reason why the current value is not valid.
243
+ * @param {TDateValue} value The invalid value.
244
+ */
245
+ onError: PropTypes.func,
246
+
247
+ /**
248
+ * Callback fired when the popup requests to be opened.
249
+ * Use in controlled mode (see open).
250
+ */
251
+ onOpen: PropTypes.func,
252
+
253
+ /**
254
+ * Callback fired on view change.
255
+ * @param {ClockPickerView} view The new view.
256
+ */
257
+ onViewChange: PropTypes.func,
258
+
259
+ /**
260
+ * Control the popup or dialog open state.
261
+ */
262
+ open: PropTypes.bool,
263
+
264
+ /**
265
+ * Props to pass to keyboard adornment button.
266
+ */
267
+ OpenPickerButtonProps: PropTypes.object,
268
+
269
+ /**
270
+ * First view to show.
271
+ */
272
+ openTo: PropTypes.oneOf(['hours', 'minutes', 'seconds']),
273
+
274
+ /**
275
+ * Force rendering in particular orientation.
276
+ */
277
+ orientation: PropTypes.oneOf(['landscape', 'portrait']),
278
+
279
+ /**
280
+ * Make picker read only.
281
+ */
282
+ readOnly: PropTypes.bool,
283
+
284
+ /**
285
+ * The `renderInput` prop allows you to customize the rendered input.
286
+ * 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.
287
+ * Pay specific attention to the `ref` and `inputProps` keys.
288
+ * @example ```jsx
289
+ * renderInput={props => <TextField {...props} />}
290
+ * ````
291
+ * @param {MuiTextFieldPropsType} props The props of the input.
292
+ * @returns {React.ReactNode} The node to render as the input.
293
+ */
294
+ renderInput: PropTypes.func.isRequired,
295
+
296
+ /**
297
+ * Custom formatter to be passed into Rifm component.
298
+ * @param {string} str The un-formatted string.
299
+ * @returns {string} The formatted string.
300
+ */
301
+ rifmFormatter: PropTypes.func,
302
+
303
+ /**
304
+ * Dynamically check if time is disabled or not.
305
+ * If returns `false` appropriate time point will ot be acceptable.
306
+ * @param {number} timeValue The value to check.
307
+ * @param {ClockPickerView} clockType The clock type of the timeValue.
308
+ * @returns {boolean} Returns `true` if the time should be disabled
309
+ */
310
+ shouldDisableTime: PropTypes.func,
311
+
312
+ /**
313
+ * If `true`, the today button is displayed. **Note** that `showClearButton` has a higher priority.
314
+ * @default false
315
+ */
316
+ showTodayButton: PropTypes.bool,
317
+
318
+ /**
319
+ * If `true`, show the toolbar even in desktop mode.
320
+ */
321
+ showToolbar: PropTypes.bool,
322
+
323
+ /**
324
+ * Today text message.
325
+ * @default 'Today'
326
+ */
327
+ todayText: PropTypes.node,
328
+
329
+ /**
330
+ * Component that will replace default toolbar renderer.
331
+ * @default TimePickerToolbar
332
+ */
333
+ ToolbarComponent: PropTypes.elementType,
334
+
335
+ /**
336
+ * Date format, that is displaying in toolbar.
337
+ */
338
+ toolbarFormat: PropTypes.string,
339
+
340
+ /**
341
+ * Mobile picker date value placeholder, displaying if `value` === `null`.
342
+ * @default '–'
343
+ */
344
+ toolbarPlaceholder: PropTypes.node,
345
+
346
+ /**
347
+ * Mobile picker title, displaying in the toolbar.
348
+ * @default 'Select time'
349
+ */
350
+ toolbarTitle: PropTypes.node,
351
+
352
+ /**
353
+ * The value of the picker.
354
+ */
355
+ value: PropTypes.oneOfType([PropTypes.any, PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]),
356
+
357
+ /**
358
+ * Array of views to show.
359
+ */
360
+ views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'minutes', 'seconds']).isRequired)
361
+ } : void 0;
362
+ export default MobileTimePicker;
@@ -1 +1 @@
1
- export { MobileTimePicker as default } from '@mui/x-date-pickers/MobileTimePicker';
1
+ export { default } from './MobileTimePicker';
@@ -0,0 +1,21 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import * as React from 'react';
3
+ import { MonthPicker as XMonthPicker } from '@mui/x-date-pickers/MonthPicker';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ let warnedOnce = false;
6
+
7
+ const warn = () => {
8
+ if (!warnedOnce) {
9
+ console.warn(['MUI: The MonthPicker 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 { MonthPicker } from '@mui/x-date-pickers'`", "or `import { MonthPicker } from '@mui/x-date-pickers/MonthPicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
10
+ warnedOnce = true;
11
+ }
12
+ };
13
+
14
+ /**
15
+ * @ignore - do not document.
16
+ */
17
+ const MonthPicker = /*#__PURE__*/React.forwardRef(function DeprecatedMonthPicker(props) {
18
+ warn();
19
+ return /*#__PURE__*/_jsx(XMonthPicker, _extends({}, props));
20
+ });
21
+ export default MonthPicker;
@@ -1 +1,2 @@
1
- export { MonthPicker as default, getMonthPickerUtilityClass, monthPickerClasses } from '@mui/x-date-pickers/MonthPicker';
1
+ export { default } from './MonthPicker';
2
+ export { getMonthPickerUtilityClass, monthPickerClasses } from '@mui/x-date-pickers/MonthPicker';
@@ -0,0 +1,35 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import * as React from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import { PickersDay as XPickersDay } from '@mui/x-date-pickers/PickersDay';
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 PickersDay 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 { PickersDay } from '@mui/x-date-pickers'`", "or `import { PickersDay } from '@mui/x-date-pickers/PickersDay'`", '', '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 PickersDay = /*#__PURE__*/React.forwardRef(function DeprecatedPickersDay(props) {
19
+ warn();
20
+ return /*#__PURE__*/_jsx(XPickersDay, _extends({}, props));
21
+ });
22
+ process.env.NODE_ENV !== "production" ? PickersDay.propTypes
23
+ /* remove-proptypes */
24
+ = {
25
+ // ----------------------------- Warning --------------------------------
26
+ // | These PropTypes are generated from the TypeScript type definitions |
27
+ // | To update them edit TypeScript types and run "yarn proptypes" |
28
+ // ----------------------------------------------------------------------
29
+
30
+ /**
31
+ * The content of the component.
32
+ */
33
+ children: PropTypes.node
34
+ } : void 0;
35
+ export default PickersDay;
@@ -1 +1,2 @@
1
- export { PickersDay as default, pickersDayClasses, getPickersDayUtilityClass } from '@mui/x-date-pickers/PickersDay';
1
+ export { default } from './PickersDay';
2
+ export { pickersDayClasses, getPickersDayUtilityClass } from '@mui/x-date-pickers/PickersDay';