@mui/lab 5.0.0-alpha.62 → 5.0.0-alpha.66
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 +240 -33
- package/ClockPicker/ClockPicker.js +4 -1
- package/DatePicker/DatePicker.js +5 -1
- package/DateRangePicker/DateRangePicker.js +5 -1
- package/DateTimePicker/DateTimePicker.js +5 -1
- 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/README.md +4 -4
- package/StaticDatePicker/StaticDatePicker.js +5 -1
- package/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/index.js +1 -1
- package/internal/pickers/PickersToolbarText.d.ts +1 -1
- package/internal/pickers/PureDateInput.js +6 -4
- package/legacy/ClockPicker/ClockPicker.js +4 -1
- package/legacy/DatePicker/DatePicker.js +5 -1
- package/legacy/DateRangePicker/DateRangePicker.js +5 -1
- package/legacy/DateTimePicker/DateTimePicker.js +5 -1
- 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/StaticDatePicker/StaticDatePicker.js +5 -1
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/legacy/index.js +1 -1
- package/legacy/internal/pickers/PureDateInput.js +6 -4
- package/legacy/internal/pickers/test-utils.js +2 -1
- package/modern/ClockPicker/ClockPicker.js +4 -1
- package/modern/DatePicker/DatePicker.js +5 -1
- package/modern/DateRangePicker/DateRangePicker.js +5 -1
- package/modern/DateTimePicker/DateTimePicker.js +5 -1
- 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/StaticDatePicker/StaticDatePicker.js +5 -1
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/modern/index.js +1 -1
- package/modern/internal/pickers/PureDateInput.js +6 -4
- package/node/ClockPicker/ClockPicker.js +4 -1
- package/node/DatePicker/DatePicker.js +5 -1
- package/node/DateRangePicker/DateRangePicker.js +5 -1
- package/node/DateTimePicker/DateTimePicker.js +5 -1
- 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/StaticDatePicker/StaticDatePicker.js +5 -1
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
- package/node/index.js +1 -1
- package/node/internal/pickers/PureDateInput.js +6 -4
- package/package.json +7 -7
- package/themeAugmentation/components.d.ts +99 -23
|
@@ -132,7 +132,11 @@ process.env.NODE_ENV !== "production" ? MobileDatePicker.propTypes
|
|
|
132
132
|
* The props used for each slot inside.
|
|
133
133
|
* @default {}
|
|
134
134
|
*/
|
|
135
|
-
componentsProps: PropTypes.
|
|
135
|
+
componentsProps: PropTypes.shape({
|
|
136
|
+
leftArrowButton: PropTypes.object,
|
|
137
|
+
rightArrowButton: PropTypes.object,
|
|
138
|
+
switchViewButton: PropTypes.object
|
|
139
|
+
}),
|
|
136
140
|
|
|
137
141
|
/**
|
|
138
142
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -174,7 +174,11 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes
|
|
|
174
174
|
* The props used for each slot inside.
|
|
175
175
|
* @default {}
|
|
176
176
|
*/
|
|
177
|
-
componentsProps: PropTypes.
|
|
177
|
+
componentsProps: PropTypes.shape({
|
|
178
|
+
leftArrowButton: PropTypes.object,
|
|
179
|
+
rightArrowButton: PropTypes.object,
|
|
180
|
+
switchViewButton: PropTypes.object
|
|
181
|
+
}),
|
|
178
182
|
|
|
179
183
|
/**
|
|
180
184
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -144,7 +144,11 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
|
|
|
144
144
|
* The props used for each slot inside.
|
|
145
145
|
* @default {}
|
|
146
146
|
*/
|
|
147
|
-
componentsProps: PropTypes.
|
|
147
|
+
componentsProps: PropTypes.shape({
|
|
148
|
+
leftArrowButton: PropTypes.object,
|
|
149
|
+
rightArrowButton: PropTypes.object,
|
|
150
|
+
switchViewButton: PropTypes.object
|
|
151
|
+
}),
|
|
148
152
|
|
|
149
153
|
/**
|
|
150
154
|
* Date tab icon.
|
package/README.md
CHANGED
|
@@ -16,17 +16,17 @@ npm install @mui/lab
|
|
|
16
16
|
yarn add @mui/lab
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
The lab has
|
|
20
|
-
If you are not already using
|
|
19
|
+
The lab has peer dependencies on the Material Design components and on the emotion library.
|
|
20
|
+
If you are not already using them in your project, you can install with:
|
|
21
21
|
|
|
22
22
|
<!-- #default-branch-switch -->
|
|
23
23
|
|
|
24
24
|
```sh
|
|
25
25
|
// with npm
|
|
26
|
-
npm install @mui/material
|
|
26
|
+
npm install @mui/material @emotion/react @emotion/styled
|
|
27
27
|
|
|
28
28
|
// with yarn
|
|
29
|
-
yarn add @mui/material
|
|
29
|
+
yarn add @mui/material @emotion/react @emotion/styled
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## Documentation
|
|
@@ -106,7 +106,11 @@ process.env.NODE_ENV !== "production" ? StaticDatePicker.propTypes
|
|
|
106
106
|
* The props used for each slot inside.
|
|
107
107
|
* @default {}
|
|
108
108
|
*/
|
|
109
|
-
componentsProps: PropTypes.
|
|
109
|
+
componentsProps: PropTypes.shape({
|
|
110
|
+
leftArrowButton: PropTypes.object,
|
|
111
|
+
rightArrowButton: PropTypes.object,
|
|
112
|
+
switchViewButton: PropTypes.object
|
|
113
|
+
}),
|
|
110
114
|
|
|
111
115
|
/**
|
|
112
116
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -149,7 +149,11 @@ process.env.NODE_ENV !== "production" ? StaticDateRangePicker.propTypes
|
|
|
149
149
|
* The props used for each slot inside.
|
|
150
150
|
* @default {}
|
|
151
151
|
*/
|
|
152
|
-
componentsProps: PropTypes.
|
|
152
|
+
componentsProps: PropTypes.shape({
|
|
153
|
+
leftArrowButton: PropTypes.object,
|
|
154
|
+
rightArrowButton: PropTypes.object,
|
|
155
|
+
switchViewButton: PropTypes.object
|
|
156
|
+
}),
|
|
153
157
|
|
|
154
158
|
/**
|
|
155
159
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -118,7 +118,11 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
|
|
|
118
118
|
* The props used for each slot inside.
|
|
119
119
|
* @default {}
|
|
120
120
|
*/
|
|
121
|
-
componentsProps: PropTypes.
|
|
121
|
+
componentsProps: PropTypes.shape({
|
|
122
|
+
leftArrowButton: PropTypes.object,
|
|
123
|
+
rightArrowButton: PropTypes.object,
|
|
124
|
+
switchViewButton: PropTypes.object
|
|
125
|
+
}),
|
|
122
126
|
|
|
123
127
|
/**
|
|
124
128
|
* Date tab icon.
|
package/index.js
CHANGED
|
@@ -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;
|
|
@@ -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 = {
|
|
@@ -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.
|
|
@@ -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}`.
|
|
@@ -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}`.
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -173,40 +173,24 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
173
173
|
|
|
174
174
|
var classes = useUtilityClasses(ownerState);
|
|
175
175
|
|
|
176
|
-
var handleResize = function handleResize(
|
|
177
|
-
if (!
|
|
176
|
+
var handleResize = function handleResize(masonryChildren) {
|
|
177
|
+
if (!masonryRef.current || !masonryChildren || masonryChildren.length === 0) {
|
|
178
178
|
return;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
var masonry;
|
|
182
|
-
var masonryFirstChild;
|
|
183
|
-
var parentWidth;
|
|
184
|
-
var
|
|
185
|
-
|
|
186
|
-
if (elements[0].target.className.includes(classes.root)) {
|
|
187
|
-
var _elements$, _masonryFirstChild, _masonryFirstChild$co, _masonryFirstChild2;
|
|
188
|
-
|
|
189
|
-
masonry = elements[0].target;
|
|
190
|
-
parentWidth = elements[0].contentRect.width;
|
|
191
|
-
masonryFirstChild = ((_elements$ = elements[1]) == null ? void 0 : _elements$.target) || masonry.firstChild;
|
|
192
|
-
childWidth = ((_masonryFirstChild = masonryFirstChild) == null ? void 0 : (_masonryFirstChild$co = _masonryFirstChild.contentRect) == null ? void 0 : _masonryFirstChild$co.width) || ((_masonryFirstChild2 = masonryFirstChild) == null ? void 0 : _masonryFirstChild2.clientWidth) || 0;
|
|
193
|
-
} else {
|
|
194
|
-
var _elements$2, _masonry$contentRect;
|
|
195
|
-
|
|
196
|
-
masonryFirstChild = elements[0].target;
|
|
197
|
-
childWidth = elements[0].contentRect.width;
|
|
198
|
-
masonry = ((_elements$2 = elements[1]) == null ? void 0 : _elements$2.target) || masonryFirstChild.parentElement;
|
|
199
|
-
parentWidth = ((_masonry$contentRect = masonry.contentRect) == null ? void 0 : _masonry$contentRect.width) || masonry.clientWidth;
|
|
200
|
-
}
|
|
181
|
+
var masonry = masonryRef.current;
|
|
182
|
+
var masonryFirstChild = masonryRef.current.firstChild;
|
|
183
|
+
var parentWidth = masonry.clientWidth;
|
|
184
|
+
var firstChildWidth = masonryFirstChild.clientWidth;
|
|
201
185
|
|
|
202
|
-
if (parentWidth === 0 ||
|
|
186
|
+
if (parentWidth === 0 || firstChildWidth === 0) {
|
|
203
187
|
return;
|
|
204
188
|
}
|
|
205
189
|
|
|
206
190
|
var firstChildComputedStyle = window.getComputedStyle(masonryFirstChild);
|
|
207
191
|
var firstChildMarginLeft = parseToNumber(firstChildComputedStyle.marginLeft);
|
|
208
192
|
var firstChildMarginRight = parseToNumber(firstChildComputedStyle.marginRight);
|
|
209
|
-
var currentNumberOfColumns = Math.round(parentWidth / (
|
|
193
|
+
var currentNumberOfColumns = Math.round(parentWidth / (firstChildWidth + firstChildMarginLeft + firstChildMarginRight));
|
|
210
194
|
var columnHeights = new Array(currentNumberOfColumns).fill(0);
|
|
211
195
|
var skip = false;
|
|
212
196
|
masonry.childNodes.forEach(function (child) {
|
|
@@ -259,16 +243,10 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
259
243
|
return undefined;
|
|
260
244
|
}
|
|
261
245
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
// this might cause unforeseen problems in some use cases;
|
|
267
|
-
resizeObserver.observe(container);
|
|
268
|
-
|
|
269
|
-
if (container.firstChild) {
|
|
270
|
-
resizeObserver.observe(container.firstChild);
|
|
271
|
-
}
|
|
246
|
+
if (masonryRef.current) {
|
|
247
|
+
masonryRef.current.childNodes.forEach(function (childNode) {
|
|
248
|
+
resizeObserver.observe(childNode);
|
|
249
|
+
});
|
|
272
250
|
}
|
|
273
251
|
|
|
274
252
|
return function () {
|
|
@@ -135,7 +135,11 @@ process.env.NODE_ENV !== "production" ? MobileDatePicker.propTypes
|
|
|
135
135
|
* The props used for each slot inside.
|
|
136
136
|
* @default {}
|
|
137
137
|
*/
|
|
138
|
-
componentsProps: PropTypes.
|
|
138
|
+
componentsProps: PropTypes.shape({
|
|
139
|
+
leftArrowButton: PropTypes.object,
|
|
140
|
+
rightArrowButton: PropTypes.object,
|
|
141
|
+
switchViewButton: PropTypes.object
|
|
142
|
+
}),
|
|
139
143
|
|
|
140
144
|
/**
|
|
141
145
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -180,7 +180,11 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes
|
|
|
180
180
|
* The props used for each slot inside.
|
|
181
181
|
* @default {}
|
|
182
182
|
*/
|
|
183
|
-
componentsProps: PropTypes.
|
|
183
|
+
componentsProps: PropTypes.shape({
|
|
184
|
+
leftArrowButton: PropTypes.object,
|
|
185
|
+
rightArrowButton: PropTypes.object,
|
|
186
|
+
switchViewButton: PropTypes.object
|
|
187
|
+
}),
|
|
184
188
|
|
|
185
189
|
/**
|
|
186
190
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -147,7 +147,11 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
|
|
|
147
147
|
* The props used for each slot inside.
|
|
148
148
|
* @default {}
|
|
149
149
|
*/
|
|
150
|
-
componentsProps: PropTypes.
|
|
150
|
+
componentsProps: PropTypes.shape({
|
|
151
|
+
leftArrowButton: PropTypes.object,
|
|
152
|
+
rightArrowButton: PropTypes.object,
|
|
153
|
+
switchViewButton: PropTypes.object
|
|
154
|
+
}),
|
|
151
155
|
|
|
152
156
|
/**
|
|
153
157
|
* Date tab icon.
|
|
@@ -110,7 +110,11 @@ process.env.NODE_ENV !== "production" ? StaticDatePicker.propTypes
|
|
|
110
110
|
* The props used for each slot inside.
|
|
111
111
|
* @default {}
|
|
112
112
|
*/
|
|
113
|
-
componentsProps: PropTypes.
|
|
113
|
+
componentsProps: PropTypes.shape({
|
|
114
|
+
leftArrowButton: PropTypes.object,
|
|
115
|
+
rightArrowButton: PropTypes.object,
|
|
116
|
+
switchViewButton: PropTypes.object
|
|
117
|
+
}),
|
|
114
118
|
|
|
115
119
|
/**
|
|
116
120
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -156,7 +156,11 @@ process.env.NODE_ENV !== "production" ? StaticDateRangePicker.propTypes
|
|
|
156
156
|
* The props used for each slot inside.
|
|
157
157
|
* @default {}
|
|
158
158
|
*/
|
|
159
|
-
componentsProps: PropTypes.
|
|
159
|
+
componentsProps: PropTypes.shape({
|
|
160
|
+
leftArrowButton: PropTypes.object,
|
|
161
|
+
rightArrowButton: PropTypes.object,
|
|
162
|
+
switchViewButton: PropTypes.object
|
|
163
|
+
}),
|
|
160
164
|
|
|
161
165
|
/**
|
|
162
166
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -122,7 +122,11 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
|
|
|
122
122
|
* The props used for each slot inside.
|
|
123
123
|
* @default {}
|
|
124
124
|
*/
|
|
125
|
-
componentsProps: PropTypes.
|
|
125
|
+
componentsProps: PropTypes.shape({
|
|
126
|
+
leftArrowButton: PropTypes.object,
|
|
127
|
+
rightArrowButton: PropTypes.object,
|
|
128
|
+
switchViewButton: PropTypes.object
|
|
129
|
+
}),
|
|
126
130
|
|
|
127
131
|
/**
|
|
128
132
|
* Date tab icon.
|
package/legacy/index.js
CHANGED
|
@@ -34,15 +34,17 @@ export var PureDateInput = /*#__PURE__*/React.forwardRef(function PureDateInput(
|
|
|
34
34
|
inputRef: inputRef,
|
|
35
35
|
error: validationError,
|
|
36
36
|
InputProps: PureDateInputProps,
|
|
37
|
-
inputProps: {
|
|
37
|
+
inputProps: _extends({
|
|
38
38
|
disabled: disabled,
|
|
39
39
|
readOnly: true,
|
|
40
40
|
'aria-readonly': true,
|
|
41
41
|
'aria-label': getOpenDialogAriaText(rawValue, utils),
|
|
42
|
-
value: inputValue
|
|
43
|
-
|
|
42
|
+
value: inputValue
|
|
43
|
+
}, !props.readOnly && {
|
|
44
|
+
onClick: onOpen
|
|
45
|
+
}, {
|
|
44
46
|
onKeyDown: onSpaceOrEnter(onOpen)
|
|
45
|
-
}
|
|
47
|
+
})
|
|
46
48
|
}, TextFieldProps));
|
|
47
49
|
});
|
|
48
50
|
PureDateInput.propTypes = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
4
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
@@ -58,7 +59,7 @@ export var AdapterClassToUse = /*#__PURE__*/function (_AdapterDateFns) {
|
|
|
58
59
|
return _this;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
|
-
return AdapterClassToUse;
|
|
62
|
+
return _createClass(AdapterClassToUse);
|
|
62
63
|
}(AdapterDateFns);
|
|
63
64
|
export var adapterToUse = new AdapterClassToUse();
|
|
64
65
|
export var FakeTransitionComponent = /*#__PURE__*/React.forwardRef(function FakeTransitionComponent(_ref, ref) {
|
|
@@ -266,7 +266,10 @@ process.env.NODE_ENV !== "production" ? ClockPicker.propTypes
|
|
|
266
266
|
/**
|
|
267
267
|
* The props used for each slot inside.
|
|
268
268
|
*/
|
|
269
|
-
componentsProps: PropTypes.
|
|
269
|
+
componentsProps: PropTypes.shape({
|
|
270
|
+
leftArrowButton: PropTypes.object,
|
|
271
|
+
rightArrowButton: PropTypes.object
|
|
272
|
+
}),
|
|
270
273
|
|
|
271
274
|
/**
|
|
272
275
|
* Selected date @DateIOType.
|
|
@@ -128,7 +128,11 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes
|
|
|
128
128
|
* The props used for each slot inside.
|
|
129
129
|
* @default {}
|
|
130
130
|
*/
|
|
131
|
-
componentsProps: PropTypes.
|
|
131
|
+
componentsProps: PropTypes.shape({
|
|
132
|
+
leftArrowButton: PropTypes.object,
|
|
133
|
+
rightArrowButton: PropTypes.object,
|
|
134
|
+
switchViewButton: PropTypes.object
|
|
135
|
+
}),
|
|
132
136
|
|
|
133
137
|
/**
|
|
134
138
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -176,7 +176,11 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
|
|
|
176
176
|
* The props used for each slot inside.
|
|
177
177
|
* @default {}
|
|
178
178
|
*/
|
|
179
|
-
componentsProps: PropTypes.
|
|
179
|
+
componentsProps: PropTypes.shape({
|
|
180
|
+
leftArrowButton: PropTypes.object,
|
|
181
|
+
rightArrowButton: PropTypes.object,
|
|
182
|
+
switchViewButton: PropTypes.object
|
|
183
|
+
}),
|
|
180
184
|
|
|
181
185
|
/**
|
|
182
186
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -140,7 +140,11 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
140
140
|
* The props used for each slot inside.
|
|
141
141
|
* @default {}
|
|
142
142
|
*/
|
|
143
|
-
componentsProps: PropTypes.
|
|
143
|
+
componentsProps: PropTypes.shape({
|
|
144
|
+
leftArrowButton: PropTypes.object,
|
|
145
|
+
rightArrowButton: PropTypes.object,
|
|
146
|
+
switchViewButton: PropTypes.object
|
|
147
|
+
}),
|
|
144
148
|
|
|
145
149
|
/**
|
|
146
150
|
* Date tab icon.
|
|
@@ -119,7 +119,11 @@ process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
|
|
|
119
119
|
* The props used for each slot inside.
|
|
120
120
|
* @default {}
|
|
121
121
|
*/
|
|
122
|
-
componentsProps: PropTypes.
|
|
122
|
+
componentsProps: PropTypes.shape({
|
|
123
|
+
leftArrowButton: PropTypes.object,
|
|
124
|
+
rightArrowButton: PropTypes.object,
|
|
125
|
+
switchViewButton: PropTypes.object
|
|
126
|
+
}),
|
|
123
127
|
|
|
124
128
|
/**
|
|
125
129
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -160,7 +160,11 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes
|
|
|
160
160
|
* The props used for each slot inside.
|
|
161
161
|
* @default {}
|
|
162
162
|
*/
|
|
163
|
-
componentsProps: PropTypes.
|
|
163
|
+
componentsProps: PropTypes.shape({
|
|
164
|
+
leftArrowButton: PropTypes.object,
|
|
165
|
+
rightArrowButton: PropTypes.object,
|
|
166
|
+
switchViewButton: PropTypes.object
|
|
167
|
+
}),
|
|
164
168
|
|
|
165
169
|
/**
|
|
166
170
|
* Default calendar month displayed when `value={null}`.
|
|
@@ -129,7 +129,11 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
129
129
|
* The props used for each slot inside.
|
|
130
130
|
* @default {}
|
|
131
131
|
*/
|
|
132
|
-
componentsProps: PropTypes.
|
|
132
|
+
componentsProps: PropTypes.shape({
|
|
133
|
+
leftArrowButton: PropTypes.object,
|
|
134
|
+
rightArrowButton: PropTypes.object,
|
|
135
|
+
switchViewButton: PropTypes.object
|
|
136
|
+
}),
|
|
133
137
|
|
|
134
138
|
/**
|
|
135
139
|
* Date tab icon.
|