@mui/lab 5.0.0-alpha.45 → 5.0.0-alpha.49
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/Alert/Alert.js +1 -1
- package/AlertTitle/AlertTitle.js +1 -1
- package/Autocomplete/Autocomplete.js +1 -1
- package/AvatarGroup/AvatarGroup.js +1 -1
- package/CHANGELOG.md +337 -48
- package/CalendarPicker/CalendarPicker.d.ts +2 -2
- package/CalendarPicker/CalendarPicker.js +2 -2
- package/CalendarPicker/PickersCalendar.d.ts +1 -1
- package/CalendarPicker/PickersCalendarHeader.d.ts +4 -1
- package/CalendarPicker/PickersCalendarHeader.js +0 -1
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +2 -2
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +4 -4
- package/ClockPicker/Clock.js +3 -3
- package/ClockPicker/ClockPicker.d.ts +6 -4
- package/ClockPicker/ClockPicker.js +3 -3
- package/ClockPicker/shared.js +1 -1
- package/DatePicker/DatePicker.d.ts +3 -3
- package/DatePicker/DatePicker.js +7 -7
- package/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/DateRangePicker/DateRangePicker.js +5 -5
- package/DateRangePicker/DateRangePickerInput.d.ts +1 -1
- package/DateRangePickerDay/DateRangePickerDay.d.ts +2 -2
- package/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/DateTimePicker/DateTimePicker.d.ts +3 -3
- package/DateTimePicker/DateTimePicker.js +9 -9
- package/DateTimePicker/DateTimePickerToolbar.js +27 -14
- package/DateTimePicker/shared.d.ts +1 -1
- package/DesktopDatePicker/DesktopDatePicker.d.ts +2 -2
- package/DesktopDatePicker/DesktopDatePicker.js +6 -6
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +2 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -5
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +8 -8
- package/DesktopTimePicker/DesktopTimePicker.d.ts +2 -2
- package/DesktopTimePicker/DesktopTimePicker.js +5 -5
- package/LoadingButton/LoadingButton.d.ts +3 -3
- package/LoadingButton/LoadingButton.js +2 -2
- package/Masonry/Masonry.d.ts +2 -2
- package/Masonry/Masonry.js +1 -1
- package/MasonryItem/MasonryItem.d.ts +2 -2
- package/MasonryItem/MasonryItem.js +15 -27
- package/MobileDatePicker/MobileDatePicker.d.ts +2 -2
- package/MobileDatePicker/MobileDatePicker.js +4 -4
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +2 -2
- package/MobileDateRangePicker/MobileDateRangePicker.js +3 -3
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.js +6 -6
- package/MobileTimePicker/MobileTimePicker.d.ts +2 -2
- package/MobileTimePicker/MobileTimePicker.js +3 -3
- package/MonthPicker/MonthPicker.d.ts +2 -2
- package/MonthPicker/MonthPicker.js +2 -2
- package/Pagination/Pagination.js +1 -1
- package/PaginationItem/PaginationItem.js +1 -1
- package/PickersDay/PickersDay.d.ts +2 -2
- package/PickersDay/PickersDay.js +3 -3
- package/README.md +11 -7
- package/Rating/Rating.js +1 -1
- package/Skeleton/Skeleton.js +1 -1
- package/SpeedDial/SpeedDial.js +1 -1
- package/SpeedDialAction/SpeedDialAction.js +1 -1
- package/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/StaticDatePicker/StaticDatePicker.d.ts +2 -2
- package/StaticDatePicker/StaticDatePicker.js +4 -4
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.js +3 -3
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.js +6 -6
- package/StaticTimePicker/StaticTimePicker.d.ts +2 -2
- package/StaticTimePicker/StaticTimePicker.js +3 -3
- package/TabContext/TabContext.d.ts +2 -2
- package/TabList/TabList.d.ts +3 -3
- package/TabPanel/TabPanel.d.ts +2 -2
- package/TimePicker/TimePicker.d.ts +3 -3
- package/TimePicker/TimePicker.js +6 -6
- package/Timeline/Timeline.d.ts +4 -4
- package/Timeline/Timeline.js +4 -4
- package/TimelineConnector/TimelineConnector.d.ts +2 -2
- package/TimelineContent/TimelineContent.d.ts +3 -3
- package/TimelineDot/TimelineDot.d.ts +2 -2
- package/TimelineItem/TimelineItem.d.ts +2 -2
- package/TimelineOppositeContent/TimelineOppositeContent.d.ts +3 -3
- package/TimelineSeparator/TimelineSeparator.d.ts +2 -2
- package/ToggleButton/ToggleButton.js +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/TreeItem/TreeItem.d.ts +3 -3
- package/TreeItem/TreeItem.js +1 -1
- package/TreeView/TreeView.d.ts +2 -2
- package/YearPicker/PickersYear.js +1 -1
- package/YearPicker/YearPicker.d.ts +2 -2
- package/YearPicker/YearPicker.js +2 -2
- package/index.js +1 -1
- package/internal/pickers/PickersArrowSwitcher.d.ts +3 -3
- package/internal/pickers/PickersPopper.d.ts +2 -2
- package/internal/pickers/PureDateInput.d.ts +1 -1
- package/internal/pickers/hooks/date-helpers-hooks.js +1 -1
- package/legacy/Alert/Alert.js +1 -1
- package/legacy/AlertTitle/AlertTitle.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +1 -1
- package/legacy/AvatarGroup/AvatarGroup.js +1 -1
- package/legacy/CalendarPicker/CalendarPicker.js +2 -2
- package/legacy/CalendarPicker/PickersCalendarHeader.js +0 -1
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +4 -4
- package/legacy/ClockPicker/Clock.js +3 -3
- package/legacy/ClockPicker/ClockPicker.js +3 -3
- package/legacy/ClockPicker/shared.js +1 -1
- package/legacy/DatePicker/DatePicker.js +7 -7
- package/legacy/DateRangePicker/DateRangePicker.js +5 -5
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/legacy/DateTimePicker/DateTimePicker.js +9 -9
- package/legacy/DateTimePicker/DateTimePickerToolbar.js +30 -15
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +6 -6
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -5
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +8 -8
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +5 -5
- package/legacy/LoadingButton/LoadingButton.js +2 -2
- package/legacy/Masonry/Masonry.js +1 -1
- package/legacy/MasonryItem/MasonryItem.js +18 -30
- package/legacy/MobileDatePicker/MobileDatePicker.js +4 -4
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +3 -3
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +6 -6
- package/legacy/MobileTimePicker/MobileTimePicker.js +3 -3
- package/legacy/MonthPicker/MonthPicker.js +2 -2
- package/legacy/Pagination/Pagination.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +1 -1
- package/legacy/PickersDay/PickersDay.js +3 -3
- package/legacy/Rating/Rating.js +1 -1
- package/legacy/Skeleton/Skeleton.js +1 -1
- package/legacy/SpeedDial/SpeedDial.js +1 -1
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -1
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/legacy/StaticDatePicker/StaticDatePicker.js +4 -4
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +3 -3
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +6 -6
- package/legacy/StaticTimePicker/StaticTimePicker.js +3 -3
- package/legacy/TimePicker/TimePicker.js +6 -6
- package/legacy/Timeline/Timeline.js +4 -4
- package/legacy/ToggleButton/ToggleButton.js +1 -1
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/TreeItem/TreeItem.js +1 -1
- package/legacy/YearPicker/PickersYear.js +1 -1
- package/legacy/YearPicker/YearPicker.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/internal/pickers/hooks/date-helpers-hooks.js +1 -1
- package/modern/Alert/Alert.js +1 -1
- package/modern/AlertTitle/AlertTitle.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.js +1 -1
- package/modern/CalendarPicker/CalendarPicker.js +2 -2
- package/modern/CalendarPicker/PickersCalendarHeader.js +0 -1
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +4 -4
- package/modern/ClockPicker/Clock.js +3 -3
- package/modern/ClockPicker/ClockPicker.js +3 -3
- package/modern/ClockPicker/shared.js +1 -1
- package/modern/DatePicker/DatePicker.js +7 -7
- package/modern/DateRangePicker/DateRangePicker.js +5 -5
- package/modern/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/modern/DateTimePicker/DateTimePicker.js +9 -9
- package/modern/DateTimePicker/DateTimePickerToolbar.js +27 -14
- package/modern/DesktopDatePicker/DesktopDatePicker.js +6 -6
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -5
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +8 -8
- package/modern/DesktopTimePicker/DesktopTimePicker.js +5 -5
- package/modern/LoadingButton/LoadingButton.js +2 -2
- package/modern/Masonry/Masonry.js +1 -1
- package/modern/MasonryItem/MasonryItem.js +15 -27
- package/modern/MobileDatePicker/MobileDatePicker.js +4 -4
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +3 -3
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +6 -6
- package/modern/MobileTimePicker/MobileTimePicker.js +3 -3
- package/modern/MonthPicker/MonthPicker.js +2 -2
- package/modern/Pagination/Pagination.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +1 -1
- package/modern/PickersDay/PickersDay.js +3 -3
- package/modern/Rating/Rating.js +1 -1
- package/modern/Skeleton/Skeleton.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +1 -1
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/modern/StaticDatePicker/StaticDatePicker.js +4 -4
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +3 -3
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +6 -6
- package/modern/StaticTimePicker/StaticTimePicker.js +3 -3
- package/modern/TimePicker/TimePicker.js +6 -6
- package/modern/Timeline/Timeline.js +4 -4
- package/modern/ToggleButton/ToggleButton.js +1 -1
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/TreeItem/TreeItem.js +1 -1
- package/modern/YearPicker/PickersYear.js +1 -1
- package/modern/YearPicker/YearPicker.js +2 -2
- package/modern/index.js +1 -1
- package/modern/internal/pickers/hooks/date-helpers-hooks.js +1 -1
- package/node/Alert/Alert.js +1 -1
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/Autocomplete/Autocomplete.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +1 -1
- package/node/CalendarPicker/CalendarPicker.js +2 -2
- package/node/CalendarPicker/PickersCalendarHeader.js +0 -1
- package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +4 -4
- package/node/ClockPicker/Clock.js +3 -3
- package/node/ClockPicker/ClockPicker.js +3 -3
- package/node/ClockPicker/shared.js +1 -1
- package/node/DatePicker/DatePicker.js +7 -7
- package/node/DateRangePicker/DateRangePicker.js +5 -5
- package/node/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/node/DateTimePicker/DateTimePicker.js +9 -9
- package/node/DateTimePicker/DateTimePickerToolbar.js +27 -14
- package/node/DesktopDatePicker/DesktopDatePicker.js +6 -6
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -5
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +8 -8
- package/node/DesktopTimePicker/DesktopTimePicker.js +5 -5
- package/node/LoadingButton/LoadingButton.js +2 -2
- package/node/Masonry/Masonry.js +1 -1
- package/node/MasonryItem/MasonryItem.js +14 -26
- package/node/MobileDatePicker/MobileDatePicker.js +4 -4
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +3 -3
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +6 -6
- package/node/MobileTimePicker/MobileTimePicker.js +3 -3
- package/node/MonthPicker/MonthPicker.js +2 -2
- package/node/Pagination/Pagination.js +1 -1
- package/node/PaginationItem/PaginationItem.js +1 -1
- package/node/PickersDay/PickersDay.js +3 -3
- package/node/Rating/Rating.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/StaticDatePicker/StaticDatePicker.js +4 -4
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +3 -3
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +6 -6
- package/node/StaticTimePicker/StaticTimePicker.js +3 -3
- package/node/TimePicker/TimePicker.js +6 -6
- package/node/Timeline/Timeline.js +4 -4
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/TreeItem/TreeItem.js +1 -1
- package/node/YearPicker/PickersYear.js +1 -1
- package/node/YearPicker/YearPicker.js +2 -2
- package/node/index.js +1 -1
- package/node/internal/pickers/hooks/date-helpers-hooks.js +1 -1
- package/package.json +13 -13
|
@@ -16,8 +16,8 @@ export interface ExportedArrowSwitcherProps {
|
|
|
16
16
|
* @default {}
|
|
17
17
|
*/
|
|
18
18
|
componentsProps?: {
|
|
19
|
-
leftArrowButton?: any
|
|
20
|
-
rightArrowButton?: any
|
|
19
|
+
leftArrowButton?: Record<string, any>;
|
|
20
|
+
rightArrowButton?: Record<string, any>;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* Left arrow icon aria-label text.
|
|
@@ -37,5 +37,5 @@ interface ArrowSwitcherProps extends ExportedArrowSwitcherProps, React.HTMLProps
|
|
|
37
37
|
onLeftClick: () => void;
|
|
38
38
|
onRightClick: () => void;
|
|
39
39
|
}
|
|
40
|
-
declare const PickersArrowSwitcher: React.ForwardRefExoticComponent<Pick<Omit<ArrowSwitcherProps, "as">, "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "hidden" | "selected" | "color" | "width" | "height" | "content" | "translate" | "className" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "disabled" | "step" | "start" | "
|
|
40
|
+
declare const PickersArrowSwitcher: React.ForwardRefExoticComponent<Pick<Omit<ArrowSwitcherProps, "as">, "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "hidden" | "selected" | "color" | "width" | "height" | "content" | "translate" | "className" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "disabled" | "step" | "start" | "size" | "default" | "wrap" | "open" | "multiple" | "value" | "name" | "components" | "componentsProps" | "leftArrowButtonText" | "rightArrowButtonText" | "action" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "max" | "method" | "min" | "crossOrigin" | "classID" | "useMap" | "wmode" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "dateTime" | "acceptCharset" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "integrity" | "charSet" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "async" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "isLeftDisabled" | "isLeftHidden" | "isRightDisabled" | "isRightHidden" | "onLeftClick" | "onRightClick"> & React.RefAttributes<HTMLDivElement>>;
|
|
41
41
|
export default PickersArrowSwitcher;
|
|
@@ -5,11 +5,11 @@ import { TrapFocusProps as MuiTrapFocusProps } from '@mui/material/Unstable_Trap
|
|
|
5
5
|
import { TransitionProps as MuiTransitionProps } from '@mui/material/transitions';
|
|
6
6
|
export interface ExportedPickerPopperProps {
|
|
7
7
|
/**
|
|
8
|
-
* Popper props passed down to [Popper](https://
|
|
8
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
9
9
|
*/
|
|
10
10
|
PopperProps?: Partial<MuiPopperProps>;
|
|
11
11
|
/**
|
|
12
|
-
* Custom component for popper [Transition](https://
|
|
12
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
13
13
|
*/
|
|
14
14
|
TransitionComponent?: React.JSXElementConstructor<MuiTransitionProps>;
|
|
15
15
|
}
|
|
@@ -62,7 +62,7 @@ export interface DateInputProps<TInputValue = ParseableDate<unknown>, TDateValue
|
|
|
62
62
|
readOnly?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
65
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
65
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
66
66
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
67
67
|
* @example ```jsx
|
|
68
68
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -28,7 +28,7 @@ export function useMeridiemMode(date, ampm, onChange) {
|
|
|
28
28
|
const meridiemMode = getMeridiem(date, utils);
|
|
29
29
|
const handleMeridiemChange = React.useCallback(mode => {
|
|
30
30
|
const timeWithMeridiem = convertToMeridiem(date, mode, Boolean(ampm), utils);
|
|
31
|
-
onChange(timeWithMeridiem, '
|
|
31
|
+
onChange(timeWithMeridiem, 'partial');
|
|
32
32
|
}, [ampm, date, onChange, utils]);
|
|
33
33
|
return {
|
|
34
34
|
meridiemMode,
|
package/legacy/Alert/Alert.js
CHANGED
|
@@ -9,7 +9,7 @@ var warnedOnce = false;
|
|
|
9
9
|
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedAlert(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
|
-
console.warn(['
|
|
12
|
+
console.warn(['MUI: The Alert component was moved from the lab to the core.', '', "You should use `import { Alert } from '@mui/material'`", "or `import Alert from '@mui/material/Alert'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ var warnedOnce = false;
|
|
|
9
9
|
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedAlertTitle(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
|
-
console.warn(['
|
|
12
|
+
console.warn(['MUI: The AlertTitle component was moved from the lab to the core.', '', "You should use `import { AlertTitle } from '@mui/material'`", "or `import AlertTitle from '@mui/material/AlertTitle'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ var warnedOnce = false;
|
|
|
9
9
|
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedAutocomplete(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
|
-
console.warn(['
|
|
12
|
+
console.warn(['MUI: The Autocomplete component was moved from the lab to the core.', '', "You should use `import { Autocomplete } from '@mui/material'`", "or `import Autocomplete from '@mui/material/Autocomplete'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ var warnedOnce = false;
|
|
|
9
9
|
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedAvatarGroup(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
|
-
console.warn(['
|
|
12
|
+
console.warn(['MUI: The AvatarGroup component was moved from the lab to the core.', '', "You should use `import { AvatarGroup } from '@mui/material'`", "or `import AvatarGroup from '@mui/material/AvatarGroup'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -327,11 +327,11 @@ process.env.NODE_ENV !== "production" ? CalendarPicker.propTypes
|
|
|
327
327
|
*
|
|
328
328
|
* Demos:
|
|
329
329
|
*
|
|
330
|
-
* - [Date Picker](https://
|
|
330
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
331
331
|
*
|
|
332
332
|
* API:
|
|
333
333
|
*
|
|
334
|
-
* - [CalendarPicker API](https://
|
|
334
|
+
* - [CalendarPicker API](https://mui.com/api/calendar-picker/)
|
|
335
335
|
*/
|
|
336
336
|
|
|
337
337
|
export default CalendarPicker;
|
|
@@ -161,7 +161,6 @@ function PickersCalendarHeader(props) {
|
|
|
161
161
|
as: components.SwitchViewButton,
|
|
162
162
|
"aria-label": getViewSwitchingButtonText(currentView)
|
|
163
163
|
}, switchViewButtonProps, {
|
|
164
|
-
ownerState: _extends({}, ownerState, switchViewButtonProps),
|
|
165
164
|
children: /*#__PURE__*/_jsx(PickersCalendarHeaderSwitchView, {
|
|
166
165
|
as: components.SwitchViewIcon,
|
|
167
166
|
ownerState: ownerState
|
|
@@ -80,11 +80,11 @@ var monthMap = [[0, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1,
|
|
|
80
80
|
*
|
|
81
81
|
* Demos:
|
|
82
82
|
*
|
|
83
|
-
* - [Date Picker](https://
|
|
83
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
84
84
|
*
|
|
85
85
|
* API:
|
|
86
86
|
*
|
|
87
|
-
* - [CalendarPickerSkeleton API](https://
|
|
87
|
+
* - [CalendarPickerSkeleton API](https://mui.com/api/calendar-picker-skeleton/)
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
90
|
function CalendarPickerSkeleton(props) {
|
|
@@ -121,11 +121,11 @@ function CalendarPickerSkeleton(props) {
|
|
|
121
121
|
*
|
|
122
122
|
* Demos:
|
|
123
123
|
*
|
|
124
|
-
* - [Date Picker](https://
|
|
124
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
125
125
|
*
|
|
126
126
|
* API:
|
|
127
127
|
*
|
|
128
|
-
* - [CalendarPickerSkeleton API](https://
|
|
128
|
+
* - [CalendarPickerSkeleton API](https://mui.com/api/calendar-picker-skeleton/)
|
|
129
129
|
*/
|
|
130
130
|
|
|
131
131
|
|
|
@@ -77,7 +77,7 @@ var ClockAmButton = styled(IconButton, {
|
|
|
77
77
|
return _extends({
|
|
78
78
|
zIndex: 1,
|
|
79
79
|
position: 'absolute',
|
|
80
|
-
bottom: 8,
|
|
80
|
+
bottom: ownerState.ampmInClock ? 64 : 8,
|
|
81
81
|
left: 8
|
|
82
82
|
}, ownerState.meridiemMode === 'am' && {
|
|
83
83
|
backgroundColor: theme.palette.primary.main,
|
|
@@ -95,7 +95,7 @@ var ClockPmButton = styled(IconButton, {
|
|
|
95
95
|
return _extends({
|
|
96
96
|
zIndex: 1,
|
|
97
97
|
position: 'absolute',
|
|
98
|
-
bottom: 8,
|
|
98
|
+
bottom: ownerState.ampmInClock ? 64 : 8,
|
|
99
99
|
right: 8
|
|
100
100
|
}, ownerState.meridiemMode === 'pm' && {
|
|
101
101
|
backgroundColor: theme.palette.primary.main,
|
|
@@ -195,7 +195,7 @@ function Clock(props) {
|
|
|
195
195
|
|
|
196
196
|
useEnhancedEffect(function () {
|
|
197
197
|
if (autoFocus) {
|
|
198
|
-
// The ref not being resolved would be a bug in
|
|
198
|
+
// The ref not being resolved would be a bug in MUI.
|
|
199
199
|
listboxRef.current.focus();
|
|
200
200
|
}
|
|
201
201
|
}, [autoFocus]);
|
|
@@ -57,7 +57,7 @@ var defaultGetSecondsClockNumberText = function defaultGetSecondsClockNumberText
|
|
|
57
57
|
*
|
|
58
58
|
* API:
|
|
59
59
|
*
|
|
60
|
-
* - [ClockPicker API](https://
|
|
60
|
+
* - [ClockPicker API](https://mui.com/api/clock-picker/)
|
|
61
61
|
*/
|
|
62
62
|
|
|
63
63
|
|
|
@@ -424,11 +424,11 @@ process.env.NODE_ENV !== "production" ? ClockPicker.propTypes
|
|
|
424
424
|
*
|
|
425
425
|
* Demos:
|
|
426
426
|
*
|
|
427
|
-
* - [Time Picker](https://
|
|
427
|
+
* - [Time Picker](https://mui.com/components/time-picker/)
|
|
428
428
|
*
|
|
429
429
|
* API:
|
|
430
430
|
*
|
|
431
|
-
* - [ClockPicker API](https://
|
|
431
|
+
* - [ClockPicker API](https://mui.com/api/clock-picker/)
|
|
432
432
|
*/
|
|
433
433
|
|
|
434
434
|
export default ClockPicker;
|
|
@@ -12,12 +12,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
12
12
|
*
|
|
13
13
|
* Demos:
|
|
14
14
|
*
|
|
15
|
-
* - [Date Picker](https://
|
|
16
|
-
* - [Pickers](https://
|
|
15
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
16
|
+
* - [Pickers](https://mui.com/components/pickers/)
|
|
17
17
|
*
|
|
18
18
|
* API:
|
|
19
19
|
*
|
|
20
|
-
* - [DatePicker API](https://
|
|
20
|
+
* - [DatePicker API](https://mui.com/api/date-picker/)
|
|
21
21
|
*/
|
|
22
22
|
var DatePicker = /*#__PURE__*/React.forwardRef(function DatePicker(inProps, ref) {
|
|
23
23
|
var props = useThemeProps({
|
|
@@ -333,7 +333,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes
|
|
|
333
333
|
orientation: PropTypes.oneOf(['landscape', 'portrait']),
|
|
334
334
|
|
|
335
335
|
/**
|
|
336
|
-
* Popper props passed down to [Popper](https://
|
|
336
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
337
337
|
*/
|
|
338
338
|
PopperProps: PropTypes.object,
|
|
339
339
|
|
|
@@ -349,13 +349,13 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes
|
|
|
349
349
|
reduceAnimations: PropTypes.bool,
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
352
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
353
353
|
*/
|
|
354
354
|
renderDay: PropTypes.func,
|
|
355
355
|
|
|
356
356
|
/**
|
|
357
357
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
358
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
358
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
359
359
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
360
360
|
* @example ```jsx
|
|
361
361
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -437,7 +437,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes
|
|
|
437
437
|
toolbarTitle: PropTypes.node,
|
|
438
438
|
|
|
439
439
|
/**
|
|
440
|
-
* Custom component for popper [Transition](https://
|
|
440
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
441
441
|
*/
|
|
442
442
|
TransitionComponent: PropTypes.elementType,
|
|
443
443
|
|
|
@@ -25,11 +25,11 @@ var rangePickerValueManager = {
|
|
|
25
25
|
*
|
|
26
26
|
* Demos:
|
|
27
27
|
*
|
|
28
|
-
* - [Date Range Picker](https://
|
|
28
|
+
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
29
29
|
*
|
|
30
30
|
* API:
|
|
31
31
|
*
|
|
32
|
-
* - [DateRangePicker API](https://
|
|
32
|
+
* - [DateRangePicker API](https://mui.com/api/date-range-picker/)
|
|
33
33
|
*/
|
|
34
34
|
var DateRangePicker = /*#__PURE__*/React.forwardRef(function DateRangePicker(inProps, ref) {
|
|
35
35
|
var props = useThemeProps({
|
|
@@ -394,7 +394,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
|
|
|
394
394
|
orientation: PropTypes.oneOf(['landscape', 'portrait']),
|
|
395
395
|
|
|
396
396
|
/**
|
|
397
|
-
* Popper props passed down to [Popper](https://
|
|
397
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
398
398
|
*/
|
|
399
399
|
PopperProps: PropTypes.object,
|
|
400
400
|
|
|
@@ -417,7 +417,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
|
|
|
417
417
|
|
|
418
418
|
/**
|
|
419
419
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
420
|
-
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://
|
|
420
|
+
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api),
|
|
421
421
|
* that you need to forward to the range start/end inputs respectively.
|
|
422
422
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
423
423
|
* @example
|
|
@@ -514,7 +514,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
|
|
|
514
514
|
toolbarTitle: PropTypes.node,
|
|
515
515
|
|
|
516
516
|
/**
|
|
517
|
-
* Custom component for popper [Transition](https://
|
|
517
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
518
518
|
*/
|
|
519
519
|
TransitionComponent: PropTypes.elementType,
|
|
520
520
|
|
|
@@ -239,11 +239,11 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDay.propTypes
|
|
|
239
239
|
*
|
|
240
240
|
* Demos:
|
|
241
241
|
*
|
|
242
|
-
* - [Date Range Picker](https://
|
|
242
|
+
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
243
243
|
*
|
|
244
244
|
* API:
|
|
245
245
|
*
|
|
246
|
-
* - [DateRangePickerDay API](https://
|
|
246
|
+
* - [DateRangePickerDay API](https://mui.com/api/date-range-picker-day/)
|
|
247
247
|
*/
|
|
248
248
|
|
|
249
249
|
export default /*#__PURE__*/React.memo(DateRangePickerDay, function (prevProps, nextProps) {
|
|
@@ -12,12 +12,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
12
12
|
*
|
|
13
13
|
* Demos:
|
|
14
14
|
*
|
|
15
|
-
* - [Date Time Picker](https://
|
|
16
|
-
* - [Pickers](https://
|
|
15
|
+
* - [Date Time Picker](https://mui.com/components/date-time-picker/)
|
|
16
|
+
* - [Pickers](https://mui.com/components/pickers/)
|
|
17
17
|
*
|
|
18
18
|
* API:
|
|
19
19
|
*
|
|
20
|
-
* - [DateTimePicker API](https://
|
|
20
|
+
* - [DateTimePicker API](https://mui.com/api/date-time-picker/)
|
|
21
21
|
*/
|
|
22
22
|
var DateTimePicker = /*#__PURE__*/React.forwardRef(function DateTimePicker(inProps, ref) {
|
|
23
23
|
var props = useThemeProps({
|
|
@@ -394,7 +394,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
394
394
|
/**
|
|
395
395
|
* First view to show.
|
|
396
396
|
*/
|
|
397
|
-
openTo: PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'year']),
|
|
397
|
+
openTo: PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']),
|
|
398
398
|
|
|
399
399
|
/**
|
|
400
400
|
* Force rendering in particular orientation.
|
|
@@ -402,7 +402,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
402
402
|
orientation: PropTypes.oneOf(['landscape', 'portrait']),
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
|
-
* Popper props passed down to [Popper](https://
|
|
405
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
406
406
|
*/
|
|
407
407
|
PopperProps: PropTypes.object,
|
|
408
408
|
|
|
@@ -418,13 +418,13 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
418
418
|
reduceAnimations: PropTypes.bool,
|
|
419
419
|
|
|
420
420
|
/**
|
|
421
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
421
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
422
422
|
*/
|
|
423
423
|
renderDay: PropTypes.func,
|
|
424
424
|
|
|
425
425
|
/**
|
|
426
426
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
427
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
427
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
428
428
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
429
429
|
* @example ```jsx
|
|
430
430
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -517,7 +517,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
517
517
|
toolbarTitle: PropTypes.node,
|
|
518
518
|
|
|
519
519
|
/**
|
|
520
|
-
* Custom component for popper [Transition](https://
|
|
520
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
521
521
|
*/
|
|
522
522
|
TransitionComponent: PropTypes.elementType,
|
|
523
523
|
|
|
@@ -529,6 +529,6 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
529
529
|
/**
|
|
530
530
|
* Array of views to show.
|
|
531
531
|
*/
|
|
532
|
-
views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'year']).isRequired)
|
|
532
|
+
views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']).isRequired)
|
|
533
533
|
} : void 0;
|
|
534
534
|
export default DateTimePicker;
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
|
|
5
|
-
var _DateTimePickerToolba;
|
|
5
|
+
var _DateTimePickerToolba, _DateTimePickerToolba2;
|
|
6
6
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { styled } from '@mui/material/styles';
|
|
@@ -65,7 +65,8 @@ var DateTimePickerToolbar = function DateTimePickerToolbar(props) {
|
|
|
65
65
|
toolbarPlaceholder = _props$toolbarPlaceho === void 0 ? '––' : _props$toolbarPlaceho,
|
|
66
66
|
_props$toolbarTitle = props.toolbarTitle,
|
|
67
67
|
toolbarTitle = _props$toolbarTitle === void 0 ? 'Select date & time' : _props$toolbarTitle,
|
|
68
|
-
|
|
68
|
+
views = props.views,
|
|
69
|
+
other = _objectWithoutProperties(props, ["ampm", "date", "dateRangeIcon", "hideTabs", "isMobileKeyboardViewOpen", "onChange", "openView", "setOpenView", "timeIcon", "toggleMobileKeyboardView", "toolbarFormat", "toolbarPlaceholder", "toolbarTitle", "views"]);
|
|
69
70
|
|
|
70
71
|
var utils = useUtils();
|
|
71
72
|
var wrapperVariant = React.useContext(WrapperVariantContext);
|
|
@@ -95,7 +96,7 @@ var DateTimePickerToolbar = function DateTimePickerToolbar(props) {
|
|
|
95
96
|
}, other, {
|
|
96
97
|
isLandscape: false,
|
|
97
98
|
children: [/*#__PURE__*/_jsxs(DateTimePickerToolbarDateContainer, {
|
|
98
|
-
children: [/*#__PURE__*/_jsx(PickersToolbarButton, {
|
|
99
|
+
children: [views.includes('year') && /*#__PURE__*/_jsx(PickersToolbarButton, {
|
|
99
100
|
tabIndex: -1,
|
|
100
101
|
variant: "subtitle1",
|
|
101
102
|
onClick: function onClick() {
|
|
@@ -103,7 +104,7 @@ var DateTimePickerToolbar = function DateTimePickerToolbar(props) {
|
|
|
103
104
|
},
|
|
104
105
|
selected: openView === 'year',
|
|
105
106
|
value: date ? utils.format(date, 'year') : '–'
|
|
106
|
-
}), /*#__PURE__*/_jsx(PickersToolbarButton, {
|
|
107
|
+
}), views.includes('day') && /*#__PURE__*/_jsx(PickersToolbarButton, {
|
|
107
108
|
tabIndex: -1,
|
|
108
109
|
variant: "h4",
|
|
109
110
|
onClick: function onClick() {
|
|
@@ -113,23 +114,37 @@ var DateTimePickerToolbar = function DateTimePickerToolbar(props) {
|
|
|
113
114
|
value: dateText
|
|
114
115
|
})]
|
|
115
116
|
}), /*#__PURE__*/_jsxs(DateTimePickerToolbarTimeContainer, {
|
|
116
|
-
children: [/*#__PURE__*/_jsx(PickersToolbarButton, {
|
|
117
|
+
children: [views.includes('hours') && /*#__PURE__*/_jsx(PickersToolbarButton, {
|
|
117
118
|
variant: "h3",
|
|
118
119
|
onClick: function onClick() {
|
|
119
120
|
return setOpenView('hours');
|
|
120
121
|
},
|
|
121
122
|
selected: openView === 'hours',
|
|
122
123
|
value: date ? formatHours(date) : '--'
|
|
123
|
-
}),
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
124
|
+
}), views.includes('minutes') && /*#__PURE__*/_jsxs(React.Fragment, {
|
|
125
|
+
children: [_DateTimePickerToolba || (_DateTimePickerToolba = /*#__PURE__*/_jsx(DateTimePickerToolbarSeparator, {
|
|
126
|
+
variant: "h3",
|
|
127
|
+
value: ":"
|
|
128
|
+
})), /*#__PURE__*/_jsx(PickersToolbarButton, {
|
|
129
|
+
variant: "h3",
|
|
130
|
+
onClick: function onClick() {
|
|
131
|
+
return setOpenView('minutes');
|
|
132
|
+
},
|
|
133
|
+
selected: openView === 'minutes',
|
|
134
|
+
value: date ? utils.format(date, 'minutes') : '--'
|
|
135
|
+
})]
|
|
136
|
+
}), views.includes('seconds') && /*#__PURE__*/_jsxs(React.Fragment, {
|
|
137
|
+
children: [_DateTimePickerToolba2 || (_DateTimePickerToolba2 = /*#__PURE__*/_jsx(DateTimePickerToolbarSeparator, {
|
|
138
|
+
variant: "h3",
|
|
139
|
+
value: ":"
|
|
140
|
+
})), /*#__PURE__*/_jsx(PickersToolbarButton, {
|
|
141
|
+
variant: "h3",
|
|
142
|
+
onClick: function onClick() {
|
|
143
|
+
return setOpenView('seconds');
|
|
144
|
+
},
|
|
145
|
+
selected: openView === 'seconds',
|
|
146
|
+
value: date ? utils.format(date, 'seconds') : '--'
|
|
147
|
+
})]
|
|
133
148
|
})]
|
|
134
149
|
})]
|
|
135
150
|
})), showTabs && /*#__PURE__*/_jsx(DateTimePickerTabs, {
|
|
@@ -23,11 +23,11 @@ var valueManager = {
|
|
|
23
23
|
*
|
|
24
24
|
* Demos:
|
|
25
25
|
*
|
|
26
|
-
* - [Date Picker](https://
|
|
26
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
27
27
|
*
|
|
28
28
|
* API:
|
|
29
29
|
*
|
|
30
|
-
* - [DesktopDatePicker API](https://
|
|
30
|
+
* - [DesktopDatePicker API](https://mui.com/api/desktop-date-picker/)
|
|
31
31
|
*/
|
|
32
32
|
var DesktopDatePicker = /*#__PURE__*/React.forwardRef(function DesktopDatePicker(inProps, ref) {
|
|
33
33
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -308,7 +308,7 @@ process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
|
|
|
308
308
|
orientation: PropTypes.oneOf(['landscape', 'portrait']),
|
|
309
309
|
|
|
310
310
|
/**
|
|
311
|
-
* Popper props passed down to [Popper](https://
|
|
311
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
312
312
|
*/
|
|
313
313
|
PopperProps: PropTypes.object,
|
|
314
314
|
|
|
@@ -324,13 +324,13 @@ process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
|
|
|
324
324
|
reduceAnimations: PropTypes.bool,
|
|
325
325
|
|
|
326
326
|
/**
|
|
327
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
327
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
328
328
|
*/
|
|
329
329
|
renderDay: PropTypes.func,
|
|
330
330
|
|
|
331
331
|
/**
|
|
332
332
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
333
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
333
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
334
334
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
335
335
|
* @example ```jsx
|
|
336
336
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -400,7 +400,7 @@ process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
|
|
|
400
400
|
toolbarTitle: PropTypes.node,
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
|
-
* Custom component for popper [Transition](https://
|
|
403
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
404
404
|
*/
|
|
405
405
|
TransitionComponent: PropTypes.elementType,
|
|
406
406
|
|
|
@@ -24,11 +24,11 @@ var rangePickerValueManager = {
|
|
|
24
24
|
*
|
|
25
25
|
* Demos:
|
|
26
26
|
*
|
|
27
|
-
* - [Date Range Picker](https://
|
|
27
|
+
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
28
28
|
*
|
|
29
29
|
* API:
|
|
30
30
|
*
|
|
31
|
-
* - [DesktopDateRangePicker API](https://
|
|
31
|
+
* - [DesktopDateRangePicker API](https://mui.com/api/desktop-date-range-picker/)
|
|
32
32
|
*/
|
|
33
33
|
var DesktopDateRangePicker = /*#__PURE__*/React.forwardRef(function DesktopDateRangePicker(inProps, ref) {
|
|
34
34
|
var props = useThemeProps({
|
|
@@ -360,7 +360,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes
|
|
|
360
360
|
orientation: PropTypes.oneOf(['landscape', 'portrait']),
|
|
361
361
|
|
|
362
362
|
/**
|
|
363
|
-
* Popper props passed down to [Popper](https://
|
|
363
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
364
364
|
*/
|
|
365
365
|
PopperProps: PropTypes.object,
|
|
366
366
|
|
|
@@ -383,7 +383,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes
|
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
385
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
386
|
-
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://
|
|
386
|
+
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api),
|
|
387
387
|
* that you need to forward to the range start/end inputs respectively.
|
|
388
388
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
389
389
|
* @example
|
|
@@ -468,7 +468,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes
|
|
|
468
468
|
toolbarTitle: PropTypes.node,
|
|
469
469
|
|
|
470
470
|
/**
|
|
471
|
-
* Custom component for popper [Transition](https://
|
|
471
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
472
472
|
*/
|
|
473
473
|
TransitionComponent: PropTypes.elementType,
|
|
474
474
|
|