@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
package/Grid/gridClasses.d.ts
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
export interface GridClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `container={true}`. */
|
|
5
|
-
container: string;
|
|
6
|
-
/** Styles applied to the root element if `item={true}`. */
|
|
7
|
-
item: string;
|
|
8
|
-
/** Styles applied to the root element if `zeroMinWidth={true}`. */
|
|
9
|
-
zeroMinWidth: string;
|
|
10
|
-
/** Styles applied to the root element if `direction="column"`. */
|
|
11
|
-
'direction-xs-column': string;
|
|
12
|
-
/** Styles applied to the root element if `direction="column-reverse"`. */
|
|
13
|
-
'direction-xs-column-reverse': string;
|
|
14
|
-
/** Styles applied to the root element if `direction="row-reverse"`. */
|
|
15
|
-
'direction-xs-row-reverse': string;
|
|
16
|
-
/** Styles applied to the root element if `wrap="nowrap"`. */
|
|
17
|
-
'wrap-xs-nowrap': string;
|
|
18
|
-
/** Styles applied to the root element if `wrap="reverse"`. */
|
|
19
|
-
'wrap-xs-wrap-reverse': string;
|
|
20
|
-
'spacing-xs-1': string;
|
|
21
|
-
'spacing-xs-2': string;
|
|
22
|
-
'spacing-xs-3': string;
|
|
23
|
-
'spacing-xs-4': string;
|
|
24
|
-
'spacing-xs-5': string;
|
|
25
|
-
'spacing-xs-6': string;
|
|
26
|
-
'spacing-xs-7': string;
|
|
27
|
-
'spacing-xs-8': string;
|
|
28
|
-
'spacing-xs-9': string;
|
|
29
|
-
'spacing-xs-10': string;
|
|
30
|
-
'grid-xs-auto': string;
|
|
31
|
-
'grid-xs-true': string;
|
|
32
|
-
'grid-xs-1': string;
|
|
33
|
-
'grid-xs-2': string;
|
|
34
|
-
'grid-xs-3': string;
|
|
35
|
-
'grid-xs-4': string;
|
|
36
|
-
'grid-xs-5': string;
|
|
37
|
-
'grid-xs-6': string;
|
|
38
|
-
'grid-xs-7': string;
|
|
39
|
-
'grid-xs-8': string;
|
|
40
|
-
'grid-xs-9': string;
|
|
41
|
-
'grid-xs-10': string;
|
|
42
|
-
'grid-xs-11': string;
|
|
43
|
-
'grid-xs-12': string;
|
|
44
|
-
}
|
|
45
|
-
export declare type GridClassKey = keyof GridClasses;
|
|
46
|
-
export declare function getGridUtilityClass(slot: string): string;
|
|
47
|
-
declare const gridClasses: GridClasses;
|
|
48
|
-
export default gridClasses;
|
|
1
|
+
export interface GridClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `container={true}`. */
|
|
5
|
+
container: string;
|
|
6
|
+
/** Styles applied to the root element if `item={true}`. */
|
|
7
|
+
item: string;
|
|
8
|
+
/** Styles applied to the root element if `zeroMinWidth={true}`. */
|
|
9
|
+
zeroMinWidth: string;
|
|
10
|
+
/** Styles applied to the root element if `direction="column"`. */
|
|
11
|
+
'direction-xs-column': string;
|
|
12
|
+
/** Styles applied to the root element if `direction="column-reverse"`. */
|
|
13
|
+
'direction-xs-column-reverse': string;
|
|
14
|
+
/** Styles applied to the root element if `direction="row-reverse"`. */
|
|
15
|
+
'direction-xs-row-reverse': string;
|
|
16
|
+
/** Styles applied to the root element if `wrap="nowrap"`. */
|
|
17
|
+
'wrap-xs-nowrap': string;
|
|
18
|
+
/** Styles applied to the root element if `wrap="reverse"`. */
|
|
19
|
+
'wrap-xs-wrap-reverse': string;
|
|
20
|
+
'spacing-xs-1': string;
|
|
21
|
+
'spacing-xs-2': string;
|
|
22
|
+
'spacing-xs-3': string;
|
|
23
|
+
'spacing-xs-4': string;
|
|
24
|
+
'spacing-xs-5': string;
|
|
25
|
+
'spacing-xs-6': string;
|
|
26
|
+
'spacing-xs-7': string;
|
|
27
|
+
'spacing-xs-8': string;
|
|
28
|
+
'spacing-xs-9': string;
|
|
29
|
+
'spacing-xs-10': string;
|
|
30
|
+
'grid-xs-auto': string;
|
|
31
|
+
'grid-xs-true': string;
|
|
32
|
+
'grid-xs-1': string;
|
|
33
|
+
'grid-xs-2': string;
|
|
34
|
+
'grid-xs-3': string;
|
|
35
|
+
'grid-xs-4': string;
|
|
36
|
+
'grid-xs-5': string;
|
|
37
|
+
'grid-xs-6': string;
|
|
38
|
+
'grid-xs-7': string;
|
|
39
|
+
'grid-xs-8': string;
|
|
40
|
+
'grid-xs-9': string;
|
|
41
|
+
'grid-xs-10': string;
|
|
42
|
+
'grid-xs-11': string;
|
|
43
|
+
'grid-xs-12': string;
|
|
44
|
+
}
|
|
45
|
+
export declare type GridClassKey = keyof GridClasses;
|
|
46
|
+
export declare function getGridUtilityClass(slot: string): string;
|
|
47
|
+
declare const gridClasses: GridClasses;
|
|
48
|
+
export default gridClasses;
|
package/Icon/iconClasses.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface IconClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `color="primary"`. */
|
|
5
|
-
colorPrimary: string;
|
|
6
|
-
/** Styles applied to the root element if `color="secondary"`. */
|
|
7
|
-
colorSecondary: string;
|
|
8
|
-
/** Styles applied to the root element if `color="action"`. */
|
|
9
|
-
colorAction: string;
|
|
10
|
-
/** Styles applied to the root element if `color="error"`. */
|
|
11
|
-
colorError: string;
|
|
12
|
-
/** Styles applied to the root element if `color="disabled"`. */
|
|
13
|
-
colorDisabled: string;
|
|
14
|
-
/** Styles applied to the root element if `fontSize="inherit"`. */
|
|
15
|
-
fontSizeInherit: string;
|
|
16
|
-
/** Styles applied to the root element if `fontSize="small"`. */
|
|
17
|
-
fontSizeSmall: string;
|
|
18
|
-
/** Styles applied to the root element if `fontSize="large"`. */
|
|
19
|
-
fontSizeLarge: string;
|
|
20
|
-
}
|
|
21
|
-
export declare type IconClassKey = keyof IconClasses;
|
|
22
|
-
export declare function getIconUtilityClass(slot: string): string;
|
|
23
|
-
declare const iconClasses: IconClasses;
|
|
24
|
-
export default iconClasses;
|
|
1
|
+
export interface IconClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `color="primary"`. */
|
|
5
|
+
colorPrimary: string;
|
|
6
|
+
/** Styles applied to the root element if `color="secondary"`. */
|
|
7
|
+
colorSecondary: string;
|
|
8
|
+
/** Styles applied to the root element if `color="action"`. */
|
|
9
|
+
colorAction: string;
|
|
10
|
+
/** Styles applied to the root element if `color="error"`. */
|
|
11
|
+
colorError: string;
|
|
12
|
+
/** Styles applied to the root element if `color="disabled"`. */
|
|
13
|
+
colorDisabled: string;
|
|
14
|
+
/** Styles applied to the root element if `fontSize="inherit"`. */
|
|
15
|
+
fontSizeInherit: string;
|
|
16
|
+
/** Styles applied to the root element if `fontSize="small"`. */
|
|
17
|
+
fontSizeSmall: string;
|
|
18
|
+
/** Styles applied to the root element if `fontSize="large"`. */
|
|
19
|
+
fontSizeLarge: string;
|
|
20
|
+
}
|
|
21
|
+
export declare type IconClassKey = keyof IconClasses;
|
|
22
|
+
export declare function getIconUtilityClass(slot: string): string;
|
|
23
|
+
declare const iconClasses: IconClasses;
|
|
24
|
+
export default iconClasses;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export interface IconButtonClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `edge="start"`. */
|
|
5
|
-
edgeStart: string;
|
|
6
|
-
/** Styles applied to the root element if `edge="end"`. */
|
|
7
|
-
edgeEnd: string;
|
|
8
|
-
/** Styles applied to the root element if `color="inherit"`. */
|
|
9
|
-
colorInherit: string;
|
|
10
|
-
/** Styles applied to the root element if `color="primary"`. */
|
|
11
|
-
colorPrimary: string;
|
|
12
|
-
/** Styles applied to the root element if `color="secondary"`. */
|
|
13
|
-
colorSecondary: string;
|
|
14
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
15
|
-
disabled: string;
|
|
16
|
-
/** Styles applied to the root element if `size="small"`. */
|
|
17
|
-
sizeSmall: string;
|
|
18
|
-
/** Styles applied to the root element if `size="medium"`. */
|
|
19
|
-
sizeMedium: string;
|
|
20
|
-
/** Styles applied to the root element if `size="large"`. */
|
|
21
|
-
sizeLarge: string;
|
|
22
|
-
}
|
|
23
|
-
export declare type IconButtonClassKey = keyof IconButtonClasses;
|
|
24
|
-
export declare function getIconButtonUtilityClass(slot: string): string;
|
|
25
|
-
declare const iconButtonClasses: IconButtonClasses;
|
|
26
|
-
export default iconButtonClasses;
|
|
1
|
+
export interface IconButtonClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `edge="start"`. */
|
|
5
|
+
edgeStart: string;
|
|
6
|
+
/** Styles applied to the root element if `edge="end"`. */
|
|
7
|
+
edgeEnd: string;
|
|
8
|
+
/** Styles applied to the root element if `color="inherit"`. */
|
|
9
|
+
colorInherit: string;
|
|
10
|
+
/** Styles applied to the root element if `color="primary"`. */
|
|
11
|
+
colorPrimary: string;
|
|
12
|
+
/** Styles applied to the root element if `color="secondary"`. */
|
|
13
|
+
colorSecondary: string;
|
|
14
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
15
|
+
disabled: string;
|
|
16
|
+
/** Styles applied to the root element if `size="small"`. */
|
|
17
|
+
sizeSmall: string;
|
|
18
|
+
/** Styles applied to the root element if `size="medium"`. */
|
|
19
|
+
sizeMedium: string;
|
|
20
|
+
/** Styles applied to the root element if `size="large"`. */
|
|
21
|
+
sizeLarge: string;
|
|
22
|
+
}
|
|
23
|
+
export declare type IconButtonClassKey = keyof IconButtonClasses;
|
|
24
|
+
export declare function getIconButtonUtilityClass(slot: string): string;
|
|
25
|
+
declare const iconButtonClasses: IconButtonClasses;
|
|
26
|
+
export default iconButtonClasses;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface ImageListClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="masonry"`. */
|
|
5
|
-
masonry: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="quilted"`. */
|
|
7
|
-
quilted: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="standard"`. */
|
|
9
|
-
standard: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="woven"`. */
|
|
11
|
-
woven: string;
|
|
12
|
-
}
|
|
13
|
-
export declare type ImageListClassKey = keyof ImageListClasses;
|
|
14
|
-
export declare function getImageListUtilityClass(slot: string): string;
|
|
15
|
-
declare const imageListClasses: ImageListClasses;
|
|
16
|
-
export default imageListClasses;
|
|
1
|
+
export interface ImageListClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="masonry"`. */
|
|
5
|
+
masonry: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="quilted"`. */
|
|
7
|
+
quilted: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="standard"`. */
|
|
9
|
+
standard: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="woven"`. */
|
|
11
|
+
woven: string;
|
|
12
|
+
}
|
|
13
|
+
export declare type ImageListClassKey = keyof ImageListClasses;
|
|
14
|
+
export declare function getImageListUtilityClass(slot: string): string;
|
|
15
|
+
declare const imageListClasses: ImageListClasses;
|
|
16
|
+
export default imageListClasses;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface ImageListItemClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to an `img` element to ensure it covers the item. */
|
|
5
|
-
img: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="standard"`. */
|
|
7
|
-
standard: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="woven"`. */
|
|
9
|
-
woven: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="masonry"`. */
|
|
11
|
-
masonry: string;
|
|
12
|
-
/** Styles applied to the root element if `variant="quilted"`. */
|
|
13
|
-
quilted: string;
|
|
14
|
-
}
|
|
15
|
-
export declare type ImageListItemClassKey = keyof ImageListItemClasses;
|
|
16
|
-
export declare function getImageListItemUtilityClass(slot: string): string;
|
|
17
|
-
declare const imageListItemClasses: ImageListItemClasses;
|
|
18
|
-
export default imageListItemClasses;
|
|
1
|
+
export interface ImageListItemClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to an `img` element to ensure it covers the item. */
|
|
5
|
+
img: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="standard"`. */
|
|
7
|
+
standard: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="woven"`. */
|
|
9
|
+
woven: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="masonry"`. */
|
|
11
|
+
masonry: string;
|
|
12
|
+
/** Styles applied to the root element if `variant="quilted"`. */
|
|
13
|
+
quilted: string;
|
|
14
|
+
}
|
|
15
|
+
export declare type ImageListItemClassKey = keyof ImageListItemClasses;
|
|
16
|
+
export declare function getImageListItemUtilityClass(slot: string): string;
|
|
17
|
+
declare const imageListItemClasses: ImageListItemClasses;
|
|
18
|
+
export default imageListItemClasses;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export interface ImageListItemBarClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `position="bottom"`. */
|
|
5
|
-
positionBottom: string;
|
|
6
|
-
/** Styles applied to the root element if `position="top"`. */
|
|
7
|
-
positionTop: string;
|
|
8
|
-
/** Styles applied to the root element if `position="below"`. */
|
|
9
|
-
positionBelow: string;
|
|
10
|
-
/** Styles applied to the title and subtitle container element. */
|
|
11
|
-
titleWrap: string;
|
|
12
|
-
/** Styles applied to the title and subtitle container element if `position="below"`. */
|
|
13
|
-
titleWrapBelow: string;
|
|
14
|
-
/** Styles applied to the container element if `actionPosition="left"`. */
|
|
15
|
-
titleWrapActionPosLeft: string;
|
|
16
|
-
/** Styles applied to the container element if `actionPosition="right"`. */
|
|
17
|
-
titleWrapActionPosRight: string;
|
|
18
|
-
/** Styles applied to the title container element. */
|
|
19
|
-
title: string;
|
|
20
|
-
/** Styles applied to the subtitle container element. */
|
|
21
|
-
subtitle: string;
|
|
22
|
-
/** Styles applied to the actionIcon if supplied. */
|
|
23
|
-
actionIcon: string;
|
|
24
|
-
/** Styles applied to the actionIcon if `actionPosition="left"`. */
|
|
25
|
-
actionIconActionPosLeft: string;
|
|
26
|
-
}
|
|
27
|
-
export declare type ImageListItemBarClassKey = keyof ImageListItemBarClasses;
|
|
28
|
-
export declare function getImageListItemBarUtilityClass(slot: string): string;
|
|
29
|
-
declare const imageListItemBarClasses: ImageListItemBarClasses;
|
|
30
|
-
export default imageListItemBarClasses;
|
|
1
|
+
export interface ImageListItemBarClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `position="bottom"`. */
|
|
5
|
+
positionBottom: string;
|
|
6
|
+
/** Styles applied to the root element if `position="top"`. */
|
|
7
|
+
positionTop: string;
|
|
8
|
+
/** Styles applied to the root element if `position="below"`. */
|
|
9
|
+
positionBelow: string;
|
|
10
|
+
/** Styles applied to the title and subtitle container element. */
|
|
11
|
+
titleWrap: string;
|
|
12
|
+
/** Styles applied to the title and subtitle container element if `position="below"`. */
|
|
13
|
+
titleWrapBelow: string;
|
|
14
|
+
/** Styles applied to the container element if `actionPosition="left"`. */
|
|
15
|
+
titleWrapActionPosLeft: string;
|
|
16
|
+
/** Styles applied to the container element if `actionPosition="right"`. */
|
|
17
|
+
titleWrapActionPosRight: string;
|
|
18
|
+
/** Styles applied to the title container element. */
|
|
19
|
+
title: string;
|
|
20
|
+
/** Styles applied to the subtitle container element. */
|
|
21
|
+
subtitle: string;
|
|
22
|
+
/** Styles applied to the actionIcon if supplied. */
|
|
23
|
+
actionIcon: string;
|
|
24
|
+
/** Styles applied to the actionIcon if `actionPosition="left"`. */
|
|
25
|
+
actionIconActionPosLeft: string;
|
|
26
|
+
}
|
|
27
|
+
export declare type ImageListItemBarClassKey = keyof ImageListItemBarClasses;
|
|
28
|
+
export declare function getImageListItemBarUtilityClass(slot: string): string;
|
|
29
|
+
declare const imageListItemBarClasses: ImageListItemBarClasses;
|
|
30
|
+
export default imageListItemBarClasses;
|
package/Input/Input.js
CHANGED
|
@@ -31,7 +31,7 @@ var _InputBase2 = require("../InputBase/InputBase");
|
|
|
31
31
|
|
|
32
32
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
33
|
|
|
34
|
-
const _excluded = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "type"];
|
|
34
|
+
const _excluded = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"];
|
|
35
35
|
|
|
36
36
|
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); }
|
|
37
37
|
|
|
@@ -136,6 +136,8 @@ const InputInput = (0, _styled.default)(_InputBase2.InputBaseComponent, {
|
|
|
136
136
|
overridesResolver: _InputBase2.inputOverridesResolver
|
|
137
137
|
})({});
|
|
138
138
|
const Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {
|
|
139
|
+
var _ref, _slots$root, _ref2, _slots$input;
|
|
140
|
+
|
|
139
141
|
const props = (0, _useThemeProps.default)({
|
|
140
142
|
props: inProps,
|
|
141
143
|
name: 'MuiInput'
|
|
@@ -147,6 +149,8 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {
|
|
|
147
149
|
fullWidth = false,
|
|
148
150
|
inputComponent = 'input',
|
|
149
151
|
multiline = false,
|
|
152
|
+
slotProps,
|
|
153
|
+
slots = {},
|
|
150
154
|
type = 'text'
|
|
151
155
|
} = props,
|
|
152
156
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
@@ -159,13 +163,15 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {
|
|
|
159
163
|
ownerState
|
|
160
164
|
}
|
|
161
165
|
};
|
|
162
|
-
const componentsProps = componentsPropsProp ? (0, _utils.deepmerge)(componentsPropsProp, inputComponentsProps) : inputComponentsProps;
|
|
166
|
+
const componentsProps = (slotProps != null ? slotProps : componentsPropsProp) ? (0, _utils.deepmerge)(slotProps != null ? slotProps : componentsPropsProp, inputComponentsProps) : inputComponentsProps;
|
|
167
|
+
const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : InputRoot;
|
|
168
|
+
const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : InputInput;
|
|
163
169
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputBase.default, (0, _extends2.default)({
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
},
|
|
168
|
-
|
|
170
|
+
slots: {
|
|
171
|
+
root: RootSlot,
|
|
172
|
+
input: InputSlot
|
|
173
|
+
},
|
|
174
|
+
slotProps: componentsProps,
|
|
169
175
|
fullWidth: fullWidth,
|
|
170
176
|
inputComponent: inputComponent,
|
|
171
177
|
multiline: multiline,
|
|
@@ -211,8 +217,11 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
|
|
|
211
217
|
.oneOfType([_propTypes.default.oneOf(['primary', 'secondary']), _propTypes.default.string]),
|
|
212
218
|
|
|
213
219
|
/**
|
|
214
|
-
* The components used for each slot inside
|
|
215
|
-
*
|
|
220
|
+
* The components used for each slot inside.
|
|
221
|
+
*
|
|
222
|
+
* This prop is an alias for the `slots` prop.
|
|
223
|
+
* It's recommended to use the `slots` prop instead.
|
|
224
|
+
*
|
|
216
225
|
* @default {}
|
|
217
226
|
*/
|
|
218
227
|
components: _propTypes.default.shape({
|
|
@@ -221,7 +230,12 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
|
|
|
221
230
|
}),
|
|
222
231
|
|
|
223
232
|
/**
|
|
224
|
-
* The props
|
|
233
|
+
* The extra props for the slot components.
|
|
234
|
+
* You can override the existing props or add new ones.
|
|
235
|
+
*
|
|
236
|
+
* This prop is an alias for the `slotProps` prop.
|
|
237
|
+
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
238
|
+
*
|
|
225
239
|
* @default {}
|
|
226
240
|
*/
|
|
227
241
|
componentsProps: _propTypes.default.shape({
|
|
@@ -343,6 +357,31 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
|
|
|
343
357
|
*/
|
|
344
358
|
rows: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
345
359
|
|
|
360
|
+
/**
|
|
361
|
+
* The extra props for the slot components.
|
|
362
|
+
* You can override the existing props or add new ones.
|
|
363
|
+
*
|
|
364
|
+
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
365
|
+
*
|
|
366
|
+
* @default {}
|
|
367
|
+
*/
|
|
368
|
+
slotProps: _propTypes.default.shape({
|
|
369
|
+
input: _propTypes.default.object,
|
|
370
|
+
root: _propTypes.default.object
|
|
371
|
+
}),
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* The components used for each slot inside.
|
|
375
|
+
*
|
|
376
|
+
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
377
|
+
*
|
|
378
|
+
* @default {}
|
|
379
|
+
*/
|
|
380
|
+
slots: _propTypes.default.shape({
|
|
381
|
+
input: _propTypes.default.elementType,
|
|
382
|
+
root: _propTypes.default.elementType
|
|
383
|
+
}),
|
|
384
|
+
|
|
346
385
|
/**
|
|
347
386
|
* Start `InputAdornment` for this component.
|
|
348
387
|
*/
|
package/Input/inputClasses.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export interface InputClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if the component is a descendant of `FormControl`. */
|
|
5
|
-
formControl: string;
|
|
6
|
-
/** Styles applied to the root element if the component is focused. */
|
|
7
|
-
focused: string;
|
|
8
|
-
/** Styles applied to the root element if `disabled={true}`. */
|
|
9
|
-
disabled: string;
|
|
10
|
-
/** Styles applied to the root element if color secondary. */
|
|
11
|
-
colorSecondary: string;
|
|
12
|
-
/** Styles applied to the root element unless `disableUnderline={true}`. */
|
|
13
|
-
underline: string;
|
|
14
|
-
/** State class applied to the root element if `error={true}`. */
|
|
15
|
-
error: string;
|
|
16
|
-
/** Styles applied to the input element if `size="small"`. */
|
|
17
|
-
sizeSmall: string;
|
|
18
|
-
/** Styles applied to the root element if `multiline={true}`. */
|
|
19
|
-
multiline: string;
|
|
20
|
-
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
21
|
-
fullWidth: string;
|
|
22
|
-
/** Styles applied to the input element. */
|
|
23
|
-
input: string;
|
|
24
|
-
/** Styles applied to the input element if `size="small"`. */
|
|
25
|
-
inputSizeSmall: string;
|
|
26
|
-
/** Styles applied to the input element if `multiline={true}`. */
|
|
27
|
-
inputMultiline: string;
|
|
28
|
-
/** Styles applied to the input element if `type="search"`. */
|
|
29
|
-
inputTypeSearch: string;
|
|
30
|
-
}
|
|
31
|
-
export declare type InputClassKey = keyof InputClasses;
|
|
32
|
-
export declare function getInputUtilityClass(slot: string): string;
|
|
33
|
-
declare const inputClasses: InputClasses;
|
|
34
|
-
export default inputClasses;
|
|
1
|
+
export interface InputClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if the component is a descendant of `FormControl`. */
|
|
5
|
+
formControl: string;
|
|
6
|
+
/** Styles applied to the root element if the component is focused. */
|
|
7
|
+
focused: string;
|
|
8
|
+
/** Styles applied to the root element if `disabled={true}`. */
|
|
9
|
+
disabled: string;
|
|
10
|
+
/** Styles applied to the root element if color secondary. */
|
|
11
|
+
colorSecondary: string;
|
|
12
|
+
/** Styles applied to the root element unless `disableUnderline={true}`. */
|
|
13
|
+
underline: string;
|
|
14
|
+
/** State class applied to the root element if `error={true}`. */
|
|
15
|
+
error: string;
|
|
16
|
+
/** Styles applied to the input element if `size="small"`. */
|
|
17
|
+
sizeSmall: string;
|
|
18
|
+
/** Styles applied to the root element if `multiline={true}`. */
|
|
19
|
+
multiline: string;
|
|
20
|
+
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
21
|
+
fullWidth: string;
|
|
22
|
+
/** Styles applied to the input element. */
|
|
23
|
+
input: string;
|
|
24
|
+
/** Styles applied to the input element if `size="small"`. */
|
|
25
|
+
inputSizeSmall: string;
|
|
26
|
+
/** Styles applied to the input element if `multiline={true}`. */
|
|
27
|
+
inputMultiline: string;
|
|
28
|
+
/** Styles applied to the input element if `type="search"`. */
|
|
29
|
+
inputTypeSearch: string;
|
|
30
|
+
}
|
|
31
|
+
export declare type InputClassKey = keyof InputClasses;
|
|
32
|
+
export declare function getInputUtilityClass(slot: string): string;
|
|
33
|
+
declare const inputClasses: InputClasses;
|
|
34
|
+
export default inputClasses;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface InputAdornmentClasses {
|
|
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 `position="start"`. */
|
|
11
|
-
positionStart: string;
|
|
12
|
-
/** Styles applied to the root element if `position="end"`. */
|
|
13
|
-
positionEnd: string;
|
|
14
|
-
/** Styles applied to the root element if `disablePointerEvents={true}`. */
|
|
15
|
-
disablePointerEvents: string;
|
|
16
|
-
/** Styles applied if the adornment is used inside <FormControl hiddenLabel />. */
|
|
17
|
-
hiddenLabel: string;
|
|
18
|
-
/** Styles applied if the adornment is used inside <FormControl size="small" />. */
|
|
19
|
-
sizeSmall: string;
|
|
20
|
-
}
|
|
21
|
-
export declare type InputAdornmentClassKey = keyof InputAdornmentClasses;
|
|
22
|
-
export declare function getInputAdornmentUtilityClass(slot: string): string;
|
|
23
|
-
declare const inputAdornmentClasses: InputAdornmentClasses;
|
|
24
|
-
export default inputAdornmentClasses;
|
|
1
|
+
export interface InputAdornmentClasses {
|
|
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 `position="start"`. */
|
|
11
|
+
positionStart: string;
|
|
12
|
+
/** Styles applied to the root element if `position="end"`. */
|
|
13
|
+
positionEnd: string;
|
|
14
|
+
/** Styles applied to the root element if `disablePointerEvents={true}`. */
|
|
15
|
+
disablePointerEvents: string;
|
|
16
|
+
/** Styles applied if the adornment is used inside <FormControl hiddenLabel />. */
|
|
17
|
+
hiddenLabel: string;
|
|
18
|
+
/** Styles applied if the adornment is used inside <FormControl size="small" />. */
|
|
19
|
+
sizeSmall: string;
|
|
20
|
+
}
|
|
21
|
+
export declare type InputAdornmentClassKey = keyof InputAdornmentClasses;
|
|
22
|
+
export declare function getInputAdornmentUtilityClass(slot: string): string;
|
|
23
|
+
declare const inputAdornmentClasses: InputAdornmentClasses;
|
|
24
|
+
export default inputAdornmentClasses;
|
package/InputBase/InputBase.d.ts
CHANGED
|
@@ -54,8 +54,11 @@ export interface InputBaseProps
|
|
|
54
54
|
InputBasePropsColorOverrides
|
|
55
55
|
>;
|
|
56
56
|
/**
|
|
57
|
-
* The components used for each slot inside
|
|
58
|
-
*
|
|
57
|
+
* The components used for each slot inside.
|
|
58
|
+
*
|
|
59
|
+
* This prop is an alias for the `slots` prop.
|
|
60
|
+
* It's recommended to use the `slots` prop instead.
|
|
61
|
+
*
|
|
59
62
|
* @default {}
|
|
60
63
|
*/
|
|
61
64
|
components?: {
|
|
@@ -63,7 +66,12 @@ export interface InputBaseProps
|
|
|
63
66
|
Input?: React.ElementType;
|
|
64
67
|
};
|
|
65
68
|
/**
|
|
66
|
-
* The props
|
|
69
|
+
* The extra props for the slot components.
|
|
70
|
+
* You can override the existing props or add new ones.
|
|
71
|
+
*
|
|
72
|
+
* This prop is an alias for the `slotProps` prop.
|
|
73
|
+
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
74
|
+
*
|
|
67
75
|
* @default {}
|
|
68
76
|
*/
|
|
69
77
|
componentsProps?: {
|
|
@@ -192,6 +200,29 @@ export interface InputBaseProps
|
|
|
192
200
|
* The size of the component.
|
|
193
201
|
*/
|
|
194
202
|
size?: OverridableStringUnion<'small' | 'medium', InputBasePropsSizeOverrides>;
|
|
203
|
+
/**
|
|
204
|
+
* The extra props for the slot components.
|
|
205
|
+
* You can override the existing props or add new ones.
|
|
206
|
+
*
|
|
207
|
+
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
208
|
+
*
|
|
209
|
+
* @default {}
|
|
210
|
+
*/
|
|
211
|
+
slotProps?: {
|
|
212
|
+
root?: React.HTMLAttributes<HTMLDivElement> & InputBaseComponentsPropsOverrides;
|
|
213
|
+
input?: React.InputHTMLAttributes<HTMLInputElement> & InputBaseComponentsPropsOverrides;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* The components used for each slot inside.
|
|
217
|
+
*
|
|
218
|
+
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
219
|
+
*
|
|
220
|
+
* @default {}
|
|
221
|
+
*/
|
|
222
|
+
slots?: {
|
|
223
|
+
root?: React.ElementType;
|
|
224
|
+
input?: React.ElementType;
|
|
225
|
+
};
|
|
195
226
|
/**
|
|
196
227
|
* Start `InputAdornment` for this component.
|
|
197
228
|
*/
|