@mui/material 7.1.0 → 7.1.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.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 +72 -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
|
@@ -10,17 +10,38 @@ exports.default = void 0;
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _RtlProvider = require("@mui/system/RtlProvider");
|
|
13
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
|
+
var _zeroStyled = require("../zero-styled");
|
|
16
|
+
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
13
17
|
var _KeyboardArrowLeft = _interopRequireDefault(require("../internal/svg-icons/KeyboardArrowLeft"));
|
|
14
18
|
var _KeyboardArrowRight = _interopRequireDefault(require("../internal/svg-icons/KeyboardArrowRight"));
|
|
15
19
|
var _IconButton = _interopRequireDefault(require("../IconButton"));
|
|
16
20
|
var _LastPage = _interopRequireDefault(require("../internal/svg-icons/LastPage"));
|
|
17
21
|
var _FirstPage = _interopRequireDefault(require("../internal/svg-icons/FirstPage"));
|
|
22
|
+
var _tablePaginationActionsClasses = require("./tablePaginationActionsClasses");
|
|
18
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
const useUtilityClasses = ownerState => {
|
|
25
|
+
const {
|
|
26
|
+
classes
|
|
27
|
+
} = ownerState;
|
|
28
|
+
const slots = {
|
|
29
|
+
root: ['root']
|
|
30
|
+
};
|
|
31
|
+
return (0, _composeClasses.default)(slots, _tablePaginationActionsClasses.getTablePaginationActionsUtilityClass, classes);
|
|
32
|
+
};
|
|
33
|
+
const TablePaginationActionsRoot = (0, _zeroStyled.styled)('div', {
|
|
34
|
+
name: 'MuiTablePaginationActions',
|
|
35
|
+
slot: 'Root'
|
|
36
|
+
})({});
|
|
37
|
+
const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePaginationActions(inProps, ref) {
|
|
38
|
+
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
39
|
+
props: inProps,
|
|
40
|
+
name: 'MuiTablePaginationActions'
|
|
41
|
+
});
|
|
22
42
|
const {
|
|
23
43
|
backIconButtonProps,
|
|
44
|
+
className,
|
|
24
45
|
count,
|
|
25
46
|
disabled = false,
|
|
26
47
|
getItemAriaLabel,
|
|
@@ -35,6 +56,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
35
56
|
...other
|
|
36
57
|
} = props;
|
|
37
58
|
const isRtl = (0, _RtlProvider.useRtl)();
|
|
59
|
+
const ownerState = props;
|
|
60
|
+
const classes = useUtilityClasses(ownerState);
|
|
38
61
|
const handleFirstPageButtonClick = event => {
|
|
39
62
|
onPageChange(event, 0);
|
|
40
63
|
};
|
|
@@ -63,8 +86,9 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
63
86
|
const previousButtonSlotProps = isRtl ? slotProps.nextButton : slotProps.previousButton;
|
|
64
87
|
const nextButtonSlotProps = isRtl ? slotProps.previousButton : slotProps.nextButton;
|
|
65
88
|
const lastButtonSlotProps = isRtl ? slotProps.firstButton : slotProps.lastButton;
|
|
66
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
89
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(TablePaginationActionsRoot, {
|
|
67
90
|
ref: ref,
|
|
91
|
+
className: (0, _clsx.default)(classes.root, className),
|
|
68
92
|
...other,
|
|
69
93
|
children: [showFirstButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(FirstButtonSlot, {
|
|
70
94
|
onClick: handleFirstPageButtonClick,
|
|
@@ -115,13 +139,30 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
115
139
|
})]
|
|
116
140
|
});
|
|
117
141
|
});
|
|
118
|
-
process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes = {
|
|
142
|
+
process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes /* remove-proptypes */ = {
|
|
143
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
144
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
145
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
146
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
119
147
|
/**
|
|
120
|
-
*
|
|
148
|
+
* This prop is an alias for `slotProps.previousButton` and will be overriden by it if both are used.
|
|
149
|
+
* @deprecated Use `slotProps.previousButton` instead.
|
|
121
150
|
*/
|
|
122
151
|
backIconButtonProps: _propTypes.default.object,
|
|
123
152
|
/**
|
|
124
|
-
*
|
|
153
|
+
* @ignore
|
|
154
|
+
*/
|
|
155
|
+
children: _propTypes.default.node,
|
|
156
|
+
/**
|
|
157
|
+
* Override or extend the styles applied to the component.
|
|
158
|
+
*/
|
|
159
|
+
classes: _propTypes.default.object,
|
|
160
|
+
/**
|
|
161
|
+
* @ignore
|
|
162
|
+
*/
|
|
163
|
+
className: _propTypes.default.string,
|
|
164
|
+
/**
|
|
165
|
+
* @ignore
|
|
125
166
|
*/
|
|
126
167
|
count: _propTypes.default.number.isRequired,
|
|
127
168
|
/**
|
|
@@ -131,44 +172,40 @@ process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes = {
|
|
|
131
172
|
disabled: _propTypes.default.bool,
|
|
132
173
|
/**
|
|
133
174
|
* Accepts a function which returns a string value that provides a user-friendly name for the current page.
|
|
175
|
+
* This is important for screen reader users.
|
|
134
176
|
*
|
|
135
|
-
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
136
|
-
*
|
|
137
|
-
* @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
|
|
138
|
-
* @param {number} page The page number to format.
|
|
177
|
+
* For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
|
|
178
|
+
* @param {string} type The link or button type to format ('first' | 'last' | 'next' | 'previous').
|
|
139
179
|
* @returns {string}
|
|
140
180
|
*/
|
|
141
181
|
getItemAriaLabel: _propTypes.default.func.isRequired,
|
|
142
182
|
/**
|
|
143
|
-
*
|
|
183
|
+
* This prop is an alias for `slotProps.nextButton` and will be overriden by it if both are used.
|
|
184
|
+
* @deprecated Use `slotProps.nextButton` instead.
|
|
144
185
|
*/
|
|
145
186
|
nextIconButtonProps: _propTypes.default.object,
|
|
146
187
|
/**
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
* @param {object} event The event source of the callback.
|
|
150
|
-
* @param {number} page The page selected.
|
|
188
|
+
* @ignore
|
|
151
189
|
*/
|
|
152
190
|
onPageChange: _propTypes.default.func.isRequired,
|
|
153
191
|
/**
|
|
154
|
-
*
|
|
192
|
+
* @ignore
|
|
155
193
|
*/
|
|
156
194
|
page: _propTypes.default.number.isRequired,
|
|
157
195
|
/**
|
|
158
|
-
*
|
|
196
|
+
* @ignore
|
|
159
197
|
*/
|
|
160
198
|
rowsPerPage: _propTypes.default.number.isRequired,
|
|
161
199
|
/**
|
|
162
|
-
*
|
|
200
|
+
* @ignore
|
|
163
201
|
*/
|
|
164
202
|
showFirstButton: _propTypes.default.bool.isRequired,
|
|
165
203
|
/**
|
|
166
|
-
*
|
|
204
|
+
* @ignore
|
|
167
205
|
*/
|
|
168
206
|
showLastButton: _propTypes.default.bool.isRequired,
|
|
169
207
|
/**
|
|
170
|
-
*
|
|
171
|
-
* @default {}
|
|
208
|
+
* @ignore
|
|
172
209
|
*/
|
|
173
210
|
slotProps: _propTypes.default.shape({
|
|
174
211
|
firstButton: _propTypes.default.object,
|
|
@@ -181,9 +218,7 @@ process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes = {
|
|
|
181
218
|
previousButtonIcon: _propTypes.default.object
|
|
182
219
|
}),
|
|
183
220
|
/**
|
|
184
|
-
*
|
|
185
|
-
* Either a string to use a HTML element or a component.
|
|
186
|
-
* @default {}
|
|
221
|
+
* @ignore
|
|
187
222
|
*/
|
|
188
223
|
slots: _propTypes.default.shape({
|
|
189
224
|
firstButton: _propTypes.default.elementType,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "default", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _TablePaginationActions.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "tablePaginationActionsClasses", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _tablePaginationActionsClasses.default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var _TablePaginationActions = _interopRequireDefault(require("./TablePaginationActions"));
|
|
20
|
+
var _tablePaginationActionsClasses = _interopRequireDefault(require("./tablePaginationActionsClasses"));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface TablePaginationActionsClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export type TablePaginationActionsClassKey = keyof TablePaginationActionsClasses;
|
|
6
|
+
export declare function getTablePaginationActionsUtilityClass(slot: string): string;
|
|
7
|
+
declare const tablePaginationActionsClasses: TablePaginationActionsClasses;
|
|
8
|
+
export default tablePaginationActionsClasses;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
exports.getTablePaginationActionsUtilityClass = getTablePaginationActionsUtilityClass;
|
|
9
|
+
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
10
|
+
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
11
|
+
function getTablePaginationActionsUtilityClass(slot) {
|
|
12
|
+
return (0, _generateUtilityClass.default)('MuiTablePaginationActions', slot);
|
|
13
|
+
}
|
|
14
|
+
const tablePaginationActionsClasses = (0, _generateUtilityClasses.default)('MuiTablePaginationActions', ['root']);
|
|
15
|
+
var _default = exports.default = tablePaginationActionsClasses;
|
package/TableRow/TableRow.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { Theme } from "../index.js";
|
|
3
|
+
import { Theme } from "../styles/index.js";
|
|
4
4
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
5
5
|
import { TableRowClasses } from "./tableRowClasses.js";
|
|
6
6
|
export interface TableRowOwnProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { Theme } from "../index.js";
|
|
3
|
+
import { Theme } from "../styles/index.js";
|
|
4
4
|
import { ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
|
|
5
5
|
import { OverrideProps } from "../OverridableComponent/index.js";
|
|
6
6
|
import { TableSortLabelClasses } from "./tableSortLabelClasses.js";
|
package/TextField/TextField.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { OverridableStringUnion } from '@mui/types';
|
|
4
|
-
import {
|
|
4
|
+
import { Theme } from "../styles/index.js";
|
|
5
|
+
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
5
6
|
import { FormControlProps } from "../FormControl/index.js";
|
|
6
7
|
import { FormHelperTextProps } from "../FormHelperText/index.js";
|
|
7
8
|
import { InputBaseProps } from "../InputBase/index.js";
|
|
@@ -10,7 +11,6 @@ import { FilledInputProps } from "../FilledInput/index.js";
|
|
|
10
11
|
import { OutlinedInputProps } from "../OutlinedInput/index.js";
|
|
11
12
|
import { InputLabelProps } from "../InputLabel/index.js";
|
|
12
13
|
import { SelectProps } from "../Select/index.js";
|
|
13
|
-
import { Theme } from "../styles/index.js";
|
|
14
14
|
import { TextFieldClasses } from "./textFieldClasses.js";
|
|
15
15
|
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
16
16
|
export interface TextFieldPropsColorOverrides {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SxProps } from '@mui/system';
|
|
2
2
|
import { OverridableStringUnion } from '@mui/types';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { Theme } from "../index.js";
|
|
4
|
+
import { Theme } from "../styles/index.js";
|
|
5
5
|
import { ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
|
|
6
6
|
import { OverrideProps } from "../OverridableComponent/index.js";
|
|
7
7
|
import { ToggleButtonClasses } from "./toggleButtonClasses.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { OverridableStringUnion } from '@mui/types';
|
|
4
|
-
import { InternalStandardProps as StandardProps } from "../index.js";
|
|
5
4
|
import { Theme } from "../styles/index.js";
|
|
5
|
+
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
6
6
|
import { ToggleButtonGroupClasses } from "./toggleButtonGroupClasses.js";
|
|
7
7
|
export interface ToggleButtonGroupPropsSizeOverrides {}
|
|
8
8
|
export interface ToggleButtonGroupPropsColorOverrides {}
|
package/Toolbar/Toolbar.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { OverridableStringUnion } from '@mui/types';
|
|
4
|
-
import { Theme } from "../index.js";
|
|
4
|
+
import { Theme } from "../styles/index.js";
|
|
5
5
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
6
6
|
import { ToolbarClasses } from "./toolbarClasses.js";
|
|
7
7
|
export interface ToolbarPropsVariantOverrides {}
|
package/Tooltip/Tooltip.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MUIStyledCommonProps, SxProps } from '@mui/system';
|
|
3
3
|
import { PopperProps } from "../Popper/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Theme } from "../styles/index.js";
|
|
5
|
+
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
5
6
|
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
6
7
|
import { TransitionProps } from "../transitions/transition.js";
|
|
7
8
|
import { TooltipClasses } from "./tooltipClasses.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { Theme } from "../index.js";
|
|
3
|
+
import { Theme } from "../styles/index.js";
|
|
4
4
|
import { TransitionProps } from "../transitions/transition.js";
|
|
5
5
|
import { AccordionClasses } from "./accordionClasses.js";
|
|
6
6
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import {
|
|
3
|
+
import { Theme } from "../styles/index.js";
|
|
4
|
+
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
4
5
|
import { AccordionActionsClasses } from "./accordionActionsClasses.js";
|
|
5
6
|
export interface AccordionActionsProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
|
|
6
7
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import {
|
|
3
|
+
import { Theme } from "../styles/index.js";
|
|
4
|
+
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
4
5
|
import { AccordionDetailsClasses } from "./accordionDetailsClasses.js";
|
|
5
6
|
export interface AccordionDetailsProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
|
|
6
7
|
/**
|
|
@@ -2,7 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { ButtonBaseProps, ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
|
|
4
4
|
import { OverrideProps } from "../OverridableComponent/index.js";
|
|
5
|
-
import { CreateSlotsAndSlotProps, SlotProps
|
|
5
|
+
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
6
|
+
import { Theme } from "../styles/index.js";
|
|
6
7
|
import { AccordionSummaryClasses } from "./accordionSummaryClasses.js";
|
|
7
8
|
export interface AccordionSummarySlots {
|
|
8
9
|
/**
|
package/esm/Alert/Alert.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { OverridableStringUnion } from '@mui/types';
|
|
3
3
|
import { SxProps } from '@mui/system';
|
|
4
|
-
import {
|
|
4
|
+
import { SvgIconProps } from "../SvgIcon/index.js";
|
|
5
|
+
import { Theme } from "../styles/index.js";
|
|
6
|
+
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
7
|
+
import { IconButtonProps } from "../IconButton/index.js";
|
|
5
8
|
import { PaperProps } from "../Paper/index.js";
|
|
6
9
|
import { AlertClasses } from "./alertClasses.js";
|
|
7
10
|
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { Theme
|
|
3
|
+
import { Theme } from "../styles/index.js";
|
|
4
|
+
import { TypographyProps } from "../Typography/index.js";
|
|
4
5
|
import { AlertTitleClasses } from "./alertTitleClasses.js";
|
|
5
6
|
export interface AlertTitleProps extends TypographyProps<'div'> {
|
|
6
7
|
/**
|
package/esm/AppBar/AppBar.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { OverridableStringUnion } from '@mui/types';
|
|
4
4
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
5
|
-
import { PropTypes, Theme } from "../index.js";
|
|
5
|
+
import { PropTypes, Theme } from "../styles/index.js";
|
|
6
6
|
import { AppBarClasses } from "./appBarClasses.js";
|
|
7
7
|
import { ExtendPaperTypeMap } from "../Paper/Paper.js";
|
|
8
8
|
export interface AppBarPropsColorOverrides {}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { OverridableStringUnion } from '@mui/types';
|
|
4
|
-
import {
|
|
4
|
+
import { Theme } from "../styles/index.js";
|
|
5
|
+
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
6
|
+
import { IconButtonProps } from "../IconButton/index.js";
|
|
5
7
|
import { ChipProps, ChipTypeMap } from "../Chip/index.js";
|
|
6
8
|
import { PaperProps } from "../Paper/index.js";
|
|
7
9
|
import { PopperProps } from "../Popper/index.js";
|
|
@@ -260,6 +262,13 @@ export interface AutocompleteProps<Value, Multiple extends boolean | undefined,
|
|
|
260
262
|
/**
|
|
261
263
|
* Render the input.
|
|
262
264
|
*
|
|
265
|
+
* **Note:** The `renderInput` prop must return a `TextField` component or a compatible custom component
|
|
266
|
+
* that correctly forwards `InputProps.ref` and spreads `inputProps`. This ensures proper integration
|
|
267
|
+
* with the Autocomplete's internal logic (e.g., focus management and keyboard navigation).
|
|
268
|
+
*
|
|
269
|
+
* Avoid using components like `DatePicker` or `Select` directly, as they may not forward the required props,
|
|
270
|
+
* leading to runtime errors or unexpected behavior.
|
|
271
|
+
*
|
|
263
272
|
* @param {object} params
|
|
264
273
|
* @returns {ReactNode}
|
|
265
274
|
*/
|
|
@@ -572,25 +572,31 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
572
572
|
disabled,
|
|
573
573
|
...getItemProps(params)
|
|
574
574
|
});
|
|
575
|
-
if (
|
|
576
|
-
|
|
577
|
-
|
|
575
|
+
if (multiple) {
|
|
576
|
+
if (value.length > 0) {
|
|
577
|
+
if (renderTags) {
|
|
578
|
+
startAdornment = renderTags(value, getCustomizedItemProps, ownerState);
|
|
579
|
+
} else if (renderValue) {
|
|
580
|
+
startAdornment = renderValue(value, getCustomizedItemProps, ownerState);
|
|
581
|
+
} else {
|
|
582
|
+
startAdornment = value.map((option, index) => {
|
|
583
|
+
const {
|
|
584
|
+
key,
|
|
585
|
+
...customItemProps
|
|
586
|
+
} = getCustomizedItemProps({
|
|
587
|
+
index
|
|
588
|
+
});
|
|
589
|
+
return /*#__PURE__*/_jsx(Chip, {
|
|
590
|
+
label: getOptionLabel(option),
|
|
591
|
+
size: size,
|
|
592
|
+
...customItemProps,
|
|
593
|
+
...externalForwardedProps.slotProps.chip
|
|
594
|
+
}, key);
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
} else if (renderValue && value != null) {
|
|
578
599
|
startAdornment = renderValue(value, getCustomizedItemProps, ownerState);
|
|
579
|
-
} else if (multiple && value.length > 0) {
|
|
580
|
-
startAdornment = value.map((option, index) => {
|
|
581
|
-
const {
|
|
582
|
-
key,
|
|
583
|
-
...customItemProps
|
|
584
|
-
} = getCustomizedItemProps({
|
|
585
|
-
index
|
|
586
|
-
});
|
|
587
|
-
return /*#__PURE__*/_jsx(Chip, {
|
|
588
|
-
label: getOptionLabel(option),
|
|
589
|
-
size: size,
|
|
590
|
-
...customItemProps,
|
|
591
|
-
...externalForwardedProps.slotProps.chip
|
|
592
|
-
}, key);
|
|
593
|
-
});
|
|
594
600
|
}
|
|
595
601
|
if (limitTags > -1 && Array.isArray(startAdornment)) {
|
|
596
602
|
const more = startAdornment.length - limitTags;
|
|
@@ -1104,6 +1110,13 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
1104
1110
|
/**
|
|
1105
1111
|
* Render the input.
|
|
1106
1112
|
*
|
|
1113
|
+
* **Note:** The `renderInput` prop must return a `TextField` component or a compatible custom component
|
|
1114
|
+
* that correctly forwards `InputProps.ref` and spreads `inputProps`. This ensures proper integration
|
|
1115
|
+
* with the Autocomplete's internal logic (e.g., focus management and keyboard navigation).
|
|
1116
|
+
*
|
|
1117
|
+
* Avoid using components like `DatePicker` or `Select` directly, as they may not forward the required props,
|
|
1118
|
+
* leading to runtime errors or unexpected behavior.
|
|
1119
|
+
*
|
|
1107
1120
|
* @param {object} params
|
|
1108
1121
|
* @returns {ReactNode}
|
|
1109
1122
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { OverridableComponent, OverridableStringUnion, OverrideProps, PartiallyRequired } from '@mui/types';
|
|
3
3
|
import { SxProps } from '@mui/system';
|
|
4
|
-
import { Theme } from
|
|
4
|
+
import { Theme } from "../styles/index.js";
|
|
5
5
|
import { AvatarGroupClasses } from "./avatarGroupClasses.js";
|
|
6
6
|
import Avatar from "../Avatar/index.js";
|
|
7
7
|
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { Theme } from "../index.js";
|
|
3
|
+
import { Theme } from "../styles/index.js";
|
|
4
4
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
5
5
|
import { BottomNavigationClasses } from "./bottomNavigationClasses.js";
|
|
6
6
|
export interface BottomNavigationOwnProps {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { CreateSlotsAndSlotProps, SlotProps
|
|
3
|
+
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
4
|
+
import { Theme } from "../styles/index.js";
|
|
4
5
|
import { ButtonBaseProps, ButtonBaseTypeMap, ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
|
|
5
6
|
import { OverrideProps } from "../OverridableComponent/index.js";
|
|
6
7
|
import { BottomNavigationActionClasses } from "./bottomNavigationActionClasses.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { InternalStandardProps as StandardProps } from "../index.js";
|
|
2
|
+
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
3
3
|
import { TouchRippleClasses, TouchRippleClassKey } from "./touchRippleClasses.js";
|
|
4
4
|
export { TouchRippleClassKey };
|
|
5
5
|
export interface StartActionOptions {
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { OverridableStringUnion } from '@mui/types';
|
|
4
4
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
5
|
-
import { Theme } from "../index.js";
|
|
5
|
+
import { Theme } from "../styles/index.js";
|
|
6
6
|
import { ButtonGroupClasses } from "./buttonGroupClasses.js";
|
|
7
7
|
export interface ButtonGroupPropsColorOverrides {}
|
|
8
8
|
export interface ButtonGroupPropsVariantOverrides {}
|
package/esm/Card/Card.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { DistributiveOmit } from '@mui/types';
|
|
4
4
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
5
|
-
import { Theme } from "../index.js";
|
|
5
|
+
import { Theme } from "../styles/index.js";
|
|
6
6
|
import { PaperOwnProps } from "../Paper/index.js";
|
|
7
7
|
import { CardClasses } from "./cardClasses.js";
|
|
8
8
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { SlotProps, CreateSlotsAndSlotProps
|
|
3
|
+
import { SlotProps, CreateSlotsAndSlotProps } from "../utils/types.js";
|
|
4
|
+
import { Theme } from "../styles/index.js";
|
|
4
5
|
import { ButtonBaseProps, ButtonBaseTypeMap, ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
|
|
5
6
|
import { OverrideProps } from "../OverridableComponent/index.js";
|
|
6
7
|
import { CardActionAreaClasses } from "./cardActionAreaClasses.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import {
|
|
3
|
+
import { Theme } from "../styles/index.js";
|
|
4
|
+
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
4
5
|
import { CardActionsClasses } from "./cardActionsClasses.js";
|
|
5
6
|
export interface CardActionsProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
|
|
6
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
4
|
-
import { Theme } from "../index.js";
|
|
4
|
+
import { Theme } from "../styles/index.js";
|
|
5
5
|
import { CardContentClasses } from "./cardContentClasses.js";
|
|
6
6
|
export interface CardContentOwnProps {
|
|
7
7
|
/**
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { TypographyProps } from "../Typography/index.js";
|
|
4
4
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
5
|
-
import { Theme } from "../index.js";
|
|
5
|
+
import { Theme } from "../styles/index.js";
|
|
6
6
|
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
7
7
|
import { CardHeaderClasses } from "./cardHeaderClasses.js";
|
|
8
8
|
export interface CardHeaderRootSlotPropsOverrides {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { Theme } from "../index.js";
|
|
3
|
+
import { Theme } from "../styles/index.js";
|
|
4
4
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
5
5
|
import { CardMediaClasses } from "./cardMediaClasses.js";
|
|
6
6
|
export interface CardMediaOwnProps {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { OverridableStringUnion } from '@mui/types';
|
|
4
|
-
import {
|
|
4
|
+
import { Theme } from "../styles/index.js";
|
|
5
|
+
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
5
6
|
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
6
7
|
import { SwitchBaseProps } from "../internal/SwitchBase.js";
|
|
7
8
|
import { CheckboxClasses } from "./checkboxClasses.js";
|
package/esm/Chip/Chip.d.ts
CHANGED
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { OverridableStringUnion } from '@mui/types';
|
|
3
3
|
import { SxProps } from '@mui/system';
|
|
4
|
-
import {
|
|
4
|
+
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
5
|
+
import { Theme } from "../styles/index.js";
|
|
5
6
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
6
7
|
import { ChipClasses } from "./chipClasses.js";
|
|
8
|
+
export interface ChipSlots {
|
|
9
|
+
/**
|
|
10
|
+
* The component that renders the root.
|
|
11
|
+
* @default div
|
|
12
|
+
*/
|
|
13
|
+
root: React.ElementType;
|
|
14
|
+
/**
|
|
15
|
+
* The component that renders the label.
|
|
16
|
+
* @default span
|
|
17
|
+
*/
|
|
18
|
+
label: React.ElementType;
|
|
19
|
+
}
|
|
20
|
+
export type ChipSlotsAndSlotProps = CreateSlotsAndSlotProps<ChipSlots, {
|
|
21
|
+
/**
|
|
22
|
+
* Props forwarded to the root slot.
|
|
23
|
+
* By default, the avaible props are based on the div element.
|
|
24
|
+
*/
|
|
25
|
+
root: SlotProps<'div', {}, ChipOwnerState>;
|
|
26
|
+
/**
|
|
27
|
+
* Props forwarded to the label slot.
|
|
28
|
+
* By default, the avaible props are based on the span element.
|
|
29
|
+
*/
|
|
30
|
+
label: SlotProps<'span', {}, ChipOwnerState>;
|
|
31
|
+
}>;
|
|
32
|
+
export interface ChipOwnerState extends Omit<ChipProps, 'slots' | 'slotProps'> {}
|
|
7
33
|
export interface ChipPropsVariantOverrides {}
|
|
8
34
|
export interface ChipPropsSizeOverrides {}
|
|
9
35
|
export interface ChipPropsColorOverrides {}
|
|
@@ -85,7 +111,7 @@ export interface ChipOwnProps {
|
|
|
85
111
|
variant?: OverridableStringUnion<'filled' | 'outlined', ChipPropsVariantOverrides>;
|
|
86
112
|
}
|
|
87
113
|
export interface ChipTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> {
|
|
88
|
-
props: AdditionalProps & ChipOwnProps;
|
|
114
|
+
props: AdditionalProps & ChipOwnProps & ChipSlotsAndSlotProps;
|
|
89
115
|
defaultComponent: RootComponent;
|
|
90
116
|
}
|
|
91
117
|
|