@mui/material 9.0.0-alpha.4 → 9.0.0-beta.1
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.mts +1 -1
- package/Accordion/Accordion.d.ts +1 -1
- package/AccordionSummary/AccordionSummary.js +1 -0
- package/AccordionSummary/AccordionSummary.mjs +1 -0
- package/Backdrop/Backdrop.d.mts +1 -1
- package/Backdrop/Backdrop.d.ts +1 -1
- package/BottomNavigationAction/BottomNavigationAction.js +1 -0
- package/BottomNavigationAction/BottomNavigationAction.mjs +1 -0
- package/Breadcrumbs/BreadcrumbCollapsed.js +5 -1
- package/Breadcrumbs/BreadcrumbCollapsed.mjs +5 -1
- package/Button/Button.js +1 -0
- package/Button/Button.mjs +1 -0
- package/ButtonBase/ButtonBase.d.mts +5 -0
- package/ButtonBase/ButtonBase.d.ts +5 -0
- package/ButtonBase/ButtonBase.js +84 -85
- package/ButtonBase/ButtonBase.mjs +84 -85
- package/ButtonBase/useButtonBase.d.mts +91 -0
- package/ButtonBase/useButtonBase.d.ts +91 -0
- package/ButtonBase/useButtonBase.js +174 -0
- package/ButtonBase/useButtonBase.mjs +167 -0
- package/ButtonGroup/ButtonGroup.js +1 -9
- package/ButtonGroup/ButtonGroup.mjs +1 -9
- package/ButtonGroup/buttonGroupClasses.d.mts +0 -68
- package/ButtonGroup/buttonGroupClasses.d.ts +0 -68
- package/ButtonGroup/buttonGroupClasses.js +1 -1
- package/ButtonGroup/buttonGroupClasses.mjs +1 -1
- package/CHANGELOG.md +119 -4
- package/CardActionArea/CardActionArea.js +1 -0
- package/CardActionArea/CardActionArea.mjs +1 -0
- package/CardHeader/CardHeader.d.mts +13 -21
- package/CardHeader/CardHeader.d.ts +13 -21
- package/CardHeader/CardHeader.js +3 -21
- package/CardHeader/CardHeader.mjs +3 -21
- package/Checkbox/Checkbox.js +1 -7
- package/Checkbox/Checkbox.mjs +1 -7
- package/Chip/Chip.d.mts +7 -0
- package/Chip/Chip.d.ts +7 -0
- package/Chip/Chip.js +66 -55
- package/Chip/Chip.mjs +66 -55
- package/Chip/chipClasses.d.mts +0 -104
- package/Chip/chipClasses.d.ts +0 -104
- package/Chip/chipClasses.js +1 -1
- package/Chip/chipClasses.mjs +1 -1
- package/Dialog/Dialog.d.mts +8 -22
- package/Dialog/Dialog.d.ts +8 -22
- package/Dialog/Dialog.js +43 -72
- package/Dialog/Dialog.mjs +43 -72
- package/Dialog/dialogClasses.d.mts +0 -8
- package/Dialog/dialogClasses.d.ts +0 -8
- package/Dialog/dialogClasses.js +1 -1
- package/Dialog/dialogClasses.mjs +1 -1
- package/Divider/Divider.js +2 -10
- package/Divider/Divider.mjs +2 -10
- package/Divider/dividerClasses.d.mts +0 -4
- package/Divider/dividerClasses.d.ts +0 -4
- package/Divider/dividerClasses.js +1 -1
- package/Divider/dividerClasses.mjs +1 -1
- package/Drawer/Drawer.d.mts +1 -13
- package/Drawer/Drawer.d.ts +1 -13
- package/Drawer/Drawer.js +6 -40
- package/Drawer/Drawer.mjs +6 -40
- package/Drawer/drawerClasses.d.mts +0 -32
- package/Drawer/drawerClasses.d.ts +0 -32
- package/Drawer/drawerClasses.js +1 -1
- package/Drawer/drawerClasses.mjs +1 -1
- package/Fab/Fab.js +1 -0
- package/Fab/Fab.mjs +1 -0
- package/FilledInput/FilledInput.js +4 -33
- package/FilledInput/FilledInput.mjs +4 -33
- package/Grid/Grid.d.mts +8 -3
- package/Grid/Grid.d.ts +8 -3
- package/Grid/Grid.js +8 -3
- package/Grid/Grid.mjs +8 -3
- package/Grid/gridClasses.js +1 -1
- package/Grid/gridClasses.mjs +1 -1
- package/IconButton/IconButton.js +1 -0
- package/IconButton/IconButton.mjs +1 -0
- package/ImageListItemBar/ImageListItemBar.js +4 -17
- package/ImageListItemBar/ImageListItemBar.mjs +4 -17
- package/ImageListItemBar/imageListItemBarClasses.d.mts +0 -16
- package/ImageListItemBar/imageListItemBarClasses.d.ts +0 -16
- package/ImageListItemBar/imageListItemBarClasses.js +1 -1
- package/ImageListItemBar/imageListItemBarClasses.mjs +1 -1
- package/Input/Input.js +4 -33
- package/Input/Input.mjs +4 -33
- package/Input/inputClasses.d.mts +0 -16
- package/Input/inputClasses.d.ts +0 -16
- package/InputAdornment/inputAdornmentClasses.d.mts +2 -2
- package/InputAdornment/inputAdornmentClasses.d.ts +2 -2
- package/InputBase/InputBase.d.mts +0 -27
- package/InputBase/InputBase.d.ts +0 -27
- package/InputBase/InputBase.js +6 -35
- package/InputBase/InputBase.mjs +6 -35
- package/InputBase/inputBaseClasses.d.mts +0 -20
- package/InputBase/inputBaseClasses.d.ts +0 -20
- package/InputBase/inputBaseClasses.js +1 -1
- package/InputBase/inputBaseClasses.mjs +1 -1
- package/InputLabel/InputLabel.js +1 -1
- package/InputLabel/InputLabel.mjs +1 -1
- package/LinearProgress/LinearProgress.js +6 -18
- package/LinearProgress/LinearProgress.mjs +6 -18
- package/LinearProgress/linearProgressClasses.d.mts +0 -36
- package/LinearProgress/linearProgressClasses.d.ts +0 -36
- package/LinearProgress/linearProgressClasses.js +1 -1
- package/LinearProgress/linearProgressClasses.mjs +1 -1
- package/Link/Link.d.mts +1 -1
- package/Link/Link.d.ts +1 -1
- package/ListItem/ListItem.d.mts +2 -36
- package/ListItem/ListItem.d.ts +2 -36
- package/ListItem/ListItem.js +27 -152
- package/ListItem/ListItem.mjs +27 -152
- package/ListItem/listItemClasses.d.mts +2 -4
- package/ListItem/listItemClasses.d.ts +2 -4
- package/ListItem/listItemClasses.js +1 -1
- package/ListItem/listItemClasses.mjs +1 -1
- package/ListItemButton/ListItemButton.d.mts +1 -2
- package/ListItemButton/ListItemButton.d.ts +1 -2
- package/ListItemButton/ListItemButton.js +2 -2
- package/ListItemButton/ListItemButton.mjs +2 -2
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemIcon/ListItemIcon.mjs +1 -1
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.mts +10 -6
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +10 -6
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +7 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.mjs +7 -2
- package/ListItemText/ListItemText.d.mts +12 -20
- package/ListItemText/ListItemText.d.ts +12 -20
- package/ListItemText/ListItemText.js +2 -20
- package/ListItemText/ListItemText.mjs +2 -20
- package/ListSubheader/ListSubheader.js +0 -3
- package/ListSubheader/ListSubheader.mjs +0 -3
- package/Menu/Menu.d.mts +1 -1
- package/Menu/Menu.d.ts +1 -1
- package/Menu/Menu.js +15 -32
- package/Menu/Menu.mjs +15 -32
- package/MenuItem/MenuItem.js +36 -26
- package/MenuItem/MenuItem.mjs +34 -26
- package/MenuList/MenuList.js +136 -101
- package/MenuList/MenuList.mjs +135 -100
- package/MenuList/MenuListContext.d.mts +11 -0
- package/MenuList/MenuListContext.d.ts +11 -0
- package/MenuList/MenuListContext.js +25 -0
- package/MenuList/MenuListContext.mjs +19 -0
- package/Modal/Modal.d.mts +1 -41
- package/Modal/Modal.d.ts +1 -41
- package/Modal/Modal.js +5 -58
- package/Modal/Modal.mjs +5 -58
- package/OutlinedInput/OutlinedInput.js +2 -14
- package/OutlinedInput/OutlinedInput.mjs +2 -14
- package/OutlinedInput/outlinedInputClasses.d.mts +0 -16
- package/OutlinedInput/outlinedInputClasses.d.ts +0 -16
- package/PaginationItem/PaginationItem.d.mts +5 -15
- package/PaginationItem/PaginationItem.d.ts +5 -15
- package/PaginationItem/PaginationItem.js +9 -24
- package/PaginationItem/PaginationItem.mjs +9 -24
- package/PaginationItem/paginationItemClasses.d.mts +0 -16
- package/PaginationItem/paginationItemClasses.d.ts +0 -16
- package/PaginationItem/paginationItemClasses.js +1 -1
- package/PaginationItem/paginationItemClasses.mjs +1 -1
- package/PigmentGrid/PigmentGrid.d.mts +1 -1
- package/PigmentGrid/PigmentGrid.d.ts +1 -1
- package/PigmentGrid/PigmentGrid.js +1 -1
- package/PigmentGrid/PigmentGrid.mjs +1 -1
- package/Popover/Popover.d.mts +1 -1
- package/Popover/Popover.d.ts +1 -1
- package/Popover/Popover.js +19 -7
- package/Popover/Popover.mjs +18 -6
- package/Radio/Radio.js +1 -13
- package/Radio/Radio.mjs +1 -13
- package/Rating/Rating.d.mts +0 -9
- package/Rating/Rating.d.ts +0 -9
- package/Rating/Rating.js +1 -17
- package/Rating/Rating.mjs +1 -17
- package/Select/SelectInput.js +2 -3
- package/Select/SelectInput.mjs +2 -3
- package/Select/selectClasses.d.mts +0 -12
- package/Select/selectClasses.d.ts +0 -12
- package/Select/selectClasses.js +1 -1
- package/Select/selectClasses.mjs +1 -1
- package/Slider/Slider.d.mts +0 -5
- package/Slider/Slider.d.ts +0 -5
- package/Slider/Slider.js +2 -8
- package/Slider/Slider.mjs +2 -8
- package/Slider/sliderClasses.d.mts +0 -28
- package/Slider/sliderClasses.d.ts +0 -28
- package/Slider/sliderClasses.js +1 -1
- package/Slider/sliderClasses.mjs +1 -1
- package/Snackbar/Snackbar.d.mts +1 -1
- package/Snackbar/Snackbar.d.ts +1 -1
- package/SpeedDial/SpeedDial.d.mts +1 -1
- package/SpeedDial/SpeedDial.d.ts +1 -1
- package/Stack/Stack.d.mts +2 -2
- package/Stack/Stack.d.ts +2 -2
- package/StepButton/StepButton.js +44 -14
- package/StepButton/StepButton.mjs +44 -14
- package/StepConnector/StepConnector.js +2 -8
- package/StepConnector/StepConnector.mjs +2 -8
- package/StepConnector/stepConnectorClasses.d.mts +0 -8
- package/StepConnector/stepConnectorClasses.d.ts +0 -8
- package/StepConnector/stepConnectorClasses.js +1 -1
- package/StepConnector/stepConnectorClasses.mjs +1 -1
- package/StepContent/StepContent.d.mts +2 -17
- package/StepContent/StepContent.d.ts +2 -17
- package/StepContent/StepContent.js +3 -22
- package/StepContent/StepContent.mjs +3 -22
- package/StepLabel/StepLabel.d.mts +0 -22
- package/StepLabel/StepLabel.d.ts +0 -22
- package/StepLabel/StepLabel.js +2 -31
- package/StepLabel/StepLabel.mjs +2 -31
- package/Stepper/Stepper.js +54 -22
- package/Stepper/Stepper.mjs +54 -22
- package/Stepper/StepperContext.d.mts +0 -5
- package/Stepper/StepperContext.d.ts +0 -5
- package/Stepper/StepperContext.js +1 -2
- package/Stepper/StepperContext.mjs +0 -1
- package/SvgIcon/createSvgIcon.d.mts +2 -0
- package/SvgIcon/createSvgIcon.d.ts +2 -0
- package/SvgIcon/createSvgIcon.js +31 -0
- package/SvgIcon/createSvgIcon.mjs +26 -0
- package/SvgIcon/index.d.mts +1 -0
- package/SvgIcon/index.d.ts +1 -0
- package/SvgIcon/index.js +8 -0
- package/SvgIcon/index.mjs +1 -0
- package/SwipeableDrawer/SwipeableDrawer.d.mts +0 -5
- package/SwipeableDrawer/SwipeableDrawer.d.ts +0 -5
- package/SwipeableDrawer/SwipeableDrawer.js +6 -37
- package/SwipeableDrawer/SwipeableDrawer.mjs +6 -37
- package/Switch/Switch.js +0 -11
- package/Switch/Switch.mjs +0 -11
- package/Tab/Tab.js +18 -4
- package/Tab/Tab.mjs +18 -4
- package/Tab/tabClasses.d.mts +0 -4
- package/Tab/tabClasses.d.ts +0 -4
- package/Tab/tabClasses.js +1 -1
- package/Tab/tabClasses.mjs +1 -1
- package/TabScrollButton/TabScrollButton.d.mts +1 -1
- package/TabScrollButton/TabScrollButton.d.ts +1 -1
- package/TabScrollButton/TabScrollButton.js +6 -2
- package/TabScrollButton/TabScrollButton.mjs +6 -2
- package/TablePagination/TablePagination.d.mts +0 -24
- package/TablePagination/TablePagination.d.ts +0 -24
- package/TablePagination/TablePagination.js +1 -29
- package/TablePagination/TablePagination.mjs +1 -29
- package/TablePaginationActions/TablePaginationActions.d.mts +0 -10
- package/TablePaginationActions/TablePaginationActions.d.ts +0 -10
- package/TablePaginationActions/TablePaginationActions.js +2 -14
- package/TablePaginationActions/TablePaginationActions.mjs +2 -14
- package/TableSortLabel/TableSortLabel.js +6 -8
- package/TableSortLabel/TableSortLabel.mjs +6 -8
- package/TableSortLabel/tableSortLabelClasses.d.mts +0 -8
- package/TableSortLabel/tableSortLabelClasses.d.ts +0 -8
- package/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/TableSortLabel/tableSortLabelClasses.mjs +1 -1
- package/Tabs/Tabs.js +33 -24
- package/Tabs/Tabs.mjs +32 -23
- package/Tabs/tabsClasses.d.mts +0 -6
- package/Tabs/tabsClasses.d.ts +0 -6
- package/Tabs/tabsClasses.js +1 -1
- package/Tabs/tabsClasses.mjs +1 -1
- package/ToggleButton/ToggleButton.js +1 -0
- package/ToggleButton/ToggleButton.mjs +1 -0
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -4
- package/ToggleButtonGroup/ToggleButtonGroup.mjs +1 -4
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.mts +0 -8
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +0 -8
- package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.mjs +1 -1
- package/Tooltip/Tooltip.d.mts +1 -1
- package/Tooltip/Tooltip.d.ts +1 -1
- package/Typography/Typography.d.mts +3 -3
- package/Typography/Typography.d.ts +3 -3
- package/Typography/Typography.js +2 -24
- package/Typography/Typography.mjs +3 -25
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internal/SwitchBase.d.mts +2 -12
- package/internal/SwitchBase.d.ts +2 -12
- package/internal/SwitchBase.js +6 -17
- package/internal/SwitchBase.mjs +6 -17
- package/locale/psAF.js +1 -1
- package/locale/psAF.mjs +1 -1
- package/package.json +7 -7
- package/styles/createThemeWithVars.js +10 -9
- package/styles/createThemeWithVars.mjs +10 -9
- package/styles/stringifyTheme.js +1 -1
- package/styles/stringifyTheme.mjs +1 -1
- package/useAutocomplete/useAutocomplete.js +8 -0
- package/useAutocomplete/useAutocomplete.mjs +8 -0
- package/utils/createSvgIcon.d.mts +4 -2
- package/utils/createSvgIcon.d.ts +4 -2
- package/utils/createSvgIcon.js +6 -24
- package/utils/createSvgIcon.mjs +2 -24
- package/utils/focusWithVisible.js +24 -0
- package/utils/focusWithVisible.mjs +19 -0
- package/utils/index.d.mts +0 -1
- package/utils/index.d.ts +0 -1
- package/utils/index.js +0 -7
- package/utils/index.mjs +0 -1
- package/utils/useFocusableWhenDisabled.d.mts +30 -0
- package/utils/useFocusableWhenDisabled.d.ts +30 -0
- package/utils/useFocusableWhenDisabled.js +47 -0
- package/utils/useFocusableWhenDisabled.mjs +41 -0
- package/utils/useRovingTabIndex.d.mts +1 -2
- package/utils/useRovingTabIndex.d.ts +1 -2
- package/utils/useRovingTabIndex.js +25 -4
- package/utils/useRovingTabIndex.mjs +1 -2
- package/version/index.js +2 -2
- package/version/index.mjs +2 -2
package/Drawer/Drawer.mjs
CHANGED
|
@@ -34,7 +34,7 @@ const useUtilityClasses = ownerState => {
|
|
|
34
34
|
root: ['root', `anchor${capitalize(anchor)}`],
|
|
35
35
|
docked: [(variant === 'permanent' || variant === 'persistent') && 'docked'],
|
|
36
36
|
modal: ['modal'],
|
|
37
|
-
paper: ['paper'
|
|
37
|
+
paper: ['paper']
|
|
38
38
|
};
|
|
39
39
|
return composeClasses(slots, getDrawerUtilityClass, classes);
|
|
40
40
|
};
|
|
@@ -60,10 +60,7 @@ const DrawerPaper = styled(Paper, {
|
|
|
60
60
|
name: 'MuiDrawer',
|
|
61
61
|
slot: 'Paper',
|
|
62
62
|
overridesResolver: (props, styles) => {
|
|
63
|
-
|
|
64
|
-
ownerState
|
|
65
|
-
} = props;
|
|
66
|
-
return [styles.paper, styles[`paperAnchor${capitalize(ownerState.anchor)}`], ownerState.variant !== 'temporary' && styles[`paperAnchorDocked${capitalize(ownerState.anchor)}`]];
|
|
63
|
+
return [styles.paper];
|
|
67
64
|
}
|
|
68
65
|
})(memoTheme(({
|
|
69
66
|
theme
|
|
@@ -182,21 +179,13 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
182
179
|
};
|
|
183
180
|
const {
|
|
184
181
|
anchor: anchorProp = 'left',
|
|
185
|
-
BackdropProps,
|
|
186
182
|
children,
|
|
187
183
|
className,
|
|
188
184
|
elevation = 16,
|
|
189
185
|
hideBackdrop = false,
|
|
190
|
-
ModalProps
|
|
191
|
-
BackdropProps: BackdropPropsProp,
|
|
192
|
-
...ModalProps
|
|
193
|
-
} = {},
|
|
186
|
+
ModalProps = {},
|
|
194
187
|
onClose,
|
|
195
188
|
open = false,
|
|
196
|
-
PaperProps = {},
|
|
197
|
-
SlideProps,
|
|
198
|
-
// eslint-disable-next-line react/prop-types
|
|
199
|
-
TransitionComponent,
|
|
200
189
|
transitionDuration = defaultTransitionDuration,
|
|
201
190
|
variant = 'temporary',
|
|
202
191
|
slots = {},
|
|
@@ -225,18 +214,10 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
225
214
|
};
|
|
226
215
|
const classes = useUtilityClasses(ownerState);
|
|
227
216
|
const externalForwardedProps = {
|
|
228
|
-
slots
|
|
229
|
-
transition: TransitionComponent,
|
|
230
|
-
...slots
|
|
231
|
-
},
|
|
217
|
+
slots,
|
|
232
218
|
slotProps: {
|
|
233
|
-
paper: PaperProps,
|
|
234
|
-
transition: SlideProps,
|
|
235
219
|
...slotProps,
|
|
236
|
-
backdrop: mergeSlotProps(slotProps.backdrop
|
|
237
|
-
...BackdropProps,
|
|
238
|
-
...BackdropPropsProp
|
|
239
|
-
}, {
|
|
220
|
+
backdrop: mergeSlotProps(slotProps.backdrop, {
|
|
240
221
|
transitionDuration
|
|
241
222
|
})
|
|
242
223
|
}
|
|
@@ -267,7 +248,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
267
248
|
const [PaperSlot, paperSlotProps] = useSlot('paper', {
|
|
268
249
|
elementType: DrawerPaper,
|
|
269
250
|
shouldForwardComponentProp: true,
|
|
270
|
-
className:
|
|
251
|
+
className: classes.paper,
|
|
271
252
|
ownerState,
|
|
272
253
|
externalForwardedProps,
|
|
273
254
|
additionalProps: {
|
|
@@ -335,10 +316,6 @@ process.env.NODE_ENV !== "production" ? Drawer.propTypes /* remove-proptypes */
|
|
|
335
316
|
* @default 'left'
|
|
336
317
|
*/
|
|
337
318
|
anchor: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),
|
|
338
|
-
/**
|
|
339
|
-
* @ignore
|
|
340
|
-
*/
|
|
341
|
-
BackdropProps: PropTypes.object,
|
|
342
319
|
/**
|
|
343
320
|
* The content of the component.
|
|
344
321
|
*/
|
|
@@ -379,17 +356,6 @@ process.env.NODE_ENV !== "production" ? Drawer.propTypes /* remove-proptypes */
|
|
|
379
356
|
* @default false
|
|
380
357
|
*/
|
|
381
358
|
open: PropTypes.bool,
|
|
382
|
-
/**
|
|
383
|
-
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
384
|
-
* @deprecated use the `slotProps.paper` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
385
|
-
* @default {}
|
|
386
|
-
*/
|
|
387
|
-
PaperProps: PropTypes.object,
|
|
388
|
-
/**
|
|
389
|
-
* Props applied to the [`Slide`](https://mui.com/material-ui/api/slide/) element.
|
|
390
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
391
|
-
*/
|
|
392
|
-
SlideProps: PropTypes.object,
|
|
393
359
|
/**
|
|
394
360
|
* The props used for each slot inside.
|
|
395
361
|
* @default {}
|
|
@@ -13,38 +13,6 @@ export interface DrawerClasses {
|
|
|
13
13
|
anchorTop: string;
|
|
14
14
|
/** Styles applied to the root element if `anchor="bottom"`. */
|
|
15
15
|
anchorBottom: string;
|
|
16
|
-
/** Styles applied to the Paper component if `anchor="left"`.
|
|
17
|
-
* @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
18
|
-
*/
|
|
19
|
-
paperAnchorLeft: string;
|
|
20
|
-
/** Styles applied to the Paper component if `anchor="right"`.
|
|
21
|
-
* @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
22
|
-
*/
|
|
23
|
-
paperAnchorRight: string;
|
|
24
|
-
/** Styles applied to the Paper component if `anchor="top"`.
|
|
25
|
-
* @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
26
|
-
*/
|
|
27
|
-
paperAnchorTop: string;
|
|
28
|
-
/** Styles applied to the Paper component if `anchor="bottom"`.
|
|
29
|
-
* @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
30
|
-
*/
|
|
31
|
-
paperAnchorBottom: string;
|
|
32
|
-
/** Styles applied to the Paper component if `anchor="left"` and `variant` is not "temporary".
|
|
33
|
-
* @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
34
|
-
*/
|
|
35
|
-
paperAnchorDockedLeft: string;
|
|
36
|
-
/** Styles applied to the Paper component if `anchor="top"` and `variant` is not "temporary".
|
|
37
|
-
* @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
38
|
-
*/
|
|
39
|
-
paperAnchorDockedTop: string;
|
|
40
|
-
/** Styles applied to the Paper component if `anchor="right"` and `variant` is not "temporary".
|
|
41
|
-
* @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
42
|
-
*/
|
|
43
|
-
paperAnchorDockedRight: string;
|
|
44
|
-
/** Styles applied to the Paper component if `anchor="bottom"` and `variant` is not "temporary".
|
|
45
|
-
* @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
46
|
-
*/
|
|
47
|
-
paperAnchorDockedBottom: string;
|
|
48
16
|
/** Styles applied to the Modal component. */
|
|
49
17
|
modal: string;
|
|
50
18
|
}
|
|
@@ -13,38 +13,6 @@ export interface DrawerClasses {
|
|
|
13
13
|
anchorTop: string;
|
|
14
14
|
/** Styles applied to the root element if `anchor="bottom"`. */
|
|
15
15
|
anchorBottom: string;
|
|
16
|
-
/** Styles applied to the Paper component if `anchor="left"`.
|
|
17
|
-
* @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
18
|
-
*/
|
|
19
|
-
paperAnchorLeft: string;
|
|
20
|
-
/** Styles applied to the Paper component if `anchor="right"`.
|
|
21
|
-
* @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
22
|
-
*/
|
|
23
|
-
paperAnchorRight: string;
|
|
24
|
-
/** Styles applied to the Paper component if `anchor="top"`.
|
|
25
|
-
* @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
26
|
-
*/
|
|
27
|
-
paperAnchorTop: string;
|
|
28
|
-
/** Styles applied to the Paper component if `anchor="bottom"`.
|
|
29
|
-
* @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
30
|
-
*/
|
|
31
|
-
paperAnchorBottom: string;
|
|
32
|
-
/** Styles applied to the Paper component if `anchor="left"` and `variant` is not "temporary".
|
|
33
|
-
* @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
34
|
-
*/
|
|
35
|
-
paperAnchorDockedLeft: string;
|
|
36
|
-
/** Styles applied to the Paper component if `anchor="top"` and `variant` is not "temporary".
|
|
37
|
-
* @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
38
|
-
*/
|
|
39
|
-
paperAnchorDockedTop: string;
|
|
40
|
-
/** Styles applied to the Paper component if `anchor="right"` and `variant` is not "temporary".
|
|
41
|
-
* @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
42
|
-
*/
|
|
43
|
-
paperAnchorDockedRight: string;
|
|
44
|
-
/** Styles applied to the Paper component if `anchor="bottom"` and `variant` is not "temporary".
|
|
45
|
-
* @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
46
|
-
*/
|
|
47
|
-
paperAnchorDockedBottom: string;
|
|
48
16
|
/** Styles applied to the Modal component. */
|
|
49
17
|
modal: string;
|
|
50
18
|
}
|
package/Drawer/drawerClasses.js
CHANGED
|
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
|
|
|
11
11
|
function getDrawerUtilityClass(slot) {
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiDrawer', slot);
|
|
13
13
|
}
|
|
14
|
-
const drawerClasses = (0, _generateUtilityClasses.default)('MuiDrawer', ['root', 'docked', 'paper', 'anchorLeft', 'anchorRight', 'anchorTop', 'anchorBottom', '
|
|
14
|
+
const drawerClasses = (0, _generateUtilityClasses.default)('MuiDrawer', ['root', 'docked', 'paper', 'anchorLeft', 'anchorRight', 'anchorTop', 'anchorBottom', 'modal']);
|
|
15
15
|
var _default = exports.default = drawerClasses;
|
package/Drawer/drawerClasses.mjs
CHANGED
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getDrawerUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiDrawer', slot);
|
|
5
5
|
}
|
|
6
|
-
const drawerClasses = generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'anchorLeft', 'anchorRight', 'anchorTop', 'anchorBottom', '
|
|
6
|
+
const drawerClasses = generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'anchorLeft', 'anchorRight', 'anchorTop', 'anchorBottom', 'modal']);
|
|
7
7
|
export default drawerClasses;
|
package/Fab/Fab.js
CHANGED
|
@@ -197,6 +197,7 @@ const Fab = /*#__PURE__*/React.forwardRef(function Fab(inProps, ref) {
|
|
|
197
197
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(FabRoot, {
|
|
198
198
|
className: (0, _clsx.default)(classes.root, className),
|
|
199
199
|
component: component,
|
|
200
|
+
internalNativeButton: true,
|
|
200
201
|
disabled: disabled,
|
|
201
202
|
focusRipple: !disableFocusRipple,
|
|
202
203
|
focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName),
|
package/Fab/Fab.mjs
CHANGED
|
@@ -190,6 +190,7 @@ const Fab = /*#__PURE__*/React.forwardRef(function Fab(inProps, ref) {
|
|
|
190
190
|
return /*#__PURE__*/_jsx(FabRoot, {
|
|
191
191
|
className: clsx(classes.root, className),
|
|
192
192
|
component: component,
|
|
193
|
+
internalNativeButton: true,
|
|
193
194
|
disabled: disabled,
|
|
194
195
|
focusRipple: !disableFocusRipple,
|
|
195
196
|
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
@@ -115,7 +115,7 @@ const FilledInputRoot = (0, _zeroStyled.styled)(_InputBase2.InputBaseRoot, {
|
|
|
115
115
|
borderBottom: `1px solid ${theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, theme.vars.opacity.inputUnderline) : bottomLineColor}`,
|
|
116
116
|
left: 0,
|
|
117
117
|
bottom: 0,
|
|
118
|
-
content: '"
|
|
118
|
+
content: '""',
|
|
119
119
|
position: 'absolute',
|
|
120
120
|
right: 0,
|
|
121
121
|
transition: theme.transitions.create('border-bottom-color', {
|
|
@@ -280,8 +280,6 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
|
|
|
280
280
|
});
|
|
281
281
|
const {
|
|
282
282
|
disableUnderline = false,
|
|
283
|
-
components = {},
|
|
284
|
-
componentsProps: componentsPropsProp,
|
|
285
283
|
fullWidth = false,
|
|
286
284
|
hiddenLabel,
|
|
287
285
|
// declare here to prevent spreading to DOM
|
|
@@ -309,9 +307,9 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
|
|
|
309
307
|
ownerState
|
|
310
308
|
}
|
|
311
309
|
};
|
|
312
|
-
const componentsProps = slotProps
|
|
313
|
-
const RootSlot = slots.root ??
|
|
314
|
-
const InputSlot = slots.input ??
|
|
310
|
+
const componentsProps = slotProps ? (0, _deepmerge.default)(filledInputComponentsProps, slotProps) : filledInputComponentsProps;
|
|
311
|
+
const RootSlot = slots.root ?? FilledInputRoot;
|
|
312
|
+
const InputSlot = slots.input ?? FilledInputInput;
|
|
315
313
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputBase.default, {
|
|
316
314
|
slots: {
|
|
317
315
|
root: RootSlot,
|
|
@@ -353,29 +351,6 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
353
351
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
354
352
|
*/
|
|
355
353
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary']), _propTypes.default.string]),
|
|
356
|
-
/**
|
|
357
|
-
* The components used for each slot inside.
|
|
358
|
-
*
|
|
359
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
360
|
-
*
|
|
361
|
-
* @default {}
|
|
362
|
-
*/
|
|
363
|
-
components: _propTypes.default.shape({
|
|
364
|
-
Input: _propTypes.default.elementType,
|
|
365
|
-
Root: _propTypes.default.elementType
|
|
366
|
-
}),
|
|
367
|
-
/**
|
|
368
|
-
* The extra props for the slot components.
|
|
369
|
-
* You can override the existing props or add new ones.
|
|
370
|
-
*
|
|
371
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
372
|
-
*
|
|
373
|
-
* @default {}
|
|
374
|
-
*/
|
|
375
|
-
componentsProps: _propTypes.default.shape({
|
|
376
|
-
input: _propTypes.default.object,
|
|
377
|
-
root: _propTypes.default.object
|
|
378
|
-
}),
|
|
379
354
|
/**
|
|
380
355
|
* The default value. Use when the component is not controlled.
|
|
381
356
|
*/
|
|
@@ -482,8 +457,6 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
482
457
|
* The extra props for the slot components.
|
|
483
458
|
* You can override the existing props or add new ones.
|
|
484
459
|
*
|
|
485
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
486
|
-
*
|
|
487
460
|
* @default {}
|
|
488
461
|
*/
|
|
489
462
|
slotProps: _propTypes.default.shape({
|
|
@@ -493,8 +466,6 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
493
466
|
/**
|
|
494
467
|
* The components used for each slot inside.
|
|
495
468
|
*
|
|
496
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
497
|
-
*
|
|
498
469
|
* @default {}
|
|
499
470
|
*/
|
|
500
471
|
slots: _propTypes.default.shape({
|
|
@@ -108,7 +108,7 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
108
108
|
borderBottom: `1px solid ${theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, theme.vars.opacity.inputUnderline) : bottomLineColor}`,
|
|
109
109
|
left: 0,
|
|
110
110
|
bottom: 0,
|
|
111
|
-
content: '"
|
|
111
|
+
content: '""',
|
|
112
112
|
position: 'absolute',
|
|
113
113
|
right: 0,
|
|
114
114
|
transition: theme.transitions.create('border-bottom-color', {
|
|
@@ -273,8 +273,6 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
|
|
|
273
273
|
});
|
|
274
274
|
const {
|
|
275
275
|
disableUnderline = false,
|
|
276
|
-
components = {},
|
|
277
|
-
componentsProps: componentsPropsProp,
|
|
278
276
|
fullWidth = false,
|
|
279
277
|
hiddenLabel,
|
|
280
278
|
// declare here to prevent spreading to DOM
|
|
@@ -302,9 +300,9 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
|
|
|
302
300
|
ownerState
|
|
303
301
|
}
|
|
304
302
|
};
|
|
305
|
-
const componentsProps = slotProps
|
|
306
|
-
const RootSlot = slots.root ??
|
|
307
|
-
const InputSlot = slots.input ??
|
|
303
|
+
const componentsProps = slotProps ? deepmerge(filledInputComponentsProps, slotProps) : filledInputComponentsProps;
|
|
304
|
+
const RootSlot = slots.root ?? FilledInputRoot;
|
|
305
|
+
const InputSlot = slots.input ?? FilledInputInput;
|
|
308
306
|
return /*#__PURE__*/_jsx(InputBase, {
|
|
309
307
|
slots: {
|
|
310
308
|
root: RootSlot,
|
|
@@ -346,29 +344,6 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
346
344
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
347
345
|
*/
|
|
348
346
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
|
|
349
|
-
/**
|
|
350
|
-
* The components used for each slot inside.
|
|
351
|
-
*
|
|
352
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
353
|
-
*
|
|
354
|
-
* @default {}
|
|
355
|
-
*/
|
|
356
|
-
components: PropTypes.shape({
|
|
357
|
-
Input: PropTypes.elementType,
|
|
358
|
-
Root: PropTypes.elementType
|
|
359
|
-
}),
|
|
360
|
-
/**
|
|
361
|
-
* The extra props for the slot components.
|
|
362
|
-
* You can override the existing props or add new ones.
|
|
363
|
-
*
|
|
364
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
365
|
-
*
|
|
366
|
-
* @default {}
|
|
367
|
-
*/
|
|
368
|
-
componentsProps: PropTypes.shape({
|
|
369
|
-
input: PropTypes.object,
|
|
370
|
-
root: PropTypes.object
|
|
371
|
-
}),
|
|
372
347
|
/**
|
|
373
348
|
* The default value. Use when the component is not controlled.
|
|
374
349
|
*/
|
|
@@ -475,8 +450,6 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
475
450
|
* The extra props for the slot components.
|
|
476
451
|
* You can override the existing props or add new ones.
|
|
477
452
|
*
|
|
478
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
479
|
-
*
|
|
480
453
|
* @default {}
|
|
481
454
|
*/
|
|
482
455
|
slotProps: PropTypes.shape({
|
|
@@ -486,8 +459,6 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
486
459
|
/**
|
|
487
460
|
* The components used for each slot inside.
|
|
488
461
|
*
|
|
489
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
490
|
-
*
|
|
491
462
|
* @default {}
|
|
492
463
|
*/
|
|
493
464
|
slots: PropTypes.shape({
|
package/Grid/Grid.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { SxProps } from '@mui/system';
|
|
|
2
2
|
import { OverridableComponent, OverrideProps } from '@mui/types';
|
|
3
3
|
import { Theme, Breakpoint } from "../styles/index.mjs";
|
|
4
4
|
type ResponsiveStyleValue<T> = T | Array<T | null> | { [key in Breakpoint]?: T | null };
|
|
5
|
-
export type GridDirection = 'row' | 'row-reverse'
|
|
5
|
+
export type GridDirection = 'row' | 'row-reverse';
|
|
6
6
|
export type GridSpacing = number | string;
|
|
7
7
|
export type GridWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
8
8
|
export type GridSize = 'auto' | 'grow' | number | false;
|
|
@@ -29,8 +29,13 @@ export interface GridBaseProps {
|
|
|
29
29
|
*/
|
|
30
30
|
container?: boolean | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Defines the `flex-direction` style property.
|
|
33
|
-
*
|
|
32
|
+
* Defines the `flex-direction` style property for the container.
|
|
33
|
+
*
|
|
34
|
+
* ⚠️ Only `row` and `row-reverse` are supported. `column` and `column-reverse` are not supported,
|
|
35
|
+
* because the Grid component is designed to subdivide layouts into **columns**, not rows.
|
|
36
|
+
*
|
|
37
|
+
* For vertical layouts, use `Stack` instead.
|
|
38
|
+
*
|
|
34
39
|
* @default 'row'
|
|
35
40
|
*/
|
|
36
41
|
direction?: ResponsiveStyleValue<GridDirection> | undefined;
|
package/Grid/Grid.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SxProps } from '@mui/system';
|
|
|
2
2
|
import { OverridableComponent, OverrideProps } from '@mui/types';
|
|
3
3
|
import { Theme, Breakpoint } from "../styles/index.js";
|
|
4
4
|
type ResponsiveStyleValue<T> = T | Array<T | null> | { [key in Breakpoint]?: T | null };
|
|
5
|
-
export type GridDirection = 'row' | 'row-reverse'
|
|
5
|
+
export type GridDirection = 'row' | 'row-reverse';
|
|
6
6
|
export type GridSpacing = number | string;
|
|
7
7
|
export type GridWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
8
8
|
export type GridSize = 'auto' | 'grow' | number | false;
|
|
@@ -29,8 +29,13 @@ export interface GridBaseProps {
|
|
|
29
29
|
*/
|
|
30
30
|
container?: boolean | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Defines the `flex-direction` style property.
|
|
33
|
-
*
|
|
32
|
+
* Defines the `flex-direction` style property for the container.
|
|
33
|
+
*
|
|
34
|
+
* ⚠️ Only `row` and `row-reverse` are supported. `column` and `column-reverse` are not supported,
|
|
35
|
+
* because the Grid component is designed to subdivide layouts into **columns**, not rows.
|
|
36
|
+
*
|
|
37
|
+
* For vertical layouts, use `Stack` instead.
|
|
38
|
+
*
|
|
34
39
|
* @default 'row'
|
|
35
40
|
*/
|
|
36
41
|
direction?: ResponsiveStyleValue<GridDirection> | undefined;
|
package/Grid/Grid.js
CHANGED
|
@@ -66,11 +66,16 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes /* remove-proptypes */ =
|
|
|
66
66
|
*/
|
|
67
67
|
container: _propTypes.default.bool,
|
|
68
68
|
/**
|
|
69
|
-
* Defines the `flex-direction` style property.
|
|
70
|
-
*
|
|
69
|
+
* Defines the `flex-direction` style property for the container.
|
|
70
|
+
*
|
|
71
|
+
* ⚠️ Only `row` and `row-reverse` are supported. `column` and `column-reverse` are not supported,
|
|
72
|
+
* because the Grid component is designed to subdivide layouts into **columns**, not rows.
|
|
73
|
+
*
|
|
74
|
+
* For vertical layouts, use `Stack` instead.
|
|
75
|
+
*
|
|
71
76
|
* @default 'row'
|
|
72
77
|
*/
|
|
73
|
-
direction: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['
|
|
78
|
+
direction: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['row-reverse', 'row']), _propTypes.default.arrayOf(_propTypes.default.oneOf(['row-reverse', 'row'])), _propTypes.default.object]),
|
|
74
79
|
/**
|
|
75
80
|
* Defines the offset value for the type `item` components.
|
|
76
81
|
*/
|
package/Grid/Grid.mjs
CHANGED
|
@@ -60,11 +60,16 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes /* remove-proptypes */ =
|
|
|
60
60
|
*/
|
|
61
61
|
container: PropTypes.bool,
|
|
62
62
|
/**
|
|
63
|
-
* Defines the `flex-direction` style property.
|
|
64
|
-
*
|
|
63
|
+
* Defines the `flex-direction` style property for the container.
|
|
64
|
+
*
|
|
65
|
+
* ⚠️ Only `row` and `row-reverse` are supported. `column` and `column-reverse` are not supported,
|
|
66
|
+
* because the Grid component is designed to subdivide layouts into **columns**, not rows.
|
|
67
|
+
*
|
|
68
|
+
* For vertical layouts, use `Stack` instead.
|
|
69
|
+
*
|
|
65
70
|
* @default 'row'
|
|
66
71
|
*/
|
|
67
|
-
direction: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['
|
|
72
|
+
direction: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['row-reverse', 'row'])), PropTypes.object]),
|
|
68
73
|
/**
|
|
69
74
|
* Defines the offset value for the type `item` components.
|
|
70
75
|
*/
|
package/Grid/gridClasses.js
CHANGED
|
@@ -12,7 +12,7 @@ function getGridUtilityClass(slot) {
|
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiGrid', slot);
|
|
13
13
|
}
|
|
14
14
|
const SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
15
|
-
const DIRECTIONS = ['
|
|
15
|
+
const DIRECTIONS = ['row-reverse', 'row'];
|
|
16
16
|
const WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];
|
|
17
17
|
const GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
18
18
|
const gridClasses = (0, _generateUtilityClasses.default)('MuiGrid', ['root', 'container',
|
package/Grid/gridClasses.mjs
CHANGED
|
@@ -4,7 +4,7 @@ export function getGridUtilityClass(slot) {
|
|
|
4
4
|
return generateUtilityClass('MuiGrid', slot);
|
|
5
5
|
}
|
|
6
6
|
const SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
7
|
-
const DIRECTIONS = ['
|
|
7
|
+
const DIRECTIONS = ['row-reverse', 'row'];
|
|
8
8
|
const WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];
|
|
9
9
|
const GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
10
10
|
const gridClasses = generateUtilityClasses('MuiGrid', ['root', 'container',
|
package/IconButton/IconButton.js
CHANGED
|
@@ -219,6 +219,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
|
219
219
|
id: loading ? loadingId : idProp,
|
|
220
220
|
className: (0, _clsx.default)(classes.root, className),
|
|
221
221
|
centerRipple: true,
|
|
222
|
+
internalNativeButton: true,
|
|
222
223
|
focusRipple: !disableFocusRipple,
|
|
223
224
|
disabled: disabled || loading,
|
|
224
225
|
ref: ref,
|
|
@@ -212,6 +212,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
|
212
212
|
id: loading ? loadingId : idProp,
|
|
213
213
|
className: clsx(classes.root, className),
|
|
214
214
|
centerRipple: true,
|
|
215
|
+
internalNativeButton: true,
|
|
215
216
|
focusRipple: !disableFocusRipple,
|
|
216
217
|
disabled: disabled || loading,
|
|
217
218
|
ref: ref,
|
|
@@ -21,15 +21,14 @@ const useUtilityClasses = ownerState => {
|
|
|
21
21
|
const {
|
|
22
22
|
classes,
|
|
23
23
|
position,
|
|
24
|
-
actionIcon,
|
|
25
24
|
actionPosition
|
|
26
25
|
} = ownerState;
|
|
27
26
|
const slots = {
|
|
28
27
|
root: ['root', `position${(0, _capitalize.default)(position)}`, `actionPosition${(0, _capitalize.default)(actionPosition)}`],
|
|
29
|
-
titleWrap: ['titleWrap'
|
|
28
|
+
titleWrap: ['titleWrap'],
|
|
30
29
|
title: ['title'],
|
|
31
30
|
subtitle: ['subtitle'],
|
|
32
|
-
actionIcon: ['actionIcon'
|
|
31
|
+
actionIcon: ['actionIcon']
|
|
33
32
|
};
|
|
34
33
|
return (0, _composeClasses.default)(slots, _imageListItemBarClasses.getImageListItemBarUtilityClass, classes);
|
|
35
34
|
};
|
|
@@ -81,13 +80,7 @@ const ImageListItemBarRoot = (0, _zeroStyled.styled)('div', {
|
|
|
81
80
|
}));
|
|
82
81
|
const ImageListItemBarTitleWrap = (0, _zeroStyled.styled)('div', {
|
|
83
82
|
name: 'MuiImageListItemBar',
|
|
84
|
-
slot: 'TitleWrap'
|
|
85
|
-
overridesResolver: (props, styles) => {
|
|
86
|
-
const {
|
|
87
|
-
ownerState
|
|
88
|
-
} = props;
|
|
89
|
-
return [styles.titleWrap, styles[`titleWrap${(0, _capitalize.default)(ownerState.position)}`], ownerState.actionIcon && styles[`titleWrapActionPos${(0, _capitalize.default)(ownerState.actionPosition)}`]];
|
|
90
|
-
}
|
|
83
|
+
slot: 'TitleWrap'
|
|
91
84
|
})((0, _memoTheme.default)(({
|
|
92
85
|
theme
|
|
93
86
|
}) => {
|
|
@@ -151,13 +144,7 @@ const ImageListItemBarSubtitle = (0, _zeroStyled.styled)('div', {
|
|
|
151
144
|
}));
|
|
152
145
|
const ImageListItemBarActionIcon = (0, _zeroStyled.styled)('div', {
|
|
153
146
|
name: 'MuiImageListItemBar',
|
|
154
|
-
slot: 'ActionIcon'
|
|
155
|
-
overridesResolver: (props, styles) => {
|
|
156
|
-
const {
|
|
157
|
-
ownerState
|
|
158
|
-
} = props;
|
|
159
|
-
return [styles.actionIcon, styles[`actionIconActionPos${(0, _capitalize.default)(ownerState.actionPosition)}`]];
|
|
160
|
-
}
|
|
147
|
+
slot: 'ActionIcon'
|
|
161
148
|
})({
|
|
162
149
|
variants: [{
|
|
163
150
|
props: {
|
|
@@ -14,15 +14,14 @@ const useUtilityClasses = ownerState => {
|
|
|
14
14
|
const {
|
|
15
15
|
classes,
|
|
16
16
|
position,
|
|
17
|
-
actionIcon,
|
|
18
17
|
actionPosition
|
|
19
18
|
} = ownerState;
|
|
20
19
|
const slots = {
|
|
21
20
|
root: ['root', `position${capitalize(position)}`, `actionPosition${capitalize(actionPosition)}`],
|
|
22
|
-
titleWrap: ['titleWrap'
|
|
21
|
+
titleWrap: ['titleWrap'],
|
|
23
22
|
title: ['title'],
|
|
24
23
|
subtitle: ['subtitle'],
|
|
25
|
-
actionIcon: ['actionIcon'
|
|
24
|
+
actionIcon: ['actionIcon']
|
|
26
25
|
};
|
|
27
26
|
return composeClasses(slots, getImageListItemBarUtilityClass, classes);
|
|
28
27
|
};
|
|
@@ -74,13 +73,7 @@ const ImageListItemBarRoot = styled('div', {
|
|
|
74
73
|
}));
|
|
75
74
|
const ImageListItemBarTitleWrap = styled('div', {
|
|
76
75
|
name: 'MuiImageListItemBar',
|
|
77
|
-
slot: 'TitleWrap'
|
|
78
|
-
overridesResolver: (props, styles) => {
|
|
79
|
-
const {
|
|
80
|
-
ownerState
|
|
81
|
-
} = props;
|
|
82
|
-
return [styles.titleWrap, styles[`titleWrap${capitalize(ownerState.position)}`], ownerState.actionIcon && styles[`titleWrapActionPos${capitalize(ownerState.actionPosition)}`]];
|
|
83
|
-
}
|
|
76
|
+
slot: 'TitleWrap'
|
|
84
77
|
})(memoTheme(({
|
|
85
78
|
theme
|
|
86
79
|
}) => {
|
|
@@ -144,13 +137,7 @@ const ImageListItemBarSubtitle = styled('div', {
|
|
|
144
137
|
}));
|
|
145
138
|
const ImageListItemBarActionIcon = styled('div', {
|
|
146
139
|
name: 'MuiImageListItemBar',
|
|
147
|
-
slot: 'ActionIcon'
|
|
148
|
-
overridesResolver: (props, styles) => {
|
|
149
|
-
const {
|
|
150
|
-
ownerState
|
|
151
|
-
} = props;
|
|
152
|
-
return [styles.actionIcon, styles[`actionIconActionPos${capitalize(ownerState.actionPosition)}`]];
|
|
153
|
-
}
|
|
140
|
+
slot: 'ActionIcon'
|
|
154
141
|
})({
|
|
155
142
|
variants: [{
|
|
156
143
|
props: {
|
|
@@ -13,28 +13,12 @@ export interface ImageListItemBarClasses {
|
|
|
13
13
|
actionPositionRight: string;
|
|
14
14
|
/** Styles applied to the title and subtitle container element. */
|
|
15
15
|
titleWrap: string;
|
|
16
|
-
/** Styles applied to the title and subtitle container element if `position="below"`.
|
|
17
|
-
* @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-titleWrap) and [.MuiImageListItemBar-positionBelow](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-positionBelow) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
18
|
-
*/
|
|
19
|
-
titleWrapBelow: string;
|
|
20
|
-
/** Styles applied to the container element if `actionPosition="left"`.
|
|
21
|
-
* @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-titleWrap) and [.MuiImageListItemBar-actionPositionLeft](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-actionPositionLeft) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
22
|
-
*/
|
|
23
|
-
titleWrapActionPosLeft: string;
|
|
24
|
-
/** Styles applied to the container element if `actionPosition="right"`.
|
|
25
|
-
* @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-titleWrap) and [.MuiImageListItemBar-actionPositionRight](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-actionPositionRight) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
26
|
-
*/
|
|
27
|
-
titleWrapActionPosRight: string;
|
|
28
16
|
/** Styles applied to the title container element. */
|
|
29
17
|
title: string;
|
|
30
18
|
/** Styles applied to the subtitle container element. */
|
|
31
19
|
subtitle: string;
|
|
32
20
|
/** Styles applied to the actionIcon if supplied. */
|
|
33
21
|
actionIcon: string;
|
|
34
|
-
/** Styles applied to the actionIcon if `actionPosition="left"`.
|
|
35
|
-
* @deprecated Combine the [.MuiImageListItemBar-actionIcon](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-actionIcon) and [.MuiImageListItemBar-actionPositionLeft](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-actionPositionLeft) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
36
|
-
*/
|
|
37
|
-
actionIconActionPosLeft: string;
|
|
38
22
|
}
|
|
39
23
|
export type ImageListItemBarClassKey = keyof ImageListItemBarClasses;
|
|
40
24
|
export declare function getImageListItemBarUtilityClass(slot: string): string;
|