@mui/lab 5.0.0-alpha.89 → 5.0.0-alpha.92

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