@mui/lab 5.0.0-alpha.63 → 5.0.0-alpha.67
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 +284 -33
- package/CalendarPicker/PickersCalendar.js +6 -18
- package/CalendarPicker/PickersCalendarHeader.js +5 -15
- package/CalendarPicker/PickersFadeTransitionGroup.js +1 -3
- package/CalendarPicker/PickersSlideTransition.js +1 -3
- package/ClockPicker/Clock.js +6 -18
- package/ClockPicker/ClockNumber.js +1 -3
- package/ClockPicker/ClockPicker.js +4 -1
- package/ClockPicker/ClockPointer.js +2 -6
- package/DatePicker/DatePicker.js +5 -1
- package/DatePicker/DatePickerToolbar.js +2 -6
- package/DateRangePicker/DateRangePicker.js +5 -1
- package/DateRangePicker/DateRangePickerInput.js +1 -3
- package/DateRangePicker/DateRangePickerToolbar.js +2 -6
- package/DateRangePicker/DateRangePickerViewDesktop.js +4 -12
- package/DateTimePicker/DateTimePicker.js +5 -1
- package/DateTimePicker/DateTimePickerTabs.js +2 -4
- package/DateTimePicker/DateTimePickerToolbar.js +4 -12
- package/DesktopDatePicker/DesktopDatePicker.js +5 -1
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
- package/Masonry/Masonry.js +12 -34
- package/MobileDatePicker/MobileDatePicker.js +5 -1
- package/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
- package/MonthPicker/PickersMonth.js +1 -3
- package/README.md +4 -4
- package/StaticDatePicker/StaticDatePicker.js +5 -1
- package/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/TimePicker/TimePickerToolbar.js +4 -12
- package/TreeView/TreeView.js +4 -0
- package/YearPicker/PickersYear.js +2 -6
- package/index.js +1 -1
- package/internal/pickers/Picker/Picker.js +1 -3
- package/internal/pickers/PickersArrowSwitcher.js +2 -6
- package/internal/pickers/PickersModalDialog.js +3 -9
- package/internal/pickers/PickersPopper.js +2 -6
- package/internal/pickers/PickersToolbar.js +2 -6
- package/internal/pickers/PickersToolbarButton.js +1 -3
- package/internal/pickers/PickersToolbarText.d.ts +1 -1
- package/internal/pickers/PickersToolbarText.js +1 -3
- package/internal/pickers/PureDateInput.js +6 -4
- package/internal/pickers/wrappers/PickerStaticWrapper.js +1 -2
- package/legacy/CalendarPicker/PickersCalendar.js +6 -18
- package/legacy/CalendarPicker/PickersCalendarHeader.js +5 -15
- package/legacy/CalendarPicker/PickersFadeTransitionGroup.js +1 -3
- package/legacy/CalendarPicker/PickersSlideTransition.js +1 -3
- package/legacy/ClockPicker/Clock.js +6 -18
- package/legacy/ClockPicker/ClockNumber.js +1 -3
- package/legacy/ClockPicker/ClockPicker.js +4 -1
- package/legacy/ClockPicker/ClockPointer.js +2 -6
- package/legacy/DatePicker/DatePicker.js +5 -1
- package/legacy/DatePicker/DatePickerToolbar.js +2 -6
- package/legacy/DateRangePicker/DateRangePicker.js +5 -1
- package/legacy/DateRangePicker/DateRangePickerInput.js +1 -3
- package/legacy/DateRangePicker/DateRangePickerToolbar.js +2 -6
- package/legacy/DateRangePicker/DateRangePickerViewDesktop.js +4 -12
- package/legacy/DateTimePicker/DateTimePicker.js +5 -1
- package/legacy/DateTimePicker/DateTimePickerTabs.js +2 -4
- package/legacy/DateTimePicker/DateTimePickerToolbar.js +4 -12
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +5 -1
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
- package/legacy/Masonry/Masonry.js +12 -34
- package/legacy/MobileDatePicker/MobileDatePicker.js +5 -1
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
- package/legacy/MonthPicker/PickersMonth.js +1 -3
- package/legacy/StaticDatePicker/StaticDatePicker.js +5 -1
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/legacy/TimePicker/TimePickerToolbar.js +4 -12
- package/legacy/TreeView/TreeView.js +4 -0
- package/legacy/YearPicker/PickersYear.js +2 -6
- package/legacy/index.js +1 -1
- package/legacy/internal/pickers/Picker/Picker.js +1 -3
- package/legacy/internal/pickers/PickersArrowSwitcher.js +2 -6
- package/legacy/internal/pickers/PickersModalDialog.js +3 -9
- package/legacy/internal/pickers/PickersPopper.js +2 -6
- package/legacy/internal/pickers/PickersToolbar.js +2 -6
- package/legacy/internal/pickers/PickersToolbarButton.js +1 -3
- package/legacy/internal/pickers/PickersToolbarText.js +1 -3
- package/legacy/internal/pickers/PureDateInput.js +6 -4
- package/legacy/internal/pickers/test-utils.js +2 -1
- package/legacy/internal/pickers/wrappers/PickerStaticWrapper.js +1 -2
- package/modern/CalendarPicker/PickersCalendar.js +6 -18
- package/modern/CalendarPicker/PickersCalendarHeader.js +5 -15
- package/modern/CalendarPicker/PickersFadeTransitionGroup.js +1 -3
- package/modern/CalendarPicker/PickersSlideTransition.js +1 -3
- package/modern/ClockPicker/Clock.js +6 -18
- package/modern/ClockPicker/ClockNumber.js +1 -3
- package/modern/ClockPicker/ClockPicker.js +4 -1
- package/modern/ClockPicker/ClockPointer.js +2 -6
- package/modern/DatePicker/DatePicker.js +5 -1
- package/modern/DatePicker/DatePickerToolbar.js +2 -6
- package/modern/DateRangePicker/DateRangePicker.js +5 -1
- package/modern/DateRangePicker/DateRangePickerInput.js +1 -3
- package/modern/DateRangePicker/DateRangePickerToolbar.js +2 -6
- package/modern/DateRangePicker/DateRangePickerViewDesktop.js +4 -12
- package/modern/DateTimePicker/DateTimePicker.js +5 -1
- package/modern/DateTimePicker/DateTimePickerTabs.js +2 -4
- package/modern/DateTimePicker/DateTimePickerToolbar.js +4 -12
- package/modern/DesktopDatePicker/DesktopDatePicker.js +5 -1
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
- package/modern/Masonry/Masonry.js +12 -30
- package/modern/MobileDatePicker/MobileDatePicker.js +5 -1
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
- package/modern/MonthPicker/PickersMonth.js +1 -3
- package/modern/StaticDatePicker/StaticDatePicker.js +5 -1
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/modern/TimePicker/TimePickerToolbar.js +4 -12
- package/modern/TreeView/TreeView.js +4 -0
- package/modern/YearPicker/PickersYear.js +2 -6
- package/modern/index.js +1 -1
- package/modern/internal/pickers/Picker/Picker.js +1 -3
- package/modern/internal/pickers/PickersArrowSwitcher.js +2 -6
- package/modern/internal/pickers/PickersModalDialog.js +3 -9
- package/modern/internal/pickers/PickersPopper.js +2 -6
- package/modern/internal/pickers/PickersToolbar.js +2 -6
- package/modern/internal/pickers/PickersToolbarButton.js +1 -3
- package/modern/internal/pickers/PickersToolbarText.js +1 -3
- package/modern/internal/pickers/PureDateInput.js +6 -4
- package/modern/internal/pickers/wrappers/PickerStaticWrapper.js +1 -2
- package/node/CalendarPicker/PickersCalendar.js +6 -18
- package/node/CalendarPicker/PickersCalendarHeader.js +5 -15
- package/node/CalendarPicker/PickersFadeTransitionGroup.js +1 -3
- package/node/CalendarPicker/PickersSlideTransition.js +1 -3
- package/node/ClockPicker/Clock.js +6 -18
- package/node/ClockPicker/ClockNumber.js +1 -3
- package/node/ClockPicker/ClockPicker.js +4 -1
- package/node/ClockPicker/ClockPointer.js +2 -6
- package/node/DatePicker/DatePicker.js +5 -1
- package/node/DatePicker/DatePickerToolbar.js +2 -6
- package/node/DateRangePicker/DateRangePicker.js +5 -1
- package/node/DateRangePicker/DateRangePickerInput.js +1 -3
- package/node/DateRangePicker/DateRangePickerToolbar.js +2 -6
- package/node/DateRangePicker/DateRangePickerViewDesktop.js +4 -12
- package/node/DateTimePicker/DateTimePicker.js +5 -1
- package/node/DateTimePicker/DateTimePickerTabs.js +2 -4
- package/node/DateTimePicker/DateTimePickerToolbar.js +4 -12
- package/node/DesktopDatePicker/DesktopDatePicker.js +5 -1
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
- package/node/Masonry/Masonry.js +12 -34
- package/node/MobileDatePicker/MobileDatePicker.js +5 -1
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
- package/node/MonthPicker/PickersMonth.js +1 -3
- package/node/StaticDatePicker/StaticDatePicker.js +5 -1
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/node/TimePicker/TimePickerToolbar.js +4 -12
- package/node/TreeView/TreeView.js +4 -0
- package/node/YearPicker/PickersYear.js +2 -6
- package/node/index.js +1 -1
- package/node/internal/pickers/Picker/Picker.js +1 -3
- package/node/internal/pickers/PickersArrowSwitcher.js +2 -6
- package/node/internal/pickers/PickersModalDialog.js +3 -9
- package/node/internal/pickers/PickersPopper.js +2 -6
- package/node/internal/pickers/PickersToolbar.js +2 -6
- package/node/internal/pickers/PickersToolbarButton.js +1 -3
- package/node/internal/pickers/PickersToolbarText.js +1 -3
- package/node/internal/pickers/PureDateInput.js +6 -4
- package/node/internal/pickers/wrappers/PickerStaticWrapper.js +1 -2
- package/package.json +7 -7
- package/themeAugmentation/components.d.ts +99 -23
|
@@ -8,9 +8,7 @@ import { styled } from '@mui/material/styles';
|
|
|
8
8
|
import { DIALOG_WIDTH } from './constants/dimensions';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
const PickersModalDialogRoot = styled(Dialog
|
|
12
|
-
skipSx: true
|
|
13
|
-
})({
|
|
11
|
+
const PickersModalDialogRoot = styled(Dialog)({
|
|
14
12
|
[`& .${dialogClasses.container}`]: {
|
|
15
13
|
outline: 0
|
|
16
14
|
},
|
|
@@ -19,16 +17,12 @@ const PickersModalDialogRoot = styled(Dialog, {
|
|
|
19
17
|
minWidth: DIALOG_WIDTH
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
|
-
const PickersModalDialogContent = styled(DialogContent
|
|
23
|
-
skipSx: true
|
|
24
|
-
})({
|
|
20
|
+
const PickersModalDialogContent = styled(DialogContent)({
|
|
25
21
|
'&:first-of-type': {
|
|
26
22
|
padding: 0
|
|
27
23
|
}
|
|
28
24
|
});
|
|
29
|
-
const PickersModalDialogActions = styled(DialogActions
|
|
30
|
-
skipSx: true
|
|
31
|
-
})(({
|
|
25
|
+
const PickersModalDialogActions = styled(DialogActions)(({
|
|
32
26
|
ownerState
|
|
33
27
|
}) => _extends({}, (ownerState.clearable || ownerState.showTodayButton) && {
|
|
34
28
|
// set justifyContent to default value to fix IE11 layout bug
|
|
@@ -9,16 +9,12 @@ import TrapFocus from '@mui/material/Unstable_TrapFocus';
|
|
|
9
9
|
import { useForkRef, useEventCallback, ownerDocument } from '@mui/material/utils';
|
|
10
10
|
import { styled } from '@mui/material/styles';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
const PickersPopperRoot = styled(Popper
|
|
13
|
-
skipSx: true
|
|
14
|
-
})(({
|
|
12
|
+
const PickersPopperRoot = styled(Popper)(({
|
|
15
13
|
theme
|
|
16
14
|
}) => ({
|
|
17
15
|
zIndex: theme.zIndex.modal
|
|
18
16
|
}));
|
|
19
|
-
const PickersPopperPaper = styled(Paper
|
|
20
|
-
skipSx: true
|
|
21
|
-
})(({
|
|
17
|
+
const PickersPopperPaper = styled(Paper)(({
|
|
22
18
|
ownerState
|
|
23
19
|
}) => _extends({
|
|
24
20
|
transformOrigin: 'top center',
|
|
@@ -15,9 +15,7 @@ import ClockIcon from '../svg-icons/Clock';
|
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
const classes = generateUtilityClasses('PrivatePickersToolbar', ['root', 'dateTitleContainer']);
|
|
18
|
-
const PickersToolbarRoot = styled('div'
|
|
19
|
-
skipSx: true
|
|
20
|
-
})(({
|
|
18
|
+
const PickersToolbarRoot = styled('div')(({
|
|
21
19
|
theme,
|
|
22
20
|
ownerState
|
|
23
21
|
}) => _extends({
|
|
@@ -33,9 +31,7 @@ const PickersToolbarRoot = styled('div', {
|
|
|
33
31
|
justifyContent: 'flex-start',
|
|
34
32
|
flexWrap: 'wrap'
|
|
35
33
|
}));
|
|
36
|
-
const PickersToolbarGrid = styled(Grid
|
|
37
|
-
skipSx: true
|
|
38
|
-
})({
|
|
34
|
+
const PickersToolbarGrid = styled(Grid)({
|
|
39
35
|
flex: 1
|
|
40
36
|
});
|
|
41
37
|
|
|
@@ -6,9 +6,7 @@ import Button from '@mui/material/Button';
|
|
|
6
6
|
import { styled } from '@mui/material/styles';
|
|
7
7
|
import PickersToolbarText from './PickersToolbarText';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const PickersToolbarButtonRoot = styled(Button
|
|
10
|
-
skipSx: true
|
|
11
|
-
})({
|
|
9
|
+
const PickersToolbarButtonRoot = styled(Button)({
|
|
12
10
|
padding: 0,
|
|
13
11
|
minWidth: 16,
|
|
14
12
|
textTransform: 'none'
|
|
@@ -4,5 +4,5 @@ export interface PickersToolbarTextProps extends Omit<TypographyProps, 'classes'
|
|
|
4
4
|
selected?: boolean;
|
|
5
5
|
value: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
declare const PickersToolbarText: React.ForwardRefExoticComponent<Pick<PickersToolbarTextProps, "p" | "slot" | "style" | "title" | "hidden" | "className" | "selected" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "translate" | "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" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping" | "value"> & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
declare const PickersToolbarText: React.ForwardRefExoticComponent<Pick<PickersToolbarTextProps, "p" | "slot" | "style" | "title" | "hidden" | "className" | "selected" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "translate" | "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" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping" | "value"> & React.RefAttributes<HTMLSpanElement>>;
|
|
8
8
|
export default PickersToolbarText;
|
|
@@ -8,9 +8,7 @@ import { styled } from '@mui/material/styles';
|
|
|
8
8
|
import { generateUtilityClasses } from '@mui/base';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
const classes = generateUtilityClasses('PrivatePickersToolbarText', ['selected']);
|
|
11
|
-
const PickersToolbarTextRoot = styled(Typography
|
|
12
|
-
skipSx: true
|
|
13
|
-
})(({
|
|
11
|
+
const PickersToolbarTextRoot = styled(Typography)(({
|
|
14
12
|
theme
|
|
15
13
|
}) => ({
|
|
16
14
|
transition: theme.transitions.create('color'),
|
|
@@ -32,15 +32,17 @@ export const PureDateInput = /*#__PURE__*/React.forwardRef(function PureDateInpu
|
|
|
32
32
|
inputRef,
|
|
33
33
|
error: validationError,
|
|
34
34
|
InputProps: PureDateInputProps,
|
|
35
|
-
inputProps: {
|
|
35
|
+
inputProps: _extends({
|
|
36
36
|
disabled,
|
|
37
37
|
readOnly: true,
|
|
38
38
|
'aria-readonly': true,
|
|
39
39
|
'aria-label': getOpenDialogAriaText(rawValue, utils),
|
|
40
|
-
value: inputValue
|
|
41
|
-
|
|
40
|
+
value: inputValue
|
|
41
|
+
}, !props.readOnly && {
|
|
42
|
+
onClick: onOpen
|
|
43
|
+
}, {
|
|
42
44
|
onKeyDown: onSpaceOrEnter(onOpen)
|
|
43
|
-
}
|
|
45
|
+
})
|
|
44
46
|
}, TextFieldProps));
|
|
45
47
|
});
|
|
46
48
|
PureDateInput.propTypes = {
|
|
@@ -25,8 +25,7 @@ const useUtilityClasses = ownerState => {
|
|
|
25
25
|
const PickerStaticWrapperRoot = styled('div', {
|
|
26
26
|
name: 'MuiPickerStaticWrapper',
|
|
27
27
|
slot: 'Root',
|
|
28
|
-
overridesResolver: (props, styles) => styles.root
|
|
29
|
-
skipSx: true
|
|
28
|
+
overridesResolver: (props, styles) => styles.root
|
|
30
29
|
})(({
|
|
31
30
|
theme
|
|
32
31
|
}) => ({
|
|
@@ -12,16 +12,12 @@ import SlideTransition from './PickersSlideTransition';
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
var weeksContainerHeight = (DAY_SIZE + DAY_MARGIN * 4) * 6;
|
|
15
|
-
var PickersCalendarDayHeader = styled('div'
|
|
16
|
-
skipSx: true
|
|
17
|
-
})({
|
|
15
|
+
var PickersCalendarDayHeader = styled('div')({
|
|
18
16
|
display: 'flex',
|
|
19
17
|
justifyContent: 'center',
|
|
20
18
|
alignItems: 'center'
|
|
21
19
|
});
|
|
22
|
-
var PickersCalendarWeekDayLabel = styled(Typography
|
|
23
|
-
skipSx: true
|
|
24
|
-
})(function (_ref) {
|
|
20
|
+
var PickersCalendarWeekDayLabel = styled(Typography)(function (_ref) {
|
|
25
21
|
var theme = _ref.theme;
|
|
26
22
|
return {
|
|
27
23
|
width: 36,
|
|
@@ -34,27 +30,19 @@ var PickersCalendarWeekDayLabel = styled(Typography, {
|
|
|
34
30
|
color: theme.palette.text.secondary
|
|
35
31
|
};
|
|
36
32
|
});
|
|
37
|
-
var PickersCalendarLoadingContainer = styled('div'
|
|
38
|
-
skipSx: true
|
|
39
|
-
})({
|
|
33
|
+
var PickersCalendarLoadingContainer = styled('div')({
|
|
40
34
|
display: 'flex',
|
|
41
35
|
justifyContent: 'center',
|
|
42
36
|
alignItems: 'center',
|
|
43
37
|
minHeight: weeksContainerHeight
|
|
44
38
|
});
|
|
45
|
-
var PickersCalendarSlideTransition = styled(SlideTransition
|
|
46
|
-
skipSx: true
|
|
47
|
-
})({
|
|
39
|
+
var PickersCalendarSlideTransition = styled(SlideTransition)({
|
|
48
40
|
minHeight: weeksContainerHeight
|
|
49
41
|
});
|
|
50
|
-
var PickersCalendarWeekContainer = styled('div'
|
|
51
|
-
skipSx: true
|
|
52
|
-
})({
|
|
42
|
+
var PickersCalendarWeekContainer = styled('div')({
|
|
53
43
|
overflow: 'hidden'
|
|
54
44
|
});
|
|
55
|
-
var PickersCalendarWeek = styled('div'
|
|
56
|
-
skipSx: true
|
|
57
|
-
})({
|
|
45
|
+
var PickersCalendarWeek = styled('div')({
|
|
58
46
|
margin: "".concat(DAY_MARGIN, "px 0"),
|
|
59
47
|
display: 'flex',
|
|
60
48
|
justifyContent: 'center'
|
|
@@ -11,9 +11,7 @@ import PickersArrowSwitcher from '../internal/pickers/PickersArrowSwitcher';
|
|
|
11
11
|
import { usePreviousMonthDisabled, useNextMonthDisabled } from '../internal/pickers/hooks/date-helpers-hooks';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
var PickersCalendarHeaderRoot = styled('div'
|
|
15
|
-
skipSx: true
|
|
16
|
-
})({
|
|
14
|
+
var PickersCalendarHeaderRoot = styled('div')({
|
|
17
15
|
display: 'flex',
|
|
18
16
|
alignItems: 'center',
|
|
19
17
|
marginTop: 16,
|
|
@@ -24,9 +22,7 @@ var PickersCalendarHeaderRoot = styled('div', {
|
|
|
24
22
|
maxHeight: 30,
|
|
25
23
|
minHeight: 30
|
|
26
24
|
});
|
|
27
|
-
var PickersCalendarHeaderLabel = styled('div'
|
|
28
|
-
skipSx: true
|
|
29
|
-
})(function (_ref) {
|
|
25
|
+
var PickersCalendarHeaderLabel = styled('div')(function (_ref) {
|
|
30
26
|
var theme = _ref.theme;
|
|
31
27
|
return _extends({
|
|
32
28
|
display: 'flex',
|
|
@@ -39,19 +35,13 @@ var PickersCalendarHeaderLabel = styled('div', {
|
|
|
39
35
|
fontWeight: theme.typography.fontWeightMedium
|
|
40
36
|
});
|
|
41
37
|
});
|
|
42
|
-
var PickersCalendarHeaderLabelItem = styled('div'
|
|
43
|
-
skipSx: true
|
|
44
|
-
})({
|
|
38
|
+
var PickersCalendarHeaderLabelItem = styled('div')({
|
|
45
39
|
marginRight: 6
|
|
46
40
|
});
|
|
47
|
-
var PickersCalendarHeaderSwitchViewButton = styled(IconButton
|
|
48
|
-
skipSx: true
|
|
49
|
-
})({
|
|
41
|
+
var PickersCalendarHeaderSwitchViewButton = styled(IconButton)({
|
|
50
42
|
marginRight: 'auto'
|
|
51
43
|
});
|
|
52
|
-
var PickersCalendarHeaderSwitchView = styled(ArrowDropDownIcon
|
|
53
|
-
skipSx: true
|
|
54
|
-
})(function (_ref2) {
|
|
44
|
+
var PickersCalendarHeaderSwitchView = styled(ArrowDropDownIcon)(function (_ref2) {
|
|
55
45
|
var theme = _ref2.theme,
|
|
56
46
|
ownerState = _ref2.ownerState;
|
|
57
47
|
return _extends({
|
|
@@ -7,9 +7,7 @@ import { TransitionGroup } from 'react-transition-group';
|
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
var classes = generateUtilityClasses('PrivatePickersFadeTransitionGroup', ['root']);
|
|
9
9
|
var animationDuration = 500;
|
|
10
|
-
var PickersFadeTransitionGroupRoot = styled(TransitionGroup
|
|
11
|
-
skipSx: true
|
|
12
|
-
})({
|
|
10
|
+
var PickersFadeTransitionGroupRoot = styled(TransitionGroup)({
|
|
13
11
|
display: 'block',
|
|
14
12
|
position: 'relative'
|
|
15
13
|
});
|
|
@@ -9,9 +9,7 @@ import { CSSTransition, TransitionGroup } from 'react-transition-group';
|
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
var classes = generateUtilityClasses('PrivatePickersSlideTransition', ['root', 'slideEnter-left', 'slideEnter-right', 'slideEnterActive', 'slideEnterActive', 'slideExit', 'slideExitActiveLeft-left', 'slideExitActiveLeft-right']);
|
|
11
11
|
export var slideAnimationDuration = 350;
|
|
12
|
-
var PickersSlideTransitionRoot = styled(TransitionGroup
|
|
13
|
-
skipSx: true
|
|
14
|
-
})(function (_ref) {
|
|
12
|
+
var PickersSlideTransitionRoot = styled(TransitionGroup)(function (_ref) {
|
|
15
13
|
var _ref2;
|
|
16
14
|
|
|
17
15
|
var theme = _ref.theme;
|
|
@@ -13,9 +13,7 @@ import { WrapperVariantContext } from '../internal/pickers/wrappers/WrapperVaria
|
|
|
13
13
|
import { getHours, getMinutes } from './shared';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
-
var ClockRoot = styled('div'
|
|
17
|
-
skipSx: true
|
|
18
|
-
})(function (_ref) {
|
|
16
|
+
var ClockRoot = styled('div')(function (_ref) {
|
|
19
17
|
var theme = _ref.theme;
|
|
20
18
|
return {
|
|
21
19
|
display: 'flex',
|
|
@@ -24,9 +22,7 @@ var ClockRoot = styled('div', {
|
|
|
24
22
|
margin: theme.spacing(2)
|
|
25
23
|
};
|
|
26
24
|
});
|
|
27
|
-
var ClockClock = styled('div'
|
|
28
|
-
skipSx: true
|
|
29
|
-
})({
|
|
25
|
+
var ClockClock = styled('div')({
|
|
30
26
|
backgroundColor: 'rgba(0,0,0,.07)',
|
|
31
27
|
borderRadius: '50%',
|
|
32
28
|
height: 220,
|
|
@@ -35,9 +31,7 @@ var ClockClock = styled('div', {
|
|
|
35
31
|
position: 'relative',
|
|
36
32
|
pointerEvents: 'none'
|
|
37
33
|
});
|
|
38
|
-
var ClockSquareMask = styled('div'
|
|
39
|
-
skipSx: true
|
|
40
|
-
})({
|
|
34
|
+
var ClockSquareMask = styled('div')({
|
|
41
35
|
width: '100%',
|
|
42
36
|
height: '100%',
|
|
43
37
|
position: 'absolute',
|
|
@@ -54,9 +48,7 @@ var ClockSquareMask = styled('div', {
|
|
|
54
48
|
cursor: 'move'
|
|
55
49
|
}
|
|
56
50
|
});
|
|
57
|
-
var ClockPin = styled('div'
|
|
58
|
-
skipSx: true
|
|
59
|
-
})(function (_ref2) {
|
|
51
|
+
var ClockPin = styled('div')(function (_ref2) {
|
|
60
52
|
var theme = _ref2.theme;
|
|
61
53
|
return {
|
|
62
54
|
width: 6,
|
|
@@ -69,9 +61,7 @@ var ClockPin = styled('div', {
|
|
|
69
61
|
transform: 'translate(-50%, -50%)'
|
|
70
62
|
};
|
|
71
63
|
});
|
|
72
|
-
var ClockAmButton = styled(IconButton
|
|
73
|
-
skipSx: true
|
|
74
|
-
})(function (_ref3) {
|
|
64
|
+
var ClockAmButton = styled(IconButton)(function (_ref3) {
|
|
75
65
|
var theme = _ref3.theme,
|
|
76
66
|
ownerState = _ref3.ownerState;
|
|
77
67
|
return _extends({
|
|
@@ -87,9 +77,7 @@ var ClockAmButton = styled(IconButton, {
|
|
|
87
77
|
}
|
|
88
78
|
});
|
|
89
79
|
});
|
|
90
|
-
var ClockPmButton = styled(IconButton
|
|
91
|
-
skipSx: true
|
|
92
|
-
})(function (_ref4) {
|
|
80
|
+
var ClockPmButton = styled(IconButton)(function (_ref4) {
|
|
93
81
|
var theme = _ref4.theme,
|
|
94
82
|
ownerState = _ref4.ownerState;
|
|
95
83
|
return _extends({
|
|
@@ -8,9 +8,7 @@ import { generateUtilityClasses } from '@mui/base';
|
|
|
8
8
|
import { CLOCK_WIDTH, CLOCK_HOUR_WIDTH } from './shared';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
export var classes = generateUtilityClasses('PrivateClockNumber', ['selected', 'disabled']);
|
|
11
|
-
var ClockNumberRoot = styled('span'
|
|
12
|
-
skipSx: true
|
|
13
|
-
})(function (_ref) {
|
|
11
|
+
var ClockNumberRoot = styled('span')(function (_ref) {
|
|
14
12
|
var _extends2;
|
|
15
13
|
|
|
16
14
|
var theme = _ref.theme,
|
|
@@ -305,7 +305,10 @@ process.env.NODE_ENV !== "production" ? ClockPicker.propTypes
|
|
|
305
305
|
/**
|
|
306
306
|
* The props used for each slot inside.
|
|
307
307
|
*/
|
|
308
|
-
componentsProps: PropTypes.
|
|
308
|
+
componentsProps: PropTypes.shape({
|
|
309
|
+
leftArrowButton: PropTypes.object,
|
|
310
|
+
rightArrowButton: PropTypes.object
|
|
311
|
+
}),
|
|
309
312
|
|
|
310
313
|
/**
|
|
311
314
|
* Selected date @DateIOType.
|
|
@@ -14,9 +14,7 @@ import * as React from 'react';
|
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
15
|
import { CLOCK_WIDTH, CLOCK_HOUR_WIDTH } from './shared';
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var ClockPointerRoot = styled('div'
|
|
18
|
-
skipSx: true
|
|
19
|
-
})(function (_ref) {
|
|
17
|
+
var ClockPointerRoot = styled('div')(function (_ref) {
|
|
20
18
|
var theme = _ref.theme,
|
|
21
19
|
ownerState = _ref.ownerState;
|
|
22
20
|
return _extends({
|
|
@@ -30,9 +28,7 @@ var ClockPointerRoot = styled('div', {
|
|
|
30
28
|
transition: theme.transitions.create(['transform', 'height'])
|
|
31
29
|
});
|
|
32
30
|
});
|
|
33
|
-
var ClockPointerThumb = styled('div'
|
|
34
|
-
skipSx: true
|
|
35
|
-
})(function (_ref2) {
|
|
31
|
+
var ClockPointerThumb = styled('div')(function (_ref2) {
|
|
36
32
|
var theme = _ref2.theme,
|
|
37
33
|
ownerState = _ref2.ownerState;
|
|
38
34
|
return _extends({
|
|
@@ -126,7 +126,11 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes
|
|
|
126
126
|
* The props used for each slot inside.
|
|
127
127
|
* @default {}
|
|
128
128
|
*/
|
|
129
|
-
componentsProps: PropTypes.
|
|
129
|
+
componentsProps: PropTypes.shape({
|
|
130
|
+
leftArrowButton: PropTypes.object,
|
|
131
|
+
rightArrowButton: PropTypes.object,
|
|
132
|
+
switchViewButton: PropTypes.object
|
|
133
|
+
}),
|
|
130
134
|
|
|
131
135
|
/**
|
|
132
136
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -10,15 +10,11 @@ import { useUtils } from '../internal/pickers/hooks/useUtils';
|
|
|
10
10
|
import { isYearAndMonthViews, isYearOnlyView } from './shared';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
var classes = generateUtilityClasses('PrivateDatePickerToolbar', ['penIcon']);
|
|
13
|
-
var DatePickerToolbarRoot = styled(PickersToolbar, {
|
|
14
|
-
skipSx: true
|
|
15
|
-
})(_defineProperty({}, "& .".concat(classes.penIcon), {
|
|
13
|
+
var DatePickerToolbarRoot = styled(PickersToolbar)(_defineProperty({}, "& .".concat(classes.penIcon), {
|
|
16
14
|
position: 'relative',
|
|
17
15
|
top: 4
|
|
18
16
|
}));
|
|
19
|
-
var DatePickerToolbarTitle = styled(Typography
|
|
20
|
-
skipSx: true
|
|
21
|
-
})(function (_ref) {
|
|
17
|
+
var DatePickerToolbarTitle = styled(Typography)(function (_ref) {
|
|
22
18
|
var ownerState = _ref.ownerState;
|
|
23
19
|
return _extends({}, ownerState.isLandscape && {
|
|
24
20
|
margin: 'auto 16px auto auto'
|
|
@@ -182,7 +182,11 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
|
|
|
182
182
|
* The props used for each slot inside.
|
|
183
183
|
* @default {}
|
|
184
184
|
*/
|
|
185
|
-
componentsProps: PropTypes.
|
|
185
|
+
componentsProps: PropTypes.shape({
|
|
186
|
+
leftArrowButton: PropTypes.object,
|
|
187
|
+
rightArrowButton: PropTypes.object,
|
|
188
|
+
switchViewButton: PropTypes.object
|
|
189
|
+
}),
|
|
186
190
|
|
|
187
191
|
/**
|
|
188
192
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -9,9 +9,7 @@ import { useMaskedInput } from '../internal/pickers/hooks/useMaskedInput';
|
|
|
9
9
|
import { WrapperVariantContext } from '../internal/pickers/wrappers/WrapperVariantContext';
|
|
10
10
|
import { executeInTheNextEventLoopTick } from '../internal/pickers/utils';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
var DateRangePickerInputRoot = styled('div'
|
|
13
|
-
skipSx: true
|
|
14
|
-
})(function (_ref) {
|
|
12
|
+
var DateRangePickerInputRoot = styled('div')(function (_ref) {
|
|
15
13
|
var theme = _ref.theme;
|
|
16
14
|
return _defineProperty({
|
|
17
15
|
display: 'flex',
|
|
@@ -13,15 +13,11 @@ import PickersToolbarButton from '../internal/pickers/PickersToolbarButton';
|
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
var classes = generateUtilityClasses('PrivateDateRangePickerToolbar', ['penIcon']);
|
|
16
|
-
var DateRangePickerToolbarRoot = styled(PickersToolbar, {
|
|
17
|
-
skipSx: true
|
|
18
|
-
})(_defineProperty({}, "& .".concat(classes.penIcon), {
|
|
16
|
+
var DateRangePickerToolbarRoot = styled(PickersToolbar)(_defineProperty({}, "& .".concat(classes.penIcon), {
|
|
19
17
|
position: 'relative',
|
|
20
18
|
top: 4
|
|
21
19
|
}));
|
|
22
|
-
var DateRangePickerToolbarContainer = styled('div'
|
|
23
|
-
skipSx: true
|
|
24
|
-
})({
|
|
20
|
+
var DateRangePickerToolbarContainer = styled('div')({
|
|
25
21
|
display: 'flex'
|
|
26
22
|
});
|
|
27
23
|
/**
|
|
@@ -13,15 +13,11 @@ import { doNothing } from '../internal/pickers/utils';
|
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import { createElement as _createElement } from "react";
|
|
15
15
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
-
var DateRangePickerViewDesktopRoot = styled('div'
|
|
17
|
-
skipSx: true
|
|
18
|
-
})({
|
|
16
|
+
var DateRangePickerViewDesktopRoot = styled('div')({
|
|
19
17
|
display: 'flex',
|
|
20
18
|
flexDirection: 'row'
|
|
21
19
|
});
|
|
22
|
-
var DateRangePickerViewDesktopContainer = styled('div'
|
|
23
|
-
skipSx: true
|
|
24
|
-
})(function (_ref) {
|
|
20
|
+
var DateRangePickerViewDesktopContainer = styled('div')(function (_ref) {
|
|
25
21
|
var theme = _ref.theme;
|
|
26
22
|
return {
|
|
27
23
|
'&:not(:last-of-type)': {
|
|
@@ -29,15 +25,11 @@ var DateRangePickerViewDesktopContainer = styled('div', {
|
|
|
29
25
|
}
|
|
30
26
|
};
|
|
31
27
|
});
|
|
32
|
-
var DateRangePickerViewDesktopCalendar = styled(PickersCalendar
|
|
33
|
-
skipSx: true
|
|
34
|
-
})({
|
|
28
|
+
var DateRangePickerViewDesktopCalendar = styled(PickersCalendar)({
|
|
35
29
|
minWidth: 312,
|
|
36
30
|
minHeight: 288
|
|
37
31
|
});
|
|
38
|
-
var DateRangePickerViewDesktopArrowSwitcher = styled(PickersArrowSwitcher
|
|
39
|
-
skipSx: true
|
|
40
|
-
})({
|
|
32
|
+
var DateRangePickerViewDesktopArrowSwitcher = styled(PickersArrowSwitcher)({
|
|
41
33
|
padding: '16px 16px 8px 16px',
|
|
42
34
|
display: 'flex',
|
|
43
35
|
alignItems: 'center',
|
|
@@ -138,7 +138,11 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
138
138
|
* The props used for each slot inside.
|
|
139
139
|
* @default {}
|
|
140
140
|
*/
|
|
141
|
-
componentsProps: PropTypes.
|
|
141
|
+
componentsProps: PropTypes.shape({
|
|
142
|
+
leftArrowButton: PropTypes.object,
|
|
143
|
+
rightArrowButton: PropTypes.object,
|
|
144
|
+
switchViewButton: PropTypes.object
|
|
145
|
+
}),
|
|
142
146
|
|
|
143
147
|
/**
|
|
144
148
|
* Date tab icon.
|
|
@@ -15,7 +15,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
15
15
|
|
|
16
16
|
var viewToTab = function viewToTab(openView) {
|
|
17
17
|
// TODO: what happens if `openView` is `month`?
|
|
18
|
-
if (
|
|
18
|
+
if (['day', 'month', 'year'].includes(openView)) {
|
|
19
19
|
return 'date';
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -30,9 +30,7 @@ var tabToView = function tabToView(tab) {
|
|
|
30
30
|
return 'hours';
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
var DateTimePickerTabsRoot = styled(Tabs
|
|
34
|
-
skipSx: true
|
|
35
|
-
})(function (_ref) {
|
|
33
|
+
var DateTimePickerTabsRoot = styled(Tabs)(function (_ref) {
|
|
36
34
|
var ownerState = _ref.ownerState,
|
|
37
35
|
theme = _ref.theme;
|
|
38
36
|
return _extends({
|
|
@@ -16,9 +16,7 @@ import { WrapperVariantContext } from '../internal/pickers/wrappers/WrapperVaria
|
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
18
|
var classes = generateUtilityClasses('PrivateDateTimePickerToolbar', ['penIcon']);
|
|
19
|
-
var DateTimePickerToolbarRoot = styled(PickersToolbar
|
|
20
|
-
skipSx: true
|
|
21
|
-
})(_defineProperty({
|
|
19
|
+
var DateTimePickerToolbarRoot = styled(PickersToolbar)(_defineProperty({
|
|
22
20
|
paddingLeft: 16,
|
|
23
21
|
paddingRight: 16,
|
|
24
22
|
justifyContent: 'space-around'
|
|
@@ -27,21 +25,15 @@ var DateTimePickerToolbarRoot = styled(PickersToolbar, {
|
|
|
27
25
|
top: 8,
|
|
28
26
|
right: 8
|
|
29
27
|
}));
|
|
30
|
-
var DateTimePickerToolbarDateContainer = styled('div'
|
|
31
|
-
skipSx: true
|
|
32
|
-
})({
|
|
28
|
+
var DateTimePickerToolbarDateContainer = styled('div')({
|
|
33
29
|
display: 'flex',
|
|
34
30
|
flexDirection: 'column',
|
|
35
31
|
alignItems: 'flex-start'
|
|
36
32
|
});
|
|
37
|
-
var DateTimePickerToolbarTimeContainer = styled('div'
|
|
38
|
-
skipSx: true
|
|
39
|
-
})({
|
|
33
|
+
var DateTimePickerToolbarTimeContainer = styled('div')({
|
|
40
34
|
display: 'flex'
|
|
41
35
|
});
|
|
42
|
-
var DateTimePickerToolbarSeparator = styled(PickersToolbarText
|
|
43
|
-
skipSx: true
|
|
44
|
-
})({
|
|
36
|
+
var DateTimePickerToolbarSeparator = styled(PickersToolbarText)({
|
|
45
37
|
margin: '0 4px 0 2px',
|
|
46
38
|
cursor: 'default'
|
|
47
39
|
});
|
|
@@ -121,7 +121,11 @@ process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
|
|
|
121
121
|
* The props used for each slot inside.
|
|
122
122
|
* @default {}
|
|
123
123
|
*/
|
|
124
|
-
componentsProps: PropTypes.
|
|
124
|
+
componentsProps: PropTypes.shape({
|
|
125
|
+
leftArrowButton: PropTypes.object,
|
|
126
|
+
rightArrowButton: PropTypes.object,
|
|
127
|
+
switchViewButton: PropTypes.object
|
|
128
|
+
}),
|
|
125
129
|
|
|
126
130
|
/**
|
|
127
131
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -166,7 +166,11 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes
|
|
|
166
166
|
* The props used for each slot inside.
|
|
167
167
|
* @default {}
|
|
168
168
|
*/
|
|
169
|
-
componentsProps: PropTypes.
|
|
169
|
+
componentsProps: PropTypes.shape({
|
|
170
|
+
leftArrowButton: PropTypes.object,
|
|
171
|
+
rightArrowButton: PropTypes.object,
|
|
172
|
+
switchViewButton: PropTypes.object
|
|
173
|
+
}),
|
|
170
174
|
|
|
171
175
|
/**
|
|
172
176
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -131,7 +131,11 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
131
131
|
* The props used for each slot inside.
|
|
132
132
|
* @default {}
|
|
133
133
|
*/
|
|
134
|
-
componentsProps: PropTypes.
|
|
134
|
+
componentsProps: PropTypes.shape({
|
|
135
|
+
leftArrowButton: PropTypes.object,
|
|
136
|
+
rightArrowButton: PropTypes.object,
|
|
137
|
+
switchViewButton: PropTypes.object
|
|
138
|
+
}),
|
|
135
139
|
|
|
136
140
|
/**
|
|
137
141
|
* Date tab icon.
|