@mui/material 7.3.4 → 7.3.6
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 +56 -55
- package/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
- package/Alert/alertClasses.d.ts +24 -24
- package/AppBar/AppBar.d.ts +13 -2
- package/AppBar/AppBar.js +12 -1
- package/Breadcrumbs/BreadcrumbCollapsed.js +0 -2
- package/Button/Button.d.ts +1 -0
- package/Button/buttonClasses.d.ts +33 -33
- package/ButtonBase/ButtonBase.js +8 -1
- package/ButtonBase/TouchRipple.js +1 -1
- package/ButtonGroup/buttonGroupClasses.d.ts +17 -17
- package/CHANGELOG.md +142 -0
- package/Chip/Chip.js +1 -1
- package/Chip/chipClasses.d.ts +26 -26
- package/CircularProgress/circularProgressClasses.d.ts +2 -2
- package/Collapse/Collapse.d.ts +31 -1
- package/Collapse/Collapse.js +73 -30
- package/CssBaseline/CssBaseline.d.ts +1 -1
- package/CssBaseline/CssBaseline.js +1 -1
- package/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
- package/Dialog/dialogClasses.d.ts +2 -2
- package/Divider/dividerClasses.d.ts +1 -1
- package/Drawer/drawerClasses.d.ts +8 -8
- package/FormControl/FormControl.d.ts +1 -0
- package/FormHelperText/FormHelperText.d.ts +1 -0
- package/FormLabel/FormLabel.d.ts +1 -0
- package/GlobalStyles/GlobalStyles.js +0 -2
- package/IconButton/IconButton.d.ts +1 -0
- package/ImageListItemBar/imageListItemBarClasses.d.ts +4 -4
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +1 -2
- package/InitColorSchemeScript/InitColorSchemeScript.js +0 -2
- package/Input/inputClasses.d.ts +4 -4
- package/InputBase/inputBaseClasses.d.ts +5 -5
- package/InputLabel/InputLabel.d.ts +1 -0
- package/LinearProgress/linearProgressClasses.d.ts +9 -9
- package/ListItem/ListItem.d.ts +5 -0
- package/ListItem/ListItem.js +19 -4
- package/MenuList/MenuList.js +2 -1
- package/OutlinedInput/NotchedOutline.js +0 -2
- package/OutlinedInput/OutlinedInput.d.ts +1 -0
- package/OutlinedInput/outlinedInputClasses.d.ts +4 -4
- package/PaginationItem/paginationItemClasses.d.ts +4 -4
- package/Radio/RadioButtonIcon.js +0 -2
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +1 -1
- package/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/Select/SelectInput.d.ts +2 -0
- package/Select/SelectInput.js +6 -0
- package/Select/selectClasses.d.ts +3 -3
- package/Slider/Slider.d.ts +1 -1
- package/Slider/sliderClasses.d.ts +7 -7
- package/Slider/useSlider.types.d.ts +1 -1
- package/Snackbar/Snackbar.js +1 -3
- package/StepConnector/stepConnectorClasses.d.ts +2 -2
- package/TableSortLabel/tableSortLabelClasses.d.ts +2 -2
- package/Tabs/Tabs.js +3 -2
- package/TextField/TextField.d.ts +10 -5
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
- package/Unstable_TrapFocus/FocusTrap.js +13 -8
- package/Zoom/Zoom.d.ts +1 -1
- package/Zoom/Zoom.js +1 -1
- package/esm/Accordion/Accordion.d.ts +56 -55
- package/esm/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
- package/esm/Alert/alertClasses.d.ts +24 -24
- package/esm/AppBar/AppBar.d.ts +13 -2
- package/esm/AppBar/AppBar.js +12 -1
- package/esm/Breadcrumbs/BreadcrumbCollapsed.js +0 -1
- package/esm/Button/Button.d.ts +1 -0
- package/esm/Button/buttonClasses.d.ts +33 -33
- package/esm/ButtonBase/ButtonBase.js +8 -1
- package/esm/ButtonBase/TouchRipple.js +1 -1
- package/esm/ButtonGroup/buttonGroupClasses.d.ts +17 -17
- package/esm/Chip/Chip.js +1 -1
- package/esm/Chip/chipClasses.d.ts +26 -26
- package/esm/CircularProgress/circularProgressClasses.d.ts +2 -2
- package/esm/Collapse/Collapse.d.ts +31 -1
- package/esm/Collapse/Collapse.js +73 -30
- package/esm/CssBaseline/CssBaseline.d.ts +1 -1
- package/esm/CssBaseline/CssBaseline.js +1 -1
- package/esm/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
- package/esm/Dialog/dialogClasses.d.ts +2 -2
- package/esm/Divider/dividerClasses.d.ts +1 -1
- package/esm/Drawer/drawerClasses.d.ts +8 -8
- package/esm/FormControl/FormControl.d.ts +1 -0
- package/esm/FormHelperText/FormHelperText.d.ts +1 -0
- package/esm/FormLabel/FormLabel.d.ts +1 -0
- package/esm/GlobalStyles/GlobalStyles.js +0 -1
- package/esm/IconButton/IconButton.d.ts +1 -0
- package/esm/ImageListItemBar/imageListItemBarClasses.d.ts +4 -4
- package/esm/InitColorSchemeScript/InitColorSchemeScript.d.ts +1 -2
- package/esm/InitColorSchemeScript/InitColorSchemeScript.js +0 -1
- package/esm/Input/inputClasses.d.ts +4 -4
- package/esm/InputBase/inputBaseClasses.d.ts +5 -5
- package/esm/InputLabel/InputLabel.d.ts +1 -0
- package/esm/LinearProgress/linearProgressClasses.d.ts +9 -9
- package/esm/ListItem/ListItem.d.ts +5 -0
- package/esm/ListItem/ListItem.js +19 -4
- package/esm/MenuList/MenuList.js +2 -1
- package/esm/OutlinedInput/NotchedOutline.js +0 -1
- package/esm/OutlinedInput/OutlinedInput.d.ts +1 -0
- package/esm/OutlinedInput/outlinedInputClasses.d.ts +4 -4
- package/esm/PaginationItem/paginationItemClasses.d.ts +4 -4
- package/esm/Radio/RadioButtonIcon.js +0 -1
- package/esm/ScopedCssBaseline/ScopedCssBaseline.d.ts +1 -1
- package/esm/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/esm/Select/SelectInput.d.ts +2 -0
- package/esm/Select/SelectInput.js +6 -0
- package/esm/Select/selectClasses.d.ts +3 -3
- package/esm/Slider/Slider.d.ts +1 -1
- package/esm/Slider/sliderClasses.d.ts +7 -7
- package/esm/Slider/useSlider.types.d.ts +1 -1
- package/esm/Snackbar/Snackbar.js +1 -3
- package/esm/StepConnector/stepConnectorClasses.d.ts +2 -2
- package/esm/TableSortLabel/tableSortLabelClasses.d.ts +2 -2
- package/esm/Tabs/Tabs.js +3 -2
- package/esm/TextField/TextField.d.ts +10 -5
- package/esm/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
- package/esm/Unstable_TrapFocus/FocusTrap.js +13 -8
- package/esm/Zoom/Zoom.d.ts +1 -1
- package/esm/Zoom/Zoom.js +1 -1
- package/esm/index.js +1 -1
- package/esm/internal/svg-icons/Add.js +0 -1
- package/esm/internal/svg-icons/ArrowDownward.js +0 -1
- package/esm/internal/svg-icons/ArrowDropDown.js +0 -1
- package/esm/internal/svg-icons/Cancel.js +0 -1
- package/esm/internal/svg-icons/CheckBox.js +0 -1
- package/esm/internal/svg-icons/CheckBoxOutlineBlank.js +0 -1
- package/esm/internal/svg-icons/CheckCircle.js +0 -1
- package/esm/internal/svg-icons/Close.js +0 -1
- package/esm/internal/svg-icons/ErrorOutline.js +0 -1
- package/esm/internal/svg-icons/FirstPage.js +0 -1
- package/esm/internal/svg-icons/IndeterminateCheckBox.js +0 -1
- package/esm/internal/svg-icons/InfoOutlined.js +0 -1
- package/esm/internal/svg-icons/KeyboardArrowLeft.js +0 -1
- package/esm/internal/svg-icons/KeyboardArrowRight.js +0 -1
- package/esm/internal/svg-icons/LastPage.js +0 -1
- package/esm/internal/svg-icons/MoreHoriz.js +0 -1
- package/esm/internal/svg-icons/NavigateBefore.js +0 -1
- package/esm/internal/svg-icons/NavigateNext.js +0 -1
- package/esm/internal/svg-icons/Person.js +0 -1
- package/esm/internal/svg-icons/RadioButtonChecked.js +0 -1
- package/esm/internal/svg-icons/RadioButtonUnchecked.js +0 -1
- package/esm/internal/svg-icons/ReportProblemOutlined.js +0 -1
- package/esm/internal/svg-icons/Star.js +0 -1
- package/esm/internal/svg-icons/StarBorder.js +0 -1
- package/esm/internal/svg-icons/SuccessOutlined.js +0 -1
- package/esm/internal/svg-icons/Warning.js +0 -1
- package/esm/locale/caES.js +45 -42
- package/esm/styles/ThemeProvider.d.ts +1 -1
- package/esm/styles/ThemeProviderWithVars.d.ts +2 -3
- package/esm/styles/ThemeProviderWithVars.js +0 -1
- package/esm/styles/createThemeFoundation.d.ts +5 -3
- package/esm/styles/createThemeNoVars.d.ts +6 -3
- package/esm/styles/createThemeWithVars.d.ts +4 -4
- package/esm/styles/index.d.ts +1 -1
- package/esm/useAutocomplete/useAutocomplete.js +15 -2
- package/esm/utils/getActiveElement.d.ts +2 -0
- package/esm/utils/getActiveElement.js +2 -0
- package/esm/version/index.js +2 -2
- package/esm/zero-styled/index.d.ts +1 -2
- package/esm/zero-styled/index.js +0 -1
- package/index.js +1 -1
- package/internal/svg-icons/Add.js +0 -2
- package/internal/svg-icons/ArrowDownward.js +0 -2
- package/internal/svg-icons/ArrowDropDown.js +0 -2
- package/internal/svg-icons/Cancel.js +0 -2
- package/internal/svg-icons/CheckBox.js +0 -2
- package/internal/svg-icons/CheckBoxOutlineBlank.js +0 -2
- package/internal/svg-icons/CheckCircle.js +0 -2
- package/internal/svg-icons/Close.js +0 -2
- package/internal/svg-icons/ErrorOutline.js +0 -2
- package/internal/svg-icons/FirstPage.js +0 -2
- package/internal/svg-icons/IndeterminateCheckBox.js +0 -2
- package/internal/svg-icons/InfoOutlined.js +0 -2
- package/internal/svg-icons/KeyboardArrowLeft.js +0 -2
- package/internal/svg-icons/KeyboardArrowRight.js +0 -2
- package/internal/svg-icons/LastPage.js +0 -2
- package/internal/svg-icons/MoreHoriz.js +0 -2
- package/internal/svg-icons/NavigateBefore.js +0 -2
- package/internal/svg-icons/NavigateNext.js +0 -2
- package/internal/svg-icons/Person.js +0 -2
- package/internal/svg-icons/RadioButtonChecked.js +0 -2
- package/internal/svg-icons/RadioButtonUnchecked.js +0 -2
- package/internal/svg-icons/ReportProblemOutlined.js +0 -2
- package/internal/svg-icons/Star.js +0 -2
- package/internal/svg-icons/StarBorder.js +0 -2
- package/internal/svg-icons/SuccessOutlined.js +0 -2
- package/internal/svg-icons/Warning.js +0 -2
- package/locale/caES.js +45 -42
- package/package.json +7 -7
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/ThemeProviderWithVars.d.ts +2 -3
- package/styles/ThemeProviderWithVars.js +0 -2
- package/styles/createThemeFoundation.d.ts +5 -3
- package/styles/createThemeNoVars.d.ts +6 -3
- package/styles/createThemeWithVars.d.ts +4 -4
- package/styles/index.d.ts +1 -1
- package/useAutocomplete/useAutocomplete.js +15 -2
- package/utils/getActiveElement.d.ts +2 -0
- package/utils/getActiveElement.js +9 -0
- package/version/index.js +2 -2
- package/zero-styled/index.d.ts +1 -2
- package/zero-styled/index.js +0 -2
|
@@ -24,21 +24,21 @@ export interface ChipClasses {
|
|
|
24
24
|
/** Styles applied to the root element if `onClick` is defined or `clickable={true}`. */
|
|
25
25
|
clickable: string;
|
|
26
26
|
/** Styles applied to the root element if `onClick` and `color="primary"` is defined or `clickable={true}`.
|
|
27
|
-
* @deprecated Combine the [.MuiChip-clickable](/material-ui/api/chip/#chip-classes-clickable) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
27
|
+
* @deprecated Combine the [.MuiChip-clickable](/material-ui/api/chip/#chip-classes-MuiChip-clickable) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
28
28
|
*/
|
|
29
29
|
clickableColorPrimary: string;
|
|
30
30
|
/** Styles applied to the root element if `onClick` and `color="secondary"` is defined or `clickable={true}`.
|
|
31
|
-
* @deprecated Combine the [.MuiChip-clickable](/material-ui/api/chip/#chip-classes-clickable) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
31
|
+
* @deprecated Combine the [.MuiChip-clickable](/material-ui/api/chip/#chip-classes-MuiChip-clickable) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
32
32
|
*/
|
|
33
33
|
clickableColorSecondary: string;
|
|
34
34
|
/** Styles applied to the root element if `onDelete` is defined. */
|
|
35
35
|
deletable: string;
|
|
36
36
|
/** Styles applied to the root element if `onDelete` and `color="primary"` is defined.
|
|
37
|
-
* @deprecated Combine the [.MuiChip-deletable](/material-ui/api/chip/#chip-classes-deletable) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
37
|
+
* @deprecated Combine the [.MuiChip-deletable](/material-ui/api/chip/#chip-classes-MuiChip-deletable) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
38
38
|
*/
|
|
39
39
|
deletableColorPrimary: string;
|
|
40
40
|
/** Styles applied to the root element if `onDelete` and `color="secondary"` is defined.
|
|
41
|
-
* @deprecated Combine the [.MuiChip-deletable](/material-ui/api/chip/#chip-classes-deletable) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
41
|
+
* @deprecated Combine the [.MuiChip-deletable](/material-ui/api/chip/#chip-classes-MuiChip-deletable) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
42
42
|
*/
|
|
43
43
|
deletableColorSecondary: string;
|
|
44
44
|
/** Styles applied to the root element if `variant="outlined"`. */
|
|
@@ -46,99 +46,99 @@ export interface ChipClasses {
|
|
|
46
46
|
/** Styles applied to the root element if `variant="filled"`. */
|
|
47
47
|
filled: string;
|
|
48
48
|
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`.
|
|
49
|
-
* @deprecated Combine the [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
49
|
+
* @deprecated Combine the [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-MuiChip-outlined) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
50
50
|
*/
|
|
51
51
|
outlinedPrimary: string;
|
|
52
52
|
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`.
|
|
53
|
-
* @deprecated Combine the [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
53
|
+
* @deprecated Combine the [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-MuiChip-outlined) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
54
54
|
*/
|
|
55
55
|
outlinedSecondary: string;
|
|
56
56
|
/** Styles applied to the root element if `variant="filled"` and `color="primary"`.
|
|
57
|
-
* @deprecated Combine the [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
57
|
+
* @deprecated Combine the [.MuiChip-filled](/material-ui/api/chip/#chip-classes-MuiChip-filled) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
58
58
|
*/
|
|
59
59
|
filledPrimary: string;
|
|
60
60
|
/** Styles applied to the root element if `variant="filled"` and `color="secondary"`.
|
|
61
|
-
* @deprecated Combine the [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
61
|
+
* @deprecated Combine the [.MuiChip-filled](/material-ui/api/chip/#chip-classes-MuiChip-filled) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
62
62
|
*/
|
|
63
63
|
filledSecondary: string;
|
|
64
64
|
/** Styles applied to the avatar element. */
|
|
65
65
|
avatar: string;
|
|
66
66
|
/** Styles applied to the avatar element if `size="small"`.
|
|
67
|
-
* @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
67
|
+
* @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-MuiChip-avatar) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-MuiChip-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
68
68
|
*/
|
|
69
69
|
avatarSmall: string;
|
|
70
70
|
/** Styles applied to the avatar element if `size="medium"`.
|
|
71
|
-
* @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
71
|
+
* @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-MuiChip-avatar) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-MuiChip-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
72
72
|
*/
|
|
73
73
|
avatarMedium: string;
|
|
74
74
|
/** Styles applied to the avatar element if `color="primary"`.
|
|
75
|
-
* @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
75
|
+
* @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-MuiChip-avatar) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
76
76
|
*/
|
|
77
77
|
avatarColorPrimary: string;
|
|
78
78
|
/** Styles applied to the avatar element if `color="secondary"`.
|
|
79
|
-
* @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
79
|
+
* @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-MuiChip-avatar) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
80
80
|
*/
|
|
81
81
|
avatarColorSecondary: string;
|
|
82
82
|
/** Styles applied to the icon element. */
|
|
83
83
|
icon: string;
|
|
84
84
|
/** Styles applied to the icon element if `size="small"`.
|
|
85
|
-
* @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
85
|
+
* @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-MuiChip-icon) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-MuiChip-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
86
86
|
*/
|
|
87
87
|
iconSmall: string;
|
|
88
88
|
/** Styles applied to the icon element if `size="medium"`.
|
|
89
|
-
* @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
89
|
+
* @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-MuiChip-icon) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-MuiChip-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
90
90
|
*/
|
|
91
91
|
iconMedium: string;
|
|
92
92
|
/** Styles applied to the icon element if `color="primary"`.
|
|
93
|
-
* @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
93
|
+
* @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-MuiChip-icon) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
94
94
|
*/
|
|
95
95
|
iconColorPrimary: string;
|
|
96
96
|
/** Styles applied to the icon element if `color="secondary"`.
|
|
97
|
-
* @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
97
|
+
* @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-MuiChip-icon) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
98
98
|
*/
|
|
99
99
|
iconColorSecondary: string;
|
|
100
100
|
/** Styles applied to the label `span` element. */
|
|
101
101
|
label: string;
|
|
102
102
|
/** Styles applied to the label `span` element if `size="small"`.
|
|
103
|
-
* @deprecated Combine the [.MuiChip-label](/material-ui/api/chip/#
|
|
103
|
+
* @deprecated Combine the [.MuiChip-label](/material-ui/api/chip/#Chip-css-MuiChip-label) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-MuiChip-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
104
104
|
*/
|
|
105
105
|
labelSmall: string;
|
|
106
106
|
/** Styles applied to the label `span` element if `size="medium"`.
|
|
107
|
-
* @deprecated Combine the [.MuiChip-label](/material-ui/api/chip/#
|
|
107
|
+
* @deprecated Combine the [.MuiChip-label](/material-ui/api/chip/#Chip-css-MuiChip-label) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-MuiChip-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
108
108
|
*/
|
|
109
109
|
labelMedium: string;
|
|
110
110
|
/** Styles applied to the deleteIcon element. */
|
|
111
111
|
deleteIcon: string;
|
|
112
112
|
/** Styles applied to the deleteIcon element if `size="small"`.
|
|
113
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
113
|
+
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-MuiChip-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
114
114
|
*/
|
|
115
115
|
deleteIconSmall: string;
|
|
116
116
|
/** Styles applied to the deleteIcon element if `size="medium"`.
|
|
117
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
117
|
+
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-MuiChip-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
118
118
|
*/
|
|
119
119
|
deleteIconMedium: string;
|
|
120
120
|
/** Styles applied to the deleteIcon element if `color="primary"`.
|
|
121
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
121
|
+
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
122
122
|
*/
|
|
123
123
|
deleteIconColorPrimary: string;
|
|
124
124
|
/** Styles applied to the deleteIcon element if `color="secondary"`.
|
|
125
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
125
|
+
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
126
126
|
*/
|
|
127
127
|
deleteIconColorSecondary: string;
|
|
128
128
|
/** Styles applied to the deleteIcon element if `color="primary"` and `variant="outlined"`.
|
|
129
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
129
|
+
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) , [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-MuiChip-outlined) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
130
130
|
*/
|
|
131
131
|
deleteIconOutlinedColorPrimary: string;
|
|
132
132
|
/** Styles applied to the deleteIcon element if `color="secondary"` and `variant="outlined"`.
|
|
133
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
133
|
+
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) , [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-MuiChip-outlined) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
134
134
|
*/
|
|
135
135
|
deleteIconOutlinedColorSecondary: string;
|
|
136
136
|
/** Styles applied to the deleteIcon element if `color="primary"` and `variant="filled"`.
|
|
137
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
137
|
+
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) , [.MuiChip-filled](/material-ui/api/chip/#chip-classes-MuiChip-filled) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
138
138
|
*/
|
|
139
139
|
deleteIconFilledColorPrimary: string;
|
|
140
140
|
/** Styles applied to the deleteIcon element if `color="secondary"` and `variant="filled"`.
|
|
141
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
141
|
+
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) , [.MuiChip-filled](/material-ui/api/chip/#chip-classes-MuiChip-filled) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
142
142
|
*/
|
|
143
143
|
deleteIconFilledColorSecondary: string;
|
|
144
144
|
/** State class applied to the root element if keyboard focused. */
|
|
@@ -16,11 +16,11 @@ export interface CircularProgressClasses {
|
|
|
16
16
|
/** Styles applied to the `circle` svg path. */
|
|
17
17
|
circle: string;
|
|
18
18
|
/** Styles applied to the `circle` svg path if `variant="determinate"`.
|
|
19
|
-
* @deprecated Combine the [.MuiCircularProgress-circle](/material-ui/api/circular-progress/#circular-progress-classes-circle) and [.MuiCircularProgress-determinate](/material-ui/api/circular-progress/#circular-progress-classes-determinate) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
19
|
+
* @deprecated Combine the [.MuiCircularProgress-circle](/material-ui/api/circular-progress/#circular-progress-classes-MuiCircularProgress-circle) and [.MuiCircularProgress-determinate](/material-ui/api/circular-progress/#circular-progress-classes-MuiCircularProgress-determinate) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
20
20
|
*/
|
|
21
21
|
circleDeterminate: string;
|
|
22
22
|
/** Styles applied to the `circle` svg path if `variant="indeterminate"`.
|
|
23
|
-
* @deprecated Combine the [.MuiCircularProgress-circle](/material-ui/api/circular-progress/#circular-progress-classes-circle) and [.MuiCircularProgress-indeterminate](/material-ui/api/circular-progress/#circular-progress-classes-indeterminate) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
23
|
+
* @deprecated Combine the [.MuiCircularProgress-circle](/material-ui/api/circular-progress/#circular-progress-classes-MuiCircularProgress-circle) and [.MuiCircularProgress-indeterminate](/material-ui/api/circular-progress/#circular-progress-classes-MuiCircularProgress-indeterminate) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
24
24
|
*/
|
|
25
25
|
circleIndeterminate: string;
|
|
26
26
|
/** Styles applied to the `circle` svg path if `disableShrink={true}`. */
|
|
@@ -1,10 +1,37 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
+
import { TransitionStatus } from 'react-transition-group';
|
|
3
4
|
import { Theme } from "../styles/index.js";
|
|
4
5
|
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
5
6
|
import { TransitionProps } from "../transitions/transition.js";
|
|
6
7
|
import { CollapseClasses } from "./collapseClasses.js";
|
|
7
|
-
|
|
8
|
+
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
9
|
+
export interface CollapseSlots {
|
|
10
|
+
/**
|
|
11
|
+
* The component that renders the root.
|
|
12
|
+
* @default 'div'
|
|
13
|
+
*/
|
|
14
|
+
root?: React.ElementType;
|
|
15
|
+
/**
|
|
16
|
+
* The component that renders the wrapper.
|
|
17
|
+
* @default 'div'
|
|
18
|
+
*/
|
|
19
|
+
wrapper?: React.ElementType;
|
|
20
|
+
/**
|
|
21
|
+
* The component that renders the inner wrapper.
|
|
22
|
+
* @default 'div'
|
|
23
|
+
*/
|
|
24
|
+
wrapperInner?: React.ElementType;
|
|
25
|
+
}
|
|
26
|
+
export interface CollapseRootSlotPropsOverrides {}
|
|
27
|
+
export interface CollapseWrapperSlotPropsOverrides {}
|
|
28
|
+
export interface CollapseWrapperInnerSlotPropsOverrides {}
|
|
29
|
+
export type CollapseSlotsAndSlotProps = CreateSlotsAndSlotProps<CollapseSlots, {
|
|
30
|
+
root: SlotProps<'div', CollapseRootSlotPropsOverrides, CollapseOwnerState>;
|
|
31
|
+
wrapper: SlotProps<'div', CollapseWrapperSlotPropsOverrides, CollapseOwnerState>;
|
|
32
|
+
wrapperInner: SlotProps<'div', CollapseWrapperInnerSlotPropsOverrides, CollapseOwnerState>;
|
|
33
|
+
}>;
|
|
34
|
+
export interface CollapseProps extends StandardProps<TransitionProps, 'timeout'>, CollapseSlotsAndSlotProps {
|
|
8
35
|
/**
|
|
9
36
|
* The content node to be collapsed.
|
|
10
37
|
*/
|
|
@@ -51,6 +78,9 @@ export interface CollapseProps extends StandardProps<TransitionProps, 'timeout'>
|
|
|
51
78
|
*/
|
|
52
79
|
sx?: SxProps<Theme>;
|
|
53
80
|
}
|
|
81
|
+
export interface CollapseOwnerState extends CollapseProps {
|
|
82
|
+
state: TransitionStatus;
|
|
83
|
+
}
|
|
54
84
|
|
|
55
85
|
/**
|
|
56
86
|
* The Collapse transition is used by the
|
package/esm/Collapse/Collapse.js
CHANGED
|
@@ -13,6 +13,7 @@ import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
|
13
13
|
import { duration } from "../styles/createTransitions.js";
|
|
14
14
|
import { getTransitionProps } from "../transitions/utils.js";
|
|
15
15
|
import { useForkRef } from "../utils/index.js";
|
|
16
|
+
import useSlot from "../utils/useSlot.js";
|
|
16
17
|
import { getCollapseUtilityClass } from "./collapseClasses.js";
|
|
17
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
19
|
const useUtilityClasses = ownerState => {
|
|
@@ -136,6 +137,8 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
|
|
136
137
|
onExited,
|
|
137
138
|
onExiting,
|
|
138
139
|
orientation = 'vertical',
|
|
140
|
+
slots = {},
|
|
141
|
+
slotProps = {},
|
|
139
142
|
style,
|
|
140
143
|
timeout = duration.standard,
|
|
141
144
|
// eslint-disable-next-line react/prop-types
|
|
@@ -258,6 +261,37 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
|
|
258
261
|
addEndListener(nodeRef.current, next);
|
|
259
262
|
}
|
|
260
263
|
};
|
|
264
|
+
const externalForwardedProps = {
|
|
265
|
+
slots,
|
|
266
|
+
slotProps,
|
|
267
|
+
component
|
|
268
|
+
};
|
|
269
|
+
const [RootSlot, rootSlotProps] = useSlot('root', {
|
|
270
|
+
ref: handleRef,
|
|
271
|
+
className: clsx(classes.root, className),
|
|
272
|
+
elementType: CollapseRoot,
|
|
273
|
+
externalForwardedProps,
|
|
274
|
+
ownerState,
|
|
275
|
+
additionalProps: {
|
|
276
|
+
style: {
|
|
277
|
+
[isHorizontal ? 'minWidth' : 'minHeight']: collapsedSize,
|
|
278
|
+
...style
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
const [WrapperSlot, wrapperSlotProps] = useSlot('wrapper', {
|
|
283
|
+
ref: wrapperRef,
|
|
284
|
+
className: classes.wrapper,
|
|
285
|
+
elementType: CollapseWrapper,
|
|
286
|
+
externalForwardedProps,
|
|
287
|
+
ownerState
|
|
288
|
+
});
|
|
289
|
+
const [WrapperInnerSlot, wrapperInnerSlotProps] = useSlot('wrapperInner', {
|
|
290
|
+
className: classes.wrapperInner,
|
|
291
|
+
elementType: CollapseWrapperInner,
|
|
292
|
+
externalForwardedProps,
|
|
293
|
+
ownerState
|
|
294
|
+
});
|
|
261
295
|
return /*#__PURE__*/_jsx(TransitionComponent, {
|
|
262
296
|
in: inProp,
|
|
263
297
|
onEnter: handleEnter,
|
|
@@ -273,39 +307,30 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
|
|
273
307
|
children: (state, {
|
|
274
308
|
ownerState: incomingOwnerState,
|
|
275
309
|
...restChildProps
|
|
276
|
-
}) =>
|
|
277
|
-
|
|
278
|
-
className: clsx(classes.root, className, {
|
|
279
|
-
'entered': classes.entered,
|
|
280
|
-
'exited': !inProp && collapsedSize === '0px' && classes.hidden
|
|
281
|
-
}[state]),
|
|
282
|
-
style: {
|
|
283
|
-
[isHorizontal ? 'minWidth' : 'minHeight']: collapsedSize,
|
|
284
|
-
...style
|
|
285
|
-
},
|
|
286
|
-
ref: handleRef,
|
|
287
|
-
ownerState: {
|
|
310
|
+
}) => {
|
|
311
|
+
const stateOwnerState = {
|
|
288
312
|
...ownerState,
|
|
289
313
|
state
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
},
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
children: /*#__PURE__*/_jsx(
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
314
|
+
};
|
|
315
|
+
return /*#__PURE__*/_jsx(RootSlot, {
|
|
316
|
+
...rootSlotProps,
|
|
317
|
+
className: clsx(rootSlotProps.className, {
|
|
318
|
+
'entered': classes.entered,
|
|
319
|
+
'exited': !inProp && collapsedSize === '0px' && classes.hidden
|
|
320
|
+
}[state]),
|
|
321
|
+
ownerState: stateOwnerState,
|
|
322
|
+
...restChildProps,
|
|
323
|
+
children: /*#__PURE__*/_jsx(WrapperSlot, {
|
|
324
|
+
...wrapperSlotProps,
|
|
325
|
+
ownerState: stateOwnerState,
|
|
326
|
+
children: /*#__PURE__*/_jsx(WrapperInnerSlot, {
|
|
327
|
+
...wrapperInnerSlotProps,
|
|
328
|
+
ownerState: stateOwnerState,
|
|
329
|
+
children: children
|
|
330
|
+
})
|
|
306
331
|
})
|
|
307
|
-
})
|
|
308
|
-
}
|
|
332
|
+
});
|
|
333
|
+
}
|
|
309
334
|
});
|
|
310
335
|
});
|
|
311
336
|
process.env.NODE_ENV !== "production" ? Collapse.propTypes /* remove-proptypes */ = {
|
|
@@ -382,6 +407,24 @@ process.env.NODE_ENV !== "production" ? Collapse.propTypes /* remove-proptypes *
|
|
|
382
407
|
* @default 'vertical'
|
|
383
408
|
*/
|
|
384
409
|
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
|
|
410
|
+
/**
|
|
411
|
+
* The props used for each slot inside.
|
|
412
|
+
* @default {}
|
|
413
|
+
*/
|
|
414
|
+
slotProps: PropTypes.shape({
|
|
415
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
416
|
+
wrapper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
417
|
+
wrapperInner: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
418
|
+
}),
|
|
419
|
+
/**
|
|
420
|
+
* The components used for each slot inside.
|
|
421
|
+
* @default {}
|
|
422
|
+
*/
|
|
423
|
+
slots: PropTypes.shape({
|
|
424
|
+
root: PropTypes.elementType,
|
|
425
|
+
wrapper: PropTypes.elementType,
|
|
426
|
+
wrapperInner: PropTypes.elementType
|
|
427
|
+
}),
|
|
385
428
|
/**
|
|
386
429
|
* @ignore
|
|
387
430
|
*/
|
|
@@ -7,7 +7,7 @@ export interface CssBaselineProps extends StyledComponentProps<never> {
|
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
/**
|
|
9
9
|
* Enable `color-scheme` CSS property to use `theme.palette.mode`.
|
|
10
|
-
* For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
|
|
10
|
+
* For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/color-scheme
|
|
11
11
|
* For browser support, check out https://caniuse.com/?search=color-scheme
|
|
12
12
|
* @default false
|
|
13
13
|
*/
|
|
@@ -152,7 +152,7 @@ process.env.NODE_ENV !== "production" ? CssBaseline.propTypes /* remove-proptype
|
|
|
152
152
|
children: PropTypes.node,
|
|
153
153
|
/**
|
|
154
154
|
* Enable `color-scheme` CSS property to use `theme.palette.mode`.
|
|
155
|
-
* For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
|
|
155
|
+
* For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/color-scheme
|
|
156
156
|
* For browser support, check out https://caniuse.com/?search=color-scheme
|
|
157
157
|
* @default false
|
|
158
158
|
*/
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import type { ComponentsPropsList } from "../styles/props.js";
|
|
3
3
|
declare function DefaultPropsProvider(props: React.PropsWithChildren<{
|
|
4
4
|
value: { [P in keyof ComponentsPropsList]?: Partial<ComponentsPropsList[P]> };
|
|
5
|
-
}>):
|
|
5
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare namespace DefaultPropsProvider {
|
|
7
7
|
var propTypes: any;
|
|
8
8
|
}
|
|
@@ -10,11 +10,11 @@ export interface DialogClasses {
|
|
|
10
10
|
/** Styles applied to the Paper component. */
|
|
11
11
|
paper: string;
|
|
12
12
|
/** Styles applied to the Paper component if `scroll="paper"`.
|
|
13
|
-
* @deprecated Combine the [.MuiDialog-paper](/material-ui/api/dialog/#
|
|
13
|
+
* @deprecated Combine the [.MuiDialog-paper](/material-ui/api/dialog/#Dialog-css-MuiDialog-paper) and [.MuiDialog-scrollPaper](/material-ui/api/dialog/#dialog-classes-MuiDialog-scrollPaper) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
14
14
|
*/
|
|
15
15
|
paperScrollPaper: string;
|
|
16
16
|
/** Styles applied to the Paper component if `scroll="body"`.
|
|
17
|
-
* @deprecated Combine the [.MuiDialog-paper](/material-ui/api/dialog/#
|
|
17
|
+
* @deprecated Combine the [.MuiDialog-paper](/material-ui/api/dialog/#Dialog-css-MuiDialog-paper) and [.MuiDialog-scrollBody](/material-ui/api/dialog/#dialog-classes-MuiDialog-scrollBody) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
18
18
|
*/
|
|
19
19
|
paperScrollBody: string;
|
|
20
20
|
/** Styles applied to the Paper component if `maxWidth=false`. */
|
|
@@ -20,7 +20,7 @@ export interface DividerClasses {
|
|
|
20
20
|
/** Styles applied to the root element if divider have text. */
|
|
21
21
|
withChildren: string;
|
|
22
22
|
/** Styles applied to the root element if divider have text and `orientation="vertical"`.
|
|
23
|
-
* @deprecated Combine the [.MuiDivider-withChildren](/material-ui/api/divider/#divider-classes-withChildren) and [.MuiDivider-vertical](/material-ui/api/divider/#divider-classes-vertical) classes instead.
|
|
23
|
+
* @deprecated Combine the [.MuiDivider-withChildren](/material-ui/api/divider/#divider-classes-MuiDivider-withChildren) and [.MuiDivider-vertical](/material-ui/api/divider/#divider-classes-MuiDivider-vertical) classes instead.
|
|
24
24
|
*/
|
|
25
25
|
withChildrenVertical: string;
|
|
26
26
|
/** Styles applied to the root element if `textAlign="right" orientation="horizontal"`. */
|
|
@@ -14,35 +14,35 @@ export interface DrawerClasses {
|
|
|
14
14
|
/** Styles applied to the root element if `anchor="bottom"`. */
|
|
15
15
|
anchorBottom: string;
|
|
16
16
|
/** Styles applied to the Paper component if `anchor="left"`.
|
|
17
|
-
* @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft) and [.MuiDrawer-paper](/material-ui/api/drawer/#
|
|
17
|
+
* @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
18
18
|
*/
|
|
19
19
|
paperAnchorLeft: string;
|
|
20
20
|
/** Styles applied to the Paper component if `anchor="right"`.
|
|
21
|
-
* @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight) and [.MuiDrawer-paper](/material-ui/api/drawer/#
|
|
21
|
+
* @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
22
22
|
*/
|
|
23
23
|
paperAnchorRight: string;
|
|
24
24
|
/** Styles applied to the Paper component if `anchor="top"`.
|
|
25
|
-
* @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop) and [.MuiDrawer-paper](/material-ui/api/drawer/#
|
|
25
|
+
* @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
26
26
|
*/
|
|
27
27
|
paperAnchorTop: string;
|
|
28
28
|
/** Styles applied to the Paper component if `anchor="bottom"`.
|
|
29
|
-
* @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom) and [.MuiDrawer-paper](/material-ui/api/drawer/#
|
|
29
|
+
* @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
30
30
|
*/
|
|
31
31
|
paperAnchorBottom: string;
|
|
32
32
|
/** Styles applied to the Paper component if `anchor="left"` and `variant` is not "temporary".
|
|
33
|
-
* @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft), [.MuiDrawer-docked](/material-ui/api/drawer/#
|
|
33
|
+
* @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
34
34
|
*/
|
|
35
35
|
paperAnchorDockedLeft: string;
|
|
36
36
|
/** Styles applied to the Paper component if `anchor="top"` and `variant` is not "temporary".
|
|
37
|
-
* @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop), [.MuiDrawer-docked](/material-ui/api/drawer/#
|
|
37
|
+
* @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
38
38
|
*/
|
|
39
39
|
paperAnchorDockedTop: string;
|
|
40
40
|
/** Styles applied to the Paper component if `anchor="right"` and `variant` is not "temporary".
|
|
41
|
-
* @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight), [.MuiDrawer-docked](/material-ui/api/drawer/#
|
|
41
|
+
* @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
42
42
|
*/
|
|
43
43
|
paperAnchorDockedRight: string;
|
|
44
44
|
/** Styles applied to the Paper component if `anchor="bottom"` and `variant` is not "temporary".
|
|
45
|
-
* @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom), [.MuiDrawer-docked](/material-ui/api/drawer/#
|
|
45
|
+
* @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
46
46
|
*/
|
|
47
47
|
paperAnchorDockedBottom: string;
|
|
48
48
|
/** Styles applied to the Modal component. */
|
|
@@ -105,6 +105,7 @@ export interface FormControlTypeMap<AdditionalProps = {}, RootComponent extends
|
|
|
105
105
|
* Demos:
|
|
106
106
|
*
|
|
107
107
|
* - [Checkbox](https://mui.com/material-ui/react-checkbox/)
|
|
108
|
+
* - [Number Field](https://mui.com/material-ui/react-number-field/)
|
|
108
109
|
* - [Radio Group](https://mui.com/material-ui/react-radio-button/)
|
|
109
110
|
* - [Switch](https://mui.com/material-ui/react-switch/)
|
|
110
111
|
* - [Text Field](https://mui.com/material-ui/react-text-field/)
|
|
@@ -60,6 +60,7 @@ export interface FormLabelTypeMap<AdditionalProps = {}, RootComponent extends Re
|
|
|
60
60
|
* Demos:
|
|
61
61
|
*
|
|
62
62
|
* - [Checkbox](https://mui.com/material-ui/react-checkbox/)
|
|
63
|
+
* - [Number Field](https://mui.com/material-ui/react-number-field/)
|
|
63
64
|
* - [Radio Group](https://mui.com/material-ui/react-radio-button/)
|
|
64
65
|
* - [Switch](https://mui.com/material-ui/react-switch/)
|
|
65
66
|
*
|
|
@@ -14,15 +14,15 @@ export interface ImageListItemBarClasses {
|
|
|
14
14
|
/** Styles applied to the title and subtitle container element. */
|
|
15
15
|
titleWrap: string;
|
|
16
16
|
/** Styles applied to the title and subtitle container element if `position="below"`.
|
|
17
|
-
* @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-titleWrap) and [.MuiImageListItemBar-positionBelow](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-positionBelow) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
17
|
+
* @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-titleWrap) and [.MuiImageListItemBar-positionBelow](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-positionBelow) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
18
18
|
*/
|
|
19
19
|
titleWrapBelow: string;
|
|
20
20
|
/** Styles applied to the container element if `actionPosition="left"`.
|
|
21
|
-
* @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-titleWrap) and [.MuiImageListItemBar-actionPositionLeft](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-actionPositionLeft) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
21
|
+
* @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-titleWrap) and [.MuiImageListItemBar-actionPositionLeft](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-actionPositionLeft) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
22
22
|
*/
|
|
23
23
|
titleWrapActionPosLeft: string;
|
|
24
24
|
/** Styles applied to the container element if `actionPosition="right"`.
|
|
25
|
-
* @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-titleWrap) and [.MuiImageListItemBar-actionPositionRight](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-actionPositionRight) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
25
|
+
* @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-titleWrap) and [.MuiImageListItemBar-actionPositionRight](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-actionPositionRight) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
26
26
|
*/
|
|
27
27
|
titleWrapActionPosRight: string;
|
|
28
28
|
/** Styles applied to the title container element. */
|
|
@@ -32,7 +32,7 @@ export interface ImageListItemBarClasses {
|
|
|
32
32
|
/** Styles applied to the actionIcon if supplied. */
|
|
33
33
|
actionIcon: string;
|
|
34
34
|
/** Styles applied to the actionIcon if `actionPosition="left"`.
|
|
35
|
-
* @deprecated Combine the [.MuiImageListItemBar-actionIcon](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-actionIcon) and [.MuiImageListItemBar-actionPositionLeft](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-actionPositionLeft) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
35
|
+
* @deprecated Combine the [.MuiImageListItemBar-actionIcon](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-actionIcon) and [.MuiImageListItemBar-actionPositionLeft](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-actionPositionLeft) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
36
36
|
*/
|
|
37
37
|
actionIconActionPosLeft: string;
|
|
38
38
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
export declare const defaultConfig: {
|
|
3
2
|
readonly attribute: "data-mui-color-scheme";
|
|
4
3
|
readonly colorSchemeStorageKey: "mui-color-scheme";
|
|
@@ -59,7 +58,7 @@ export interface InitColorSchemeScriptProps {
|
|
|
59
58
|
*
|
|
60
59
|
* - [InitColorSchemeScript API](https://mui.com/material-ui/api/init-color-scheme-script/)
|
|
61
60
|
*/
|
|
62
|
-
declare function InitColorSchemeScript(props: InitColorSchemeScriptProps):
|
|
61
|
+
declare function InitColorSchemeScript(props: InitColorSchemeScriptProps): import("react/jsx-runtime").JSX.Element;
|
|
63
62
|
declare namespace InitColorSchemeScript {
|
|
64
63
|
var propTypes: any;
|
|
65
64
|
}
|
|
@@ -22,19 +22,19 @@ export interface InputClasses {
|
|
|
22
22
|
/** Styles applied to the input element. */
|
|
23
23
|
input: string;
|
|
24
24
|
/** Styles applied to the input element if `size="small"`.
|
|
25
|
-
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#
|
|
25
|
+
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#input-base-classes-MuiInputBase-input) and [.MuiInputBase-sizeSmall](/material-ui/api/input-base/#input-base-classes-MuiInputBase-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
26
26
|
*/
|
|
27
27
|
inputSizeSmall: string;
|
|
28
28
|
/** Styles applied to the input element if `multiline={true}`.
|
|
29
|
-
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#
|
|
29
|
+
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#input-base-classes-MuiInputBase-input) and [.MuiInputBase-multiline](/material-ui/api/input-base/#input-base-classes-MuiInputBase-multiline) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
30
30
|
*/
|
|
31
31
|
inputMultiline: string;
|
|
32
32
|
/** Styles applied to the input element if `startAdornment` is provided.
|
|
33
|
-
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#
|
|
33
|
+
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#input-base-classes-MuiInputBase-input) and [.MuiInputBase-adornedStart](/material-ui/api/input-base/#input-base-classes-MuiInputBase-adornedStart) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
34
34
|
*/
|
|
35
35
|
inputAdornedStart: string;
|
|
36
36
|
/** Styles applied to the input element if `endAdornment` is provided.
|
|
37
|
-
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#
|
|
37
|
+
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#input-base-classes-MuiInputBase-input) and [.MuiInputBase-adornedEnd](/material-ui/api/input-base/#input-base-classes-MuiInputBase-adornedEnd) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
38
38
|
*/
|
|
39
39
|
inputAdornedEnd: string;
|
|
40
40
|
/** Styles applied to the input element if `type="search"`. */
|