@mui/material 5.10.12 → 5.10.13
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/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/Alert.d.ts +34 -3
- package/Alert/Alert.js +46 -9
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.d.ts +10 -0
- package/Autocomplete/Autocomplete.js +27 -11
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/AvatarGroup.d.ts +18 -1
- package/AvatarGroup/AvatarGroup.js +25 -6
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/Backdrop.d.ts +33 -3
- package/Backdrop/Backdrop.js +46 -11
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.d.ts +11 -3
- package/Badge/Badge.js +11 -3
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +58 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +96 -96
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.js +48 -9
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.d.ts +12 -0
- package/FormControlLabel/FormControlLabel.js +17 -5
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +49 -10
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.d.ts +34 -3
- package/InputBase/InputBase.js +45 -8
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.d.ts +32 -3
- package/ListItem/ListItem.js +41 -9
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.d.ts +11 -3
- package/Modal/Modal.js +11 -3
- package/NativeSelect/NativeSelectInput.js +11 -9
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/OutlinedInput.js +26 -8
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/OverridableComponentAugmentation.d.ts +31 -31
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/PaginationItem.d.ts +19 -7
- package/PaginationItem/PaginationItem.js +31 -22
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +37 -37
- package/README.md +1 -0
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/Select.d.ts +3 -3
- package/Select/Select.js +3 -3
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Slider/Slider.d.ts +14 -2
- package/Slider/Slider.js +12 -3
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/StepLabel.d.ts +11 -0
- package/StepLabel/StepLabel.js +15 -3
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.d.ts +43 -6
- package/Tooltip/Tooltip.js +68 -31
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/esm/Alert/Alert.js +46 -9
- package/esm/Autocomplete/Autocomplete.js +27 -11
- package/esm/AvatarGroup/AvatarGroup.js +25 -6
- package/esm/Backdrop/Backdrop.js +46 -11
- package/esm/Badge/Badge.js +11 -3
- package/esm/BottomNavigation/BottomNavigation.js +0 -0
- package/esm/FilledInput/FilledInput.js +48 -9
- package/esm/FormControlLabel/FormControlLabel.js +17 -5
- package/esm/Input/Input.js +49 -10
- package/esm/InputBase/InputBase.js +45 -8
- package/esm/ListItem/ListItem.js +41 -9
- package/esm/Modal/Modal.js +11 -3
- package/esm/NativeSelect/NativeSelectInput.js +11 -9
- package/esm/OutlinedInput/OutlinedInput.js +26 -8
- package/esm/PaginationItem/PaginationItem.js +31 -22
- package/esm/Select/Select.js +3 -3
- package/esm/Slider/Slider.js +12 -3
- package/esm/StepLabel/StepLabel.js +15 -3
- package/esm/Tooltip/Tooltip.js +68 -31
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Alert/Alert.js +48 -9
- package/legacy/Autocomplete/Autocomplete.js +27 -10
- package/legacy/AvatarGroup/AvatarGroup.js +26 -6
- package/legacy/Backdrop/Backdrop.js +48 -11
- package/legacy/Badge/Badge.js +11 -3
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/FilledInput/FilledInput.js +49 -9
- package/legacy/FormControlLabel/FormControlLabel.js +17 -4
- package/legacy/Input/Input.js +50 -10
- package/legacy/InputBase/InputBase.js +47 -8
- package/legacy/ListItem/ListItem.js +42 -8
- package/legacy/Modal/Modal.js +11 -3
- package/legacy/NativeSelect/NativeSelectInput.js +11 -9
- package/legacy/OutlinedInput/OutlinedInput.js +27 -8
- package/legacy/PaginationItem/PaginationItem.js +32 -22
- package/legacy/Select/Select.js +3 -3
- package/legacy/Slider/Slider.js +12 -3
- package/legacy/StepLabel/StepLabel.js +16 -3
- package/legacy/Tooltip/Tooltip.js +63 -22
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +72 -72
- package/modern/Alert/Alert.js +45 -8
- package/modern/Autocomplete/Autocomplete.js +26 -10
- package/modern/AvatarGroup/AvatarGroup.js +24 -5
- package/modern/Backdrop/Backdrop.js +45 -10
- package/modern/Badge/Badge.js +11 -3
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/FilledInput/FilledInput.js +46 -9
- package/modern/FormControlLabel/FormControlLabel.js +15 -5
- package/modern/Input/Input.js +47 -10
- package/modern/InputBase/InputBase.js +43 -8
- package/modern/ListItem/ListItem.js +41 -9
- package/modern/Modal/Modal.js +11 -3
- package/modern/NativeSelect/NativeSelectInput.js +11 -9
- package/modern/OutlinedInput/OutlinedInput.js +25 -7
- package/modern/PaginationItem/PaginationItem.js +31 -22
- package/modern/Select/Select.js +3 -3
- package/modern/Slider/Slider.js +12 -3
- package/modern/StepLabel/StepLabel.js +13 -3
- package/modern/Tooltip/Tooltip.js +58 -17
- package/modern/index.js +1 -1
- package/package.json +4 -4
- package/styles/CssVarsProvider.d.ts +14 -14
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +534 -165
- package/umd/material-ui.production.min.js +14 -14
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface AccordionClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element unless `square={true}`. */
|
|
5
|
-
rounded: string;
|
|
6
|
-
/** State class applied to the root element if `expanded={true}`. */
|
|
7
|
-
expanded: string;
|
|
8
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
9
|
-
disabled: string;
|
|
10
|
-
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
11
|
-
gutters: string;
|
|
12
|
-
/** Styles applied to the region element, the container of the children. */
|
|
13
|
-
region: string;
|
|
14
|
-
}
|
|
15
|
-
export declare type AccordionClassKey = keyof AccordionClasses;
|
|
16
|
-
export declare function getAccordionUtilityClass(slot: string): string;
|
|
17
|
-
declare const accordionClasses: AccordionClasses;
|
|
18
|
-
export default accordionClasses;
|
|
1
|
+
export interface AccordionClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element unless `square={true}`. */
|
|
5
|
+
rounded: string;
|
|
6
|
+
/** State class applied to the root element if `expanded={true}`. */
|
|
7
|
+
expanded: string;
|
|
8
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
9
|
+
disabled: string;
|
|
10
|
+
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
11
|
+
gutters: string;
|
|
12
|
+
/** Styles applied to the region element, the container of the children. */
|
|
13
|
+
region: string;
|
|
14
|
+
}
|
|
15
|
+
export declare type AccordionClassKey = keyof AccordionClasses;
|
|
16
|
+
export declare function getAccordionUtilityClass(slot: string): string;
|
|
17
|
+
declare const accordionClasses: AccordionClasses;
|
|
18
|
+
export default accordionClasses;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface AccordionActionsClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element unless `disableSpacing={true}`. */
|
|
5
|
-
spacing: string;
|
|
6
|
-
}
|
|
7
|
-
export declare type AccordionActionsClassKey = keyof AccordionActionsClasses;
|
|
8
|
-
export declare function getAccordionActionsUtilityClass(slot: string): string;
|
|
9
|
-
declare const accordionActionsClasses: AccordionActionsClasses;
|
|
10
|
-
export default accordionActionsClasses;
|
|
1
|
+
export interface AccordionActionsClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element unless `disableSpacing={true}`. */
|
|
5
|
+
spacing: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type AccordionActionsClassKey = keyof AccordionActionsClasses;
|
|
8
|
+
export declare function getAccordionActionsUtilityClass(slot: string): string;
|
|
9
|
+
declare const accordionActionsClasses: AccordionActionsClasses;
|
|
10
|
+
export default accordionActionsClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface AccordionDetailsClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type AccordionDetailsClassKey = keyof AccordionDetailsClasses;
|
|
6
|
-
export declare function getAccordionDetailsUtilityClass(slot: string): string;
|
|
7
|
-
declare const accordionDetailsClasses: AccordionDetailsClasses;
|
|
8
|
-
export default accordionDetailsClasses;
|
|
1
|
+
export interface AccordionDetailsClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type AccordionDetailsClassKey = keyof AccordionDetailsClasses;
|
|
6
|
+
export declare function getAccordionDetailsUtilityClass(slot: string): string;
|
|
7
|
+
declare const accordionDetailsClasses: AccordionDetailsClasses;
|
|
8
|
+
export default accordionDetailsClasses;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export interface AccordionSummaryClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`. */
|
|
5
|
-
expanded: string;
|
|
6
|
-
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
|
|
7
|
-
focusVisible: string;
|
|
8
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
9
|
-
disabled: string;
|
|
10
|
-
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
11
|
-
gutters: string;
|
|
12
|
-
/** Styles applied to the children wrapper element unless `disableGutters={true}`. */
|
|
13
|
-
contentGutters: string;
|
|
14
|
-
/** Styles applied to the children wrapper element. */
|
|
15
|
-
content: string;
|
|
16
|
-
/** Styles applied to the `expandIcon`'s wrapper element. */
|
|
17
|
-
expandIconWrapper: string;
|
|
18
|
-
}
|
|
19
|
-
export declare type AccordionSummaryClassKey = keyof AccordionSummaryClasses;
|
|
20
|
-
export declare function getAccordionSummaryUtilityClass(slot: string): string;
|
|
21
|
-
declare const accordionSummaryClasses: AccordionSummaryClasses;
|
|
22
|
-
export default accordionSummaryClasses;
|
|
1
|
+
export interface AccordionSummaryClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`. */
|
|
5
|
+
expanded: string;
|
|
6
|
+
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
|
|
7
|
+
focusVisible: string;
|
|
8
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
9
|
+
disabled: string;
|
|
10
|
+
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
11
|
+
gutters: string;
|
|
12
|
+
/** Styles applied to the children wrapper element unless `disableGutters={true}`. */
|
|
13
|
+
contentGutters: string;
|
|
14
|
+
/** Styles applied to the children wrapper element. */
|
|
15
|
+
content: string;
|
|
16
|
+
/** Styles applied to the `expandIcon`'s wrapper element. */
|
|
17
|
+
expandIconWrapper: string;
|
|
18
|
+
}
|
|
19
|
+
export declare type AccordionSummaryClassKey = keyof AccordionSummaryClasses;
|
|
20
|
+
export declare function getAccordionSummaryUtilityClass(slot: string): string;
|
|
21
|
+
declare const accordionSummaryClasses: AccordionSummaryClasses;
|
|
22
|
+
export default accordionSummaryClasses;
|
package/Alert/Alert.d.ts
CHANGED
|
@@ -34,8 +34,11 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'> {
|
|
|
34
34
|
*/
|
|
35
35
|
color?: OverridableStringUnion<AlertColor, AlertPropsColorOverrides>;
|
|
36
36
|
/**
|
|
37
|
-
* The components used for each slot inside
|
|
38
|
-
*
|
|
37
|
+
* The components used for each slot inside.
|
|
38
|
+
*
|
|
39
|
+
* This prop is an alias for the `slots` prop.
|
|
40
|
+
* It's recommended to use the `slots` prop instead.
|
|
41
|
+
*
|
|
39
42
|
* @default {}
|
|
40
43
|
*/
|
|
41
44
|
components?: {
|
|
@@ -43,7 +46,12 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'> {
|
|
|
43
46
|
CloseIcon?: React.ElementType;
|
|
44
47
|
};
|
|
45
48
|
/**
|
|
46
|
-
* The props
|
|
49
|
+
* The extra props for the slot components.
|
|
50
|
+
* You can override the existing props or add new ones.
|
|
51
|
+
*
|
|
52
|
+
* This prop is an alias for the `slotProps` prop.
|
|
53
|
+
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
54
|
+
*
|
|
47
55
|
* @default {}
|
|
48
56
|
*/
|
|
49
57
|
componentsProps?: {
|
|
@@ -84,6 +92,29 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'> {
|
|
|
84
92
|
* @default 'standard'
|
|
85
93
|
*/
|
|
86
94
|
variant?: OverridableStringUnion<'standard' | 'filled' | 'outlined', AlertPropsVariantOverrides>;
|
|
95
|
+
/**
|
|
96
|
+
* The extra props for the slot components.
|
|
97
|
+
* You can override the existing props or add new ones.
|
|
98
|
+
*
|
|
99
|
+
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
100
|
+
*
|
|
101
|
+
* @default {}
|
|
102
|
+
*/
|
|
103
|
+
slotProps?: {
|
|
104
|
+
closeButton?: IconButtonProps;
|
|
105
|
+
closeIcon?: SvgIconProps;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* The components used for each slot inside.
|
|
109
|
+
*
|
|
110
|
+
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
111
|
+
*
|
|
112
|
+
* @default {}
|
|
113
|
+
*/
|
|
114
|
+
slots?: {
|
|
115
|
+
closeButton?: React.ElementType;
|
|
116
|
+
closeIcon?: React.ElementType;
|
|
117
|
+
};
|
|
87
118
|
/**
|
|
88
119
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
89
120
|
*/
|
package/Alert/Alert.js
CHANGED
|
@@ -45,7 +45,7 @@ var _Close = _interopRequireDefault(require("../internal/svg-icons/Close"));
|
|
|
45
45
|
|
|
46
46
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
47
47
|
|
|
48
|
-
const _excluded = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "variant"];
|
|
48
|
+
const _excluded = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "slotProps", "slots", "variant"];
|
|
49
49
|
|
|
50
50
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
51
51
|
|
|
@@ -159,7 +159,7 @@ const defaultIconMapping = {
|
|
|
159
159
|
})
|
|
160
160
|
};
|
|
161
161
|
const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
|
|
162
|
-
var
|
|
162
|
+
var _ref, _slots$closeButton, _ref2, _slots$closeIcon, _slotProps$closeButto, _slotProps$closeIcon;
|
|
163
163
|
|
|
164
164
|
const props = (0, _useThemeProps.default)({
|
|
165
165
|
props: inProps,
|
|
@@ -178,6 +178,8 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
|
|
|
178
178
|
onClose,
|
|
179
179
|
role = 'alert',
|
|
180
180
|
severity = 'success',
|
|
181
|
+
slotProps = {},
|
|
182
|
+
slots = {},
|
|
181
183
|
variant = 'standard'
|
|
182
184
|
} = props,
|
|
183
185
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
@@ -187,8 +189,10 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
|
|
|
187
189
|
variant
|
|
188
190
|
});
|
|
189
191
|
const classes = useUtilityClasses(ownerState);
|
|
190
|
-
const AlertCloseButton = (
|
|
191
|
-
const AlertCloseIcon = (
|
|
192
|
+
const AlertCloseButton = (_ref = (_slots$closeButton = slots.closeButton) != null ? _slots$closeButton : components.CloseButton) != null ? _ref : _IconButton.default;
|
|
193
|
+
const AlertCloseIcon = (_ref2 = (_slots$closeIcon = slots.closeIcon) != null ? _slots$closeIcon : components.CloseIcon) != null ? _ref2 : _Close.default;
|
|
194
|
+
const closeButtonProps = (_slotProps$closeButto = slotProps.closeButton) != null ? _slotProps$closeButto : componentsProps.closeButton;
|
|
195
|
+
const closeIconProps = (_slotProps$closeIcon = slotProps.closeIcon) != null ? _slotProps$closeIcon : componentsProps.closeIcon;
|
|
192
196
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(AlertRoot, (0, _extends2.default)({
|
|
193
197
|
role: role,
|
|
194
198
|
elevation: 0,
|
|
@@ -217,10 +221,10 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
|
|
|
217
221
|
title: closeText,
|
|
218
222
|
color: "inherit",
|
|
219
223
|
onClick: onClose
|
|
220
|
-
},
|
|
224
|
+
}, closeButtonProps, {
|
|
221
225
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AlertCloseIcon, (0, _extends2.default)({
|
|
222
226
|
fontSize: "small"
|
|
223
|
-
},
|
|
227
|
+
}, closeIconProps))
|
|
224
228
|
}))
|
|
225
229
|
}) : null]
|
|
226
230
|
}));
|
|
@@ -271,8 +275,11 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes
|
|
|
271
275
|
.oneOfType([_propTypes.default.oneOf(['error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
|
272
276
|
|
|
273
277
|
/**
|
|
274
|
-
* The components used for each slot inside
|
|
275
|
-
*
|
|
278
|
+
* The components used for each slot inside.
|
|
279
|
+
*
|
|
280
|
+
* This prop is an alias for the `slots` prop.
|
|
281
|
+
* It's recommended to use the `slots` prop instead.
|
|
282
|
+
*
|
|
276
283
|
* @default {}
|
|
277
284
|
*/
|
|
278
285
|
components: _propTypes.default.shape({
|
|
@@ -281,7 +288,12 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes
|
|
|
281
288
|
}),
|
|
282
289
|
|
|
283
290
|
/**
|
|
284
|
-
* The props
|
|
291
|
+
* The extra props for the slot components.
|
|
292
|
+
* You can override the existing props or add new ones.
|
|
293
|
+
*
|
|
294
|
+
* This prop is an alias for the `slotProps` prop.
|
|
295
|
+
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
296
|
+
*
|
|
285
297
|
* @default {}
|
|
286
298
|
*/
|
|
287
299
|
componentsProps: _propTypes.default.shape({
|
|
@@ -328,6 +340,31 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes
|
|
|
328
340
|
*/
|
|
329
341
|
severity: _propTypes.default.oneOf(['error', 'info', 'success', 'warning']),
|
|
330
342
|
|
|
343
|
+
/**
|
|
344
|
+
* The extra props for the slot components.
|
|
345
|
+
* You can override the existing props or add new ones.
|
|
346
|
+
*
|
|
347
|
+
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
348
|
+
*
|
|
349
|
+
* @default {}
|
|
350
|
+
*/
|
|
351
|
+
slotProps: _propTypes.default.shape({
|
|
352
|
+
closeButton: _propTypes.default.object,
|
|
353
|
+
closeIcon: _propTypes.default.object
|
|
354
|
+
}),
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* The components used for each slot inside.
|
|
358
|
+
*
|
|
359
|
+
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
360
|
+
*
|
|
361
|
+
* @default {}
|
|
362
|
+
*/
|
|
363
|
+
slots: _propTypes.default.shape({
|
|
364
|
+
closeButton: _propTypes.default.elementType,
|
|
365
|
+
closeIcon: _propTypes.default.elementType
|
|
366
|
+
}),
|
|
367
|
+
|
|
331
368
|
/**
|
|
332
369
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
333
370
|
*/
|
package/Alert/alertClasses.d.ts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
export interface AlertClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="filled"`. */
|
|
5
|
-
filled: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="outlined"`. */
|
|
7
|
-
outlined: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="standard"`. */
|
|
9
|
-
standard: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="standard"` and `color="success"`. */
|
|
11
|
-
standardSuccess: string;
|
|
12
|
-
/** Styles applied to the root element if `variant="standard"` and `color="info"`. */
|
|
13
|
-
standardInfo: string;
|
|
14
|
-
/** Styles applied to the root element if `variant="standard"` and `color="warning"`. */
|
|
15
|
-
standardWarning: string;
|
|
16
|
-
/** Styles applied to the root element if `variant="standard"` and `color="error"`. */
|
|
17
|
-
standardError: string;
|
|
18
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
|
|
19
|
-
outlinedSuccess: string;
|
|
20
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
|
|
21
|
-
outlinedInfo: string;
|
|
22
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
|
|
23
|
-
outlinedWarning: string;
|
|
24
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
|
|
25
|
-
outlinedError: string;
|
|
26
|
-
/** Styles applied to the root element if `variant="filled"` and `color="success"`. */
|
|
27
|
-
filledSuccess: string;
|
|
28
|
-
/** Styles applied to the root element if `variant="filled"` and `color="info"`. */
|
|
29
|
-
filledInfo: string;
|
|
30
|
-
/** Styles applied to the root element if `variant="filled"` and `color="warning"`. */
|
|
31
|
-
filledWarning: string;
|
|
32
|
-
/** Styles applied to the root element if `variant="filled"` and `color="error"`. */
|
|
33
|
-
filledError: string;
|
|
34
|
-
/** Styles applied to the icon wrapper element. */
|
|
35
|
-
icon: string;
|
|
36
|
-
/** Styles applied to the message wrapper element. */
|
|
37
|
-
message: string;
|
|
38
|
-
/** Styles applied to the action wrapper element if `action` is provided. */
|
|
39
|
-
action: string;
|
|
40
|
-
}
|
|
41
|
-
export declare type AlertClassKey = keyof AlertClasses;
|
|
42
|
-
export declare function getAlertUtilityClass(slot: string): string;
|
|
43
|
-
declare const alertClasses: AlertClasses;
|
|
44
|
-
export default alertClasses;
|
|
1
|
+
export interface AlertClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="filled"`. */
|
|
5
|
+
filled: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="outlined"`. */
|
|
7
|
+
outlined: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="standard"`. */
|
|
9
|
+
standard: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="standard"` and `color="success"`. */
|
|
11
|
+
standardSuccess: string;
|
|
12
|
+
/** Styles applied to the root element if `variant="standard"` and `color="info"`. */
|
|
13
|
+
standardInfo: string;
|
|
14
|
+
/** Styles applied to the root element if `variant="standard"` and `color="warning"`. */
|
|
15
|
+
standardWarning: string;
|
|
16
|
+
/** Styles applied to the root element if `variant="standard"` and `color="error"`. */
|
|
17
|
+
standardError: string;
|
|
18
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
|
|
19
|
+
outlinedSuccess: string;
|
|
20
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
|
|
21
|
+
outlinedInfo: string;
|
|
22
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
|
|
23
|
+
outlinedWarning: string;
|
|
24
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
|
|
25
|
+
outlinedError: string;
|
|
26
|
+
/** Styles applied to the root element if `variant="filled"` and `color="success"`. */
|
|
27
|
+
filledSuccess: string;
|
|
28
|
+
/** Styles applied to the root element if `variant="filled"` and `color="info"`. */
|
|
29
|
+
filledInfo: string;
|
|
30
|
+
/** Styles applied to the root element if `variant="filled"` and `color="warning"`. */
|
|
31
|
+
filledWarning: string;
|
|
32
|
+
/** Styles applied to the root element if `variant="filled"` and `color="error"`. */
|
|
33
|
+
filledError: string;
|
|
34
|
+
/** Styles applied to the icon wrapper element. */
|
|
35
|
+
icon: string;
|
|
36
|
+
/** Styles applied to the message wrapper element. */
|
|
37
|
+
message: string;
|
|
38
|
+
/** Styles applied to the action wrapper element if `action` is provided. */
|
|
39
|
+
action: string;
|
|
40
|
+
}
|
|
41
|
+
export declare type AlertClassKey = keyof AlertClasses;
|
|
42
|
+
export declare function getAlertUtilityClass(slot: string): string;
|
|
43
|
+
declare const alertClasses: AlertClasses;
|
|
44
|
+
export default alertClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface AlertTitleClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type AlertTitleClassKey = keyof AlertTitleClasses;
|
|
6
|
-
export declare function getAlertTitleUtilityClass(slot: string): string;
|
|
7
|
-
declare const alertTitleClasses: AlertTitleClasses;
|
|
8
|
-
export default alertTitleClasses;
|
|
1
|
+
export interface AlertTitleClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type AlertTitleClassKey = keyof AlertTitleClasses;
|
|
6
|
+
export declare function getAlertTitleUtilityClass(slot: string): string;
|
|
7
|
+
declare const alertTitleClasses: AlertTitleClasses;
|
|
8
|
+
export default alertTitleClasses;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export interface AppBarClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `position="fixed"`. */
|
|
5
|
-
positionFixed: string;
|
|
6
|
-
/** Styles applied to the root element if `position="absolute"`. */
|
|
7
|
-
positionAbsolute: string;
|
|
8
|
-
/** Styles applied to the root element if `position="sticky"`. */
|
|
9
|
-
positionSticky: string;
|
|
10
|
-
/** Styles applied to the root element if `position="static"`. */
|
|
11
|
-
positionStatic: string;
|
|
12
|
-
/** Styles applied to the root element if `position="relative"`. */
|
|
13
|
-
positionRelative: string;
|
|
14
|
-
/** Styles applied to the root element if `color="default"`. */
|
|
15
|
-
colorDefault: string;
|
|
16
|
-
/** Styles applied to the root element if `color="primary"`. */
|
|
17
|
-
colorPrimary: string;
|
|
18
|
-
/** Styles applied to the root element if `color="secondary"`. */
|
|
19
|
-
colorSecondary: string;
|
|
20
|
-
/** Styles applied to the root element if `color="inherit"`. */
|
|
21
|
-
colorInherit: string;
|
|
22
|
-
/** Styles applied to the root element if `color="transparent"`. */
|
|
23
|
-
colorTransparent: string;
|
|
24
|
-
}
|
|
25
|
-
export declare type AppBarClassKey = keyof AppBarClasses;
|
|
26
|
-
export declare function getAppBarUtilityClass(slot: string): string;
|
|
27
|
-
declare const appBarClasses: AppBarClasses;
|
|
28
|
-
export default appBarClasses;
|
|
1
|
+
export interface AppBarClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `position="fixed"`. */
|
|
5
|
+
positionFixed: string;
|
|
6
|
+
/** Styles applied to the root element if `position="absolute"`. */
|
|
7
|
+
positionAbsolute: string;
|
|
8
|
+
/** Styles applied to the root element if `position="sticky"`. */
|
|
9
|
+
positionSticky: string;
|
|
10
|
+
/** Styles applied to the root element if `position="static"`. */
|
|
11
|
+
positionStatic: string;
|
|
12
|
+
/** Styles applied to the root element if `position="relative"`. */
|
|
13
|
+
positionRelative: string;
|
|
14
|
+
/** Styles applied to the root element if `color="default"`. */
|
|
15
|
+
colorDefault: string;
|
|
16
|
+
/** Styles applied to the root element if `color="primary"`. */
|
|
17
|
+
colorPrimary: string;
|
|
18
|
+
/** Styles applied to the root element if `color="secondary"`. */
|
|
19
|
+
colorSecondary: string;
|
|
20
|
+
/** Styles applied to the root element if `color="inherit"`. */
|
|
21
|
+
colorInherit: string;
|
|
22
|
+
/** Styles applied to the root element if `color="transparent"`. */
|
|
23
|
+
colorTransparent: string;
|
|
24
|
+
}
|
|
25
|
+
export declare type AppBarClassKey = keyof AppBarClasses;
|
|
26
|
+
export declare function getAppBarUtilityClass(slot: string): string;
|
|
27
|
+
declare const appBarClasses: AppBarClasses;
|
|
28
|
+
export default appBarClasses;
|
|
@@ -258,6 +258,16 @@ export interface AutocompleteProps<
|
|
|
258
258
|
* @default 'medium'
|
|
259
259
|
*/
|
|
260
260
|
size?: OverridableStringUnion<'small' | 'medium', AutocompletePropsSizeOverrides>;
|
|
261
|
+
/**
|
|
262
|
+
* The props used for each slot inside.
|
|
263
|
+
* @default {}
|
|
264
|
+
*/
|
|
265
|
+
slotProps?: {
|
|
266
|
+
clearIndicator?: Partial<IconButtonProps>;
|
|
267
|
+
paper?: PaperProps;
|
|
268
|
+
popper?: Partial<PopperProps>;
|
|
269
|
+
popupIndicator?: Partial<IconButtonProps>;
|
|
270
|
+
};
|
|
261
271
|
/**
|
|
262
272
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
263
273
|
*/
|
|
@@ -63,7 +63,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
63
63
|
|
|
64
64
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
65
65
|
|
|
66
|
-
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "value"];
|
|
66
|
+
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"];
|
|
67
67
|
|
|
68
68
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
69
69
|
|
|
@@ -393,7 +393,7 @@ const AutocompleteGroupUl = (0, _styled.default)('ul', {
|
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps, ref) {
|
|
396
|
-
var
|
|
396
|
+
var _slotProps$clearIndic, _slotProps$paper, _slotProps$popper, _slotProps$popupIndic;
|
|
397
397
|
|
|
398
398
|
const props = (0, _useThemeProps.default)({
|
|
399
399
|
props: inProps,
|
|
@@ -454,7 +454,8 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
454
454
|
renderOption: renderOptionProp,
|
|
455
455
|
renderTags,
|
|
456
456
|
selectOnFocus = !props.freeSolo,
|
|
457
|
-
size = 'medium'
|
|
457
|
+
size = 'medium',
|
|
458
|
+
slotProps = {}
|
|
458
459
|
} = props,
|
|
459
460
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
460
461
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
@@ -561,6 +562,10 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
561
562
|
});
|
|
562
563
|
};
|
|
563
564
|
|
|
565
|
+
const clearIndicatorSlotProps = (_slotProps$clearIndic = slotProps.clearIndicator) != null ? _slotProps$clearIndic : componentsProps.clearIndicator;
|
|
566
|
+
const paperSlotProps = (_slotProps$paper = slotProps.paper) != null ? _slotProps$paper : componentsProps.paper;
|
|
567
|
+
const popperSlotProps = (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper;
|
|
568
|
+
const popupIndicatorSlotProps = (_slotProps$popupIndic = slotProps.popupIndicator) != null ? _slotProps$popupIndic : componentsProps.popupIndicator;
|
|
564
569
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
565
570
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteRoot, (0, _extends2.default)({
|
|
566
571
|
ref: ref,
|
|
@@ -585,16 +590,16 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
585
590
|
"aria-label": clearText,
|
|
586
591
|
title: clearText,
|
|
587
592
|
ownerState: ownerState
|
|
588
|
-
},
|
|
589
|
-
className: (0, _clsx.default)(classes.clearIndicator,
|
|
593
|
+
}, clearIndicatorSlotProps, {
|
|
594
|
+
className: (0, _clsx.default)(classes.clearIndicator, clearIndicatorSlotProps == null ? void 0 : clearIndicatorSlotProps.className),
|
|
590
595
|
children: clearIcon
|
|
591
596
|
})) : null, hasPopupIcon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompletePopupIndicator, (0, _extends2.default)({}, getPopupIndicatorProps(), {
|
|
592
597
|
disabled: disabled,
|
|
593
598
|
"aria-label": popupOpen ? closeText : openText,
|
|
594
599
|
title: popupOpen ? closeText : openText,
|
|
595
600
|
ownerState: ownerState
|
|
596
|
-
},
|
|
597
|
-
className: (0, _clsx.default)(classes.popupIndicator,
|
|
601
|
+
}, popupIndicatorSlotProps, {
|
|
602
|
+
className: (0, _clsx.default)(classes.popupIndicator, popupIndicatorSlotProps == null ? void 0 : popupIndicatorSlotProps.className),
|
|
598
603
|
children: popupIcon
|
|
599
604
|
})) : null]
|
|
600
605
|
})
|
|
@@ -615,13 +620,13 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
615
620
|
role: "presentation",
|
|
616
621
|
anchorEl: anchorEl,
|
|
617
622
|
open: popupOpen
|
|
618
|
-
},
|
|
619
|
-
className: (0, _clsx.default)(classes.popper,
|
|
623
|
+
}, popperSlotProps, {
|
|
624
|
+
className: (0, _clsx.default)(classes.popper, popperSlotProps == null ? void 0 : popperSlotProps.className),
|
|
620
625
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(AutocompletePaper, (0, _extends2.default)({
|
|
621
626
|
ownerState: ownerState,
|
|
622
627
|
as: PaperComponent
|
|
623
|
-
},
|
|
624
|
-
className: (0, _clsx.default)(classes.paper,
|
|
628
|
+
}, paperSlotProps, {
|
|
629
|
+
className: (0, _clsx.default)(classes.paper, paperSlotProps == null ? void 0 : paperSlotProps.className),
|
|
625
630
|
children: [loading && groupedOptions.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteLoading, {
|
|
626
631
|
className: classes.loading,
|
|
627
632
|
ownerState: ownerState,
|
|
@@ -1105,6 +1110,17 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
|
|
|
1105
1110
|
/* @typescript-to-proptypes-ignore */
|
|
1106
1111
|
.oneOfType([_propTypes.default.oneOf(['small', 'medium']), _propTypes.default.string]),
|
|
1107
1112
|
|
|
1113
|
+
/**
|
|
1114
|
+
* The props used for each slot inside.
|
|
1115
|
+
* @default {}
|
|
1116
|
+
*/
|
|
1117
|
+
slotProps: _propTypes.default.shape({
|
|
1118
|
+
clearIndicator: _propTypes.default.object,
|
|
1119
|
+
paper: _propTypes.default.object,
|
|
1120
|
+
popper: _propTypes.default.object,
|
|
1121
|
+
popupIndicator: _propTypes.default.object
|
|
1122
|
+
}),
|
|
1123
|
+
|
|
1108
1124
|
/**
|
|
1109
1125
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1110
1126
|
*/
|