@mui/material 7.1.0 → 7.1.2
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 +1 -1
- package/AccordionActions/AccordionActions.d.ts +2 -1
- package/AccordionDetails/AccordionDetails.d.ts +2 -1
- package/AccordionSummary/AccordionSummary.d.ts +2 -1
- package/Alert/Alert.d.ts +4 -1
- package/AlertTitle/AlertTitle.d.ts +2 -1
- package/AppBar/AppBar.d.ts +1 -1
- package/Autocomplete/Autocomplete.d.ts +10 -1
- package/Autocomplete/Autocomplete.js +31 -18
- package/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/BottomNavigationAction/BottomNavigationAction.d.ts +2 -1
- package/ButtonBase/TouchRipple.d.ts +1 -1
- package/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/CHANGELOG.md +88 -0
- package/Card/Card.d.ts +1 -1
- package/CardActionArea/CardActionArea.d.ts +2 -1
- package/CardActions/CardActions.d.ts +2 -1
- package/CardContent/CardContent.d.ts +1 -1
- package/CardHeader/CardHeader.d.ts +1 -1
- package/CardMedia/CardMedia.d.ts +1 -1
- package/Checkbox/Checkbox.d.ts +2 -1
- package/Chip/Chip.d.ts +28 -2
- package/Chip/Chip.js +65 -14
- package/CircularProgress/CircularProgress.d.ts +2 -1
- package/Collapse/Collapse.d.ts +2 -1
- package/Dialog/Dialog.d.ts +2 -1
- package/DialogActions/DialogActions.d.ts +2 -1
- package/DialogContent/DialogContent.d.ts +2 -1
- package/Divider/Divider.d.ts +1 -1
- package/Drawer/Drawer.d.ts +2 -1
- package/Fab/Fab.d.ts +1 -1
- package/FilledInput/FilledInput.d.ts +2 -1
- package/FormControlLabel/FormControlLabel.d.ts +2 -1
- package/FormGroup/FormGroup.d.ts +2 -1
- package/IconButton/IconButton.d.ts +1 -1
- package/ImageList/ImageList.d.ts +1 -1
- package/ImageListItem/ImageListItem.d.ts +1 -1
- package/ImageListItemBar/ImageListItemBar.d.ts +2 -1
- package/Input/Input.d.ts +2 -1
- package/InputAdornment/InputAdornment.d.ts +1 -1
- package/InputBase/InputBase.d.ts +1 -1
- package/LinearProgress/LinearProgress.d.ts +2 -1
- package/List/List.d.ts +1 -1
- package/ListItemAvatar/ListItemAvatar.d.ts +2 -1
- package/ListItemIcon/ListItemIcon.d.ts +2 -1
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -1
- package/ListItemText/ListItemText.d.ts +2 -1
- package/ListSubheader/ListSubheader.d.ts +1 -1
- package/Menu/Menu.d.ts +2 -2
- package/MobileStepper/MobileStepper.d.ts +2 -1
- package/NativeSelect/NativeSelect.d.ts +2 -1
- package/NativeSelect/NativeSelectInput.d.ts +1 -1
- package/OutlinedInput/NotchedOutline.d.ts +1 -1
- package/OutlinedInput/OutlinedInput.d.ts +3 -1
- package/Pagination/Pagination.d.ts +1 -1
- package/Popover/Popover.d.ts +3 -2
- package/Radio/Radio.d.ts +2 -1
- package/Rating/Rating.d.ts +1 -1
- package/Select/Select.d.ts +2 -1
- package/Select/SelectInput.d.ts +1 -1
- package/Skeleton/Skeleton.d.ts +1 -1
- package/Snackbar/Snackbar.d.ts +1 -1
- package/SnackbarContent/SnackbarContent.d.ts +1 -1
- package/SnackbarContent/SnackbarContent.js +2 -5
- package/SpeedDial/SpeedDial.d.ts +1 -1
- package/SpeedDialAction/SpeedDialAction.d.ts +1 -1
- package/SpeedDialIcon/SpeedDialIcon.d.ts +1 -1
- package/StepConnector/StepConnector.d.ts +1 -1
- package/StepContent/StepContent.d.ts +2 -1
- package/StepIcon/StepIcon.d.ts +2 -1
- package/StepLabel/StepLabel.d.ts +2 -2
- package/Switch/Switch.d.ts +2 -1
- package/Tab/Tab.d.ts +1 -1
- package/TabScrollButton/TabScrollButton.d.ts +2 -1
- package/Table/Table.d.ts +1 -1
- package/TableBody/TableBody.d.ts +1 -1
- package/TableCell/TableCell.d.ts +2 -1
- package/TableContainer/TableContainer.d.ts +1 -1
- package/TableFooter/TableFooter.d.ts +1 -1
- package/TableHead/TableHead.d.ts +1 -1
- package/TablePagination/TablePagination.d.ts +1 -1
- package/TablePagination/TablePagination.js +1 -1
- package/{TablePagination → TablePaginationActions}/TablePaginationActions.d.ts +11 -0
- package/{TablePagination → TablePaginationActions}/TablePaginationActions.js +60 -25
- package/TablePaginationActions/index.d.ts +4 -0
- package/TablePaginationActions/index.js +20 -0
- package/TablePaginationActions/tablePaginationActionsClasses.d.ts +8 -0
- package/TablePaginationActions/tablePaginationActionsClasses.js +15 -0
- package/TableRow/TableRow.d.ts +1 -1
- package/TableSortLabel/TableSortLabel.d.ts +1 -1
- package/TextField/TextField.d.ts +2 -2
- package/ToggleButton/ToggleButton.d.ts +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/Toolbar/Toolbar.d.ts +1 -1
- package/Tooltip/Tooltip.d.ts +2 -1
- package/esm/Accordion/Accordion.d.ts +1 -1
- package/esm/AccordionActions/AccordionActions.d.ts +2 -1
- package/esm/AccordionDetails/AccordionDetails.d.ts +2 -1
- package/esm/AccordionSummary/AccordionSummary.d.ts +2 -1
- package/esm/Alert/Alert.d.ts +4 -1
- package/esm/AlertTitle/AlertTitle.d.ts +2 -1
- package/esm/AppBar/AppBar.d.ts +1 -1
- package/esm/Autocomplete/Autocomplete.d.ts +10 -1
- package/esm/Autocomplete/Autocomplete.js +31 -18
- package/esm/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/esm/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/esm/BottomNavigationAction/BottomNavigationAction.d.ts +2 -1
- package/esm/ButtonBase/TouchRipple.d.ts +1 -1
- package/esm/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/esm/Card/Card.d.ts +1 -1
- package/esm/CardActionArea/CardActionArea.d.ts +2 -1
- package/esm/CardActions/CardActions.d.ts +2 -1
- package/esm/CardContent/CardContent.d.ts +1 -1
- package/esm/CardHeader/CardHeader.d.ts +1 -1
- package/esm/CardMedia/CardMedia.d.ts +1 -1
- package/esm/Checkbox/Checkbox.d.ts +2 -1
- package/esm/Chip/Chip.d.ts +28 -2
- package/esm/Chip/Chip.js +65 -14
- package/esm/CircularProgress/CircularProgress.d.ts +2 -1
- package/esm/Collapse/Collapse.d.ts +2 -1
- package/esm/Dialog/Dialog.d.ts +2 -1
- package/esm/DialogActions/DialogActions.d.ts +2 -1
- package/esm/DialogContent/DialogContent.d.ts +2 -1
- package/esm/Divider/Divider.d.ts +1 -1
- package/esm/Drawer/Drawer.d.ts +2 -1
- package/esm/Fab/Fab.d.ts +1 -1
- package/esm/FilledInput/FilledInput.d.ts +2 -1
- package/esm/FormControlLabel/FormControlLabel.d.ts +2 -1
- package/esm/FormGroup/FormGroup.d.ts +2 -1
- package/esm/IconButton/IconButton.d.ts +1 -1
- package/esm/ImageList/ImageList.d.ts +1 -1
- package/esm/ImageListItem/ImageListItem.d.ts +1 -1
- package/esm/ImageListItemBar/ImageListItemBar.d.ts +2 -1
- package/esm/Input/Input.d.ts +2 -1
- package/esm/InputAdornment/InputAdornment.d.ts +1 -1
- package/esm/InputBase/InputBase.d.ts +1 -1
- package/esm/LinearProgress/LinearProgress.d.ts +2 -1
- package/esm/List/List.d.ts +1 -1
- package/esm/ListItemAvatar/ListItemAvatar.d.ts +2 -1
- package/esm/ListItemIcon/ListItemIcon.d.ts +2 -1
- package/esm/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -1
- package/esm/ListItemText/ListItemText.d.ts +2 -1
- package/esm/ListSubheader/ListSubheader.d.ts +1 -1
- package/esm/Menu/Menu.d.ts +2 -2
- package/esm/MobileStepper/MobileStepper.d.ts +2 -1
- package/esm/NativeSelect/NativeSelect.d.ts +2 -1
- package/esm/NativeSelect/NativeSelectInput.d.ts +1 -1
- package/esm/OutlinedInput/NotchedOutline.d.ts +1 -1
- package/esm/OutlinedInput/OutlinedInput.d.ts +3 -1
- package/esm/Pagination/Pagination.d.ts +1 -1
- package/esm/Popover/Popover.d.ts +3 -2
- package/esm/Radio/Radio.d.ts +2 -1
- package/esm/Rating/Rating.d.ts +1 -1
- package/esm/Select/Select.d.ts +2 -1
- package/esm/Select/SelectInput.d.ts +1 -1
- package/esm/Skeleton/Skeleton.d.ts +1 -1
- package/esm/Snackbar/Snackbar.d.ts +1 -1
- package/esm/SnackbarContent/SnackbarContent.d.ts +1 -1
- package/esm/SnackbarContent/SnackbarContent.js +2 -5
- package/esm/SpeedDial/SpeedDial.d.ts +1 -1
- package/esm/SpeedDialAction/SpeedDialAction.d.ts +1 -1
- package/esm/SpeedDialIcon/SpeedDialIcon.d.ts +1 -1
- package/esm/StepConnector/StepConnector.d.ts +1 -1
- package/esm/StepContent/StepContent.d.ts +2 -1
- package/esm/StepIcon/StepIcon.d.ts +2 -1
- package/esm/StepLabel/StepLabel.d.ts +2 -2
- package/esm/Switch/Switch.d.ts +2 -1
- package/esm/Tab/Tab.d.ts +1 -1
- package/esm/TabScrollButton/TabScrollButton.d.ts +2 -1
- package/esm/Table/Table.d.ts +1 -1
- package/esm/TableBody/TableBody.d.ts +1 -1
- package/esm/TableCell/TableCell.d.ts +2 -1
- package/esm/TableContainer/TableContainer.d.ts +1 -1
- package/esm/TableFooter/TableFooter.d.ts +1 -1
- package/esm/TableHead/TableHead.d.ts +1 -1
- package/esm/TablePagination/TablePagination.d.ts +1 -1
- package/esm/TablePagination/TablePagination.js +1 -1
- package/esm/{TablePagination → TablePaginationActions}/TablePaginationActions.d.ts +11 -0
- package/esm/{TablePagination → TablePaginationActions}/TablePaginationActions.js +60 -27
- package/esm/TablePaginationActions/index.d.ts +4 -0
- package/esm/TablePaginationActions/index.js +2 -0
- package/esm/TablePaginationActions/tablePaginationActionsClasses.d.ts +8 -0
- package/esm/TablePaginationActions/tablePaginationActionsClasses.js +7 -0
- package/esm/TableRow/TableRow.d.ts +1 -1
- package/esm/TableSortLabel/TableSortLabel.d.ts +1 -1
- package/esm/TextField/TextField.d.ts +2 -2
- package/esm/ToggleButton/ToggleButton.d.ts +1 -1
- package/esm/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/esm/Toolbar/Toolbar.d.ts +1 -1
- package/esm/Tooltip/Tooltip.d.ts +2 -1
- package/esm/index.d.ts +3 -43
- package/esm/index.js +3 -1
- package/esm/internal/SwitchBase.d.ts +1 -1
- package/esm/internal/index.d.ts +17 -0
- package/esm/internal/index.js +1 -0
- package/esm/styles/components.d.ts +5 -0
- package/esm/styles/index.d.ts +19 -0
- package/esm/styles/overrides.d.ts +2 -0
- package/esm/styles/props.d.ts +2 -0
- package/esm/useAutocomplete/useAutocomplete.js +0 -1
- package/esm/version/index.js +2 -2
- package/index.d.ts +3 -43
- package/index.js +20 -1
- package/internal/SwitchBase.d.ts +1 -1
- package/internal/index.d.ts +17 -0
- package/internal/index.js +5 -0
- package/package.json +6 -6
- package/styles/components.d.ts +5 -0
- package/styles/index.d.ts +19 -0
- package/styles/overrides.d.ts +2 -0
- package/styles/props.d.ts +2 -0
- package/useAutocomplete/useAutocomplete.js +0 -1
- package/version/index.js +2 -2
package/index.d.ts
CHANGED
|
@@ -1,47 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DistributiveOmit } from '@mui/types';
|
|
3
|
-
import { StyledComponentProps } from "./styles/index.js";
|
|
4
|
-
export { StyledComponentProps };
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* All standard components exposed by `material-ui` are `StyledComponents` with
|
|
8
|
-
* certain `classes`, on which one can also set a top-level `className` and inline
|
|
9
|
-
* `style`.
|
|
10
|
-
* @deprecated will be removed in v5 for internal usage only
|
|
11
|
-
*/
|
|
12
|
-
export type StandardProps<ComponentProps, ClassKey extends string, Removals extends keyof ComponentProps = never> = DistributiveOmit<ComponentProps, 'classes' | Removals> & StyledComponentProps<ClassKey> & {
|
|
13
|
-
className?: string;
|
|
14
|
-
ref?: ComponentProps extends {
|
|
15
|
-
ref?: infer RefType;
|
|
16
|
-
} ? RefType : React.Ref<unknown>;
|
|
17
|
-
style?: React.CSSProperties;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
* ONLY USE FROM WITHIN mui/material-ui
|
|
23
|
-
*
|
|
24
|
-
* Internal helper type for conform (describeConformance) components
|
|
25
|
-
* However, we don't declare classes on this type.
|
|
26
|
-
* It is recommended to declare them manually with an interface so that each class can have a separate JSDoc.
|
|
27
|
-
*/
|
|
28
|
-
export type InternalStandardProps<ComponentProps, Removals extends keyof ComponentProps = never> = DistributiveOmit<ComponentProps, 'classes' | Removals> &
|
|
29
|
-
// each component declares it's classes in a separate interface for proper JSDoc
|
|
30
|
-
StyledComponentProps<never> & {
|
|
31
|
-
ref?: ComponentProps extends {
|
|
32
|
-
ref?: infer RefType;
|
|
33
|
-
} ? RefType : React.Ref<unknown>;
|
|
34
|
-
// TODO: Remove implicit props. Up to each component.
|
|
35
|
-
className?: string;
|
|
36
|
-
style?: React.CSSProperties;
|
|
37
|
-
};
|
|
38
|
-
export namespace PropTypes {
|
|
39
|
-
// keeping the type structure for backwards compat
|
|
40
|
-
type Color = 'inherit' | 'primary' | 'secondary' | 'default';
|
|
41
|
-
}
|
|
42
|
-
|
|
43
1
|
// From index.js
|
|
44
|
-
|
|
2
|
+
|
|
45
3
|
import * as colors from "./colors/index.js";
|
|
46
4
|
export { colors };
|
|
47
5
|
export * from "./styles/index.js";
|
|
@@ -282,6 +240,8 @@ export { default as TableHead } from "./TableHead/index.js";
|
|
|
282
240
|
export * from "./TableHead/index.js";
|
|
283
241
|
export { default as TablePagination } from "./TablePagination/index.js";
|
|
284
242
|
export * from "./TablePagination/index.js";
|
|
243
|
+
export { default as TablePaginationActions } from "./TablePaginationActions/index.js";
|
|
244
|
+
export * from "./TablePaginationActions/index.js";
|
|
285
245
|
export { default as TableRow } from "./TableRow/index.js";
|
|
286
246
|
export * from "./TableRow/index.js";
|
|
287
247
|
export { default as TableSortLabel } from "./TableSortLabel/index.js";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v7.1.
|
|
2
|
+
* @mui/material v7.1.2
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -130,6 +130,7 @@ var _exportNames = {
|
|
|
130
130
|
TableFooter: true,
|
|
131
131
|
TableHead: true,
|
|
132
132
|
TablePagination: true,
|
|
133
|
+
TablePaginationActions: true,
|
|
133
134
|
TableRow: true,
|
|
134
135
|
TableSortLabel: true,
|
|
135
136
|
Tabs: true,
|
|
@@ -861,6 +862,12 @@ Object.defineProperty(exports, "TablePagination", {
|
|
|
861
862
|
return _TablePagination.default;
|
|
862
863
|
}
|
|
863
864
|
});
|
|
865
|
+
Object.defineProperty(exports, "TablePaginationActions", {
|
|
866
|
+
enumerable: true,
|
|
867
|
+
get: function () {
|
|
868
|
+
return _TablePaginationActions.default;
|
|
869
|
+
}
|
|
870
|
+
});
|
|
864
871
|
Object.defineProperty(exports, "TableRow", {
|
|
865
872
|
enumerable: true,
|
|
866
873
|
get: function () {
|
|
@@ -2389,6 +2396,18 @@ Object.keys(_TablePagination).forEach(function (key) {
|
|
|
2389
2396
|
}
|
|
2390
2397
|
});
|
|
2391
2398
|
});
|
|
2399
|
+
var _TablePaginationActions = _interopRequireWildcard(require("./TablePaginationActions"));
|
|
2400
|
+
Object.keys(_TablePaginationActions).forEach(function (key) {
|
|
2401
|
+
if (key === "default" || key === "__esModule") return;
|
|
2402
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
2403
|
+
if (key in exports && exports[key] === _TablePaginationActions[key]) return;
|
|
2404
|
+
Object.defineProperty(exports, key, {
|
|
2405
|
+
enumerable: true,
|
|
2406
|
+
get: function () {
|
|
2407
|
+
return _TablePaginationActions[key];
|
|
2408
|
+
}
|
|
2409
|
+
});
|
|
2410
|
+
});
|
|
2392
2411
|
var _TableRow = _interopRequireWildcard(require("./TableRow"));
|
|
2393
2412
|
Object.keys(_TableRow).forEach(function (key) {
|
|
2394
2413
|
if (key === "default" || key === "__esModule") return;
|
package/internal/SwitchBase.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { InternalStandardProps as StandardProps } from "
|
|
2
|
+
import { InternalStandardProps as StandardProps } from "./index.js";
|
|
3
3
|
import { ButtonBaseProps } from "../ButtonBase/index.js";
|
|
4
4
|
import { SwitchBaseClasses } from "./switchBaseClasses.js";
|
|
5
5
|
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DistributiveOmit } from '@mui/types';
|
|
2
|
+
import { StyledComponentProps } from "../styles/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
* ONLY USE FROM WITHIN mui/material-ui
|
|
6
|
+
*
|
|
7
|
+
* Internal helper type for conform (describeConformance) components
|
|
8
|
+
* However, we don't declare classes on this type.
|
|
9
|
+
* It is recommended to declare them manually with an interface so that each class can have a separate JSDoc.
|
|
10
|
+
*/
|
|
11
|
+
export type InternalStandardProps<ComponentProps, Removals extends keyof ComponentProps = never> = DistributiveOmit<ComponentProps, 'classes' | Removals> & StyledComponentProps<never> & {
|
|
12
|
+
ref?: ComponentProps extends {
|
|
13
|
+
ref?: infer RefType;
|
|
14
|
+
} ? RefType : React.Ref<unknown>;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"prop-types": "^15.8.1",
|
|
35
35
|
"react-is": "^19.1.0",
|
|
36
36
|
"react-transition-group": "^4.4.5",
|
|
37
|
-
"@mui/
|
|
38
|
-
"@mui/
|
|
39
|
-
"@mui/
|
|
40
|
-
"@mui/
|
|
37
|
+
"@mui/core-downloads-tracker": "^7.1.2",
|
|
38
|
+
"@mui/types": "^7.4.3",
|
|
39
|
+
"@mui/system": "^7.1.1",
|
|
40
|
+
"@mui/utils": "^7.1.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@emotion/react": "^11.5.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
46
46
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
47
47
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
48
|
-
"@mui/material-pigment-css": "^7.1.
|
|
48
|
+
"@mui/material-pigment-css": "^7.1.1"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"@types/react": {
|
package/styles/components.d.ts
CHANGED
|
@@ -539,6 +539,11 @@ export interface Components<Theme = unknown> {
|
|
|
539
539
|
styleOverrides?: ComponentsOverrides<Theme>['MuiTablePagination'];
|
|
540
540
|
variants?: ComponentsVariants<Theme>['MuiTablePagination'];
|
|
541
541
|
};
|
|
542
|
+
MuiTablePaginationActions?: {
|
|
543
|
+
defaultProps?: ComponentsProps['MuiTablePaginationActions'];
|
|
544
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiTablePaginationActions'];
|
|
545
|
+
variants?: ComponentsVariants<Theme>['MuiTablePaginationActions'];
|
|
546
|
+
};
|
|
542
547
|
MuiTableRow?: {
|
|
543
548
|
defaultProps?: ComponentsProps['MuiTableRow'];
|
|
544
549
|
styleOverrides?: ComponentsOverrides<Theme>['MuiTableRow'];
|
package/styles/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DistributiveOmit } from '@mui/types';
|
|
1
2
|
export { default as THEME_ID } from "./identifier.js";
|
|
2
3
|
export { default as createTheme, default as unstable_createMuiStrictModeTheme, ThemeOptions, Theme, CssThemeVariables } from "./createTheme.js";
|
|
3
4
|
export { default as adaptV4Theme, DeprecatedThemeOptions } from "./adaptV4Theme.js";
|
|
@@ -34,6 +35,24 @@ export interface StyledComponentProps<ClassKey extends string = string> {
|
|
|
34
35
|
*/
|
|
35
36
|
classes?: Partial<ClassNameMap<ClassKey>>;
|
|
36
37
|
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* All standard components exposed by `material-ui` are `StyledComponents` with
|
|
41
|
+
* certain `classes`, on which one can also set a top-level `className` and inline
|
|
42
|
+
* `style`.
|
|
43
|
+
* @deprecated will be removed in v5 for internal usage only
|
|
44
|
+
*/
|
|
45
|
+
export type StandardProps<ComponentProps, ClassKey extends string, Removals extends keyof ComponentProps = never> = DistributiveOmit<ComponentProps, 'classes' | Removals> & StyledComponentProps<ClassKey> & {
|
|
46
|
+
className?: string;
|
|
47
|
+
ref?: ComponentProps extends {
|
|
48
|
+
ref?: infer RefType;
|
|
49
|
+
} ? RefType : React.Ref<unknown>;
|
|
50
|
+
style?: React.CSSProperties;
|
|
51
|
+
};
|
|
52
|
+
export namespace PropTypes {
|
|
53
|
+
// keeping the type structure for backwards compat
|
|
54
|
+
type Color = 'inherit' | 'primary' | 'secondary' | 'default';
|
|
55
|
+
}
|
|
37
56
|
export { default as makeStyles } from "./makeStyles.js";
|
|
38
57
|
export { default as withStyles } from "./withStyles.js";
|
|
39
58
|
export { default as withTheme } from "./withTheme.js";
|
package/styles/overrides.d.ts
CHANGED
|
@@ -106,6 +106,7 @@ import { TableContainerClassKey } from "../TableContainer/index.js";
|
|
|
106
106
|
import { TableFooterClassKey } from "../TableFooter/index.js";
|
|
107
107
|
import { TableHeadClassKey } from "../TableHead/index.js";
|
|
108
108
|
import { TablePaginationClassKey } from "../TablePagination/index.js";
|
|
109
|
+
import { TablePaginationActionsClassKey } from "../TablePaginationActions/index.js";
|
|
109
110
|
import { TableRowClassKey } from "../TableRow/index.js";
|
|
110
111
|
import { TableSortLabelClassKey } from "../TableSortLabel/index.js";
|
|
111
112
|
import { TabsClassKey } from "../Tabs/index.js";
|
|
@@ -231,6 +232,7 @@ export interface ComponentNameToClassKey {
|
|
|
231
232
|
MuiTableFooter: TableFooterClassKey;
|
|
232
233
|
MuiTableHead: TableHeadClassKey;
|
|
233
234
|
MuiTablePagination: TablePaginationClassKey;
|
|
235
|
+
MuiTablePaginationActions: TablePaginationActionsClassKey;
|
|
234
236
|
MuiTableRow: TableRowClassKey;
|
|
235
237
|
MuiTableSortLabel: TableSortLabelClassKey;
|
|
236
238
|
MuiTabs: TabsClassKey;
|
package/styles/props.d.ts
CHANGED
|
@@ -103,6 +103,7 @@ import { TableCellProps } from "../TableCell/index.js";
|
|
|
103
103
|
import { TableContainerProps } from "../TableContainer/index.js";
|
|
104
104
|
import { TableHeadProps } from "../TableHead/index.js";
|
|
105
105
|
import { TablePaginationProps } from "../TablePagination/index.js";
|
|
106
|
+
import { TablePaginationActionsProps } from "../TablePaginationActions/index.js";
|
|
106
107
|
import { TableProps } from "../Table/index.js";
|
|
107
108
|
import { TableRowProps } from "../TableRow/index.js";
|
|
108
109
|
import { TableSortLabelProps } from "../TableSortLabel/index.js";
|
|
@@ -227,6 +228,7 @@ export interface ComponentsPropsList {
|
|
|
227
228
|
MuiTableFooter: TableFooterProps;
|
|
228
229
|
MuiTableHead: TableHeadProps;
|
|
229
230
|
MuiTablePagination: TablePaginationProps;
|
|
231
|
+
MuiTablePaginationActions: TablePaginationActionsProps;
|
|
230
232
|
MuiTableRow: TableRowProps;
|
|
231
233
|
MuiTableSortLabel: TableSortLabelProps;
|
|
232
234
|
MuiTabs: TabsProps;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
/* eslint-disable no-constant-condition */
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
5
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
7
6
|
Object.defineProperty(exports, "__esModule", {
|
package/version/index.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
|
|
7
|
-
const version = exports.version = "7.1.
|
|
7
|
+
const version = exports.version = "7.1.2";
|
|
8
8
|
const major = exports.major = Number("7");
|
|
9
9
|
const minor = exports.minor = Number("1");
|
|
10
|
-
const patch = exports.patch = Number("
|
|
10
|
+
const patch = exports.patch = Number("2");
|
|
11
11
|
const prerelease = exports.prerelease = undefined;
|
|
12
12
|
var _default = exports.default = version;
|