@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.
- package/AdapterDateFns/index.d.ts +1 -1
- package/AdapterDayjs/index.d.ts +1 -1
- package/AdapterLuxon/index.d.ts +1 -1
- package/AdapterMoment/index.d.ts +1 -1
- package/CHANGELOG.md +203 -6
- package/CalendarPicker/CalendarPicker.d.ts +10 -0
- package/CalendarPicker/CalendarPicker.js +21 -0
- package/CalendarPicker/index.d.ts +3 -2
- package/CalendarPicker/index.js +2 -1
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +10 -0
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +35 -0
- package/CalendarPickerSkeleton/index.d.ts +3 -2
- package/CalendarPickerSkeleton/index.js +2 -1
- package/ClockPicker/ClockPicker.d.ts +10 -0
- package/ClockPicker/ClockPicker.js +21 -0
- package/ClockPicker/index.d.ts +3 -2
- package/ClockPicker/index.js +2 -1
- package/DatePicker/DatePicker.d.ts +10 -0
- package/DatePicker/DatePicker.js +466 -0
- package/DatePicker/index.d.ts +2 -2
- package/DatePicker/index.js +1 -1
- package/DateRangePicker/DateRangePicker.d.ts +11 -11
- package/DateRangePicker/index.d.ts +2 -2
- package/DateRangePickerDay/DateRangePickerDay.d.ts +13 -13
- package/DateRangePickerDay/index.d.ts +2 -2
- package/DateTimePicker/DateTimePicker.d.ts +10 -0
- package/DateTimePicker/DateTimePicker.js +554 -0
- package/DateTimePicker/index.d.ts +2 -2
- package/DateTimePicker/index.js +1 -1
- package/DesktopDatePicker/DesktopDatePicker.d.ts +10 -0
- package/DesktopDatePicker/DesktopDatePicker.js +430 -0
- package/DesktopDatePicker/index.d.ts +2 -2
- package/DesktopDatePicker/index.js +1 -1
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +10 -10
- package/DesktopDateRangePicker/index.d.ts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +10 -0
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +518 -0
- package/DesktopDateTimePicker/index.d.ts +2 -2
- package/DesktopDateTimePicker/index.js +1 -1
- package/DesktopTimePicker/DesktopTimePicker.d.ts +10 -0
- package/DesktopTimePicker/DesktopTimePicker.js +348 -0
- package/DesktopTimePicker/index.d.ts +2 -2
- package/LoadingButton/loadingButtonClasses.d.ts +22 -22
- package/LocalizationProvider/LocalizationProvider.d.ts +10 -0
- package/LocalizationProvider/LocalizationProvider.js +35 -0
- package/LocalizationProvider/index.d.ts +2 -2
- package/LocalizationProvider/index.js +1 -1
- package/Masonry/Masonry.js +9 -9
- package/Masonry/masonryClasses.d.ts +8 -8
- package/MobileDatePicker/MobileDatePicker.d.ts +10 -0
- package/MobileDatePicker/MobileDatePicker.js +444 -0
- package/MobileDatePicker/index.d.ts +2 -2
- package/MobileDatePicker/index.js +1 -1
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +10 -10
- package/MobileDateRangePicker/index.d.ts +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +10 -0
- package/MobileDateTimePicker/MobileDateTimePicker.js +532 -0
- package/MobileDateTimePicker/index.d.ts +2 -2
- package/MobileDateTimePicker/index.js +1 -1
- package/MobileTimePicker/MobileTimePicker.d.ts +10 -0
- package/MobileTimePicker/MobileTimePicker.js +362 -0
- package/MobileTimePicker/index.d.ts +2 -2
- package/MobileTimePicker/index.js +1 -1
- package/MonthPicker/MonthPicker.d.ts +10 -0
- package/MonthPicker/MonthPicker.js +21 -0
- package/MonthPicker/index.d.ts +3 -2
- package/MonthPicker/index.js +2 -1
- package/PickersDay/PickersDay.d.ts +10 -0
- package/PickersDay/PickersDay.js +35 -0
- package/PickersDay/index.d.ts +3 -2
- package/PickersDay/index.js +2 -1
- package/StaticDatePicker/StaticDatePicker.d.ts +10 -0
- package/StaticDatePicker/StaticDatePicker.js +404 -0
- package/StaticDatePicker/index.d.ts +2 -2
- package/StaticDatePicker/index.js +1 -1
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +10 -10
- package/StaticDateRangePicker/index.d.ts +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +10 -0
- package/StaticDateTimePicker/StaticDateTimePicker.js +492 -0
- package/StaticDateTimePicker/index.d.ts +2 -2
- package/StaticDateTimePicker/index.js +1 -1
- package/StaticTimePicker/StaticTimePicker.d.ts +10 -0
- package/StaticTimePicker/StaticTimePicker.js +322 -0
- package/StaticTimePicker/index.d.ts +2 -2
- package/TabPanel/tabPanelClasses.d.ts +8 -8
- package/TimePicker/TimePicker.d.ts +10 -0
- package/TimePicker/TimePicker.js +384 -0
- package/TimePicker/index.d.ts +2 -2
- package/TimePicker/index.js +1 -1
- package/Timeline/Timeline.d.ts +59 -59
- package/Timeline/TimelineContext.d.ts +6 -6
- package/Timeline/index.d.ts +5 -5
- package/Timeline/timelineClasses.d.ts +3 -3
- package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
- package/TimelineContent/timelineContentClasses.d.ts +14 -14
- package/TimelineDot/timelineDotClasses.d.ts +24 -24
- package/TimelineItem/timelineItemClasses.d.ts +16 -16
- package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
- package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
- package/TreeItem/TreeItem.js +1 -1
- package/TreeItem/treeItemClasses.d.ts +24 -24
- package/TreeView/treeViewClasses.d.ts +8 -8
- package/YearPicker/YearPicker.d.ts +10 -0
- package/YearPicker/YearPicker.js +21 -0
- package/YearPicker/index.d.ts +2 -2
- package/index.js +1 -1
- package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
- package/internal/svg-icons/ArrowLeft.d.ts +7 -7
- package/internal/svg-icons/ArrowRight.d.ts +7 -7
- package/internal/svg-icons/Calendar.d.ts +7 -7
- package/internal/svg-icons/Clock.d.ts +7 -7
- package/internal/svg-icons/DateRange.d.ts +7 -7
- package/internal/svg-icons/Pen.d.ts +7 -7
- package/internal/svg-icons/Time.d.ts +7 -7
- package/legacy/CalendarPicker/CalendarPicker.js +21 -0
- package/legacy/CalendarPicker/index.js +2 -1
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +35 -0
- package/legacy/CalendarPickerSkeleton/index.js +2 -1
- package/legacy/ClockPicker/ClockPicker.js +21 -0
- package/legacy/ClockPicker/index.js +2 -1
- package/legacy/DatePicker/DatePicker.js +466 -0
- package/legacy/DatePicker/index.js +1 -1
- package/legacy/DateTimePicker/DateTimePicker.js +554 -0
- package/legacy/DateTimePicker/index.js +1 -1
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +430 -0
- package/legacy/DesktopDatePicker/index.js +1 -1
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +518 -0
- package/legacy/DesktopDateTimePicker/index.js +1 -1
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +348 -0
- package/legacy/LocalizationProvider/LocalizationProvider.js +35 -0
- package/legacy/LocalizationProvider/index.js +1 -1
- package/legacy/Masonry/Masonry.js +9 -9
- package/legacy/MobileDatePicker/MobileDatePicker.js +444 -0
- package/legacy/MobileDatePicker/index.js +1 -1
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +532 -0
- package/legacy/MobileDateTimePicker/index.js +1 -1
- package/legacy/MobileTimePicker/MobileTimePicker.js +362 -0
- package/legacy/MobileTimePicker/index.js +1 -1
- package/legacy/MonthPicker/MonthPicker.js +21 -0
- package/legacy/MonthPicker/index.js +2 -1
- package/legacy/PickersDay/PickersDay.js +35 -0
- package/legacy/PickersDay/index.js +2 -1
- package/legacy/StaticDatePicker/StaticDatePicker.js +404 -0
- package/legacy/StaticDatePicker/index.js +1 -1
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +492 -0
- package/legacy/StaticDateTimePicker/index.js +1 -1
- package/legacy/StaticTimePicker/StaticTimePicker.js +322 -0
- package/legacy/TimePicker/TimePicker.js +384 -0
- package/legacy/TimePicker/index.js +1 -1
- package/legacy/TreeItem/TreeItem.js +1 -1
- package/legacy/YearPicker/YearPicker.js +21 -0
- package/legacy/index.js +1 -1
- package/modern/CalendarPicker/CalendarPicker.js +21 -0
- package/modern/CalendarPicker/index.js +2 -1
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +35 -0
- package/modern/CalendarPickerSkeleton/index.js +2 -1
- package/modern/ClockPicker/ClockPicker.js +21 -0
- package/modern/ClockPicker/index.js +2 -1
- package/modern/DatePicker/DatePicker.js +466 -0
- package/modern/DatePicker/index.js +1 -1
- package/modern/DateTimePicker/DateTimePicker.js +554 -0
- package/modern/DateTimePicker/index.js +1 -1
- package/modern/DesktopDatePicker/DesktopDatePicker.js +430 -0
- package/modern/DesktopDatePicker/index.js +1 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +518 -0
- package/modern/DesktopDateTimePicker/index.js +1 -1
- package/modern/DesktopTimePicker/DesktopTimePicker.js +348 -0
- package/modern/LocalizationProvider/LocalizationProvider.js +35 -0
- package/modern/LocalizationProvider/index.js +1 -1
- package/modern/Masonry/Masonry.js +9 -9
- package/modern/MobileDatePicker/MobileDatePicker.js +444 -0
- package/modern/MobileDatePicker/index.js +1 -1
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +532 -0
- package/modern/MobileDateTimePicker/index.js +1 -1
- package/modern/MobileTimePicker/MobileTimePicker.js +362 -0
- package/modern/MobileTimePicker/index.js +1 -1
- package/modern/MonthPicker/MonthPicker.js +21 -0
- package/modern/MonthPicker/index.js +2 -1
- package/modern/PickersDay/PickersDay.js +35 -0
- package/modern/PickersDay/index.js +2 -1
- package/modern/StaticDatePicker/StaticDatePicker.js +404 -0
- package/modern/StaticDatePicker/index.js +1 -1
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +492 -0
- package/modern/StaticDateTimePicker/index.js +1 -1
- package/modern/StaticTimePicker/StaticTimePicker.js +322 -0
- package/modern/TimePicker/TimePicker.js +384 -0
- package/modern/TimePicker/index.js +1 -1
- package/modern/TreeItem/TreeItem.js +1 -1
- package/modern/YearPicker/YearPicker.js +21 -0
- package/modern/index.js +1 -1
- package/node/CalendarPicker/CalendarPicker.js +39 -0
- package/node/CalendarPicker/index.js +7 -3
- package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +54 -0
- package/node/CalendarPickerSkeleton/index.js +8 -4
- package/node/ClockPicker/ClockPicker.js +39 -0
- package/node/ClockPicker/index.js +7 -3
- package/node/DatePicker/DatePicker.js +485 -0
- package/node/DatePicker/index.js +4 -2
- package/node/DateTimePicker/DateTimePicker.js +573 -0
- package/node/DateTimePicker/index.js +4 -2
- package/node/DesktopDatePicker/DesktopDatePicker.js +449 -0
- package/node/DesktopDatePicker/index.js +4 -2
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +537 -0
- package/node/DesktopDateTimePicker/index.js +4 -2
- package/node/DesktopTimePicker/DesktopTimePicker.js +367 -0
- package/node/LocalizationProvider/LocalizationProvider.js +54 -0
- package/node/LocalizationProvider/index.js +4 -2
- package/node/Masonry/Masonry.js +9 -9
- package/node/MobileDatePicker/MobileDatePicker.js +463 -0
- package/node/MobileDatePicker/index.js +4 -2
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +551 -0
- package/node/MobileDateTimePicker/index.js +4 -2
- package/node/MobileTimePicker/MobileTimePicker.js +381 -0
- package/node/MobileTimePicker/index.js +4 -2
- package/node/MonthPicker/MonthPicker.js +39 -0
- package/node/MonthPicker/index.js +8 -4
- package/node/PickersDay/PickersDay.js +54 -0
- package/node/PickersDay/index.js +8 -4
- package/node/StaticDatePicker/StaticDatePicker.js +423 -0
- package/node/StaticDatePicker/index.js +4 -2
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +511 -0
- package/node/StaticDateTimePicker/index.js +4 -2
- package/node/StaticTimePicker/StaticTimePicker.js +341 -0
- package/node/TimePicker/TimePicker.js +403 -0
- package/node/TimePicker/index.js +4 -2
- package/node/TreeItem/TreeItem.js +1 -1
- package/node/YearPicker/YearPicker.js +39 -0
- package/node/index.js +1 -1
- 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 {
|
|
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 {
|
|
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 {
|
|
1
|
+
export { default } from './PickersDay';
|
|
2
|
+
export { pickersDayClasses, getPickersDayUtilityClass } from '@mui/x-date-pickers/PickersDay';
|