@mui/x-date-pickers 7.5.0 → 7.5.1
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/CHANGELOG.md +61 -5417
- package/DateCalendar/DateCalendar.js +1 -1
- package/DateField/DateField.js +1 -1
- package/DatePicker/DatePicker.js +1 -1
- package/DatePicker/DatePickerToolbar.js +1 -1
- package/DateTimeField/DateTimeField.js +1 -1
- package/DateTimePicker/DateTimePicker.js +1 -1
- package/DateTimePicker/DateTimePickerTabs.js +1 -1
- package/DateTimePicker/DateTimePickerToolbar.js +1 -27
- package/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -10
- package/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +5 -4
- package/DesktopTimePicker/DesktopTimePicker.js +1 -1
- package/DigitalClock/DigitalClock.js +1 -1
- package/LocalizationProvider/LocalizationProvider.js +1 -1
- package/MobileDatePicker/MobileDatePicker.js +1 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
- package/MobileTimePicker/MobileTimePicker.js +1 -1
- package/MonthCalendar/MonthCalendar.js +1 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
- package/PickersActionBar/PickersActionBar.js +1 -1
- package/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
- package/PickersDay/PickersDay.js +1 -1
- package/PickersLayout/PickersLayout.d.ts +1 -2
- package/PickersLayout/PickersLayout.js +2 -14
- package/PickersSectionList/PickersSectionList.js +1 -1
- package/PickersShortcuts/PickersShortcuts.js +1 -1
- package/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
- package/PickersTextField/PickersInput/PickersInput.js +1 -1
- package/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
- package/PickersTextField/PickersTextField.js +1 -1
- package/StaticDatePicker/StaticDatePicker.js +1 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
- package/StaticTimePicker/StaticTimePicker.js +1 -1
- package/TimeClock/TimeClock.js +1 -1
- package/TimeField/TimeField.js +1 -1
- package/TimePicker/TimePicker.js +1 -1
- package/TimePicker/TimePickerToolbar.js +1 -19
- package/YearCalendar/YearCalendar.js +1 -1
- package/index.js +1 -1
- package/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
- package/internals/hooks/usePicker/usePickerViews.d.ts +2 -3
- package/internals/hooks/usePicker/usePickerViews.js +2 -5
- package/modern/DateCalendar/DateCalendar.js +1 -1
- package/modern/DateField/DateField.js +1 -1
- package/modern/DatePicker/DatePicker.js +1 -1
- package/modern/DatePicker/DatePickerToolbar.js +1 -1
- package/modern/DateTimeField/DateTimeField.js +1 -1
- package/modern/DateTimePicker/DateTimePicker.js +1 -1
- package/modern/DateTimePicker/DateTimePickerTabs.js +1 -1
- package/modern/DateTimePicker/DateTimePickerToolbar.js +1 -27
- package/modern/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -10
- package/modern/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +5 -4
- package/modern/DesktopTimePicker/DesktopTimePicker.js +1 -1
- package/modern/DigitalClock/DigitalClock.js +1 -1
- package/modern/LocalizationProvider/LocalizationProvider.js +1 -1
- package/modern/MobileDatePicker/MobileDatePicker.js +1 -1
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
- package/modern/MobileTimePicker/MobileTimePicker.js +1 -1
- package/modern/MonthCalendar/MonthCalendar.js +1 -1
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
- package/modern/PickersActionBar/PickersActionBar.js +1 -1
- package/modern/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
- package/modern/PickersDay/PickersDay.js +1 -1
- package/modern/PickersLayout/PickersLayout.js +2 -14
- package/modern/PickersSectionList/PickersSectionList.js +1 -1
- package/modern/PickersShortcuts/PickersShortcuts.js +1 -1
- package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
- package/modern/PickersTextField/PickersInput/PickersInput.js +1 -1
- package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
- package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
- package/modern/PickersTextField/PickersTextField.js +1 -1
- package/modern/StaticDatePicker/StaticDatePicker.js +1 -1
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
- package/modern/StaticTimePicker/StaticTimePicker.js +1 -1
- package/modern/TimeClock/TimeClock.js +1 -1
- package/modern/TimeField/TimeField.js +1 -1
- package/modern/TimePicker/TimePicker.js +1 -1
- package/modern/TimePicker/TimePickerToolbar.js +1 -19
- package/modern/YearCalendar/YearCalendar.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
- package/modern/internals/hooks/usePicker/usePickerViews.js +2 -5
- package/node/DateCalendar/DateCalendar.js +1 -1
- package/node/DateField/DateField.js +1 -1
- package/node/DatePicker/DatePicker.js +1 -1
- package/node/DatePicker/DatePickerToolbar.js +1 -1
- package/node/DateTimeField/DateTimeField.js +1 -1
- package/node/DateTimePicker/DateTimePicker.js +1 -1
- package/node/DateTimePicker/DateTimePickerTabs.js +1 -1
- package/node/DateTimePicker/DateTimePickerToolbar.js +1 -27
- package/node/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -10
- package/node/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
- package/node/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +5 -4
- package/node/DesktopTimePicker/DesktopTimePicker.js +1 -1
- package/node/DigitalClock/DigitalClock.js +1 -1
- package/node/LocalizationProvider/LocalizationProvider.js +1 -1
- package/node/MobileDatePicker/MobileDatePicker.js +1 -1
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
- package/node/MobileTimePicker/MobileTimePicker.js +1 -1
- package/node/MonthCalendar/MonthCalendar.js +1 -1
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
- package/node/PickersActionBar/PickersActionBar.js +1 -1
- package/node/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
- package/node/PickersDay/PickersDay.js +1 -1
- package/node/PickersLayout/PickersLayout.js +1 -12
- package/node/PickersSectionList/PickersSectionList.js +1 -1
- package/node/PickersShortcuts/PickersShortcuts.js +1 -1
- package/node/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
- package/node/PickersTextField/PickersInput/PickersInput.js +1 -1
- package/node/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
- package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
- package/node/PickersTextField/PickersTextField.js +1 -1
- package/node/StaticDatePicker/StaticDatePicker.js +1 -1
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
- package/node/StaticTimePicker/StaticTimePicker.js +1 -1
- package/node/TimeClock/TimeClock.js +1 -1
- package/node/TimeField/TimeField.js +1 -1
- package/node/TimePicker/TimePicker.js +1 -1
- package/node/TimePicker/TimePickerToolbar.js +1 -19
- package/node/YearCalendar/YearCalendar.js +1 -1
- package/node/index.js +1 -1
- package/node/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
- package/node/internals/hooks/usePicker/usePickerViews.js +2 -5
- package/package.json +1 -1
|
@@ -345,7 +345,7 @@ export const DateCalendar = /*#__PURE__*/React.forwardRef(function DateCalendar(
|
|
|
345
345
|
process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
|
|
346
346
|
// ----------------------------- Warning --------------------------------
|
|
347
347
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
348
|
-
// | To update them edit the TypeScript types and run "
|
|
348
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
349
349
|
// ----------------------------------------------------------------------
|
|
350
350
|
/**
|
|
351
351
|
* If `true`, the main element is focused during the first mount.
|
package/DateField/DateField.js
CHANGED
|
@@ -60,7 +60,7 @@ const DateField = /*#__PURE__*/React.forwardRef(function DateField(inProps, inRe
|
|
|
60
60
|
process.env.NODE_ENV !== "production" ? DateField.propTypes = {
|
|
61
61
|
// ----------------------------- Warning --------------------------------
|
|
62
62
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
63
|
-
// | To update them edit the TypeScript types and run "
|
|
63
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
64
64
|
// ----------------------------------------------------------------------
|
|
65
65
|
/**
|
|
66
66
|
* If `true`, the `input` element is focused during the first mount.
|
package/DatePicker/DatePicker.js
CHANGED
|
@@ -46,7 +46,7 @@ const DatePicker = /*#__PURE__*/React.forwardRef(function DatePicker(inProps, re
|
|
|
46
46
|
process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
|
|
47
47
|
// ----------------------------- Warning --------------------------------
|
|
48
48
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
49
|
-
// | To update them edit the TypeScript types and run "
|
|
49
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
50
50
|
// ----------------------------------------------------------------------
|
|
51
51
|
/**
|
|
52
52
|
* If `true`, the main element is focused during the first mount.
|
|
@@ -97,7 +97,7 @@ export const DatePickerToolbar = /*#__PURE__*/React.forwardRef(function DatePick
|
|
|
97
97
|
process.env.NODE_ENV !== "production" ? DatePickerToolbar.propTypes = {
|
|
98
98
|
// ----------------------------- Warning --------------------------------
|
|
99
99
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
100
|
-
// | To update them edit the TypeScript types and run "
|
|
100
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
101
101
|
// ----------------------------------------------------------------------
|
|
102
102
|
/**
|
|
103
103
|
* Override or extend the styles applied to the component.
|
|
@@ -60,7 +60,7 @@ const DateTimeField = /*#__PURE__*/React.forwardRef(function DateTimeField(inPro
|
|
|
60
60
|
process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
|
|
61
61
|
// ----------------------------- Warning --------------------------------
|
|
62
62
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
63
|
-
// | To update them edit the TypeScript types and run "
|
|
63
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
64
64
|
// ----------------------------------------------------------------------
|
|
65
65
|
/**
|
|
66
66
|
* 12h/24h view for hour selection clock.
|
|
@@ -46,7 +46,7 @@ const DateTimePicker = /*#__PURE__*/React.forwardRef(function DateTimePicker(inP
|
|
|
46
46
|
process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
|
|
47
47
|
// ----------------------------- Warning --------------------------------
|
|
48
48
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
49
|
-
// | To update them edit the TypeScript types and run "
|
|
49
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
50
50
|
// ----------------------------------------------------------------------
|
|
51
51
|
/**
|
|
52
52
|
* 12h/24h view for hour selection clock.
|
|
@@ -105,7 +105,7 @@ const DateTimePickerTabs = function DateTimePickerTabs(inProps) {
|
|
|
105
105
|
process.env.NODE_ENV !== "production" ? DateTimePickerTabs.propTypes = {
|
|
106
106
|
// ----------------------------- Warning --------------------------------
|
|
107
107
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
108
|
-
// | To update them edit the TypeScript types and run "
|
|
108
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
109
109
|
// ----------------------------------------------------------------------
|
|
110
110
|
/**
|
|
111
111
|
* Override or extend the styles applied to the component.
|
|
@@ -75,23 +75,6 @@ const DateTimePickerToolbarRoot = styled(PickersToolbar, {
|
|
|
75
75
|
}
|
|
76
76
|
}]
|
|
77
77
|
}));
|
|
78
|
-
DateTimePickerToolbarRoot.propTypes = {
|
|
79
|
-
// ----------------------------- Warning --------------------------------
|
|
80
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
81
|
-
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
82
|
-
// ----------------------------------------------------------------------
|
|
83
|
-
as: PropTypes.elementType,
|
|
84
|
-
classes: PropTypes.object,
|
|
85
|
-
className: PropTypes.string,
|
|
86
|
-
isLandscape: PropTypes.bool.isRequired,
|
|
87
|
-
isMobileKeyboardViewOpen: PropTypes.bool,
|
|
88
|
-
landscapeDirection: PropTypes.oneOf(['column', 'row']),
|
|
89
|
-
ownerState: PropTypes.object.isRequired,
|
|
90
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
91
|
-
toggleMobileKeyboardView: PropTypes.func,
|
|
92
|
-
toolbarTitle: PropTypes.node,
|
|
93
|
-
viewType: PropTypes.oneOf(['date', 'time'])
|
|
94
|
-
};
|
|
95
78
|
const DateTimePickerToolbarDateContainer = styled('div', {
|
|
96
79
|
name: 'MuiDateTimePickerToolbar',
|
|
97
80
|
slot: 'DateContainer',
|
|
@@ -157,15 +140,6 @@ const DateTimePickerToolbarTimeDigitsContainer = styled('div', {
|
|
|
157
140
|
}
|
|
158
141
|
}]
|
|
159
142
|
}));
|
|
160
|
-
DateTimePickerToolbarTimeContainer.propTypes = {
|
|
161
|
-
// ----------------------------- Warning --------------------------------
|
|
162
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
163
|
-
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
164
|
-
// ----------------------------------------------------------------------
|
|
165
|
-
as: PropTypes.elementType,
|
|
166
|
-
ownerState: PropTypes.object.isRequired,
|
|
167
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
168
|
-
};
|
|
169
143
|
const DateTimePickerToolbarSeparator = styled(PickersToolbarText, {
|
|
170
144
|
name: 'MuiDateTimePickerToolbar',
|
|
171
145
|
slot: 'Separator',
|
|
@@ -363,7 +337,7 @@ function DateTimePickerToolbar(inProps) {
|
|
|
363
337
|
process.env.NODE_ENV !== "production" ? DateTimePickerToolbar.propTypes = {
|
|
364
338
|
// ----------------------------- Warning --------------------------------
|
|
365
339
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
366
|
-
// | To update them edit the TypeScript types and run "
|
|
340
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
367
341
|
// ----------------------------------------------------------------------
|
|
368
342
|
ampm: PropTypes.bool,
|
|
369
343
|
ampmInClock: PropTypes.bool,
|
|
@@ -52,15 +52,6 @@ const DayCalendarSkeletonDay = styled(Skeleton, {
|
|
|
52
52
|
}
|
|
53
53
|
}]
|
|
54
54
|
});
|
|
55
|
-
DayCalendarSkeletonDay.propTypes = {
|
|
56
|
-
// ----------------------------- Warning --------------------------------
|
|
57
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
58
|
-
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
59
|
-
// ----------------------------------------------------------------------
|
|
60
|
-
ownerState: PropTypes.shape({
|
|
61
|
-
day: PropTypes.number.isRequired
|
|
62
|
-
}).isRequired
|
|
63
|
-
};
|
|
64
55
|
const monthMap = [[0, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0]];
|
|
65
56
|
|
|
66
57
|
/**
|
|
@@ -102,7 +93,7 @@ function DayCalendarSkeleton(inProps) {
|
|
|
102
93
|
process.env.NODE_ENV !== "production" ? DayCalendarSkeleton.propTypes = {
|
|
103
94
|
// ----------------------------- Warning --------------------------------
|
|
104
95
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
105
|
-
// | To update them edit the TypeScript types and run "
|
|
96
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
106
97
|
// ----------------------------------------------------------------------
|
|
107
98
|
/**
|
|
108
99
|
* Override or extend the styles applied to the component.
|
|
@@ -67,7 +67,7 @@ const DesktopDatePicker = /*#__PURE__*/React.forwardRef(function DesktopDatePick
|
|
|
67
67
|
DesktopDatePicker.propTypes = {
|
|
68
68
|
// ----------------------------- Warning --------------------------------
|
|
69
69
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
70
|
-
// | To update them edit the TypeScript types and run "
|
|
70
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
71
71
|
// ----------------------------------------------------------------------
|
|
72
72
|
/**
|
|
73
73
|
* If `true`, the main element is focused during the first mount.
|
|
@@ -152,7 +152,7 @@ const DesktopDateTimePicker = /*#__PURE__*/React.forwardRef(function DesktopDate
|
|
|
152
152
|
DesktopDateTimePicker.propTypes = {
|
|
153
153
|
// ----------------------------- Warning --------------------------------
|
|
154
154
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
155
|
-
// | To update them edit the TypeScript types and run "
|
|
155
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
156
156
|
// ----------------------------------------------------------------------
|
|
157
157
|
/**
|
|
158
158
|
* 12h/24h view for hour selection clock.
|
|
@@ -19,12 +19,13 @@ function DesktopDateTimePickerLayout(props) {
|
|
|
19
19
|
sx,
|
|
20
20
|
className,
|
|
21
21
|
isLandscape,
|
|
22
|
-
ref
|
|
22
|
+
ref,
|
|
23
|
+
classes
|
|
23
24
|
} = props;
|
|
24
25
|
const isActionBarVisible = actionBar && (actionBar.props.actions?.length ?? 0) > 0;
|
|
25
26
|
return /*#__PURE__*/_jsxs(PickersLayoutRoot, {
|
|
26
27
|
ref: ref,
|
|
27
|
-
className: clsx(className, pickersLayoutClasses.root),
|
|
28
|
+
className: clsx(className, pickersLayoutClasses.root, classes?.root),
|
|
28
29
|
sx: [{
|
|
29
30
|
[`& .${pickersLayoutClasses.tabs}`]: {
|
|
30
31
|
gridRow: 4,
|
|
@@ -36,7 +37,7 @@ function DesktopDateTimePickerLayout(props) {
|
|
|
36
37
|
}, ...(Array.isArray(sx) ? sx : [sx])],
|
|
37
38
|
ownerState: props,
|
|
38
39
|
children: [isLandscape ? shortcuts : toolbar, isLandscape ? toolbar : shortcuts, /*#__PURE__*/_jsxs(PickersLayoutContentWrapper, {
|
|
39
|
-
className: pickersLayoutClasses.contentWrapper,
|
|
40
|
+
className: clsx(pickersLayoutClasses.contentWrapper, classes?.contentWrapper),
|
|
40
41
|
sx: {
|
|
41
42
|
display: 'grid'
|
|
42
43
|
},
|
|
@@ -52,7 +53,7 @@ function DesktopDateTimePickerLayout(props) {
|
|
|
52
53
|
process.env.NODE_ENV !== "production" ? DesktopDateTimePickerLayout.propTypes = {
|
|
53
54
|
// ----------------------------- Warning --------------------------------
|
|
54
55
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
55
|
-
// | To update them edit the TypeScript types and run "
|
|
56
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
56
57
|
// ----------------------------------------------------------------------
|
|
57
58
|
children: PropTypes.node,
|
|
58
59
|
/**
|
|
@@ -88,7 +88,7 @@ const DesktopTimePicker = /*#__PURE__*/React.forwardRef(function DesktopTimePick
|
|
|
88
88
|
DesktopTimePicker.propTypes = {
|
|
89
89
|
// ----------------------------- Warning --------------------------------
|
|
90
90
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
91
|
-
// | To update them edit the TypeScript types and run "
|
|
91
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
92
92
|
// ----------------------------------------------------------------------
|
|
93
93
|
/**
|
|
94
94
|
* 12h/24h view for hour selection clock.
|
|
@@ -270,7 +270,7 @@ export const DigitalClock = /*#__PURE__*/React.forwardRef(function DigitalClock(
|
|
|
270
270
|
process.env.NODE_ENV !== "production" ? DigitalClock.propTypes = {
|
|
271
271
|
// ----------------------------- Warning --------------------------------
|
|
272
272
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
273
|
-
// | To update them edit the TypeScript types and run "
|
|
273
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
274
274
|
// ----------------------------------------------------------------------
|
|
275
275
|
/**
|
|
276
276
|
* 12h/24h view for hour selection clock.
|
|
@@ -89,7 +89,7 @@ export const LocalizationProvider = function LocalizationProvider(inProps) {
|
|
|
89
89
|
process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes = {
|
|
90
90
|
// ----------------------------- Warning --------------------------------
|
|
91
91
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
92
|
-
// | To update them edit the TypeScript types and run "
|
|
92
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
93
93
|
// ----------------------------------------------------------------------
|
|
94
94
|
/**
|
|
95
95
|
* Locale for the date library you are using
|
|
@@ -64,7 +64,7 @@ const MobileDatePicker = /*#__PURE__*/React.forwardRef(function MobileDatePicker
|
|
|
64
64
|
MobileDatePicker.propTypes = {
|
|
65
65
|
// ----------------------------- Warning --------------------------------
|
|
66
66
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
67
|
-
// | To update them edit the TypeScript types and run "
|
|
67
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
68
68
|
// ----------------------------------------------------------------------
|
|
69
69
|
/**
|
|
70
70
|
* If `true`, the main element is focused during the first mount.
|
|
@@ -74,7 +74,7 @@ const MobileDateTimePicker = /*#__PURE__*/React.forwardRef(function MobileDateTi
|
|
|
74
74
|
MobileDateTimePicker.propTypes = {
|
|
75
75
|
// ----------------------------- Warning --------------------------------
|
|
76
76
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
77
|
-
// | To update them edit the TypeScript types and run "
|
|
77
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
78
78
|
// ----------------------------------------------------------------------
|
|
79
79
|
/**
|
|
80
80
|
* 12h/24h view for hour selection clock.
|
|
@@ -67,7 +67,7 @@ const MobileTimePicker = /*#__PURE__*/React.forwardRef(function MobileTimePicker
|
|
|
67
67
|
MobileTimePicker.propTypes = {
|
|
68
68
|
// ----------------------------- Warning --------------------------------
|
|
69
69
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
70
|
-
// | To update them edit the TypeScript types and run "
|
|
70
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
71
71
|
// ----------------------------------------------------------------------
|
|
72
72
|
/**
|
|
73
73
|
* 12h/24h view for hour selection clock.
|
|
@@ -232,7 +232,7 @@ export const MonthCalendar = /*#__PURE__*/React.forwardRef(function MonthCalenda
|
|
|
232
232
|
process.env.NODE_ENV !== "production" ? MonthCalendar.propTypes = {
|
|
233
233
|
// ----------------------------- Warning --------------------------------
|
|
234
234
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
235
|
-
// | To update them edit the TypeScript types and run "
|
|
235
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
236
236
|
// ----------------------------------------------------------------------
|
|
237
237
|
autoFocus: PropTypes.bool,
|
|
238
238
|
/**
|
|
@@ -327,7 +327,7 @@ export const MultiSectionDigitalClock = /*#__PURE__*/React.forwardRef(function M
|
|
|
327
327
|
process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
|
|
328
328
|
// ----------------------------- Warning --------------------------------
|
|
329
329
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
330
|
-
// | To update them edit the TypeScript types and run "
|
|
330
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
331
331
|
// ----------------------------------------------------------------------
|
|
332
332
|
/**
|
|
333
333
|
* 12h/24h view for hour selection clock.
|
|
@@ -63,7 +63,7 @@ function PickersActionBar(props) {
|
|
|
63
63
|
process.env.NODE_ENV !== "production" ? PickersActionBar.propTypes = {
|
|
64
64
|
// ----------------------------- Warning --------------------------------
|
|
65
65
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
66
|
-
// | To update them edit the TypeScript types and run "
|
|
66
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
67
67
|
// ----------------------------------------------------------------------
|
|
68
68
|
/**
|
|
69
69
|
* Ordered array of actions to display.
|
|
@@ -227,7 +227,7 @@ const PickersCalendarHeader = /*#__PURE__*/React.forwardRef(function PickersCale
|
|
|
227
227
|
process.env.NODE_ENV !== "production" ? PickersCalendarHeader.propTypes = {
|
|
228
228
|
// ----------------------------- Warning --------------------------------
|
|
229
229
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
230
|
-
// | To update them edit the TypeScript types and run "
|
|
230
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
231
231
|
// ----------------------------------------------------------------------
|
|
232
232
|
/**
|
|
233
233
|
* Override or extend the styles applied to the component.
|
package/PickersDay/PickersDay.js
CHANGED
|
@@ -217,7 +217,7 @@ const PickersDayRaw = /*#__PURE__*/React.forwardRef(function PickersDay(inProps,
|
|
|
217
217
|
process.env.NODE_ENV !== "production" ? PickersDayRaw.propTypes = {
|
|
218
218
|
// ----------------------------- Warning --------------------------------
|
|
219
219
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
220
|
-
// | To update them edit the TypeScript types and run "
|
|
220
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
221
221
|
// ----------------------------------------------------------------------
|
|
222
222
|
/**
|
|
223
223
|
* A ref for imperative actions.
|
|
@@ -2,12 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
import { PickersLayoutProps } from './PickersLayout.types';
|
|
3
3
|
import { DateOrTimeViewWithMeridiem } from '../internals/models';
|
|
4
4
|
import { PickerValidDate } from '../models';
|
|
5
|
-
declare const PickersLayoutRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
5
|
+
export declare const PickersLayoutRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
6
6
|
ownerState: {
|
|
7
7
|
isLandscape: boolean;
|
|
8
8
|
};
|
|
9
9
|
}, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}>;
|
|
10
|
-
export { PickersLayoutRoot };
|
|
11
10
|
export declare const PickersLayoutContentWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}>;
|
|
12
11
|
/**
|
|
13
12
|
* Demos:
|
|
@@ -17,7 +17,7 @@ const useUtilityClasses = ownerState => {
|
|
|
17
17
|
};
|
|
18
18
|
return composeClasses(slots, getPickersLayoutUtilityClass, classes);
|
|
19
19
|
};
|
|
20
|
-
const PickersLayoutRoot = styled('div', {
|
|
20
|
+
export const PickersLayoutRoot = styled('div', {
|
|
21
21
|
name: 'MuiPickersLayout',
|
|
22
22
|
slot: 'Root',
|
|
23
23
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -61,18 +61,6 @@ const PickersLayoutRoot = styled('div', {
|
|
|
61
61
|
}
|
|
62
62
|
}]
|
|
63
63
|
}));
|
|
64
|
-
PickersLayoutRoot.propTypes = {
|
|
65
|
-
// ----------------------------- Warning --------------------------------
|
|
66
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
67
|
-
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
68
|
-
// ----------------------------------------------------------------------
|
|
69
|
-
as: PropTypes.elementType,
|
|
70
|
-
ownerState: PropTypes.shape({
|
|
71
|
-
isLandscape: PropTypes.bool.isRequired
|
|
72
|
-
}).isRequired,
|
|
73
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
74
|
-
};
|
|
75
|
-
export { PickersLayoutRoot };
|
|
76
64
|
export const PickersLayoutContentWrapper = styled('div', {
|
|
77
65
|
name: 'MuiPickersLayout',
|
|
78
66
|
slot: 'ContentWrapper',
|
|
@@ -132,7 +120,7 @@ const PickersLayout = function PickersLayout(inProps) {
|
|
|
132
120
|
process.env.NODE_ENV !== "production" ? PickersLayout.propTypes = {
|
|
133
121
|
// ----------------------------- Warning --------------------------------
|
|
134
122
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
135
|
-
// | To update them edit the TypeScript types and run "
|
|
123
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
136
124
|
// ----------------------------------------------------------------------
|
|
137
125
|
children: PropTypes.node,
|
|
138
126
|
/**
|
|
@@ -183,7 +183,7 @@ const PickersSectionList = /*#__PURE__*/React.forwardRef(function PickersSection
|
|
|
183
183
|
process.env.NODE_ENV !== "production" ? PickersSectionList.propTypes = {
|
|
184
184
|
// ----------------------------- Warning --------------------------------
|
|
185
185
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
186
|
-
// | To update them edit the TypeScript types and run "
|
|
186
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
187
187
|
// ----------------------------------------------------------------------
|
|
188
188
|
/**
|
|
189
189
|
* Override or extend the styles applied to the component.
|
|
@@ -63,7 +63,7 @@ function PickersShortcuts(props) {
|
|
|
63
63
|
process.env.NODE_ENV !== "production" ? PickersShortcuts.propTypes = {
|
|
64
64
|
// ----------------------------- Warning --------------------------------
|
|
65
65
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
66
|
-
// | To update them edit the TypeScript types and run "
|
|
66
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
67
67
|
// ----------------------------------------------------------------------
|
|
68
68
|
/**
|
|
69
69
|
* Importance of the change when picking a shortcut:
|
|
@@ -225,7 +225,7 @@ const PickersFilledInput = /*#__PURE__*/React.forwardRef(function PickersFilledI
|
|
|
225
225
|
process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
|
|
226
226
|
// ----------------------------- Warning --------------------------------
|
|
227
227
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
228
|
-
// | To update them edit the TypeScript types and run "
|
|
228
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
229
229
|
// ----------------------------------------------------------------------
|
|
230
230
|
/**
|
|
231
231
|
* Is `true` if the current values equals the empty value.
|
|
@@ -141,7 +141,7 @@ const PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(inProps
|
|
|
141
141
|
process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
|
|
142
142
|
// ----------------------------- Warning --------------------------------
|
|
143
143
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
144
|
-
// | To update them edit the TypeScript types and run "
|
|
144
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
145
145
|
// ----------------------------------------------------------------------
|
|
146
146
|
/**
|
|
147
147
|
* Is `true` if the current values equals the empty value.
|
|
@@ -288,7 +288,7 @@ const PickersInputBase = /*#__PURE__*/React.forwardRef(function PickersInputBase
|
|
|
288
288
|
process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
|
|
289
289
|
// ----------------------------- Warning --------------------------------
|
|
290
290
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
291
|
-
// | To update them edit the TypeScript types and run "
|
|
291
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
292
292
|
// ----------------------------------------------------------------------
|
|
293
293
|
/**
|
|
294
294
|
* Is `true` if the current values equals the empty value.
|
|
@@ -131,7 +131,7 @@ const PickersOutlinedInput = /*#__PURE__*/React.forwardRef(function PickersOutli
|
|
|
131
131
|
process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes = {
|
|
132
132
|
// ----------------------------- Warning --------------------------------
|
|
133
133
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
134
|
-
// | To update them edit the TypeScript types and run "
|
|
134
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
135
135
|
// ----------------------------------------------------------------------
|
|
136
136
|
/**
|
|
137
137
|
* Is `true` if the current values equals the empty value.
|
|
@@ -149,7 +149,7 @@ const PickersTextField = /*#__PURE__*/React.forwardRef(function PickersTextField
|
|
|
149
149
|
process.env.NODE_ENV !== "production" ? PickersTextField.propTypes = {
|
|
150
150
|
// ----------------------------- Warning --------------------------------
|
|
151
151
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
152
|
-
// | To update them edit the TypeScript types and run "
|
|
152
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
153
153
|
// ----------------------------------------------------------------------
|
|
154
154
|
/**
|
|
155
155
|
* Is `true` if the current values equals the empty value.
|
|
@@ -50,7 +50,7 @@ const StaticDatePicker = /*#__PURE__*/React.forwardRef(function StaticDatePicker
|
|
|
50
50
|
StaticDatePicker.propTypes = {
|
|
51
51
|
// ----------------------------- Warning --------------------------------
|
|
52
52
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
53
|
-
// | To update them edit the TypeScript types and run "
|
|
53
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
54
54
|
// ----------------------------------------------------------------------
|
|
55
55
|
/**
|
|
56
56
|
* If `true`, the main element is focused during the first mount.
|
|
@@ -60,7 +60,7 @@ const StaticDateTimePicker = /*#__PURE__*/React.forwardRef(function StaticDateTi
|
|
|
60
60
|
StaticDateTimePicker.propTypes = {
|
|
61
61
|
// ----------------------------- Warning --------------------------------
|
|
62
62
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
63
|
-
// | To update them edit the TypeScript types and run "
|
|
63
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
64
64
|
// ----------------------------------------------------------------------
|
|
65
65
|
/**
|
|
66
66
|
* 12h/24h view for hour selection clock.
|
|
@@ -52,7 +52,7 @@ const StaticTimePicker = /*#__PURE__*/React.forwardRef(function StaticTimePicker
|
|
|
52
52
|
StaticTimePicker.propTypes = {
|
|
53
53
|
// ----------------------------- Warning --------------------------------
|
|
54
54
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
55
|
-
// | To update them edit the TypeScript types and run "
|
|
55
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
56
56
|
// ----------------------------------------------------------------------
|
|
57
57
|
/**
|
|
58
58
|
* 12h/24h view for hour selection clock.
|
package/TimeClock/TimeClock.js
CHANGED
|
@@ -312,7 +312,7 @@ export const TimeClock = /*#__PURE__*/React.forwardRef(function TimeClock(inProp
|
|
|
312
312
|
process.env.NODE_ENV !== "production" ? TimeClock.propTypes = {
|
|
313
313
|
// ----------------------------- Warning --------------------------------
|
|
314
314
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
315
|
-
// | To update them edit the TypeScript types and run "
|
|
315
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
316
316
|
// ----------------------------------------------------------------------
|
|
317
317
|
/**
|
|
318
318
|
* 12h/24h view for hour selection clock.
|
package/TimeField/TimeField.js
CHANGED
|
@@ -60,7 +60,7 @@ const TimeField = /*#__PURE__*/React.forwardRef(function TimeField(inProps, inRe
|
|
|
60
60
|
process.env.NODE_ENV !== "production" ? TimeField.propTypes = {
|
|
61
61
|
// ----------------------------- Warning --------------------------------
|
|
62
62
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
63
|
-
// | To update them edit the TypeScript types and run "
|
|
63
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
64
64
|
// ----------------------------------------------------------------------
|
|
65
65
|
/**
|
|
66
66
|
* 12h/24h view for hour selection clock.
|
package/TimePicker/TimePicker.js
CHANGED
|
@@ -46,7 +46,7 @@ const TimePicker = /*#__PURE__*/React.forwardRef(function TimePicker(inProps, re
|
|
|
46
46
|
process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
|
|
47
47
|
// ----------------------------- Warning --------------------------------
|
|
48
48
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
49
|
-
// | To update them edit the TypeScript types and run "
|
|
49
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
50
50
|
// ----------------------------------------------------------------------
|
|
51
51
|
/**
|
|
52
52
|
* 12h/24h view for hour selection clock.
|
|
@@ -69,15 +69,6 @@ const TimePickerToolbarHourMinuteLabel = styled('div', {
|
|
|
69
69
|
}
|
|
70
70
|
}]
|
|
71
71
|
}));
|
|
72
|
-
TimePickerToolbarHourMinuteLabel.propTypes = {
|
|
73
|
-
// ----------------------------- Warning --------------------------------
|
|
74
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
75
|
-
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
76
|
-
// ----------------------------------------------------------------------
|
|
77
|
-
as: PropTypes.elementType,
|
|
78
|
-
ownerState: PropTypes.object.isRequired,
|
|
79
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
80
|
-
};
|
|
81
72
|
const TimePickerToolbarAmPmSelection = styled('div', {
|
|
82
73
|
name: 'MuiTimePickerToolbar',
|
|
83
74
|
slot: 'AmPmSelection',
|
|
@@ -106,15 +97,6 @@ const TimePickerToolbarAmPmSelection = styled('div', {
|
|
|
106
97
|
}
|
|
107
98
|
}]
|
|
108
99
|
});
|
|
109
|
-
TimePickerToolbarAmPmSelection.propTypes = {
|
|
110
|
-
// ----------------------------- Warning --------------------------------
|
|
111
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
112
|
-
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
113
|
-
// ----------------------------------------------------------------------
|
|
114
|
-
as: PropTypes.elementType,
|
|
115
|
-
ownerState: PropTypes.object.isRequired,
|
|
116
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
117
|
-
};
|
|
118
100
|
|
|
119
101
|
/**
|
|
120
102
|
* Demos:
|
|
@@ -219,7 +201,7 @@ function TimePickerToolbar(inProps) {
|
|
|
219
201
|
process.env.NODE_ENV !== "production" ? TimePickerToolbar.propTypes = {
|
|
220
202
|
// ----------------------------- Warning --------------------------------
|
|
221
203
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
222
|
-
// | To update them edit the TypeScript types and run "
|
|
204
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
223
205
|
// ----------------------------------------------------------------------
|
|
224
206
|
ampm: PropTypes.bool,
|
|
225
207
|
ampmInClock: PropTypes.bool,
|
|
@@ -257,7 +257,7 @@ export const YearCalendar = /*#__PURE__*/React.forwardRef(function YearCalendar(
|
|
|
257
257
|
process.env.NODE_ENV !== "production" ? YearCalendar.propTypes = {
|
|
258
258
|
// ----------------------------- Warning --------------------------------
|
|
259
259
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
260
|
-
// | To update them edit the TypeScript types and run "
|
|
260
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
261
261
|
// ----------------------------------------------------------------------
|
|
262
262
|
autoFocus: PropTypes.bool,
|
|
263
263
|
/**
|
package/index.js
CHANGED
|
@@ -121,7 +121,8 @@ export const useDesktopPicker = _ref => {
|
|
|
121
121
|
// TODO: Move to `useSlotProps` when https://github.com/mui/material-ui/pull/35088 will be merged
|
|
122
122
|
if (hasUIView) {
|
|
123
123
|
fieldProps.InputProps = _extends({}, fieldProps.InputProps, {
|
|
124
|
-
ref: containerRef
|
|
124
|
+
ref: containerRef
|
|
125
|
+
}, !props.disableOpenPicker && {
|
|
125
126
|
[`${inputAdornmentProps.position}Adornment`]: /*#__PURE__*/_jsx(InputAdornment, _extends({}, inputAdornmentProps, {
|
|
126
127
|
children: /*#__PURE__*/_jsx(OpenPickerButton, _extends({}, openPickerButtonProps, {
|
|
127
128
|
children: /*#__PURE__*/_jsx(OpenPickerIcon, _extends({}, innerSlotProps?.openPickerIcon))
|
|
@@ -57,7 +57,7 @@ export interface UsePickerViewsNonStaticProps {
|
|
|
57
57
|
/**
|
|
58
58
|
* Props used to handle the value of the pickers.
|
|
59
59
|
*/
|
|
60
|
-
export interface UsePickerViewsProps<TValue, TDate extends PickerValidDate, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UsePickerViewsProps<TValue, TDate, TView, any, any>, TAdditionalProps extends {}> extends UsePickerViewsBaseProps<TValue, TDate, TView, TExternalProps, TAdditionalProps
|
|
60
|
+
export interface UsePickerViewsProps<TValue, TDate extends PickerValidDate, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UsePickerViewsProps<TValue, TDate, TView, any, any>, TAdditionalProps extends {}> extends UsePickerViewsBaseProps<TValue, TDate, TView, TExternalProps, TAdditionalProps> {
|
|
61
61
|
className?: string;
|
|
62
62
|
sx?: SxProps<Theme>;
|
|
63
63
|
}
|
|
@@ -79,8 +79,7 @@ export interface UsePickerViewParams<TValue, TDate extends PickerValidDate, TVie
|
|
|
79
79
|
}
|
|
80
80
|
export interface UsePickerViewsResponse<TView extends DateOrTimeViewWithMeridiem> {
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
83
|
-
* If not, we can hide the icon to open the picker.
|
|
82
|
+
* Indicates if the the picker has at least one view that should be rendered in UI.
|
|
84
83
|
*/
|
|
85
84
|
hasUIView: boolean;
|
|
86
85
|
renderCurrentView: () => React.ReactNode;
|