@mui/material 5.12.2 → 5.12.3
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/Accordion/Accordion.d.ts +71 -57
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/autocompleteClasses.d.ts +56 -56
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/BottomNavigationAction.js +4 -1
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroup.js +8 -2
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +120 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/Chip.js +1 -1
- package/Chip/chipClasses.d.ts +96 -96
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/Divider.js +10 -11
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +42 -42
- package/FormControl/FormControlContext.d.ts +17 -17
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControl/useFormControl.d.ts +2 -2
- package/FormControlLabel/formControlLabelClasses.d.ts +24 -24
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +34 -34
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +38 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.js +1 -1
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +34 -34
- package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/Paper.d.ts +6 -1
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +65 -55
- package/Popper/Popper.js +4 -3
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/SelectInput.js +4 -1
- package/Select/selectClasses.d.ts +32 -32
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Slider/Slider.js +1 -1
- package/Slider/SliderValueLabel.d.ts +15 -15
- package/Slider/SliderValueLabel.types.d.ts +24 -24
- package/Slider/sliderClasses.d.ts +58 -58
- package/Snackbar/Snackbar.js +4 -3
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Stack/stackClasses.d.ts +6 -6
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- package/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/TextField.d.ts +21 -2
- package/TextField/TextField.js +7 -1
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/ButtonGroup/ButtonGroup.js +7 -3
- package/legacy/Divider/Divider.js +17 -17
- package/legacy/Drawer/Drawer.js +4 -4
- package/legacy/InputBase/InputBase.js +1 -1
- package/legacy/ListItem/ListItem.js +4 -4
- package/legacy/Menu/Menu.js +4 -4
- package/legacy/Popover/Popover.js +4 -4
- package/legacy/Popper/Popper.js +4 -3
- package/legacy/Slider/Slider.js +1 -1
- package/legacy/Snackbar/Snackbar.js +16 -15
- package/legacy/SpeedDial/SpeedDial.js +8 -8
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/legacy/TextField/TextField.js +7 -1
- package/legacy/index.js +1 -1
- package/legacy/useMediaQuery/useMediaQuery.js +8 -0
- package/locale/index.d.ts +76 -76
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/BottomNavigationAction/BottomNavigationAction.js +4 -1
- package/modern/ButtonGroup/ButtonGroup.js +8 -2
- package/modern/Chip/Chip.js +1 -1
- package/modern/Divider/Divider.js +10 -11
- package/modern/InputBase/InputBase.js +1 -1
- package/modern/Popper/Popper.js +4 -3
- package/modern/Select/SelectInput.js +4 -1
- package/modern/Slider/Slider.js +1 -1
- package/modern/Snackbar/Snackbar.js +4 -3
- package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/modern/TextField/TextField.js +7 -1
- package/modern/index.js +1 -1
- package/modern/useMediaQuery/useMediaQuery.js +8 -0
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/BottomNavigationAction/BottomNavigationAction.js +4 -1
- package/node/ButtonBase/Ripple.js +1 -2
- package/node/ButtonGroup/ButtonGroup.js +8 -2
- package/node/Chip/Chip.js +1 -1
- package/node/Divider/Divider.js +10 -11
- package/node/Grid/Grid.js +10 -1
- package/node/Hidden/Hidden.js +2 -2
- package/node/Hidden/HiddenJs.js +1 -2
- package/node/InputBase/InputBase.js +1 -1
- package/node/Popper/Popper.js +4 -3
- package/node/Select/SelectInput.js +4 -1
- package/node/Slide/Slide.js +2 -3
- package/node/Slider/Slider.js +1 -1
- package/node/Snackbar/Snackbar.js +4 -3
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SwipeableDrawer/SwipeableDrawer.js +3 -4
- package/node/Switch/Switch.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +1 -0
- package/node/TablePagination/TablePaginationActions.js +2 -2
- package/node/TextField/TextField.js +7 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/index.js +1 -1
- package/node/styles/index.js +5 -1
- package/node/useMediaQuery/useMediaQuery.js +12 -0
- package/node/utils/createSvgIcon.js +1 -2
- package/package.json +5 -5
- package/styles/CssVarsProvider.d.ts +20 -20
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/styles/identifier.d.ts +2 -2
- package/styles/shouldSkipGeneratingVar.d.ts +1 -1
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/types/OverridableComponentAugmentation.d.ts +31 -31
- package/umd/material-ui.development.js +91 -72
- package/umd/material-ui.production.min.js +5 -5
- package/useMediaQuery/useMediaQuery.d.ts +46 -46
- package/useMediaQuery/useMediaQuery.js +8 -0
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
package/legacy/Drawer/Drawer.js
CHANGED
|
@@ -138,10 +138,10 @@ var Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
138
138
|
elevation = _props$elevation === void 0 ? 16 : _props$elevation,
|
|
139
139
|
_props$hideBackdrop = props.hideBackdrop,
|
|
140
140
|
hideBackdrop = _props$hideBackdrop === void 0 ? false : _props$hideBackdrop,
|
|
141
|
-
_props$ModalProps = props.ModalProps
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
ModalProps = _objectWithoutProperties(_props$
|
|
141
|
+
_props$ModalProps = props.ModalProps,
|
|
142
|
+
_props$ModalProps2 = _props$ModalProps === void 0 ? {} : _props$ModalProps,
|
|
143
|
+
BackdropPropsProp = _props$ModalProps2.BackdropProps,
|
|
144
|
+
ModalProps = _objectWithoutProperties(_props$ModalProps2, ["BackdropProps"]),
|
|
145
145
|
onClose = props.onClose,
|
|
146
146
|
_props$open = props.open,
|
|
147
147
|
open = _props$open === void 0 ? false : _props$open,
|
|
@@ -375,7 +375,7 @@ var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
|
|
|
375
375
|
if (inputRef.current && event.currentTarget === event.target) {
|
|
376
376
|
inputRef.current.focus();
|
|
377
377
|
}
|
|
378
|
-
if (onClick) {
|
|
378
|
+
if (onClick && !fcs.disabled) {
|
|
379
379
|
onClick(event);
|
|
380
380
|
}
|
|
381
381
|
};
|
|
@@ -142,10 +142,10 @@ var ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
|
142
142
|
componentsProps = _props$componentsProp === void 0 ? {} : _props$componentsProp,
|
|
143
143
|
_props$ContainerCompo = props.ContainerComponent,
|
|
144
144
|
ContainerComponent = _props$ContainerCompo === void 0 ? 'li' : _props$ContainerCompo,
|
|
145
|
-
_props$ContainerProps = props.ContainerProps
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
ContainerProps = _objectWithoutProperties(_props$
|
|
145
|
+
_props$ContainerProps = props.ContainerProps,
|
|
146
|
+
_props$ContainerProps2 = _props$ContainerProps === void 0 ? {} : _props$ContainerProps,
|
|
147
|
+
ContainerClassName = _props$ContainerProps2.className,
|
|
148
|
+
ContainerProps = _objectWithoutProperties(_props$ContainerProps2, ["className"]),
|
|
149
149
|
_props$dense = props.dense,
|
|
150
150
|
dense = _props$dense === void 0 ? false : _props$dense,
|
|
151
151
|
_props$disabled = props.disabled,
|
package/legacy/Menu/Menu.js
CHANGED
|
@@ -84,10 +84,10 @@ var Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {
|
|
|
84
84
|
PopoverClasses = props.PopoverClasses,
|
|
85
85
|
_props$transitionDura = props.transitionDuration,
|
|
86
86
|
transitionDuration = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura,
|
|
87
|
-
_props$TransitionProp = props.TransitionProps
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
TransitionProps = _objectWithoutProperties(_props$
|
|
87
|
+
_props$TransitionProp = props.TransitionProps,
|
|
88
|
+
_props$TransitionProp2 = _props$TransitionProp === void 0 ? {} : _props$TransitionProp,
|
|
89
|
+
onEntering = _props$TransitionProp2.onEntering,
|
|
90
|
+
TransitionProps = _objectWithoutProperties(_props$TransitionProp2, ["onEntering"]),
|
|
91
91
|
_props$variant = props.variant,
|
|
92
92
|
variant = _props$variant === void 0 ? 'selectedMenu' : _props$variant,
|
|
93
93
|
other = _objectWithoutProperties(props, ["autoFocus", "children", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"]);
|
|
@@ -114,10 +114,10 @@ var Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
114
114
|
TransitionComponent = _props$TransitionComp === void 0 ? Grow : _props$TransitionComp,
|
|
115
115
|
_props$transitionDura = props.transitionDuration,
|
|
116
116
|
transitionDurationProp = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura,
|
|
117
|
-
_props$TransitionProp = props.TransitionProps
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
TransitionProps = _objectWithoutProperties(_props$
|
|
117
|
+
_props$TransitionProp = props.TransitionProps,
|
|
118
|
+
_props$TransitionProp2 = _props$TransitionProp === void 0 ? {} : _props$TransitionProp,
|
|
119
|
+
onEntering = _props$TransitionProp2.onEntering,
|
|
120
|
+
TransitionProps = _objectWithoutProperties(_props$TransitionProp2, ["onEntering"]),
|
|
121
121
|
other = _objectWithoutProperties(props, ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"]);
|
|
122
122
|
var paperRef = React.useRef();
|
|
123
123
|
var handlePaperRef = useForkRef(paperRef, PaperProps.ref);
|
package/legacy/Popper/Popper.js
CHANGED
|
@@ -53,7 +53,6 @@ var Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
|
53
53
|
var RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
|
|
54
54
|
var otherProps = _extends({
|
|
55
55
|
anchorEl: anchorEl,
|
|
56
|
-
component: component,
|
|
57
56
|
container: container,
|
|
58
57
|
disablePortal: disablePortal,
|
|
59
58
|
keepMounted: keepMounted,
|
|
@@ -65,6 +64,7 @@ var Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
|
65
64
|
transition: transition
|
|
66
65
|
}, other);
|
|
67
66
|
return /*#__PURE__*/_jsx(PopperRoot, _extends({
|
|
67
|
+
as: component,
|
|
68
68
|
direction: theme == null ? void 0 : theme.direction,
|
|
69
69
|
slots: {
|
|
70
70
|
root: RootComponent
|
|
@@ -91,9 +91,10 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
|
|
|
91
91
|
*/
|
|
92
92
|
children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* The component used for the root node.
|
|
95
|
+
* Either a string to use a HTML element or a component.
|
|
95
96
|
*/
|
|
96
|
-
component: PropTypes
|
|
97
|
+
component: PropTypes.elementType,
|
|
97
98
|
/**
|
|
98
99
|
* The components used for each slot inside the Popper.
|
|
99
100
|
* Either a string to use a HTML element or a component.
|
package/legacy/Slider/Slider.js
CHANGED
|
@@ -514,7 +514,7 @@ var Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
514
514
|
valueLabelFormat: valueLabelFormat
|
|
515
515
|
});
|
|
516
516
|
var _useSlider = useSlider(_extends({}, ownerState, {
|
|
517
|
-
|
|
517
|
+
rootRef: ref
|
|
518
518
|
})),
|
|
519
519
|
axisProps = _useSlider.axisProps,
|
|
520
520
|
getRootProps = _useSlider.getRootProps,
|
|
@@ -76,13 +76,13 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
76
76
|
exit: theme.transitions.duration.leavingScreen
|
|
77
77
|
};
|
|
78
78
|
var action = props.action,
|
|
79
|
-
_props$anchorOrigin = props.anchorOrigin
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
horizontal = _props$
|
|
79
|
+
_props$anchorOrigin = props.anchorOrigin,
|
|
80
|
+
_props$anchorOrigin2 = _props$anchorOrigin === void 0 ? {
|
|
81
|
+
vertical: 'bottom',
|
|
82
|
+
horizontal: 'left'
|
|
83
|
+
} : _props$anchorOrigin,
|
|
84
|
+
vertical = _props$anchorOrigin2.vertical,
|
|
85
|
+
horizontal = _props$anchorOrigin2.horizontal,
|
|
86
86
|
_props$autoHideDurati = props.autoHideDuration,
|
|
87
87
|
autoHideDuration = _props$autoHideDurati === void 0 ? null : _props$autoHideDurati,
|
|
88
88
|
children = props.children,
|
|
@@ -103,11 +103,11 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
103
103
|
TransitionComponent = _props$TransitionComp === void 0 ? Grow : _props$TransitionComp,
|
|
104
104
|
_props$transitionDura = props.transitionDuration,
|
|
105
105
|
transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
|
|
106
|
-
_props$TransitionProp = props.TransitionProps
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
onExited = _props$
|
|
110
|
-
TransitionProps = _objectWithoutProperties(_props$
|
|
106
|
+
_props$TransitionProp = props.TransitionProps,
|
|
107
|
+
_props$TransitionProp2 = _props$TransitionProp === void 0 ? {} : _props$TransitionProp,
|
|
108
|
+
onEnter = _props$TransitionProp2.onEnter,
|
|
109
|
+
onExited = _props$TransitionProp2.onExited,
|
|
110
|
+
TransitionProps = _objectWithoutProperties(_props$TransitionProp2, ["onEnter", "onExited"]),
|
|
111
111
|
other = _objectWithoutProperties(props, ["action", "anchorOrigin", "autoHideDuration", "children", "className", "ClickAwayListenerProps", "ContentProps", "disableWindowBlurListener", "message", "onBlur", "onClose", "onFocus", "onMouseEnter", "onMouseLeave", "open", "resumeHideDuration", "TransitionComponent", "transitionDuration", "TransitionProps"]);
|
|
112
112
|
var ownerState = _extends({}, props, {
|
|
113
113
|
anchorOrigin: {
|
|
@@ -120,9 +120,7 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
120
120
|
transitionDuration: transitionDuration
|
|
121
121
|
});
|
|
122
122
|
var classes = useUtilityClasses(ownerState);
|
|
123
|
-
var _useSnackbar = useSnackbar(_extends({}, ownerState,
|
|
124
|
-
ref: ref
|
|
125
|
-
})),
|
|
123
|
+
var _useSnackbar = useSnackbar(_extends({}, ownerState)),
|
|
126
124
|
getRootProps = _useSnackbar.getRootProps,
|
|
127
125
|
onClickAway = _useSnackbar.onClickAway;
|
|
128
126
|
var _React$useState = React.useState(true),
|
|
@@ -133,6 +131,9 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
133
131
|
getSlotProps: getRootProps,
|
|
134
132
|
externalForwardedProps: other,
|
|
135
133
|
ownerState: ownerState,
|
|
134
|
+
additionalProps: {
|
|
135
|
+
ref: ref
|
|
136
|
+
},
|
|
136
137
|
className: [classes.root, className]
|
|
137
138
|
});
|
|
138
139
|
var handleExited = function handleExited(node) {
|
|
@@ -130,10 +130,10 @@ var SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref) {
|
|
|
130
130
|
exit: theme.transitions.duration.leavingScreen
|
|
131
131
|
};
|
|
132
132
|
var ariaLabel = props.ariaLabel,
|
|
133
|
-
_props$FabProps = props.FabProps
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
FabProps = _objectWithoutProperties(_props$
|
|
133
|
+
_props$FabProps = props.FabProps,
|
|
134
|
+
_props$FabProps2 = _props$FabProps === void 0 ? {} : _props$FabProps,
|
|
135
|
+
origDialButtonRef = _props$FabProps2.ref,
|
|
136
|
+
FabProps = _objectWithoutProperties(_props$FabProps2, ["ref"]),
|
|
137
137
|
childrenProp = props.children,
|
|
138
138
|
className = props.className,
|
|
139
139
|
_props$direction = props.direction,
|
|
@@ -329,10 +329,10 @@ var SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref) {
|
|
|
329
329
|
});
|
|
330
330
|
var children = allItems.map(function (child, index) {
|
|
331
331
|
var _child$props = child.props,
|
|
332
|
-
_child$props$FabProps = _child$props.FabProps
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
ChildFabProps = _objectWithoutProperties(_child$props$
|
|
332
|
+
_child$props$FabProps = _child$props.FabProps,
|
|
333
|
+
_child$props$FabProps2 = _child$props$FabProps === void 0 ? {} : _child$props$FabProps,
|
|
334
|
+
origButtonRef = _child$props$FabProps2.ref,
|
|
335
|
+
ChildFabProps = _objectWithoutProperties(_child$props$FabProps2, ["ref"]),
|
|
336
336
|
tooltipPlacementProp = _child$props.tooltipPlacement;
|
|
337
337
|
var tooltipPlacement = tooltipPlacementProp || (getOrientation(direction) === 'vertical' ? 'left' : 'top');
|
|
338
338
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
@@ -138,10 +138,10 @@ var SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inP
|
|
|
138
138
|
allowSwipeInChildren = _props$allowSwipeInCh === void 0 ? false : _props$allowSwipeInCh,
|
|
139
139
|
_props$minFlingVeloci = props.minFlingVelocity,
|
|
140
140
|
minFlingVelocity = _props$minFlingVeloci === void 0 ? 450 : _props$minFlingVeloci,
|
|
141
|
-
_props$ModalProps = props.ModalProps
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
ModalPropsProp = _objectWithoutProperties(_props$
|
|
141
|
+
_props$ModalProps = props.ModalProps,
|
|
142
|
+
_props$ModalProps2 = _props$ModalProps === void 0 ? {} : _props$ModalProps,
|
|
143
|
+
BackdropProps = _props$ModalProps2.BackdropProps,
|
|
144
|
+
ModalPropsProp = _objectWithoutProperties(_props$ModalProps2, ["BackdropProps"]),
|
|
145
145
|
onClose = props.onClose,
|
|
146
146
|
onOpen = props.onOpen,
|
|
147
147
|
_props$open = props.open,
|
|
@@ -103,6 +103,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {
|
|
|
103
103
|
name = props.name,
|
|
104
104
|
onBlur = props.onBlur,
|
|
105
105
|
onChange = props.onChange,
|
|
106
|
+
onClick = props.onClick,
|
|
106
107
|
onFocus = props.onFocus,
|
|
107
108
|
placeholder = props.placeholder,
|
|
108
109
|
_props$required = props.required,
|
|
@@ -115,7 +116,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {
|
|
|
115
116
|
value = props.value,
|
|
116
117
|
_props$variant = props.variant,
|
|
117
118
|
variant = _props$variant === void 0 ? 'outlined' : _props$variant,
|
|
118
|
-
other = _objectWithoutProperties(props, ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"]);
|
|
119
|
+
other = _objectWithoutProperties(props, ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"]);
|
|
119
120
|
var ownerState = _extends({}, props, {
|
|
120
121
|
autoFocus: autoFocus,
|
|
121
122
|
color: color,
|
|
@@ -169,6 +170,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {
|
|
|
169
170
|
onBlur: onBlur,
|
|
170
171
|
onChange: onChange,
|
|
171
172
|
onFocus: onFocus,
|
|
173
|
+
onClick: onClick,
|
|
172
174
|
placeholder: placeholder,
|
|
173
175
|
inputProps: inputProps
|
|
174
176
|
}, InputMore, InputProps));
|
|
@@ -327,6 +329,10 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
|
|
|
327
329
|
* You can pull out the new value by accessing `event.target.value` (string).
|
|
328
330
|
*/
|
|
329
331
|
onChange: PropTypes.func,
|
|
332
|
+
/**
|
|
333
|
+
* @ignore
|
|
334
|
+
*/
|
|
335
|
+
onClick: PropTypes.func,
|
|
330
336
|
/**
|
|
331
337
|
* @ignore
|
|
332
338
|
*/
|
package/legacy/index.js
CHANGED
|
@@ -7,6 +7,14 @@ import useEnhancedEffect from '../utils/useEnhancedEffect';
|
|
|
7
7
|
* @deprecated Not used internally. Use `MediaQueryListEvent` from lib.dom.d.ts instead.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Not used internally. Use `MediaQueryList` from lib.dom.d.ts instead.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Not used internally. Use `(event: MediaQueryListEvent) => void` instead.
|
|
16
|
+
*/
|
|
17
|
+
|
|
10
18
|
function useMediaQueryOld(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {
|
|
11
19
|
var _React$useState = React.useState(function () {
|
|
12
20
|
if (noSsr && matchMedia) {
|
package/locale/index.d.ts
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
-
export interface Localization {
|
|
3
|
-
components?: {
|
|
4
|
-
MuiAlert?: {
|
|
5
|
-
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
-
};
|
|
7
|
-
MuiBreadcrumbs?: {
|
|
8
|
-
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
-
};
|
|
10
|
-
MuiTablePagination?: {
|
|
11
|
-
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
-
};
|
|
13
|
-
MuiRating?: {
|
|
14
|
-
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
-
};
|
|
16
|
-
MuiAutocomplete?: {
|
|
17
|
-
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
-
};
|
|
19
|
-
MuiPagination?: {
|
|
20
|
-
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export declare const amET: Localization;
|
|
25
|
-
export declare const arEG: Localization;
|
|
26
|
-
export declare const arSA: Localization;
|
|
27
|
-
export declare const arSD: Localization;
|
|
28
|
-
export declare const azAZ: Localization;
|
|
29
|
-
export declare const bnBD: Localization;
|
|
30
|
-
export declare const beBY: Localization;
|
|
31
|
-
export declare const bgBG: Localization;
|
|
32
|
-
export declare const caES: Localization;
|
|
33
|
-
export declare const csCZ: Localization;
|
|
34
|
-
export declare const daDK: Localization;
|
|
35
|
-
export declare const deDE: Localization;
|
|
36
|
-
export declare const elGR: Localization;
|
|
37
|
-
export declare const enUS: Localization;
|
|
38
|
-
export declare const esES: Localization;
|
|
39
|
-
export declare const etEE: Localization;
|
|
40
|
-
export declare const faIR: Localization;
|
|
41
|
-
export declare const fiFI: Localization;
|
|
42
|
-
export declare const frFR: Localization;
|
|
43
|
-
export declare const heIL: Localization;
|
|
44
|
-
export declare const hiIN: Localization;
|
|
45
|
-
export declare const hrHR: Localization;
|
|
46
|
-
export declare const huHU: Localization;
|
|
47
|
-
export declare const hyAM: Localization;
|
|
48
|
-
export declare const idID: Localization;
|
|
49
|
-
export declare const isIS: Localization;
|
|
50
|
-
export declare const itIT: Localization;
|
|
51
|
-
export declare const jaJP: Localization;
|
|
52
|
-
export declare const khKH: Localization;
|
|
53
|
-
export declare const koKR: Localization;
|
|
54
|
-
export declare const kuCKB: Localization;
|
|
55
|
-
export declare const kuLatn: Localization;
|
|
56
|
-
export declare const kkKZ: Localization;
|
|
57
|
-
export declare const mkMK: Localization;
|
|
58
|
-
export declare const nbNO: Localization;
|
|
59
|
-
export declare const nlNL: Localization;
|
|
60
|
-
export declare const plPL: Localization;
|
|
61
|
-
export declare const ptBR: Localization;
|
|
62
|
-
export declare const ptPT: Localization;
|
|
63
|
-
export declare const roRO: Localization;
|
|
64
|
-
export declare const srRS: Localization;
|
|
65
|
-
export declare const ruRU: Localization;
|
|
66
|
-
export declare const siLK: Localization;
|
|
67
|
-
export declare const skSK: Localization;
|
|
68
|
-
export declare const svSE: Localization;
|
|
69
|
-
export declare const thTH: Localization;
|
|
70
|
-
export declare const trTR: Localization;
|
|
71
|
-
export declare const ukUA: Localization;
|
|
72
|
-
export declare const urPK: Localization;
|
|
73
|
-
export declare const viVN: Localization;
|
|
74
|
-
export declare const zhCN: Localization;
|
|
75
|
-
export declare const zhHK: Localization;
|
|
76
|
-
export declare const zhTW: Localization;
|
|
1
|
+
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
+
export interface Localization {
|
|
3
|
+
components?: {
|
|
4
|
+
MuiAlert?: {
|
|
5
|
+
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
+
};
|
|
7
|
+
MuiBreadcrumbs?: {
|
|
8
|
+
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
+
};
|
|
10
|
+
MuiTablePagination?: {
|
|
11
|
+
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
+
};
|
|
13
|
+
MuiRating?: {
|
|
14
|
+
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
+
};
|
|
16
|
+
MuiAutocomplete?: {
|
|
17
|
+
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
+
};
|
|
19
|
+
MuiPagination?: {
|
|
20
|
+
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare const amET: Localization;
|
|
25
|
+
export declare const arEG: Localization;
|
|
26
|
+
export declare const arSA: Localization;
|
|
27
|
+
export declare const arSD: Localization;
|
|
28
|
+
export declare const azAZ: Localization;
|
|
29
|
+
export declare const bnBD: Localization;
|
|
30
|
+
export declare const beBY: Localization;
|
|
31
|
+
export declare const bgBG: Localization;
|
|
32
|
+
export declare const caES: Localization;
|
|
33
|
+
export declare const csCZ: Localization;
|
|
34
|
+
export declare const daDK: Localization;
|
|
35
|
+
export declare const deDE: Localization;
|
|
36
|
+
export declare const elGR: Localization;
|
|
37
|
+
export declare const enUS: Localization;
|
|
38
|
+
export declare const esES: Localization;
|
|
39
|
+
export declare const etEE: Localization;
|
|
40
|
+
export declare const faIR: Localization;
|
|
41
|
+
export declare const fiFI: Localization;
|
|
42
|
+
export declare const frFR: Localization;
|
|
43
|
+
export declare const heIL: Localization;
|
|
44
|
+
export declare const hiIN: Localization;
|
|
45
|
+
export declare const hrHR: Localization;
|
|
46
|
+
export declare const huHU: Localization;
|
|
47
|
+
export declare const hyAM: Localization;
|
|
48
|
+
export declare const idID: Localization;
|
|
49
|
+
export declare const isIS: Localization;
|
|
50
|
+
export declare const itIT: Localization;
|
|
51
|
+
export declare const jaJP: Localization;
|
|
52
|
+
export declare const khKH: Localization;
|
|
53
|
+
export declare const koKR: Localization;
|
|
54
|
+
export declare const kuCKB: Localization;
|
|
55
|
+
export declare const kuLatn: Localization;
|
|
56
|
+
export declare const kkKZ: Localization;
|
|
57
|
+
export declare const mkMK: Localization;
|
|
58
|
+
export declare const nbNO: Localization;
|
|
59
|
+
export declare const nlNL: Localization;
|
|
60
|
+
export declare const plPL: Localization;
|
|
61
|
+
export declare const ptBR: Localization;
|
|
62
|
+
export declare const ptPT: Localization;
|
|
63
|
+
export declare const roRO: Localization;
|
|
64
|
+
export declare const srRS: Localization;
|
|
65
|
+
export declare const ruRU: Localization;
|
|
66
|
+
export declare const siLK: Localization;
|
|
67
|
+
export declare const skSK: Localization;
|
|
68
|
+
export declare const svSE: Localization;
|
|
69
|
+
export declare const thTH: Localization;
|
|
70
|
+
export declare const trTR: Localization;
|
|
71
|
+
export declare const ukUA: Localization;
|
|
72
|
+
export declare const urPK: Localization;
|
|
73
|
+
export declare const viVN: Localization;
|
|
74
|
+
export declare const zhCN: Localization;
|
|
75
|
+
export declare const zhHK: Localization;
|
|
76
|
+
export declare const zhTW: Localization;
|
|
File without changes
|
|
@@ -86,7 +86,10 @@ const BottomNavigationAction = /*#__PURE__*/React.forwardRef(function BottomNavi
|
|
|
86
86
|
icon,
|
|
87
87
|
label,
|
|
88
88
|
onChange,
|
|
89
|
-
onClick
|
|
89
|
+
onClick
|
|
90
|
+
// eslint-disable-next-line react/prop-types -- private, always overridden by BottomNavigation
|
|
91
|
+
,
|
|
92
|
+
|
|
90
93
|
value
|
|
91
94
|
} = props,
|
|
92
95
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
@@ -83,9 +83,15 @@ const ButtonGroupRoot = styled('div', {
|
|
|
83
83
|
borderBottomRightRadius: 0,
|
|
84
84
|
borderBottomLeftRadius: 0
|
|
85
85
|
}, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
|
|
86
|
-
borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}
|
|
86
|
+
borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
87
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
88
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
89
|
+
}
|
|
87
90
|
}, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
|
|
88
|
-
borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}
|
|
91
|
+
borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
92
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
93
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
94
|
+
}
|
|
89
95
|
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
90
96
|
borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)
|
|
91
97
|
}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
package/modern/Chip/Chip.js
CHANGED
|
@@ -293,7 +293,7 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
293
293
|
size = 'medium',
|
|
294
294
|
variant = 'filled',
|
|
295
295
|
tabIndex,
|
|
296
|
-
skipFocusWhenDisabled = false
|
|
296
|
+
skipFocusWhenDisabled = false // TODO v6: Rename to `focusableWhenDisabled`.
|
|
297
297
|
} = props,
|
|
298
298
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
299
299
|
const chipRef = React.useRef(null);
|
|
@@ -70,7 +70,6 @@ const DividerRoot = styled('div', {
|
|
|
70
70
|
alignSelf: 'stretch',
|
|
71
71
|
height: 'auto'
|
|
72
72
|
}), ({
|
|
73
|
-
theme,
|
|
74
73
|
ownerState
|
|
75
74
|
}) => _extends({}, ownerState.children && {
|
|
76
75
|
display: 'flex',
|
|
@@ -78,12 +77,16 @@ const DividerRoot = styled('div', {
|
|
|
78
77
|
textAlign: 'center',
|
|
79
78
|
border: 0,
|
|
80
79
|
'&::before, &::after': {
|
|
81
|
-
position: 'relative',
|
|
82
|
-
width: '100%',
|
|
83
|
-
borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
|
|
84
|
-
top: '50%',
|
|
85
80
|
content: '""',
|
|
86
|
-
|
|
81
|
+
alignSelf: 'center'
|
|
82
|
+
}
|
|
83
|
+
}), ({
|
|
84
|
+
theme,
|
|
85
|
+
ownerState
|
|
86
|
+
}) => _extends({}, ownerState.children && ownerState.orientation !== 'vertical' && {
|
|
87
|
+
'&::before, &::after': {
|
|
88
|
+
width: '100%',
|
|
89
|
+
borderTop: `thin solid ${(theme.vars || theme).palette.divider}`
|
|
87
90
|
}
|
|
88
91
|
}), ({
|
|
89
92
|
theme,
|
|
@@ -92,11 +95,7 @@ const DividerRoot = styled('div', {
|
|
|
92
95
|
flexDirection: 'column',
|
|
93
96
|
'&::before, &::after': {
|
|
94
97
|
height: '100%',
|
|
95
|
-
|
|
96
|
-
left: '50%',
|
|
97
|
-
borderTop: 0,
|
|
98
|
-
borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
|
|
99
|
-
transform: 'translateX(0%)'
|
|
98
|
+
borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`
|
|
100
99
|
}
|
|
101
100
|
}), ({
|
|
102
101
|
ownerState
|
|
@@ -371,7 +371,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
|
|
|
371
371
|
if (inputRef.current && event.currentTarget === event.target) {
|
|
372
372
|
inputRef.current.focus();
|
|
373
373
|
}
|
|
374
|
-
if (onClick) {
|
|
374
|
+
if (onClick && !fcs.disabled) {
|
|
375
375
|
onClick(event);
|
|
376
376
|
}
|
|
377
377
|
};
|
package/modern/Popper/Popper.js
CHANGED
|
@@ -53,7 +53,6 @@ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
|
53
53
|
const RootComponent = slots?.root ?? components?.Root;
|
|
54
54
|
const otherProps = _extends({
|
|
55
55
|
anchorEl,
|
|
56
|
-
component,
|
|
57
56
|
container,
|
|
58
57
|
disablePortal,
|
|
59
58
|
keepMounted,
|
|
@@ -65,6 +64,7 @@ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
|
65
64
|
transition
|
|
66
65
|
}, other);
|
|
67
66
|
return /*#__PURE__*/_jsx(PopperRoot, _extends({
|
|
67
|
+
as: component,
|
|
68
68
|
direction: theme?.direction,
|
|
69
69
|
slots: {
|
|
70
70
|
root: RootComponent
|
|
@@ -91,9 +91,10 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
|
|
|
91
91
|
*/
|
|
92
92
|
children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* The component used for the root node.
|
|
95
|
+
* Either a string to use a HTML element or a component.
|
|
95
96
|
*/
|
|
96
|
-
component: PropTypes
|
|
97
|
+
component: PropTypes.elementType,
|
|
97
98
|
/**
|
|
98
99
|
* The components used for each slot inside the Popper.
|
|
99
100
|
* Either a string to use a HTML element or a component.
|
|
@@ -134,7 +134,10 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
134
134
|
readOnly,
|
|
135
135
|
renderValue,
|
|
136
136
|
SelectDisplayProps = {},
|
|
137
|
-
tabIndex: tabIndexProp
|
|
137
|
+
tabIndex: tabIndexProp
|
|
138
|
+
// catching `type` from Input which makes no sense for SelectInput
|
|
139
|
+
,
|
|
140
|
+
|
|
138
141
|
value: valueProp,
|
|
139
142
|
variant = 'standard'
|
|
140
143
|
} = props,
|
package/modern/Slider/Slider.js
CHANGED
|
@@ -508,7 +508,7 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
508
508
|
trackOffset,
|
|
509
509
|
trackLeap
|
|
510
510
|
} = useSlider(_extends({}, ownerState, {
|
|
511
|
-
ref
|
|
511
|
+
rootRef: ref
|
|
512
512
|
}));
|
|
513
513
|
ownerState.marked = marks.length > 0 && marks.some(mark => mark.label);
|
|
514
514
|
ownerState.dragging = dragging;
|
|
@@ -123,15 +123,16 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
123
123
|
const {
|
|
124
124
|
getRootProps,
|
|
125
125
|
onClickAway
|
|
126
|
-
} = useSnackbar(_extends({}, ownerState
|
|
127
|
-
ref
|
|
128
|
-
}));
|
|
126
|
+
} = useSnackbar(_extends({}, ownerState));
|
|
129
127
|
const [exited, setExited] = React.useState(true);
|
|
130
128
|
const rootProps = useSlotProps({
|
|
131
129
|
elementType: SnackbarRoot,
|
|
132
130
|
getSlotProps: getRootProps,
|
|
133
131
|
externalForwardedProps: other,
|
|
134
132
|
ownerState,
|
|
133
|
+
additionalProps: {
|
|
134
|
+
ref
|
|
135
|
+
},
|
|
135
136
|
className: [classes.root, className]
|
|
136
137
|
});
|
|
137
138
|
const handleExited = node => {
|
|
@@ -145,7 +145,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
|
|
|
145
145
|
SwipeAreaProps,
|
|
146
146
|
swipeAreaWidth = 20,
|
|
147
147
|
transitionDuration = transitionDurationDefault,
|
|
148
|
-
variant = 'temporary'
|
|
148
|
+
variant = 'temporary' // Mobile first.
|
|
149
149
|
} = props,
|
|
150
150
|
ModalPropsProp = _objectWithoutPropertiesLoose(props.ModalProps, _excluded),
|
|
151
151
|
other = _objectWithoutPropertiesLoose(props, _excluded2);
|