@mui/lab 5.0.0-alpha.64 → 5.0.0-alpha.68
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 +308 -28
- 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 +2 -3
- package/ClockPicker/ClockPointer.js +2 -6
- package/DatePicker/DatePickerToolbar.js +2 -6
- package/DateRangePicker/DateRangePickerInput.js +1 -3
- package/DateRangePicker/DateRangePickerToolbar.js +2 -6
- package/DateRangePicker/DateRangePickerViewDesktop.js +4 -12
- package/DateTimePicker/DateTimePickerTabs.js +2 -4
- package/DateTimePicker/DateTimePickerToolbar.js +4 -12
- package/LoadingButton/LoadingButton.js +3 -1
- package/Masonry/Masonry.js +12 -34
- package/MonthPicker/PickersMonth.js +1 -3
- package/README.md +4 -4
- package/TimePicker/TimePickerToolbar.js +4 -12
- package/TreeItem/TreeItem.js +1 -1
- 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 +4 -10
- 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/hooks/usePickerState.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 +2 -3
- package/legacy/ClockPicker/ClockPointer.js +2 -6
- package/legacy/DatePicker/DatePickerToolbar.js +2 -6
- package/legacy/DateRangePicker/DateRangePickerInput.js +1 -3
- package/legacy/DateRangePicker/DateRangePickerToolbar.js +2 -6
- package/legacy/DateRangePicker/DateRangePickerViewDesktop.js +4 -12
- package/legacy/DateTimePicker/DateTimePickerTabs.js +2 -4
- package/legacy/DateTimePicker/DateTimePickerToolbar.js +4 -12
- package/legacy/LoadingButton/LoadingButton.js +3 -1
- package/legacy/Masonry/Masonry.js +12 -34
- package/legacy/MonthPicker/PickersMonth.js +1 -3
- package/legacy/TimePicker/TimePickerToolbar.js +4 -12
- package/legacy/TreeItem/TreeItem.js +1 -1
- 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 +4 -10
- 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/hooks/usePickerState.js +11 -6
- 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 +2 -3
- package/modern/ClockPicker/ClockPointer.js +2 -6
- package/modern/DatePicker/DatePickerToolbar.js +2 -6
- package/modern/DateRangePicker/DateRangePickerInput.js +1 -3
- package/modern/DateRangePicker/DateRangePickerToolbar.js +2 -6
- package/modern/DateRangePicker/DateRangePickerViewDesktop.js +4 -12
- package/modern/DateTimePicker/DateTimePickerTabs.js +2 -4
- package/modern/DateTimePicker/DateTimePickerToolbar.js +4 -12
- package/modern/LoadingButton/LoadingButton.js +3 -1
- package/modern/Masonry/Masonry.js +12 -30
- package/modern/MonthPicker/PickersMonth.js +1 -3
- package/modern/TimePicker/TimePickerToolbar.js +4 -12
- package/modern/TreeItem/TreeItem.js +1 -1
- 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 +4 -10
- 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/hooks/usePickerState.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 +2 -3
- package/node/ClockPicker/ClockPointer.js +2 -6
- package/node/DatePicker/DatePickerToolbar.js +2 -6
- package/node/DateRangePicker/DateRangePickerInput.js +1 -3
- package/node/DateRangePicker/DateRangePickerToolbar.js +2 -6
- package/node/DateRangePicker/DateRangePickerViewDesktop.js +4 -12
- package/node/DateTimePicker/DateTimePickerTabs.js +2 -4
- package/node/DateTimePicker/DateTimePickerToolbar.js +4 -12
- package/node/LoadingButton/LoadingButton.js +3 -1
- package/node/Masonry/Masonry.js +12 -34
- package/node/MonthPicker/PickersMonth.js +1 -3
- package/node/TimePicker/TimePickerToolbar.js +4 -12
- package/node/TreeItem/TreeItem.js +1 -1
- 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 +4 -10
- 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/hooks/usePickerState.js +6 -4
- package/node/internal/pickers/wrappers/PickerStaticWrapper.js +1 -2
- package/package.json +9 -9
- package/themeAugmentation/components.d.ts +99 -23
package/ClockPicker/Clock.js
CHANGED
|
@@ -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
|
-
const ClockRoot = styled('div'
|
|
17
|
-
skipSx: true
|
|
18
|
-
})(({
|
|
16
|
+
const ClockRoot = styled('div')(({
|
|
19
17
|
theme
|
|
20
18
|
}) => ({
|
|
21
19
|
display: 'flex',
|
|
@@ -23,9 +21,7 @@ const ClockRoot = styled('div', {
|
|
|
23
21
|
alignItems: 'center',
|
|
24
22
|
margin: theme.spacing(2)
|
|
25
23
|
}));
|
|
26
|
-
const ClockClock = styled('div'
|
|
27
|
-
skipSx: true
|
|
28
|
-
})({
|
|
24
|
+
const ClockClock = styled('div')({
|
|
29
25
|
backgroundColor: 'rgba(0,0,0,.07)',
|
|
30
26
|
borderRadius: '50%',
|
|
31
27
|
height: 220,
|
|
@@ -34,9 +30,7 @@ const ClockClock = styled('div', {
|
|
|
34
30
|
position: 'relative',
|
|
35
31
|
pointerEvents: 'none'
|
|
36
32
|
});
|
|
37
|
-
const ClockSquareMask = styled('div'
|
|
38
|
-
skipSx: true
|
|
39
|
-
})({
|
|
33
|
+
const ClockSquareMask = styled('div')({
|
|
40
34
|
width: '100%',
|
|
41
35
|
height: '100%',
|
|
42
36
|
position: 'absolute',
|
|
@@ -53,9 +47,7 @@ const ClockSquareMask = styled('div', {
|
|
|
53
47
|
cursor: 'move'
|
|
54
48
|
}
|
|
55
49
|
});
|
|
56
|
-
const ClockPin = styled('div'
|
|
57
|
-
skipSx: true
|
|
58
|
-
})(({
|
|
50
|
+
const ClockPin = styled('div')(({
|
|
59
51
|
theme
|
|
60
52
|
}) => ({
|
|
61
53
|
width: 6,
|
|
@@ -67,9 +59,7 @@ const ClockPin = styled('div', {
|
|
|
67
59
|
left: '50%',
|
|
68
60
|
transform: 'translate(-50%, -50%)'
|
|
69
61
|
}));
|
|
70
|
-
const ClockAmButton = styled(IconButton
|
|
71
|
-
skipSx: true
|
|
72
|
-
})(({
|
|
62
|
+
const ClockAmButton = styled(IconButton)(({
|
|
73
63
|
theme,
|
|
74
64
|
ownerState
|
|
75
65
|
}) => _extends({
|
|
@@ -84,9 +74,7 @@ const ClockAmButton = styled(IconButton, {
|
|
|
84
74
|
backgroundColor: theme.palette.primary.light
|
|
85
75
|
}
|
|
86
76
|
}));
|
|
87
|
-
const ClockPmButton = styled(IconButton
|
|
88
|
-
skipSx: true
|
|
89
|
-
})(({
|
|
77
|
+
const ClockPmButton = styled(IconButton)(({
|
|
90
78
|
theme,
|
|
91
79
|
ownerState
|
|
92
80
|
}) => _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 const classes = generateUtilityClasses('PrivateClockNumber', ['selected', 'disabled']);
|
|
11
|
-
const ClockNumberRoot = styled('span'
|
|
12
|
-
skipSx: true
|
|
13
|
-
})(({
|
|
11
|
+
const ClockNumberRoot = styled('span')(({
|
|
14
12
|
theme,
|
|
15
13
|
ownerState
|
|
16
14
|
}) => _extends({
|
|
@@ -23,6 +21,7 @@ const ClockNumberRoot = styled('span', {
|
|
|
23
21
|
alignItems: 'center',
|
|
24
22
|
borderRadius: '50%',
|
|
25
23
|
color: theme.palette.text.primary,
|
|
24
|
+
fontFamily: theme.typography.fontFamily,
|
|
26
25
|
'&:focused': {
|
|
27
26
|
backgroundColor: theme.palette.background.paper
|
|
28
27
|
},
|
|
@@ -5,9 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { styled } from '@mui/material/styles';
|
|
6
6
|
import { CLOCK_WIDTH, CLOCK_HOUR_WIDTH } from './shared';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
const ClockPointerRoot = styled('div'
|
|
9
|
-
skipSx: true
|
|
10
|
-
})(({
|
|
8
|
+
const ClockPointerRoot = styled('div')(({
|
|
11
9
|
theme,
|
|
12
10
|
ownerState
|
|
13
11
|
}) => _extends({
|
|
@@ -20,9 +18,7 @@ const ClockPointerRoot = styled('div', {
|
|
|
20
18
|
}, ownerState.toAnimateTransform && {
|
|
21
19
|
transition: theme.transitions.create(['transform', 'height'])
|
|
22
20
|
}));
|
|
23
|
-
const ClockPointerThumb = styled('div'
|
|
24
|
-
skipSx: true
|
|
25
|
-
})(({
|
|
21
|
+
const ClockPointerThumb = styled('div')(({
|
|
26
22
|
theme,
|
|
27
23
|
ownerState
|
|
28
24
|
}) => _extends({
|
|
@@ -10,17 +10,13 @@ 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
|
const classes = generateUtilityClasses('PrivateDatePickerToolbar', ['penIcon']);
|
|
13
|
-
const DatePickerToolbarRoot = styled(PickersToolbar
|
|
14
|
-
skipSx: true
|
|
15
|
-
})({
|
|
13
|
+
const DatePickerToolbarRoot = styled(PickersToolbar)({
|
|
16
14
|
[`& .${classes.penIcon}`]: {
|
|
17
15
|
position: 'relative',
|
|
18
16
|
top: 4
|
|
19
17
|
}
|
|
20
18
|
});
|
|
21
|
-
const DatePickerToolbarTitle = styled(Typography
|
|
22
|
-
skipSx: true
|
|
23
|
-
})(({
|
|
19
|
+
const DatePickerToolbarTitle = styled(Typography)(({
|
|
24
20
|
ownerState
|
|
25
21
|
}) => _extends({}, ownerState.isLandscape && {
|
|
26
22
|
margin: 'auto 16px auto auto'
|
|
@@ -8,9 +8,7 @@ import { useMaskedInput } from '../internal/pickers/hooks/useMaskedInput';
|
|
|
8
8
|
import { WrapperVariantContext } from '../internal/pickers/wrappers/WrapperVariantContext';
|
|
9
9
|
import { executeInTheNextEventLoopTick } from '../internal/pickers/utils';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const DateRangePickerInputRoot = styled('div'
|
|
12
|
-
skipSx: true
|
|
13
|
-
})(({
|
|
11
|
+
const DateRangePickerInputRoot = styled('div')(({
|
|
14
12
|
theme
|
|
15
13
|
}) => ({
|
|
16
14
|
display: 'flex',
|
|
@@ -10,17 +10,13 @@ import PickersToolbarButton from '../internal/pickers/PickersToolbarButton';
|
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
const classes = generateUtilityClasses('PrivateDateRangePickerToolbar', ['penIcon']);
|
|
13
|
-
const DateRangePickerToolbarRoot = styled(PickersToolbar
|
|
14
|
-
skipSx: true
|
|
15
|
-
})({
|
|
13
|
+
const DateRangePickerToolbarRoot = styled(PickersToolbar)({
|
|
16
14
|
[`& .${classes.penIcon}`]: {
|
|
17
15
|
position: 'relative',
|
|
18
16
|
top: 4
|
|
19
17
|
}
|
|
20
18
|
});
|
|
21
|
-
const DateRangePickerToolbarContainer = styled('div'
|
|
22
|
-
skipSx: true
|
|
23
|
-
})({
|
|
19
|
+
const DateRangePickerToolbarContainer = styled('div')({
|
|
24
20
|
display: 'flex'
|
|
25
21
|
});
|
|
26
22
|
/**
|
|
@@ -14,30 +14,22 @@ import { doNothing } from '../internal/pickers/utils';
|
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
import { createElement as _createElement } from "react";
|
|
16
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
-
const DateRangePickerViewDesktopRoot = styled('div'
|
|
18
|
-
skipSx: true
|
|
19
|
-
})({
|
|
17
|
+
const DateRangePickerViewDesktopRoot = styled('div')({
|
|
20
18
|
display: 'flex',
|
|
21
19
|
flexDirection: 'row'
|
|
22
20
|
});
|
|
23
|
-
const DateRangePickerViewDesktopContainer = styled('div'
|
|
24
|
-
skipSx: true
|
|
25
|
-
})(({
|
|
21
|
+
const DateRangePickerViewDesktopContainer = styled('div')(({
|
|
26
22
|
theme
|
|
27
23
|
}) => ({
|
|
28
24
|
'&:not(:last-of-type)': {
|
|
29
25
|
borderRight: `2px solid ${theme.palette.divider}`
|
|
30
26
|
}
|
|
31
27
|
}));
|
|
32
|
-
const DateRangePickerViewDesktopCalendar = styled(PickersCalendar
|
|
33
|
-
skipSx: true
|
|
34
|
-
})({
|
|
28
|
+
const DateRangePickerViewDesktopCalendar = styled(PickersCalendar)({
|
|
35
29
|
minWidth: 312,
|
|
36
30
|
minHeight: 288
|
|
37
31
|
});
|
|
38
|
-
const DateRangePickerViewDesktopArrowSwitcher = styled(PickersArrowSwitcher
|
|
39
|
-
skipSx: true
|
|
40
|
-
})({
|
|
32
|
+
const DateRangePickerViewDesktopArrowSwitcher = styled(PickersArrowSwitcher)({
|
|
41
33
|
padding: '16px 16px 8px 16px',
|
|
42
34
|
display: 'flex',
|
|
43
35
|
alignItems: 'center',
|
|
@@ -14,7 +14,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
14
14
|
|
|
15
15
|
const viewToTab = openView => {
|
|
16
16
|
// TODO: what happens if `openView` is `month`?
|
|
17
|
-
if (
|
|
17
|
+
if (['day', 'month', 'year'].includes(openView)) {
|
|
18
18
|
return 'date';
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -29,9 +29,7 @@ const tabToView = tab => {
|
|
|
29
29
|
return 'hours';
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
const DateTimePickerTabsRoot = styled(Tabs
|
|
33
|
-
skipSx: true
|
|
34
|
-
})(({
|
|
32
|
+
const DateTimePickerTabsRoot = styled(Tabs)(({
|
|
35
33
|
ownerState,
|
|
36
34
|
theme
|
|
37
35
|
}) => _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
|
const classes = generateUtilityClasses('PrivateDateTimePickerToolbar', ['penIcon']);
|
|
19
|
-
const DateTimePickerToolbarRoot = styled(PickersToolbar
|
|
20
|
-
skipSx: true
|
|
21
|
-
})({
|
|
19
|
+
const DateTimePickerToolbarRoot = styled(PickersToolbar)({
|
|
22
20
|
paddingLeft: 16,
|
|
23
21
|
paddingRight: 16,
|
|
24
22
|
justifyContent: 'space-around',
|
|
@@ -28,21 +26,15 @@ const DateTimePickerToolbarRoot = styled(PickersToolbar, {
|
|
|
28
26
|
right: 8
|
|
29
27
|
}
|
|
30
28
|
});
|
|
31
|
-
const DateTimePickerToolbarDateContainer = styled('div'
|
|
32
|
-
skipSx: true
|
|
33
|
-
})({
|
|
29
|
+
const DateTimePickerToolbarDateContainer = styled('div')({
|
|
34
30
|
display: 'flex',
|
|
35
31
|
flexDirection: 'column',
|
|
36
32
|
alignItems: 'flex-start'
|
|
37
33
|
});
|
|
38
|
-
const DateTimePickerToolbarTimeContainer = styled('div'
|
|
39
|
-
skipSx: true
|
|
40
|
-
})({
|
|
34
|
+
const DateTimePickerToolbarTimeContainer = styled('div')({
|
|
41
35
|
display: 'flex'
|
|
42
36
|
});
|
|
43
|
-
const DateTimePickerToolbarSeparator = styled(PickersToolbarText
|
|
44
|
-
skipSx: true
|
|
45
|
-
})({
|
|
37
|
+
const DateTimePickerToolbarSeparator = styled(PickersToolbarText)({
|
|
46
38
|
margin: '0 4px 0 2px',
|
|
47
39
|
cursor: 'default'
|
|
48
40
|
});
|
|
@@ -236,6 +236,8 @@ process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
|
|
236
236
|
* The variant to use.
|
|
237
237
|
* @default 'text'
|
|
238
238
|
*/
|
|
239
|
-
variant: PropTypes
|
|
239
|
+
variant: PropTypes
|
|
240
|
+
/* @typescript-to-proptypes-ignore */
|
|
241
|
+
.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
|
|
240
242
|
} : void 0;
|
|
241
243
|
export default LoadingButton;
|
package/Masonry/Masonry.js
CHANGED
|
@@ -167,40 +167,24 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
167
167
|
|
|
168
168
|
const classes = useUtilityClasses(ownerState);
|
|
169
169
|
|
|
170
|
-
const handleResize =
|
|
171
|
-
if (!
|
|
170
|
+
const handleResize = masonryChildren => {
|
|
171
|
+
if (!masonryRef.current || !masonryChildren || masonryChildren.length === 0) {
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
if (elements[0].target.className.includes(classes.root)) {
|
|
181
|
-
var _elements$, _masonryFirstChild, _masonryFirstChild$co, _masonryFirstChild2;
|
|
182
|
-
|
|
183
|
-
masonry = elements[0].target;
|
|
184
|
-
parentWidth = elements[0].contentRect.width;
|
|
185
|
-
masonryFirstChild = ((_elements$ = elements[1]) == null ? void 0 : _elements$.target) || masonry.firstChild;
|
|
186
|
-
childWidth = ((_masonryFirstChild = masonryFirstChild) == null ? void 0 : (_masonryFirstChild$co = _masonryFirstChild.contentRect) == null ? void 0 : _masonryFirstChild$co.width) || ((_masonryFirstChild2 = masonryFirstChild) == null ? void 0 : _masonryFirstChild2.clientWidth) || 0;
|
|
187
|
-
} else {
|
|
188
|
-
var _elements$2, _masonry$contentRect;
|
|
189
|
-
|
|
190
|
-
masonryFirstChild = elements[0].target;
|
|
191
|
-
childWidth = elements[0].contentRect.width;
|
|
192
|
-
masonry = ((_elements$2 = elements[1]) == null ? void 0 : _elements$2.target) || masonryFirstChild.parentElement;
|
|
193
|
-
parentWidth = ((_masonry$contentRect = masonry.contentRect) == null ? void 0 : _masonry$contentRect.width) || masonry.clientWidth;
|
|
194
|
-
}
|
|
175
|
+
const masonry = masonryRef.current;
|
|
176
|
+
const masonryFirstChild = masonryRef.current.firstChild;
|
|
177
|
+
const parentWidth = masonry.clientWidth;
|
|
178
|
+
const firstChildWidth = masonryFirstChild.clientWidth;
|
|
195
179
|
|
|
196
|
-
if (parentWidth === 0 ||
|
|
180
|
+
if (parentWidth === 0 || firstChildWidth === 0) {
|
|
197
181
|
return;
|
|
198
182
|
}
|
|
199
183
|
|
|
200
184
|
const firstChildComputedStyle = window.getComputedStyle(masonryFirstChild);
|
|
201
185
|
const firstChildMarginLeft = parseToNumber(firstChildComputedStyle.marginLeft);
|
|
202
186
|
const firstChildMarginRight = parseToNumber(firstChildComputedStyle.marginRight);
|
|
203
|
-
const currentNumberOfColumns = Math.round(parentWidth / (
|
|
187
|
+
const currentNumberOfColumns = Math.round(parentWidth / (firstChildWidth + firstChildMarginLeft + firstChildMarginRight));
|
|
204
188
|
const columnHeights = new Array(currentNumberOfColumns).fill(0);
|
|
205
189
|
let skip = false;
|
|
206
190
|
masonry.childNodes.forEach(child => {
|
|
@@ -253,16 +237,10 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
253
237
|
return undefined;
|
|
254
238
|
}
|
|
255
239
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
// this might cause unforeseen problems in some use cases;
|
|
261
|
-
resizeObserver.observe(container);
|
|
262
|
-
|
|
263
|
-
if (container.firstChild) {
|
|
264
|
-
resizeObserver.observe(container.firstChild);
|
|
265
|
-
}
|
|
240
|
+
if (masonryRef.current) {
|
|
241
|
+
masonryRef.current.childNodes.forEach(childNode => {
|
|
242
|
+
resizeObserver.observe(childNode);
|
|
243
|
+
});
|
|
266
244
|
}
|
|
267
245
|
|
|
268
246
|
return () => resizeObserver ? resizeObserver.disconnect() : {};
|
|
@@ -9,9 +9,7 @@ import { generateUtilityClasses } from '@mui/base';
|
|
|
9
9
|
import { onSpaceOrEnter } from '../internal/pickers/utils';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const classes = generateUtilityClasses('PrivatePickersMonth', ['root', 'selected']);
|
|
12
|
-
const PickersMonthRoot = styled(Typography
|
|
13
|
-
skipSx: true
|
|
14
|
-
})(({
|
|
12
|
+
const PickersMonthRoot = styled(Typography)(({
|
|
15
13
|
theme
|
|
16
14
|
}) => _extends({
|
|
17
15
|
flex: '1 0 33.33%',
|
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
|
|
@@ -34,23 +34,17 @@ const useUtilityClasses = ownerState => {
|
|
|
34
34
|
return composeClasses(slots, getTimePickerToolbarUtilityClass, classes);
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
const TimePickerToolbarRoot = styled(PickersToolbar
|
|
38
|
-
skipSx: true
|
|
39
|
-
})({
|
|
37
|
+
const TimePickerToolbarRoot = styled(PickersToolbar)({
|
|
40
38
|
[`& .${timePickerToolbarClasses.penIconLandscape}`]: {
|
|
41
39
|
marginTop: 'auto'
|
|
42
40
|
}
|
|
43
41
|
});
|
|
44
|
-
const TimePickerToolbarSeparator = styled(PickersToolbarText
|
|
45
|
-
skipSx: true
|
|
46
|
-
})({
|
|
42
|
+
const TimePickerToolbarSeparator = styled(PickersToolbarText)({
|
|
47
43
|
outline: 0,
|
|
48
44
|
margin: '0 4px 0 2px',
|
|
49
45
|
cursor: 'default'
|
|
50
46
|
});
|
|
51
|
-
const TimePickerToolbarHourMinuteLabel = styled('div'
|
|
52
|
-
skipSx: true
|
|
53
|
-
})(({
|
|
47
|
+
const TimePickerToolbarHourMinuteLabel = styled('div')(({
|
|
54
48
|
theme,
|
|
55
49
|
ownerState
|
|
56
50
|
}) => _extends({
|
|
@@ -62,9 +56,7 @@ const TimePickerToolbarHourMinuteLabel = styled('div', {
|
|
|
62
56
|
}, theme.direction === 'rtl' && {
|
|
63
57
|
flexDirection: 'row-reverse'
|
|
64
58
|
}));
|
|
65
|
-
const TimePickerToolbarAmPmSelection = styled('div'
|
|
66
|
-
skipSx: true
|
|
67
|
-
})(({
|
|
59
|
+
const TimePickerToolbarAmPmSelection = styled('div')(({
|
|
68
60
|
ownerState
|
|
69
61
|
}) => _extends({
|
|
70
62
|
display: 'flex',
|
package/TreeItem/TreeItem.js
CHANGED
|
@@ -102,7 +102,7 @@ const StyledTreeItemContent = styled(TreeItemContent, {
|
|
|
102
102
|
},
|
|
103
103
|
[`& .${treeItemClasses.label}`]: _extends({
|
|
104
104
|
width: '100%',
|
|
105
|
-
// fixes overflow - see https://github.com/mui
|
|
105
|
+
// fixes overflow - see https://github.com/mui/material-ui/issues/27372
|
|
106
106
|
minWidth: 0,
|
|
107
107
|
paddingLeft: 4,
|
|
108
108
|
position: 'relative'
|
package/TreeView/TreeView.js
CHANGED
|
@@ -688,6 +688,10 @@ const TreeView = /*#__PURE__*/React.forwardRef(function TreeView(inProps, ref) {
|
|
|
688
688
|
if (isExpandable(focusedNodeId)) {
|
|
689
689
|
toggleExpansion(event);
|
|
690
690
|
flag = true;
|
|
691
|
+
} else if (multiSelect) {
|
|
692
|
+
flag = selectNode(event, focusedNodeId, true);
|
|
693
|
+
} else {
|
|
694
|
+
flag = selectNode(event, focusedNodeId);
|
|
691
695
|
}
|
|
692
696
|
}
|
|
693
697
|
|
|
@@ -25,9 +25,7 @@ const useUtilityClasses = ownerState => {
|
|
|
25
25
|
return composeClasses(slots, getPickersYearUtilityClass, classes);
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
const PickersYearRoot = styled('div'
|
|
29
|
-
skipSx: true
|
|
30
|
-
})(({
|
|
28
|
+
const PickersYearRoot = styled('div')(({
|
|
31
29
|
ownerState
|
|
32
30
|
}) => _extends({
|
|
33
31
|
flexBasis: '33.3%',
|
|
@@ -37,9 +35,7 @@ const PickersYearRoot = styled('div', {
|
|
|
37
35
|
}, (ownerState == null ? void 0 : ownerState.wrapperVariant) === 'desktop' && {
|
|
38
36
|
flexBasis: '25%'
|
|
39
37
|
}));
|
|
40
|
-
const PickersYearButton = styled('button'
|
|
41
|
-
skipSx: true
|
|
42
|
-
})(({
|
|
38
|
+
const PickersYearButton = styled('button')(({
|
|
43
39
|
theme
|
|
44
40
|
}) => _extends({
|
|
45
41
|
color: 'unset',
|
package/index.js
CHANGED
|
@@ -15,9 +15,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
15
15
|
export const MobileKeyboardInputView = styled('div')({
|
|
16
16
|
padding: '16px 24px'
|
|
17
17
|
});
|
|
18
|
-
const PickerRoot = styled('div'
|
|
19
|
-
skipSx: true
|
|
20
|
-
})(({
|
|
18
|
+
const PickerRoot = styled('div')(({
|
|
21
19
|
ownerState
|
|
22
20
|
}) => _extends({
|
|
23
21
|
display: 'flex',
|
|
@@ -12,16 +12,12 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
const PickersArrowSwitcherRoot = styled('div')({
|
|
13
13
|
display: 'flex'
|
|
14
14
|
});
|
|
15
|
-
const PickersArrowSwitcherSpacer = styled('div'
|
|
16
|
-
skipSx: true
|
|
17
|
-
})(({
|
|
15
|
+
const PickersArrowSwitcherSpacer = styled('div')(({
|
|
18
16
|
theme
|
|
19
17
|
}) => ({
|
|
20
18
|
width: theme.spacing(3)
|
|
21
19
|
}));
|
|
22
|
-
const PickersArrowSwitcherButton = styled(IconButton
|
|
23
|
-
skipSx: true
|
|
24
|
-
})(({
|
|
20
|
+
const PickersArrowSwitcherButton = styled(IconButton)(({
|
|
25
21
|
ownerState
|
|
26
22
|
}) => _extends({}, ownerState.hidden && {
|
|
27
23
|
visibility: 'hidden'
|
|
@@ -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,20 +17,16 @@ 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
|
|
35
|
-
// see https://github.com/mui
|
|
29
|
+
// see https://github.com/mui/material-ui-pickers/pull/267
|
|
36
30
|
justifyContent: 'flex-start',
|
|
37
31
|
'& > *:first-of-type': {
|
|
38
32
|
marginRight: 'auto'
|
|
@@ -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'),
|