@mui/material 5.14.6 → 5.14.8

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.
Files changed (118) hide show
  1. package/Accordion/Accordion.d.ts +2 -2
  2. package/AccordionSummary/AccordionSummary.d.ts +22 -20
  3. package/AppBar/AppBar.d.ts +33 -31
  4. package/Avatar/Avatar.d.ts +49 -50
  5. package/Backdrop/Backdrop.d.ts +87 -85
  6. package/Badge/Badge.d.ts +2 -2
  7. package/BottomNavigation/BottomNavigation.d.ts +35 -33
  8. package/BottomNavigationAction/BottomNavigationAction.d.ts +39 -37
  9. package/Breadcrumbs/Breadcrumbs.d.ts +69 -67
  10. package/Button/Button.d.ts +72 -73
  11. package/ButtonBase/ButtonBase.d.ts +83 -81
  12. package/ButtonGroup/ButtonGroup.d.ts +72 -70
  13. package/CHANGELOG.md +136 -2
  14. package/Card/Card.d.ts +19 -18
  15. package/CardActionArea/CardActionArea.d.ts +15 -13
  16. package/CardContent/CardContent.d.ts +18 -16
  17. package/CardHeader/CardHeader.d.ts +77 -67
  18. package/CardMedia/CardMedia.d.ts +30 -28
  19. package/Chip/Chip.d.ts +84 -82
  20. package/CircularProgress/CircularProgress.d.ts +1 -1
  21. package/CircularProgress/CircularProgress.js +1 -1
  22. package/Container/Container.d.ts +35 -33
  23. package/DialogContentText/DialogContentText.d.ts +14 -12
  24. package/DialogTitle/DialogTitle.d.ts +18 -16
  25. package/Divider/Divider.d.ts +49 -50
  26. package/Fab/Fab.d.ts +59 -56
  27. package/FormControl/FormControl.d.ts +74 -72
  28. package/FormHelperText/FormHelperText.d.ts +52 -50
  29. package/FormLabel/FormLabel.d.ts +7 -4
  30. package/Grid/Grid.d.ts +69 -68
  31. package/Hidden/Hidden.d.ts +10 -10
  32. package/Icon/Icon.d.ts +50 -48
  33. package/IconButton/IconButton.d.ts +52 -50
  34. package/ImageList/ImageList.d.ts +41 -39
  35. package/ImageListItem/ImageListItem.d.ts +28 -26
  36. package/ImageListItem/ImageListItem.js +2 -1
  37. package/InputAdornment/InputAdornment.d.ts +39 -37
  38. package/InputBase/InputBase.js +1 -1
  39. package/InputLabel/InputLabel.d.ts +58 -56
  40. package/InputLabel/InputLabel.js +2 -1
  41. package/Link/Link.d.ts +37 -39
  42. package/List/List.d.ts +34 -35
  43. package/ListItem/ListItem.d.ts +53 -49
  44. package/ListItemButton/ListItemButton.d.ts +9 -3
  45. package/ListSubheader/ListSubheader.d.ts +38 -36
  46. package/MenuItem/MenuItem.d.ts +47 -44
  47. package/MenuList/MenuList.d.ts +37 -35
  48. package/Modal/Modal.d.ts +172 -178
  49. package/PaginationItem/PaginationItem.d.ts +85 -83
  50. package/Paper/Paper.d.ts +2 -2
  51. package/Popover/Popover.d.ts +2 -1
  52. package/Popover/Popover.js +20 -6
  53. package/Radio/Radio.js +3 -2
  54. package/Radio/radioClasses.d.ts +2 -0
  55. package/Radio/radioClasses.js +1 -1
  56. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +25 -23
  57. package/Select/SelectInput.js +9 -5
  58. package/Skeleton/Skeleton.d.ts +42 -40
  59. package/Slider/Slider.d.ts +249 -247
  60. package/Snackbar/Snackbar.d.ts +4 -4
  61. package/Snackbar/Snackbar.js +4 -4
  62. package/Stack/Stack.d.ts +39 -38
  63. package/Step/Step.d.ts +46 -44
  64. package/StepButton/StepButton.d.ts +27 -25
  65. package/Stepper/Stepper.d.ts +45 -44
  66. package/SvgIcon/SvgIcon.d.ts +77 -75
  67. package/SwipeableDrawer/SwipeableDrawer.js +4 -4
  68. package/Tab/Tab.d.ts +52 -50
  69. package/TabScrollButton/TabScrollButton.d.ts +3 -2
  70. package/Table/Table.d.ts +35 -33
  71. package/TableBody/TableBody.d.ts +18 -16
  72. package/TableContainer/TableContainer.d.ts +18 -16
  73. package/TableFooter/TableFooter.d.ts +18 -16
  74. package/TableHead/TableHead.d.ts +18 -16
  75. package/TablePagination/TablePagination.d.ts +113 -112
  76. package/TableRow/TableRow.d.ts +28 -26
  77. package/TableSortLabel/TableSortLabel.d.ts +40 -36
  78. package/Tabs/Tabs.d.ts +153 -150
  79. package/ToggleButton/ToggleButton.d.ts +72 -70
  80. package/Toolbar/Toolbar.d.ts +29 -27
  81. package/Typography/Typography.d.ts +2 -2
  82. package/index.js +1 -1
  83. package/legacy/CircularProgress/CircularProgress.js +1 -1
  84. package/legacy/ImageListItem/ImageListItem.js +2 -1
  85. package/legacy/InputBase/InputBase.js +1 -1
  86. package/legacy/InputLabel/InputLabel.js +2 -1
  87. package/legacy/Popover/Popover.js +22 -5
  88. package/legacy/Radio/Radio.js +3 -2
  89. package/legacy/Radio/radioClasses.js +1 -1
  90. package/legacy/Select/SelectInput.js +9 -5
  91. package/legacy/Snackbar/Snackbar.js +4 -4
  92. package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
  93. package/legacy/index.js +1 -1
  94. package/modern/CircularProgress/CircularProgress.js +1 -1
  95. package/modern/ImageListItem/ImageListItem.js +2 -1
  96. package/modern/InputBase/InputBase.js +1 -1
  97. package/modern/InputLabel/InputLabel.js +2 -1
  98. package/modern/Popover/Popover.js +20 -6
  99. package/modern/Radio/Radio.js +3 -2
  100. package/modern/Radio/radioClasses.js +1 -1
  101. package/modern/Select/SelectInput.js +8 -5
  102. package/modern/Snackbar/Snackbar.js +4 -4
  103. package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
  104. package/modern/index.js +1 -1
  105. package/node/CircularProgress/CircularProgress.js +1 -1
  106. package/node/ImageListItem/ImageListItem.js +2 -1
  107. package/node/InputBase/InputBase.js +1 -1
  108. package/node/InputLabel/InputLabel.js +2 -1
  109. package/node/Popover/Popover.js +20 -6
  110. package/node/Radio/Radio.js +3 -2
  111. package/node/Radio/radioClasses.js +1 -1
  112. package/node/Select/SelectInput.js +9 -5
  113. package/node/Snackbar/Snackbar.js +4 -4
  114. package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
  115. package/node/index.js +1 -1
  116. package/package.json +5 -5
  117. package/umd/material-ui.development.js +75 -34
  118. package/umd/material-ui.production.min.js +7 -7
@@ -7,6 +7,9 @@ import { ListItemClasses } from './listItemClasses';
7
7
 
8
8
  export interface ListItemComponentsPropsOverrides {}
9
9
 
10
+ /**
11
+ * This type is kept for compatibility. Use `ListItemOwnProps` instead.
12
+ */
10
13
  export interface ListItemBaseProps {
11
14
  /**
12
15
  * Defines the `align-items` style property.
@@ -84,55 +87,56 @@ export interface ListItemBaseProps {
84
87
  sx?: SxProps<Theme>;
85
88
  }
86
89
 
87
- export interface ListItemTypeMap<AdditionalProps, DefaultComponent extends React.ElementType> {
88
- props: AdditionalProps &
89
- ListItemBaseProps & {
90
- /**
91
- * The components used for each slot inside.
92
- *
93
- * This prop is an alias for the `slots` prop.
94
- * It's recommended to use the `slots` prop instead.
95
- *
96
- * @default {}
97
- */
98
- components?: {
99
- Root?: React.ElementType;
100
- };
101
- /**
102
- * The extra props for the slot components.
103
- * You can override the existing props or add new ones.
104
- *
105
- * This prop is an alias for the `slotProps` prop.
106
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
107
- *
108
- * @default {}
109
- */
110
- componentsProps?: {
111
- root?: React.HTMLAttributes<HTMLDivElement> & ListItemComponentsPropsOverrides;
112
- };
113
- /**
114
- * The extra props for the slot components.
115
- * You can override the existing props or add new ones.
116
- *
117
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
118
- *
119
- * @default {}
120
- */
121
- slotProps?: {
122
- root?: React.HTMLAttributes<HTMLDivElement> & ListItemComponentsPropsOverrides;
123
- };
124
- /**
125
- * The components used for each slot inside.
126
- *
127
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
128
- *
129
- * @default {}
130
- */
131
- slots?: {
132
- root?: React.ElementType;
133
- };
134
- };
135
- defaultComponent: DefaultComponent;
90
+ export interface ListItemOwnProps extends ListItemBaseProps {
91
+ /**
92
+ * The components used for each slot inside.
93
+ *
94
+ * This prop is an alias for the `slots` prop.
95
+ * It's recommended to use the `slots` prop instead.
96
+ *
97
+ * @default {}
98
+ */
99
+ components?: {
100
+ Root?: React.ElementType;
101
+ };
102
+ /**
103
+ * The extra props for the slot components.
104
+ * You can override the existing props or add new ones.
105
+ *
106
+ * This prop is an alias for the `slotProps` prop.
107
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
108
+ *
109
+ * @default {}
110
+ */
111
+ componentsProps?: {
112
+ root?: React.HTMLAttributes<HTMLDivElement> & ListItemComponentsPropsOverrides;
113
+ };
114
+ /**
115
+ * The extra props for the slot components.
116
+ * You can override the existing props or add new ones.
117
+ *
118
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
119
+ *
120
+ * @default {}
121
+ */
122
+ slotProps?: {
123
+ root?: React.HTMLAttributes<HTMLDivElement> & ListItemComponentsPropsOverrides;
124
+ };
125
+ /**
126
+ * The components used for each slot inside.
127
+ *
128
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
129
+ *
130
+ * @default {}
131
+ */
132
+ slots?: {
133
+ root?: React.ElementType;
134
+ };
135
+ }
136
+
137
+ export interface ListItemTypeMap<AdditionalProps, RootComponent extends React.ElementType> {
138
+ props: AdditionalProps & ListItemOwnProps;
139
+ defaultComponent: RootComponent;
136
140
  }
137
141
 
138
142
  /**
@@ -5,6 +5,10 @@ import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
5
5
  import { OverrideProps } from '../OverridableComponent';
6
6
  import { ListItemButtonClasses } from './listItemButtonClasses';
7
7
 
8
+ /**
9
+ * This interface is kept for backward compatibility. To extend `LitItemButton`
10
+ * props through module augmentation, use `ListItemButtonOwnProps`.
11
+ */
8
12
  export interface ListItemButtonBaseProps {
9
13
  /**
10
14
  * Defines the `align-items` style property.
@@ -58,12 +62,14 @@ export interface ListItemButtonBaseProps {
58
62
  sx?: SxProps<Theme>;
59
63
  }
60
64
 
65
+ export interface ListItemButtonOwnProps extends ListItemButtonBaseProps {}
66
+
61
67
  export type ListItemButtonTypeMap<
62
68
  AdditionalProps = {},
63
- DefaultComponent extends React.ElementType = 'div',
69
+ RootComponent extends React.ElementType = 'div',
64
70
  > = ExtendButtonBaseTypeMap<{
65
- props: AdditionalProps & ListItemButtonBaseProps;
66
- defaultComponent: DefaultComponent;
71
+ props: AdditionalProps & ListItemButtonOwnProps;
72
+ defaultComponent: RootComponent;
67
73
  }>;
68
74
 
69
75
  /**
@@ -4,45 +4,47 @@ import { Theme } from '..';
4
4
  import { OverridableComponent, OverrideProps } from '../OverridableComponent';
5
5
  import { ListSubheaderClasses } from './listSubheaderClasses';
6
6
 
7
+ export interface ListSubheaderOwnProps {
8
+ /**
9
+ * The content of the component.
10
+ */
11
+ children?: React.ReactNode;
12
+ /**
13
+ * Override or extend the styles applied to the component.
14
+ */
15
+ classes?: Partial<ListSubheaderClasses>;
16
+ /**
17
+ * The color of the component. It supports those theme colors that make sense for this component.
18
+ * @default 'default'
19
+ */
20
+ color?: 'default' | 'primary' | 'inherit';
21
+ /**
22
+ * If `true`, the List Subheader will not have gutters.
23
+ * @default false
24
+ */
25
+ disableGutters?: boolean;
26
+ /**
27
+ * If `true`, the List Subheader will not stick to the top during scroll.
28
+ * @default false
29
+ */
30
+ disableSticky?: boolean;
31
+ /**
32
+ * If `true`, the List Subheader is indented.
33
+ * @default false
34
+ */
35
+ inset?: boolean;
36
+ /**
37
+ * The system prop that allows defining system overrides as well as additional CSS styles.
38
+ */
39
+ sx?: SxProps<Theme>;
40
+ }
41
+
7
42
  export interface ListSubheaderTypeMap<
8
43
  AdditionalProps = {},
9
- DefaultComponent extends React.ElementType = 'li',
44
+ RootComponent extends React.ElementType = 'li',
10
45
  > {
11
- props: AdditionalProps & {
12
- /**
13
- * The content of the component.
14
- */
15
- children?: React.ReactNode;
16
- /**
17
- * Override or extend the styles applied to the component.
18
- */
19
- classes?: Partial<ListSubheaderClasses>;
20
- /**
21
- * The color of the component. It supports those theme colors that make sense for this component.
22
- * @default 'default'
23
- */
24
- color?: 'default' | 'primary' | 'inherit';
25
- /**
26
- * If `true`, the List Subheader will not have gutters.
27
- * @default false
28
- */
29
- disableGutters?: boolean;
30
- /**
31
- * If `true`, the List Subheader will not stick to the top during scroll.
32
- * @default false
33
- */
34
- disableSticky?: boolean;
35
- /**
36
- * If `true`, the List Subheader is indented.
37
- * @default false
38
- */
39
- inset?: boolean;
40
- /**
41
- * The system prop that allows defining system overrides as well as additional CSS styles.
42
- */
43
- sx?: SxProps<Theme>;
44
- };
45
- defaultComponent: DefaultComponent;
46
+ props: AdditionalProps & ListSubheaderOwnProps;
47
+ defaultComponent: RootComponent;
46
48
  }
47
49
 
48
50
  /**
@@ -1,56 +1,59 @@
1
+ import * as React from 'react';
1
2
  import { SxProps } from '@mui/system';
2
3
  import { Theme } from '../styles';
3
4
  import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
4
5
  import { OverrideProps } from '../OverridableComponent';
5
6
  import { MenuItemClasses } from './menuItemClasses';
6
7
 
8
+ export interface MenuItemOwnProps {
9
+ /**
10
+ * If `true`, the list item is focused during the first mount.
11
+ * Focus will also be triggered if the value changes from false to true.
12
+ * @default false
13
+ */
14
+ autoFocus?: boolean;
15
+ /**
16
+ * Override or extend the styles applied to the component.
17
+ */
18
+ classes?: Partial<MenuItemClasses>;
19
+ /**
20
+ * If `true`, compact vertical padding designed for keyboard and mouse input is used.
21
+ * The prop defaults to the value inherited from the parent Menu component.
22
+ * @default false
23
+ */
24
+ dense?: boolean;
25
+ /**
26
+ * If `true`, the component is disabled.
27
+ * @default false
28
+ */
29
+ disabled?: boolean;
30
+ /**
31
+ * If `true`, the left and right padding is removed.
32
+ * @default false
33
+ */
34
+ disableGutters?: boolean;
35
+ /**
36
+ * If `true`, a 1px light border is added to the bottom of the menu item.
37
+ * @default false
38
+ */
39
+ divider?: boolean;
40
+ /**
41
+ * If `true`, the component is selected.
42
+ * @default false
43
+ */
44
+ selected?: boolean;
45
+ /**
46
+ * The system prop that allows defining system overrides as well as additional CSS styles.
47
+ */
48
+ sx?: SxProps<Theme>;
49
+ }
50
+
7
51
  export type MenuItemTypeMap<
8
52
  AdditionalProps = {},
9
- DefaultComponent extends React.ElementType = 'li',
53
+ RootComponent extends React.ElementType = 'li',
10
54
  > = ExtendButtonBaseTypeMap<{
11
- props: AdditionalProps & {
12
- /**
13
- * If `true`, the list item is focused during the first mount.
14
- * Focus will also be triggered if the value changes from false to true.
15
- * @default false
16
- */
17
- autoFocus?: boolean;
18
- /**
19
- * Override or extend the styles applied to the component.
20
- */
21
- classes?: Partial<MenuItemClasses>;
22
- /**
23
- * If `true`, compact vertical padding designed for keyboard and mouse input is used.
24
- * The prop defaults to the value inherited from the parent Menu component.
25
- * @default false
26
- */
27
- dense?: boolean;
28
- /**
29
- * If `true`, the component is disabled.
30
- * @default false
31
- */
32
- disabled?: boolean;
33
- /**
34
- * If `true`, the left and right padding is removed.
35
- * @default false
36
- */
37
- disableGutters?: boolean;
38
- /**
39
- * If `true`, a 1px light border is added to the bottom of the menu item.
40
- * @default false
41
- */
42
- divider?: boolean;
43
- /**
44
- * If `true`, the component is selected.
45
- * @default false
46
- */
47
- selected?: boolean;
48
- /**
49
- * The system prop that allows defining system overrides as well as additional CSS styles.
50
- */
51
- sx?: SxProps<Theme>;
52
- };
53
- defaultComponent: DefaultComponent;
55
+ props: AdditionalProps & MenuItemOwnProps;
56
+ defaultComponent: RootComponent;
54
57
  }>;
55
58
 
56
59
  /**
@@ -2,44 +2,46 @@ import * as React from 'react';
2
2
  import { ExtendList, ExtendListTypeMap } from '../List';
3
3
  import { OverrideProps } from '../OverridableComponent';
4
4
 
5
+ export interface MenuListOwnProps {
6
+ /**
7
+ * If `true`, will focus the `[role="menu"]` container and move into tab order.
8
+ * @default false
9
+ */
10
+ autoFocus?: boolean;
11
+ /**
12
+ * If `true`, will focus the first menuitem if `variant="menu"` or selected item
13
+ * if `variant="selectedMenu"`.
14
+ * @default false
15
+ */
16
+ autoFocusItem?: boolean;
17
+ /**
18
+ * MenuList contents, normally `MenuItem`s.
19
+ */
20
+ children?: React.ReactNode;
21
+ /**
22
+ * If `true`, will allow focus on disabled items.
23
+ * @default false
24
+ */
25
+ disabledItemsFocusable?: boolean;
26
+ /**
27
+ * If `true`, the menu items will not wrap focus.
28
+ * @default false
29
+ */
30
+ disableListWrap?: boolean;
31
+ /**
32
+ * The variant to use. Use `menu` to prevent selected items from impacting the initial focus
33
+ * and the vertical alignment relative to the anchor element.
34
+ * @default 'selectedMenu'
35
+ */
36
+ variant?: 'menu' | 'selectedMenu';
37
+ }
38
+
5
39
  export type MenuListTypeMap<
6
40
  AdditionalProps = {},
7
- DefaultComponent extends React.ElementType = 'ul',
41
+ RootComponent extends React.ElementType = 'ul',
8
42
  > = ExtendListTypeMap<{
9
- props: AdditionalProps & {
10
- /**
11
- * If `true`, will focus the `[role="menu"]` container and move into tab order.
12
- * @default false
13
- */
14
- autoFocus?: boolean;
15
- /**
16
- * If `true`, will focus the first menuitem if `variant="menu"` or selected item
17
- * if `variant="selectedMenu"`.
18
- * @default false
19
- */
20
- autoFocusItem?: boolean;
21
- /**
22
- * MenuList contents, normally `MenuItem`s.
23
- */
24
- children?: React.ReactNode;
25
- /**
26
- * If `true`, will allow focus on disabled items.
27
- * @default false
28
- */
29
- disabledItemsFocusable?: boolean;
30
- /**
31
- * If `true`, the menu items will not wrap focus.
32
- * @default false
33
- */
34
- disableListWrap?: boolean;
35
- /**
36
- * The variant to use. Use `menu` to prevent selected items from impacting the initial focus
37
- * and the vertical alignment relative to the anchor element.
38
- * @default 'selectedMenu'
39
- */
40
- variant?: 'menu' | 'selectedMenu';
41
- };
42
- defaultComponent: DefaultComponent;
43
+ props: AdditionalProps & MenuListOwnProps;
44
+ defaultComponent: RootComponent;
43
45
  }>;
44
46
 
45
47
  export type MenuListClassKey = keyof NonNullable<MenuListTypeMap['props']['classes']>;