@mui/x-date-pickers 8.3.1 → 8.5.0
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 +213 -0
- package/DateCalendar/DateCalendar.js +9 -6
- package/DateCalendar/DateCalendar.types.d.ts +1 -1
- package/DateCalendar/dateCalendarClasses.js +5 -3
- package/DateCalendar/dayCalendarClasses.js +5 -3
- package/DateCalendar/pickersFadeTransitionGroupClasses.js +5 -3
- package/DateCalendar/pickersSlideTransitionClasses.js +5 -3
- package/DateField/DateField.js +3 -2
- package/DatePicker/DatePicker.js +5 -4
- package/DatePicker/DatePickerToolbar.js +1 -0
- package/DatePicker/datePickerToolbarClasses.js +5 -3
- package/DateTimeField/DateTimeField.js +3 -2
- package/DateTimePicker/DateTimePicker.js +5 -4
- package/DateTimePicker/DateTimePickerTabs.js +1 -0
- package/DateTimePicker/DateTimePickerToolbar.js +1 -0
- package/DateTimePicker/dateTimePickerTabsClasses.js +5 -3
- package/DateTimePicker/dateTimePickerToolbarClasses.js +5 -3
- package/DayCalendarSkeleton/dayCalendarSkeletonClasses.js +5 -3
- package/DesktopDatePicker/DesktopDatePicker.js +3 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +4 -2
- package/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -0
- package/DesktopTimePicker/DesktopTimePicker.js +3 -2
- package/DigitalClock/DigitalClock.js +1 -0
- package/DigitalClock/DigitalClock.types.d.ts +1 -1
- package/LocalizationProvider/LocalizationProvider.js +2 -3
- package/MobileDatePicker/MobileDatePicker.js +3 -2
- package/MobileDateTimePicker/MobileDateTimePicker.js +5 -4
- package/MobileTimePicker/MobileTimePicker.js +3 -2
- package/MonthCalendar/MonthCalendar.js +12 -9
- package/MonthCalendar/MonthCalendarButton.js +2 -1
- package/MonthCalendar/monthCalendarClasses.js +5 -3
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -4
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +1 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -1
- package/PickersActionBar/PickersActionBar.js +2 -1
- package/PickersCalendarHeader/PickersCalendarHeader.js +1 -0
- package/PickersCalendarHeader/PickersCalendarHeader.types.d.ts +1 -1
- package/PickersCalendarHeader/pickersCalendarHeaderClasses.js +5 -3
- package/PickersDay/PickersDay.js +9 -5
- package/PickersDay/pickersDayClasses.js +5 -3
- package/PickersLayout/PickersLayout.js +1 -0
- package/PickersLayout/PickersLayout.types.d.ts +1 -1
- package/PickersSectionList/PickersSectionList.js +1 -0
- package/PickersSectionList/PickersSectionList.types.d.ts +1 -1
- package/PickersTextField/PickersFilledInput/PickersFilledInput.js +3 -2
- package/PickersTextField/PickersInput/PickersInput.js +3 -2
- package/PickersTextField/PickersInputBase/PickersInputBase.js +3 -2
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +3 -2
- package/PickersTextField/PickersTextField.js +6 -3
- package/PickersTextField/usePickerTextFieldOwnerState.js +1 -0
- package/StaticDatePicker/StaticDatePicker.js +1 -0
- package/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
- package/StaticTimePicker/StaticTimePicker.js +1 -0
- package/TimeClock/Clock.js +4 -3
- package/TimeClock/TimeClock.js +5 -3
- package/TimeClock/clockClasses.js +5 -3
- package/TimeClock/clockNumberClasses.js +5 -3
- package/TimeClock/clockPointerClasses.js +5 -3
- package/TimeClock/timeClockClasses.js +5 -3
- package/TimeField/TimeField.js +3 -2
- package/TimePicker/TimePicker.js +5 -4
- package/TimePicker/timePickerToolbarClasses.js +5 -3
- package/YearCalendar/YearCalendar.js +14 -10
- package/YearCalendar/YearCalendarButton.js +2 -1
- package/YearCalendar/yearCalendarClasses.js +5 -3
- package/dateViewRenderers/dateViewRenderers.js +2 -1
- package/esm/DateCalendar/DateCalendar.js +4 -1
- package/esm/DateCalendar/DateCalendar.types.d.ts +1 -1
- package/esm/DateCalendar/dateCalendarClasses.js +2 -1
- package/esm/DateCalendar/dayCalendarClasses.js +2 -1
- package/esm/DateCalendar/pickersFadeTransitionGroupClasses.js +2 -1
- package/esm/DateCalendar/pickersSlideTransitionClasses.js +2 -1
- package/esm/DateField/DateField.js +2 -1
- package/esm/DatePicker/DatePicker.js +2 -1
- package/esm/DatePicker/DatePickerToolbar.js +1 -0
- package/esm/DatePicker/datePickerToolbarClasses.js +2 -1
- package/esm/DateTimeField/DateTimeField.js +2 -1
- package/esm/DateTimePicker/DateTimePicker.js +2 -1
- package/esm/DateTimePicker/DateTimePickerTabs.js +1 -0
- package/esm/DateTimePicker/DateTimePickerToolbar.js +1 -0
- package/esm/DateTimePicker/dateTimePickerTabsClasses.js +2 -1
- package/esm/DateTimePicker/dateTimePickerToolbarClasses.js +2 -1
- package/esm/DayCalendarSkeleton/dayCalendarSkeletonClasses.js +2 -1
- package/esm/DesktopDatePicker/DesktopDatePicker.js +2 -1
- package/esm/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -1
- package/esm/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -0
- package/esm/DesktopTimePicker/DesktopTimePicker.js +2 -1
- package/esm/DigitalClock/DigitalClock.js +1 -0
- package/esm/DigitalClock/DigitalClock.types.d.ts +1 -1
- package/esm/LocalizationProvider/LocalizationProvider.js +2 -3
- package/esm/MobileDatePicker/MobileDatePicker.js +2 -1
- package/esm/MobileDateTimePicker/MobileDateTimePicker.js +2 -1
- package/esm/MobileTimePicker/MobileTimePicker.js +2 -1
- package/esm/MonthCalendar/MonthCalendar.js +4 -1
- package/esm/MonthCalendar/MonthCalendarButton.js +2 -1
- package/esm/MonthCalendar/monthCalendarClasses.js +2 -1
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +1 -1
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -1
- package/esm/PickersActionBar/PickersActionBar.js +1 -0
- package/esm/PickersCalendarHeader/PickersCalendarHeader.js +1 -0
- package/esm/PickersCalendarHeader/PickersCalendarHeader.types.d.ts +1 -1
- package/esm/PickersCalendarHeader/pickersCalendarHeaderClasses.js +2 -1
- package/esm/PickersDay/PickersDay.js +6 -2
- package/esm/PickersDay/pickersDayClasses.js +2 -1
- package/esm/PickersLayout/PickersLayout.js +1 -0
- package/esm/PickersLayout/PickersLayout.types.d.ts +1 -1
- package/esm/PickersSectionList/PickersSectionList.js +1 -0
- package/esm/PickersSectionList/PickersSectionList.types.d.ts +1 -1
- package/esm/PickersTextField/PickersFilledInput/PickersFilledInput.js +2 -1
- package/esm/PickersTextField/PickersInput/PickersInput.js +2 -1
- package/esm/PickersTextField/PickersInputBase/PickersInputBase.js +2 -1
- package/esm/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +2 -1
- package/esm/PickersTextField/PickersTextField.js +5 -2
- package/esm/PickersTextField/usePickerTextFieldOwnerState.js +1 -0
- package/esm/StaticDatePicker/StaticDatePicker.js +1 -0
- package/esm/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
- package/esm/StaticTimePicker/StaticTimePicker.js +1 -0
- package/esm/TimeClock/Clock.js +2 -1
- package/esm/TimeClock/TimeClock.js +3 -1
- package/esm/TimeClock/clockClasses.js +2 -1
- package/esm/TimeClock/clockNumberClasses.js +2 -1
- package/esm/TimeClock/clockPointerClasses.js +2 -1
- package/esm/TimeClock/timeClockClasses.js +2 -1
- package/esm/TimeField/TimeField.js +2 -1
- package/esm/TimePicker/TimePicker.js +2 -1
- package/esm/TimePicker/timePickerToolbarClasses.js +2 -1
- package/esm/YearCalendar/YearCalendar.js +5 -1
- package/esm/YearCalendar/YearCalendarButton.js +2 -1
- package/esm/YearCalendar/yearCalendarClasses.js +2 -1
- package/esm/dateViewRenderers/dateViewRenderers.js +2 -1
- package/esm/hooks/useIsValidValue.js +1 -0
- package/esm/hooks/usePickerContext.js +1 -0
- package/esm/index.js +1 -1
- package/esm/internals/components/PickerFieldUI.js +1 -0
- package/esm/internals/components/PickerPopper/PickerPopper.js +5 -1
- package/esm/internals/components/PickerProvider.js +2 -0
- package/esm/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +2 -1
- package/esm/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.d.ts +1 -1
- package/esm/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js +2 -1
- package/esm/internals/components/PickersToolbar.js +2 -1
- package/esm/internals/components/PickersToolbarButton.js +2 -1
- package/esm/internals/components/PickersToolbarText.js +2 -1
- package/esm/internals/components/pickersToolbarButtonClasses.js +2 -1
- package/esm/internals/components/pickersToolbarClasses.js +2 -1
- package/esm/internals/components/pickersToolbarTextClasses.js +2 -1
- package/esm/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -0
- package/esm/internals/hooks/useField/useFieldCharacterEditing.js +27 -11
- package/esm/internals/hooks/useField/useFieldSectionContainerProps.js +2 -3
- package/esm/internals/hooks/useField/useFieldSectionContentProps.js +2 -2
- package/esm/internals/hooks/useField/useFieldState.js +2 -2
- package/esm/internals/hooks/useMobilePicker/useMobilePicker.js +1 -0
- package/esm/internals/hooks/useNullableFieldPrivateContext.js +1 -0
- package/esm/internals/hooks/useStaticPicker/useStaticPicker.js +1 -0
- package/esm/timeViewRenderers/timeViewRenderers.js +4 -1
- package/hooks/useIsValidValue.js +1 -0
- package/hooks/usePickerContext.js +1 -0
- package/index.js +1 -1
- package/internals/components/PickerFieldUI.js +1 -0
- package/internals/components/PickerPopper/PickerPopper.js +17 -13
- package/internals/components/PickerProvider.js +2 -0
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +2 -1
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.d.ts +1 -1
- package/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js +5 -3
- package/internals/components/PickersToolbar.js +2 -1
- package/internals/components/PickersToolbarButton.js +2 -1
- package/internals/components/PickersToolbarText.js +2 -1
- package/internals/components/pickersToolbarButtonClasses.js +5 -3
- package/internals/components/pickersToolbarClasses.js +5 -3
- package/internals/components/pickersToolbarTextClasses.js +5 -3
- package/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -0
- package/internals/hooks/useField/useFieldCharacterEditing.js +27 -11
- package/internals/hooks/useField/useFieldSectionContainerProps.js +2 -4
- package/internals/hooks/useField/useFieldSectionContentProps.js +2 -2
- package/internals/hooks/useField/useFieldState.js +2 -2
- package/internals/hooks/useMobilePicker/useMobilePicker.js +1 -0
- package/internals/hooks/useNullableFieldPrivateContext.js +1 -0
- package/internals/hooks/useStaticPicker/useStaticPicker.js +1 -0
- package/package.json +2 -2
- package/timeViewRenderers/timeViewRenderers.js +4 -1
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
7
|
-
import
|
|
7
|
+
import refType from '@mui/utils/refType';
|
|
8
8
|
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
9
9
|
import { useDatePickerDefaultizedProps } from "../DatePicker/shared.js";
|
|
10
10
|
import { useUtils } from "../internals/hooks/useUtils.js";
|
|
@@ -62,6 +62,7 @@ const DesktopDatePicker = /*#__PURE__*/React.forwardRef(function DesktopDatePick
|
|
|
62
62
|
});
|
|
63
63
|
return renderPicker();
|
|
64
64
|
});
|
|
65
|
+
if (process.env.NODE_ENV !== "production") DesktopDatePicker.displayName = "DesktopDatePicker";
|
|
65
66
|
DesktopDatePicker.propTypes = {
|
|
66
67
|
// ----------------------------- Warning --------------------------------
|
|
67
68
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -6,7 +6,7 @@ const _excluded = ["openTo", "focusedView", "timeViewsCount"];
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
9
|
-
import
|
|
9
|
+
import refType from '@mui/utils/refType';
|
|
10
10
|
import Divider from '@mui/material/Divider';
|
|
11
11
|
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
12
12
|
import { DateTimeField } from "../DateTimeField/index.js";
|
|
@@ -78,6 +78,7 @@ const rendererInterceptor = function RendererInterceptor(props) {
|
|
|
78
78
|
})]
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
|
+
if (process.env.NODE_ENV !== "production") rendererInterceptor.displayName = "rendererInterceptor";
|
|
81
82
|
/**
|
|
82
83
|
* Demos:
|
|
83
84
|
*
|
|
@@ -143,6 +144,7 @@ const DesktopDateTimePicker = /*#__PURE__*/React.forwardRef(function DesktopDate
|
|
|
143
144
|
});
|
|
144
145
|
return renderPicker();
|
|
145
146
|
});
|
|
147
|
+
if (process.env.NODE_ENV !== "production") DesktopDateTimePicker.displayName = "DesktopDateTimePicker";
|
|
146
148
|
DesktopDateTimePicker.propTypes = {
|
|
147
149
|
// ----------------------------- Warning --------------------------------
|
|
148
150
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -54,6 +54,7 @@ const DesktopDateTimePickerLayout = /*#__PURE__*/React.forwardRef(function Deskt
|
|
|
54
54
|
}), actionBar]
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
|
+
if (process.env.NODE_ENV !== "production") DesktopDateTimePickerLayout.displayName = "DesktopDateTimePickerLayout";
|
|
57
58
|
process.env.NODE_ENV !== "production" ? DesktopDateTimePickerLayout.propTypes = {
|
|
58
59
|
// ----------------------------- Warning --------------------------------
|
|
59
60
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
7
|
-
import
|
|
7
|
+
import refType from '@mui/utils/refType';
|
|
8
8
|
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
9
9
|
import { TimeField } from "../TimeField/index.js";
|
|
10
10
|
import { useTimePickerDefaultizedProps } from "../TimePicker/shared.js";
|
|
@@ -78,6 +78,7 @@ const DesktopTimePicker = /*#__PURE__*/React.forwardRef(function DesktopTimePick
|
|
|
78
78
|
});
|
|
79
79
|
return renderPicker();
|
|
80
80
|
});
|
|
81
|
+
if (process.env.NODE_ENV !== "production") DesktopTimePicker.displayName = "DesktopTimePicker";
|
|
81
82
|
DesktopTimePicker.propTypes = {
|
|
82
83
|
// ----------------------------- Warning --------------------------------
|
|
83
84
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -314,6 +314,7 @@ export const DigitalClock = /*#__PURE__*/React.forwardRef(function DigitalClock(
|
|
|
314
314
|
})
|
|
315
315
|
}));
|
|
316
316
|
});
|
|
317
|
+
if (process.env.NODE_ENV !== "production") DigitalClock.displayName = "DigitalClock";
|
|
317
318
|
process.env.NODE_ENV !== "production" ? DigitalClock.propTypes = {
|
|
318
319
|
// ----------------------------- Warning --------------------------------
|
|
319
320
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/utils';
|
|
2
|
+
import { SlotComponentProps } from '@mui/utils/types';
|
|
3
3
|
import MenuItem from '@mui/material/MenuItem';
|
|
4
4
|
import { DigitalClockClasses } from "./digitalClockClasses.js";
|
|
5
5
|
import { BaseClockProps, DigitalClockOnlyProps, ExportedBaseClockProps } from "../internals/models/props/time.js";
|
|
@@ -8,9 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { useThemeProps } from '@mui/material/styles';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
export const MuiPickersAdapterContext = /*#__PURE__*/React.createContext(null);
|
|
11
|
-
if (process.env.NODE_ENV !==
|
|
12
|
-
MuiPickersAdapterContext.displayName = 'MuiPickersAdapterContext';
|
|
13
|
-
}
|
|
11
|
+
if (process.env.NODE_ENV !== "production") MuiPickersAdapterContext.displayName = "MuiPickersAdapterContext";
|
|
14
12
|
/**
|
|
15
13
|
* Demos:
|
|
16
14
|
*
|
|
@@ -88,6 +86,7 @@ export const LocalizationProvider = function LocalizationProvider(inProps) {
|
|
|
88
86
|
children: children
|
|
89
87
|
});
|
|
90
88
|
};
|
|
89
|
+
if (process.env.NODE_ENV !== "production") LocalizationProvider.displayName = "LocalizationProvider";
|
|
91
90
|
process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes = {
|
|
92
91
|
// ----------------------------- Warning --------------------------------
|
|
93
92
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
7
|
-
import
|
|
7
|
+
import refType from '@mui/utils/refType';
|
|
8
8
|
import { useMobilePicker } from "../internals/hooks/useMobilePicker/index.js";
|
|
9
9
|
import { useDatePickerDefaultizedProps } from "../DatePicker/shared.js";
|
|
10
10
|
import { useUtils } from "../internals/hooks/useUtils.js";
|
|
@@ -60,6 +60,7 @@ const MobileDatePicker = /*#__PURE__*/React.forwardRef(function MobileDatePicker
|
|
|
60
60
|
});
|
|
61
61
|
return renderPicker();
|
|
62
62
|
});
|
|
63
|
+
if (process.env.NODE_ENV !== "production") MobileDatePicker.displayName = "MobileDatePicker";
|
|
63
64
|
MobileDatePicker.propTypes = {
|
|
64
65
|
// ----------------------------- Warning --------------------------------
|
|
65
66
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
7
|
-
import
|
|
7
|
+
import refType from '@mui/utils/refType';
|
|
8
8
|
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
9
9
|
import { DateTimeField } from "../DateTimeField/index.js";
|
|
10
10
|
import { useDateTimePickerDefaultizedProps } from "../DateTimePicker/shared.js";
|
|
@@ -110,6 +110,7 @@ const MobileDateTimePicker = /*#__PURE__*/React.forwardRef(function MobileDateTi
|
|
|
110
110
|
});
|
|
111
111
|
return renderPicker();
|
|
112
112
|
});
|
|
113
|
+
if (process.env.NODE_ENV !== "production") MobileDateTimePicker.displayName = "MobileDateTimePicker";
|
|
113
114
|
MobileDateTimePicker.propTypes = {
|
|
114
115
|
// ----------------------------- Warning --------------------------------
|
|
115
116
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
7
|
-
import
|
|
7
|
+
import refType from '@mui/utils/refType';
|
|
8
8
|
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
9
9
|
import { TimeField } from "../TimeField/index.js";
|
|
10
10
|
import { useTimePickerDefaultizedProps } from "../TimePicker/shared.js";
|
|
@@ -63,6 +63,7 @@ const MobileTimePicker = /*#__PURE__*/React.forwardRef(function MobileTimePicker
|
|
|
63
63
|
});
|
|
64
64
|
return renderPicker();
|
|
65
65
|
});
|
|
66
|
+
if (process.env.NODE_ENV !== "production") MobileTimePicker.displayName = "MobileTimePicker";
|
|
66
67
|
MobileTimePicker.propTypes = {
|
|
67
68
|
// ----------------------------- Warning --------------------------------
|
|
68
69
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -9,7 +9,9 @@ import clsx from 'clsx';
|
|
|
9
9
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
10
10
|
import { shouldForwardProp } from '@mui/system/createStyled';
|
|
11
11
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
12
|
-
import
|
|
12
|
+
import useControlled from '@mui/utils/useControlled';
|
|
13
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
14
|
+
import useEventCallback from '@mui/utils/useEventCallback';
|
|
13
15
|
import { MonthCalendarButton } from "./MonthCalendarButton.js";
|
|
14
16
|
import { useUtils, useNow } from "../internals/hooks/useUtils.js";
|
|
15
17
|
import { getMonthCalendarUtilityClass } from "./monthCalendarClasses.js";
|
|
@@ -251,6 +253,7 @@ export const MonthCalendar = /*#__PURE__*/React.forwardRef(function MonthCalenda
|
|
|
251
253
|
})
|
|
252
254
|
}));
|
|
253
255
|
});
|
|
256
|
+
if (process.env.NODE_ENV !== "production") MonthCalendar.displayName = "MonthCalendar";
|
|
254
257
|
process.env.NODE_ENV !== "production" ? MonthCalendar.propTypes = {
|
|
255
258
|
// ----------------------------- Warning --------------------------------
|
|
256
259
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -112,4 +112,5 @@ export const MonthCalendarButton = /*#__PURE__*/React.memo(function MonthCalenda
|
|
|
112
112
|
className: classes.button
|
|
113
113
|
});
|
|
114
114
|
return /*#__PURE__*/_jsx(MonthButton, _extends({}, monthButtonProps));
|
|
115
|
-
});
|
|
115
|
+
});
|
|
116
|
+
if (process.env.NODE_ENV !== "production") MonthCalendarButton.displayName = "MonthCalendarButton";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export function getMonthCalendarUtilityClass(slot) {
|
|
3
4
|
return generateUtilityClass('MuiMonthCalendar', slot);
|
|
4
5
|
}
|
|
@@ -343,6 +343,7 @@ export const MultiSectionDigitalClock = /*#__PURE__*/React.forwardRef(function M
|
|
|
343
343
|
}, timeView))
|
|
344
344
|
}));
|
|
345
345
|
});
|
|
346
|
+
if (process.env.NODE_ENV !== "production") MultiSectionDigitalClock.displayName = "MultiSectionDigitalClock";
|
|
346
347
|
process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
|
|
347
348
|
// ----------------------------- Warning --------------------------------
|
|
348
349
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/utils';
|
|
2
|
+
import { SlotComponentProps } from '@mui/utils/types';
|
|
3
3
|
import MenuItem from '@mui/material/MenuItem';
|
|
4
4
|
import { MultiSectionDigitalClockClasses } from "./multiSectionDigitalClockClasses.js";
|
|
5
5
|
import { BaseClockProps, ExportedBaseClockProps, MultiSectionDigitalClockOnlyProps } from "../internals/models/props/time.js";
|
|
@@ -206,4 +206,5 @@ export const MultiSectionDigitalClockSection = /*#__PURE__*/React.forwardRef(fun
|
|
|
206
206
|
}), option.label);
|
|
207
207
|
})
|
|
208
208
|
}));
|
|
209
|
-
});
|
|
209
|
+
});
|
|
210
|
+
if (process.env.NODE_ENV !== "production") MultiSectionDigitalClockSection.displayName = "MultiSectionDigitalClockSection";
|
|
@@ -113,4 +113,5 @@ process.env.NODE_ENV !== "production" ? PickersActionBarComponent.propTypes = {
|
|
|
113
113
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
114
114
|
} : void 0;
|
|
115
115
|
const PickersActionBar = /*#__PURE__*/React.memo(PickersActionBarComponent);
|
|
116
|
+
if (process.env.NODE_ENV !== "production") PickersActionBar.displayName = "PickersActionBar";
|
|
116
117
|
export { PickersActionBar };
|
|
@@ -225,6 +225,7 @@ const PickersCalendarHeader = /*#__PURE__*/React.forwardRef(function PickersCale
|
|
|
225
225
|
})]
|
|
226
226
|
}));
|
|
227
227
|
});
|
|
228
|
+
if (process.env.NODE_ENV !== "production") PickersCalendarHeader.displayName = "PickersCalendarHeader";
|
|
228
229
|
process.env.NODE_ENV !== "production" ? PickersCalendarHeader.propTypes = {
|
|
229
230
|
// ----------------------------- Warning --------------------------------
|
|
230
231
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/utils';
|
|
2
|
+
import { SlotComponentProps } from '@mui/utils/types';
|
|
3
3
|
import IconButton from '@mui/material/IconButton';
|
|
4
4
|
import SvgIcon from '@mui/material/SvgIcon';
|
|
5
5
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export const getPickersCalendarHeaderUtilityClass = slot => generateUtilityClass('MuiPickersCalendarHeader', slot);
|
|
3
4
|
export const pickersCalendarHeaderClasses = generateUtilityClasses('MuiPickersCalendarHeader', ['root', 'labelContainer', 'label', 'switchViewButton', 'switchViewIcon']);
|
|
@@ -7,7 +7,9 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import ButtonBase from '@mui/material/ButtonBase';
|
|
10
|
-
import
|
|
10
|
+
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
11
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
12
|
+
import useForkRef from '@mui/utils/useForkRef';
|
|
11
13
|
import { alpha, styled, useThemeProps } from '@mui/material/styles';
|
|
12
14
|
import { useUtils } from "../internals/hooks/useUtils.js";
|
|
13
15
|
import { DAY_SIZE, DAY_MARGIN } from "../internals/constants/dimensions.js";
|
|
@@ -218,6 +220,7 @@ const PickersDayRaw = /*#__PURE__*/React.forwardRef(function PickersDay(inProps,
|
|
|
218
220
|
children: !children ? utils.format(day, 'dayOfMonth') : children
|
|
219
221
|
}));
|
|
220
222
|
});
|
|
223
|
+
if (process.env.NODE_ENV !== "production") PickersDayRaw.displayName = "PickersDayRaw";
|
|
221
224
|
process.env.NODE_ENV !== "production" ? PickersDayRaw.propTypes = {
|
|
222
225
|
// ----------------------------- Warning --------------------------------
|
|
223
226
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -369,4 +372,5 @@ process.env.NODE_ENV !== "production" ? PickersDayRaw.propTypes = {
|
|
|
369
372
|
*
|
|
370
373
|
* - [PickersDay API](https://mui.com/x/api/date-pickers/pickers-day/)
|
|
371
374
|
*/
|
|
372
|
-
export const PickersDay = /*#__PURE__*/React.memo(PickersDayRaw);
|
|
375
|
+
export const PickersDay = /*#__PURE__*/React.memo(PickersDayRaw);
|
|
376
|
+
if (process.env.NODE_ENV !== "production") PickersDay.displayName = "PickersDay";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export function getPickersDayUtilityClass(slot) {
|
|
3
4
|
return generateUtilityClass('MuiPickersDay', slot);
|
|
4
5
|
}
|
|
@@ -137,6 +137,7 @@ const PickersLayout = /*#__PURE__*/React.forwardRef(function PickersLayout(inPro
|
|
|
137
137
|
}), actionBar]
|
|
138
138
|
});
|
|
139
139
|
});
|
|
140
|
+
if (process.env.NODE_ENV !== "production") PickersLayout.displayName = "PickersLayout";
|
|
140
141
|
process.env.NODE_ENV !== "production" ? PickersLayout.propTypes = {
|
|
141
142
|
// ----------------------------- Warning --------------------------------
|
|
142
143
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
-
import { SlotComponentProps } from '@mui/utils';
|
|
3
|
+
import { SlotComponentProps } from '@mui/utils/types';
|
|
4
4
|
import { PickersActionBar, PickersActionBarProps } from "../PickersActionBar/index.js";
|
|
5
5
|
import { BaseToolbarProps, ExportedBaseToolbarProps } from "../internals/models/props/toolbar.js";
|
|
6
6
|
import { ExportedBaseTabsProps } from "../internals/models/props/tabs.js";
|
|
@@ -204,6 +204,7 @@ const PickersSectionList = /*#__PURE__*/React.forwardRef(function PickersSection
|
|
|
204
204
|
})
|
|
205
205
|
}));
|
|
206
206
|
});
|
|
207
|
+
if (process.env.NODE_ENV !== "production") PickersSectionList.displayName = "PickersSectionList";
|
|
207
208
|
process.env.NODE_ENV !== "production" ? PickersSectionList.propTypes = {
|
|
208
209
|
// ----------------------------- Warning --------------------------------
|
|
209
210
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/utils';
|
|
2
|
+
import { SlotComponentProps } from '@mui/utils/types';
|
|
3
3
|
import { PickersSectionListClasses } from "./pickersSectionListClasses.js";
|
|
4
4
|
import { PickerOwnerState } from "../models/index.js";
|
|
5
5
|
import type { UseFieldDOMGetters } from "../internals/hooks/useField/useField.types.js";
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
7
7
|
import { shouldForwardProp } from '@mui/system';
|
|
8
|
-
import
|
|
8
|
+
import refType from '@mui/utils/refType';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { pickersFilledInputClasses, getPickersFilledInputUtilityClass } from "./pickersFilledInputClasses.js";
|
|
11
11
|
import { PickersInputBase } from "../PickersInputBase/index.js";
|
|
@@ -226,6 +226,7 @@ const PickersFilledInput = /*#__PURE__*/React.forwardRef(function PickersFilledI
|
|
|
226
226
|
ownerState: ownerState
|
|
227
227
|
}));
|
|
228
228
|
});
|
|
229
|
+
if (process.env.NODE_ENV !== "production") PickersFilledInput.displayName = "PickersFilledInput";
|
|
229
230
|
process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
|
|
230
231
|
// ----------------------------- Warning --------------------------------
|
|
231
232
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
7
7
|
import { shouldForwardProp } from '@mui/system/createStyled';
|
|
8
|
-
import
|
|
8
|
+
import refType from '@mui/utils/refType';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { pickersInputClasses, getPickersInputUtilityClass } from "./pickersInputClasses.js";
|
|
11
11
|
import { PickersInputBase } from "../PickersInputBase/index.js";
|
|
@@ -143,6 +143,7 @@ const PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(inProps
|
|
|
143
143
|
ref: ref
|
|
144
144
|
}));
|
|
145
145
|
});
|
|
146
|
+
if (process.env.NODE_ENV !== "production") PickersInput.displayName = "PickersInput";
|
|
146
147
|
process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
|
|
147
148
|
// ----------------------------- Warning --------------------------------
|
|
148
149
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { useFormControl } from '@mui/material/FormControl';
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
8
|
import useForkRef from '@mui/utils/useForkRef';
|
|
9
|
-
import
|
|
9
|
+
import refType from '@mui/utils/refType';
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import capitalize from '@mui/utils/capitalize';
|
|
12
12
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
@@ -393,6 +393,7 @@ const PickersInputBase = /*#__PURE__*/React.forwardRef(function PickersInputBase
|
|
|
393
393
|
})]
|
|
394
394
|
}));
|
|
395
395
|
});
|
|
396
|
+
if (process.env.NODE_ENV !== "production") PickersInputBase.displayName = "PickersInputBase";
|
|
396
397
|
process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
|
|
397
398
|
// ----------------------------- Warning --------------------------------
|
|
398
399
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useFormControl } from '@mui/material/FormControl';
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
|
-
import
|
|
8
|
+
import refType from '@mui/utils/refType';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { pickersOutlinedInputClasses, getPickersOutlinedInputUtilityClass } from "./pickersOutlinedInputClasses.js";
|
|
11
11
|
import Outline from "./Outline.js";
|
|
@@ -120,6 +120,7 @@ const PickersOutlinedInput = /*#__PURE__*/React.forwardRef(function PickersOutli
|
|
|
120
120
|
ref: ref
|
|
121
121
|
}));
|
|
122
122
|
});
|
|
123
|
+
if (process.env.NODE_ENV !== "production") PickersOutlinedInput.displayName = "PickersOutlinedInput";
|
|
123
124
|
process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes = {
|
|
124
125
|
// ----------------------------- Warning --------------------------------
|
|
125
126
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -7,7 +7,7 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
10
|
-
import
|
|
10
|
+
import refType from '@mui/utils/refType';
|
|
11
11
|
import useForkRef from '@mui/utils/useForkRef';
|
|
12
12
|
import composeClasses from '@mui/utils/composeClasses';
|
|
13
13
|
import useId from '@mui/utils/useId';
|
|
@@ -29,7 +29,9 @@ const VARIANT_COMPONENT = {
|
|
|
29
29
|
const PickersTextFieldRoot = styled(FormControl, {
|
|
30
30
|
name: 'MuiPickersTextField',
|
|
31
31
|
slot: 'Root'
|
|
32
|
-
})({
|
|
32
|
+
})({
|
|
33
|
+
maxWidth: '100%'
|
|
34
|
+
});
|
|
33
35
|
const useUtilityClasses = (classes, ownerState) => {
|
|
34
36
|
const {
|
|
35
37
|
isFieldFocused,
|
|
@@ -174,6 +176,7 @@ const PickersTextField = /*#__PURE__*/React.forwardRef(function PickersTextField
|
|
|
174
176
|
}))
|
|
175
177
|
});
|
|
176
178
|
});
|
|
179
|
+
if (process.env.NODE_ENV !== "production") PickersTextField.displayName = "PickersTextField";
|
|
177
180
|
process.env.NODE_ENV !== "production" ? PickersTextField.propTypes = {
|
|
178
181
|
// ----------------------------- Warning --------------------------------
|
|
179
182
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
export const PickerTextFieldOwnerStateContext = /*#__PURE__*/React.createContext(null);
|
|
5
|
+
if (process.env.NODE_ENV !== "production") PickerTextFieldOwnerStateContext.displayName = "PickerTextFieldOwnerStateContext";
|
|
5
6
|
export const usePickerTextFieldOwnerState = () => {
|
|
6
7
|
const value = React.useContext(PickerTextFieldOwnerStateContext);
|
|
7
8
|
if (value == null) {
|
|
@@ -50,6 +50,7 @@ const StaticDatePicker = /*#__PURE__*/React.forwardRef(function StaticDatePicker
|
|
|
50
50
|
});
|
|
51
51
|
return renderPicker();
|
|
52
52
|
});
|
|
53
|
+
if (process.env.NODE_ENV !== "production") StaticDatePicker.displayName = "StaticDatePicker";
|
|
53
54
|
StaticDatePicker.propTypes = {
|
|
54
55
|
// ----------------------------- Warning --------------------------------
|
|
55
56
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -99,6 +99,7 @@ const StaticDateTimePicker = /*#__PURE__*/React.forwardRef(function StaticDateTi
|
|
|
99
99
|
});
|
|
100
100
|
return renderPicker();
|
|
101
101
|
});
|
|
102
|
+
if (process.env.NODE_ENV !== "production") StaticDateTimePicker.displayName = "StaticDateTimePicker";
|
|
102
103
|
StaticDateTimePicker.propTypes = {
|
|
103
104
|
// ----------------------------- Warning --------------------------------
|
|
104
105
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -52,6 +52,7 @@ const StaticTimePicker = /*#__PURE__*/React.forwardRef(function StaticTimePicker
|
|
|
52
52
|
});
|
|
53
53
|
return renderPicker();
|
|
54
54
|
});
|
|
55
|
+
if (process.env.NODE_ENV !== "production") StaticTimePicker.displayName = "StaticTimePicker";
|
|
55
56
|
StaticTimePicker.propTypes = {
|
|
56
57
|
// ----------------------------- Warning --------------------------------
|
|
57
58
|
// | These PropTypes are generated from the TypeScript type definitions |
|
package/esm/TimeClock/Clock.js
CHANGED
|
@@ -4,7 +4,8 @@ import clsx from 'clsx';
|
|
|
4
4
|
import IconButton from '@mui/material/IconButton';
|
|
5
5
|
import Typography from '@mui/material/Typography';
|
|
6
6
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
7
|
-
import
|
|
7
|
+
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
8
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
8
9
|
import { ClockPointer } from "./ClockPointer.js";
|
|
9
10
|
import { usePickerTranslations } from "../hooks/usePickerTranslations.js";
|
|
10
11
|
import { useUtils } from "../internals/hooks/useUtils.js";
|
|
@@ -7,7 +7,8 @@ import * as React from 'react';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
10
|
-
import
|
|
10
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
11
|
+
import useId from '@mui/utils/useId';
|
|
11
12
|
import { usePickerTranslations } from "../hooks/usePickerTranslations.js";
|
|
12
13
|
import { useUtils, useNow } from "../internals/hooks/useUtils.js";
|
|
13
14
|
import { PickersArrowSwitcher } from "../internals/components/PickersArrowSwitcher/index.js";
|
|
@@ -329,6 +330,7 @@ export const TimeClock = /*#__PURE__*/React.forwardRef(function TimeClock(inProp
|
|
|
329
330
|
})]
|
|
330
331
|
}));
|
|
331
332
|
});
|
|
333
|
+
if (process.env.NODE_ENV !== "production") TimeClock.displayName = "TimeClock";
|
|
332
334
|
process.env.NODE_ENV !== "production" ? TimeClock.propTypes = {
|
|
333
335
|
// ----------------------------- Warning --------------------------------
|
|
334
336
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export function getClockUtilityClass(slot) {
|
|
3
4
|
return generateUtilityClass('MuiClock', slot);
|
|
4
5
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export function getClockNumberUtilityClass(slot) {
|
|
3
4
|
return generateUtilityClass('MuiClockNumber', slot);
|
|
4
5
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export function getClockPointerUtilityClass(slot) {
|
|
3
4
|
return generateUtilityClass('MuiClockPointer', slot);
|
|
4
5
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export function getTimeClockUtilityClass(slot) {
|
|
3
4
|
return generateUtilityClass('MuiTimeClock', slot);
|
|
4
5
|
}
|
|
@@ -5,7 +5,7 @@ const _excluded = ["slots", "slotProps", "InputProps", "inputProps"];
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import { useThemeProps } from '@mui/material/styles';
|
|
8
|
-
import
|
|
8
|
+
import refType from '@mui/utils/refType';
|
|
9
9
|
import { useTimeField } from "./useTimeField.js";
|
|
10
10
|
import { PickerFieldUI, useFieldTextFieldProps } from "../internals/components/PickerFieldUI.js";
|
|
11
11
|
import { ClockIcon } from "../icons/index.js";
|
|
@@ -43,6 +43,7 @@ const TimeField = /*#__PURE__*/React.forwardRef(function TimeField(inProps, inRe
|
|
|
43
43
|
defaultOpenPickerIcon: ClockIcon
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
|
+
if (process.env.NODE_ENV !== "production") TimeField.displayName = "TimeField";
|
|
46
47
|
process.env.NODE_ENV !== "production" ? TimeField.propTypes = {
|
|
47
48
|
// ----------------------------- Warning --------------------------------
|
|
48
49
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -7,7 +7,7 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
9
9
|
import { useThemeProps } from '@mui/material/styles';
|
|
10
|
-
import
|
|
10
|
+
import refType from '@mui/utils/refType';
|
|
11
11
|
import { DesktopTimePicker } from "../DesktopTimePicker/index.js";
|
|
12
12
|
import { MobileTimePicker } from "../MobileTimePicker/index.js";
|
|
13
13
|
import { DEFAULT_DESKTOP_MODE_MEDIA_QUERY } from "../internals/utils/utils.js";
|
|
@@ -45,6 +45,7 @@ const TimePicker = /*#__PURE__*/React.forwardRef(function TimePicker(inProps, re
|
|
|
45
45
|
ref: ref
|
|
46
46
|
}, other));
|
|
47
47
|
});
|
|
48
|
+
if (process.env.NODE_ENV !== "production") TimePicker.displayName = "TimePicker";
|
|
48
49
|
process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
|
|
49
50
|
// ----------------------------- Warning --------------------------------
|
|
50
51
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export function getTimePickerToolbarUtilityClass(slot) {
|
|
3
4
|
return generateUtilityClass('MuiTimePickerToolbar', slot);
|
|
4
5
|
}
|
|
@@ -9,7 +9,10 @@ import clsx from 'clsx';
|
|
|
9
9
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
10
10
|
import { shouldForwardProp } from '@mui/system/createStyled';
|
|
11
11
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
12
|
-
import
|
|
12
|
+
import useForkRef from '@mui/utils/useForkRef';
|
|
13
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
14
|
+
import useControlled from '@mui/utils/useControlled';
|
|
15
|
+
import useEventCallback from '@mui/utils/useEventCallback';
|
|
13
16
|
import { YearCalendarButton } from "./YearCalendarButton.js";
|
|
14
17
|
import { useUtils, useNow } from "../internals/hooks/useUtils.js";
|
|
15
18
|
import { getYearCalendarUtilityClass } from "./yearCalendarClasses.js";
|
|
@@ -296,6 +299,7 @@ export const YearCalendar = /*#__PURE__*/React.forwardRef(function YearCalendar(
|
|
|
296
299
|
}, (_, index) => /*#__PURE__*/_jsx(YearCalendarButtonFiller, {}, index))]
|
|
297
300
|
}));
|
|
298
301
|
});
|
|
302
|
+
if (process.env.NODE_ENV !== "production") YearCalendar.displayName = "YearCalendar";
|
|
299
303
|
process.env.NODE_ENV !== "production" ? YearCalendar.propTypes = {
|
|
300
304
|
// ----------------------------- Warning --------------------------------
|
|
301
305
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -112,4 +112,5 @@ export const YearCalendarButton = /*#__PURE__*/React.memo(function YearCalendarB
|
|
|
112
112
|
className: classes.button
|
|
113
113
|
});
|
|
114
114
|
return /*#__PURE__*/_jsx(YearButton, _extends({}, yearButtonProps));
|
|
115
|
-
});
|
|
115
|
+
});
|
|
116
|
+
if (process.env.NODE_ENV !== "production") YearCalendarButton.displayName = "YearCalendarButton";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export function getYearCalendarUtilityClass(slot) {
|
|
3
4
|
return generateUtilityClass('MuiYearCalendar', slot);
|
|
4
5
|
}
|