@mui/material 9.0.0-alpha.2 → 9.0.0-alpha.4
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.mts +0 -14
- package/Accordion/Accordion.d.ts +0 -14
- package/Accordion/Accordion.js +3 -25
- package/Accordion/Accordion.mjs +3 -25
- package/AccordionSummary/AccordionSummary.js +1 -1
- package/AccordionSummary/AccordionSummary.mjs +1 -1
- package/AccordionSummary/accordionSummaryClasses.d.mts +0 -5
- package/AccordionSummary/accordionSummaryClasses.d.ts +0 -5
- package/AccordionSummary/accordionSummaryClasses.js +1 -1
- package/AccordionSummary/accordionSummaryClasses.mjs +1 -1
- package/Alert/Alert.d.mts +0 -23
- package/Alert/Alert.d.ts +0 -23
- package/Alert/Alert.js +4 -36
- package/Alert/Alert.mjs +4 -36
- package/Alert/alertClasses.d.mts +0 -72
- package/Alert/alertClasses.d.ts +0 -72
- package/Alert/alertClasses.js +1 -1
- package/Alert/alertClasses.mjs +1 -1
- package/Autocomplete/Autocomplete.d.mts +26 -60
- package/Autocomplete/Autocomplete.d.ts +26 -60
- package/Autocomplete/Autocomplete.js +76 -119
- package/Autocomplete/Autocomplete.mjs +76 -119
- package/Avatar/Avatar.d.mts +0 -8
- package/Avatar/Avatar.d.ts +0 -8
- package/Avatar/Avatar.js +13 -35
- package/Avatar/Avatar.mjs +13 -35
- package/AvatarGroup/AvatarGroup.d.mts +0 -15
- package/AvatarGroup/AvatarGroup.d.ts +0 -15
- package/AvatarGroup/AvatarGroup.js +1 -18
- package/AvatarGroup/AvatarGroup.mjs +1 -18
- package/Backdrop/Backdrop.d.mts +1 -31
- package/Backdrop/Backdrop.d.ts +1 -31
- package/Backdrop/Backdrop.js +2 -42
- package/Backdrop/Backdrop.mjs +2 -42
- package/Badge/Badge.d.mts +0 -20
- package/Badge/Badge.d.ts +0 -20
- package/Badge/Badge.js +2 -35
- package/Badge/Badge.mjs +2 -35
- package/Box/Box.d.mts +1 -0
- package/Box/Box.d.ts +1 -0
- package/Button/Button.d.mts +1 -0
- package/Button/Button.d.ts +1 -0
- package/Button/Button.js +6 -6
- package/Button/Button.mjs +6 -6
- package/Button/buttonClasses.d.mts +0 -132
- package/Button/buttonClasses.d.ts +0 -132
- package/Button/buttonClasses.js +1 -1
- package/Button/buttonClasses.mjs +1 -1
- package/ButtonBase/ButtonBase.js +16 -2
- package/ButtonBase/ButtonBase.mjs +16 -2
- package/CHANGELOG.md +191 -0
- package/CardHeader/CardHeader.js +5 -1
- package/CardHeader/CardHeader.mjs +5 -1
- package/CircularProgress/CircularProgress.js +2 -2
- package/CircularProgress/CircularProgress.mjs +2 -2
- package/CircularProgress/circularProgressClasses.d.mts +0 -8
- package/CircularProgress/circularProgressClasses.d.ts +0 -8
- package/CircularProgress/circularProgressClasses.js +1 -1
- package/CircularProgress/circularProgressClasses.mjs +1 -1
- package/Divider/Divider.d.mts +1 -6
- package/Divider/Divider.d.ts +1 -6
- package/Divider/Divider.js +2 -18
- package/Divider/Divider.mjs +2 -18
- package/Divider/dividerClasses.d.mts +0 -4
- package/Divider/dividerClasses.d.ts +0 -4
- package/Divider/dividerClasses.js +1 -1
- package/Divider/dividerClasses.mjs +1 -1
- package/FormControlLabel/FormControlLabel.d.mts +1 -14
- package/FormControlLabel/FormControlLabel.d.ts +1 -14
- package/FormControlLabel/FormControlLabel.js +1 -13
- package/FormControlLabel/FormControlLabel.mjs +1 -13
- package/Input/Input.js +2 -1
- package/Input/Input.mjs +2 -1
- package/List/List.d.mts +1 -0
- package/List/List.d.ts +1 -0
- package/ListItemButton/ListItemButton.d.mts +1 -0
- package/ListItemButton/ListItemButton.d.ts +1 -0
- package/ListItemIcon/ListItemIcon.d.mts +1 -0
- package/ListItemIcon/ListItemIcon.d.ts +1 -0
- package/ListItemText/ListItemText.d.mts +1 -0
- package/ListItemText/ListItemText.d.ts +1 -0
- package/ListItemText/ListItemText.js +5 -1
- package/ListItemText/ListItemText.mjs +5 -1
- package/ListSubheader/ListSubheader.d.mts +1 -0
- package/ListSubheader/ListSubheader.d.ts +1 -0
- package/Menu/Menu.d.mts +0 -13
- package/Menu/Menu.d.ts +0 -13
- package/Menu/Menu.js +5 -44
- package/Menu/Menu.mjs +5 -44
- package/MenuItem/MenuItem.js +21 -1
- package/MenuItem/MenuItem.mjs +23 -1
- package/MenuList/MenuList.js +77 -109
- package/MenuList/MenuList.mjs +77 -109
- package/MobileStepper/MobileStepper.d.mts +0 -5
- package/MobileStepper/MobileStepper.d.ts +0 -5
- package/MobileStepper/MobileStepper.js +1 -10
- package/MobileStepper/MobileStepper.mjs +1 -10
- package/Paper/Paper.d.mts +1 -0
- package/Paper/Paper.d.ts +1 -0
- package/Popover/Popover.d.mts +4 -48
- package/Popover/Popover.d.ts +4 -48
- package/Popover/Popover.js +4 -64
- package/Popover/Popover.mjs +4 -64
- package/Popper/Popper.d.mts +0 -17
- package/Popper/Popper.d.ts +0 -17
- package/Popper/Popper.js +2 -26
- package/Popper/Popper.mjs +2 -26
- package/Popper/index.d.mts +1 -0
- package/Popper/index.d.ts +1 -0
- package/Popper/index.js +11 -2
- package/Popper/index.mjs +1 -0
- package/Select/SelectInput.js +50 -55
- package/Select/SelectInput.mjs +47 -52
- package/Select/index.d.mts +1 -0
- package/Select/index.d.ts +1 -0
- package/Select/index.js +12 -0
- package/Select/index.mjs +1 -0
- package/Select/utils/SelectFocusSourceContext.d.mts +4 -0
- package/Select/utils/SelectFocusSourceContext.d.ts +4 -0
- package/Select/utils/SelectFocusSourceContext.js +19 -0
- package/Select/utils/SelectFocusSourceContext.mjs +13 -0
- package/Select/utils/areEqualValues.d.mts +1 -0
- package/Select/utils/areEqualValues.d.ts +1 -0
- package/Select/utils/areEqualValues.js +14 -0
- package/Select/utils/areEqualValues.mjs +8 -0
- package/Select/utils/getOpenInteractionType.d.mts +1 -0
- package/Select/utils/getOpenInteractionType.d.ts +1 -0
- package/Select/utils/getOpenInteractionType.js +18 -0
- package/Select/utils/getOpenInteractionType.mjs +12 -0
- package/Select/utils/index.d.mts +4 -0
- package/Select/utils/index.d.ts +4 -0
- package/Select/utils/index.js +40 -0
- package/Select/utils/index.mjs +4 -0
- package/Select/utils/isEmpty.d.mts +1 -0
- package/Select/utils/isEmpty.d.ts +1 -0
- package/Select/utils/isEmpty.js +9 -0
- package/Select/utils/isEmpty.mjs +3 -0
- package/Slider/Slider.d.mts +109 -77
- package/Slider/Slider.d.ts +109 -77
- package/Slider/Slider.js +42 -119
- package/Slider/Slider.mjs +42 -119
- package/Slider/sliderClasses.d.mts +7 -7
- package/Slider/sliderClasses.d.ts +7 -7
- package/Slider/useSlider.js +50 -14
- package/Slider/useSlider.mjs +50 -14
- package/Snackbar/Snackbar.d.mts +1 -27
- package/Snackbar/Snackbar.d.ts +1 -27
- package/Snackbar/Snackbar.js +5 -58
- package/Snackbar/Snackbar.mjs +5 -58
- package/SpeedDial/SpeedDial.d.mts +0 -13
- package/SpeedDial/SpeedDial.d.ts +0 -13
- package/SpeedDial/SpeedDial.js +15 -40
- package/SpeedDial/SpeedDial.mjs +15 -40
- package/SpeedDialAction/SpeedDialAction.d.mts +0 -28
- package/SpeedDialAction/SpeedDialAction.d.ts +0 -28
- package/SpeedDialAction/SpeedDialAction.js +5 -46
- package/SpeedDialAction/SpeedDialAction.mjs +5 -46
- package/Step/Step.js +7 -5
- package/Step/Step.mjs +7 -5
- package/StepButton/StepButton.js +16 -6
- package/StepButton/StepButton.mjs +16 -6
- package/StepConnector/StepConnector.js +2 -2
- package/StepConnector/StepConnector.mjs +2 -2
- package/StepContent/StepContent.js +2 -2
- package/StepContent/StepContent.mjs +2 -2
- package/StepLabel/StepLabel.js +2 -2
- package/StepLabel/StepLabel.mjs +2 -2
- package/Stepper/Stepper.js +44 -7
- package/Stepper/Stepper.mjs +44 -7
- package/Stepper/StepperContext.d.mts +7 -0
- package/Stepper/StepperContext.d.ts +7 -0
- package/Stepper/StepperContext.js +2 -1
- package/Stepper/StepperContext.mjs +1 -0
- package/Stepper/index.d.mts +0 -1
- package/Stepper/index.d.ts +0 -1
- package/Tab/Tab.js +0 -1
- package/Tab/Tab.mjs +0 -1
- package/TablePagination/TablePagination.d.mts +1 -1
- package/TablePagination/TablePagination.d.ts +1 -1
- package/TablePagination/TablePagination.js +4 -2
- package/TablePagination/TablePagination.mjs +4 -2
- package/Tabs/Tabs.d.mts +2 -33
- package/Tabs/Tabs.d.ts +2 -33
- package/Tabs/Tabs.js +54 -135
- package/Tabs/Tabs.mjs +54 -135
- package/TextField/TextField.d.mts +6 -49
- package/TextField/TextField.d.ts +6 -49
- package/TextField/TextField.js +18 -53
- package/TextField/TextField.mjs +18 -53
- package/Tooltip/Tooltip.d.mts +1 -55
- package/Tooltip/Tooltip.d.ts +1 -55
- package/Tooltip/Tooltip.js +9 -87
- package/Tooltip/Tooltip.mjs +9 -87
- package/Typography/Typography.d.mts +1 -6
- package/Typography/Typography.d.ts +1 -6
- package/Typography/Typography.js +3 -19
- package/Typography/Typography.mjs +3 -19
- package/Typography/typographyClasses.d.mts +0 -5
- package/Typography/typographyClasses.d.ts +0 -5
- package/Typography/typographyClasses.js +1 -1
- package/Typography/typographyClasses.mjs +1 -1
- package/index.d.mts +0 -2
- package/index.d.ts +0 -2
- package/index.js +1 -9
- package/index.mjs +1 -2
- package/locale/amET.js +4 -1
- package/locale/amET.mjs +3 -1
- package/locale/arEG.js +4 -1
- package/locale/arEG.mjs +3 -1
- package/locale/arSA.js +4 -1
- package/locale/arSA.mjs +3 -1
- package/locale/arSD.js +4 -1
- package/locale/arSD.mjs +3 -1
- package/locale/beBY.js +4 -1
- package/locale/beBY.mjs +3 -1
- package/locale/bnBD.js +4 -1
- package/locale/bnBD.mjs +3 -1
- package/locale/caES.js +4 -1
- package/locale/caES.mjs +3 -1
- package/locale/csCZ.js +4 -1
- package/locale/csCZ.mjs +3 -1
- package/locale/daDK.js +4 -1
- package/locale/daDK.mjs +3 -1
- package/locale/deDE.js +4 -1
- package/locale/deDE.mjs +3 -1
- package/locale/elGR.js +4 -1
- package/locale/elGR.mjs +3 -1
- package/locale/esES.js +4 -1
- package/locale/esES.mjs +3 -1
- package/locale/etEE.js +4 -1
- package/locale/etEE.mjs +3 -1
- package/locale/faIR.js +4 -1
- package/locale/faIR.mjs +3 -1
- package/locale/fiFI.js +4 -1
- package/locale/fiFI.mjs +3 -1
- package/locale/frFR.js +4 -1
- package/locale/frFR.mjs +3 -1
- package/locale/heIL.js +4 -1
- package/locale/heIL.mjs +3 -1
- package/locale/hiIN.js +4 -1
- package/locale/hiIN.mjs +3 -1
- package/locale/hrHR.js +5 -1
- package/locale/hrHR.mjs +4 -1
- package/locale/isIS.js +4 -1
- package/locale/isIS.mjs +3 -1
- package/locale/itIT.js +4 -1
- package/locale/itIT.mjs +3 -1
- package/locale/jaJP.js +4 -1
- package/locale/jaJP.mjs +3 -1
- package/locale/khKH.js +4 -1
- package/locale/khKH.mjs +3 -1
- package/locale/kkKZ.js +4 -1
- package/locale/kkKZ.mjs +3 -1
- package/locale/koKR.js +4 -1
- package/locale/koKR.mjs +3 -1
- package/locale/kuCKB.js +4 -1
- package/locale/kuCKB.mjs +3 -1
- package/locale/kuLatn.js +4 -1
- package/locale/kuLatn.mjs +3 -1
- package/locale/mkMK.js +5 -1
- package/locale/mkMK.mjs +4 -1
- package/locale/msMS.js +5 -1
- package/locale/msMS.mjs +4 -1
- package/locale/myMY.js +5 -1
- package/locale/myMY.mjs +4 -1
- package/locale/nbNO.js +4 -1
- package/locale/nbNO.mjs +3 -1
- package/locale/neNP.js +5 -1
- package/locale/neNP.mjs +4 -1
- package/locale/nlNL.js +4 -1
- package/locale/nlNL.mjs +3 -1
- package/locale/nnNO.js +4 -1
- package/locale/nnNO.mjs +3 -1
- package/locale/plPL.js +4 -1
- package/locale/plPL.mjs +3 -1
- package/locale/psAF.js +4 -1
- package/locale/psAF.mjs +3 -1
- package/locale/ptBR.js +4 -1
- package/locale/ptBR.mjs +3 -1
- package/locale/ptPT.js +4 -1
- package/locale/ptPT.mjs +3 -1
- package/locale/roRO.js +4 -1
- package/locale/roRO.mjs +3 -1
- package/locale/ruRU.js +4 -1
- package/locale/ruRU.mjs +3 -1
- package/locale/siLK.js +4 -1
- package/locale/siLK.mjs +3 -1
- package/locale/skSK.js +4 -1
- package/locale/skSK.mjs +3 -1
- package/locale/srRS.js +5 -1
- package/locale/srRS.mjs +4 -1
- package/locale/svSE.js +4 -1
- package/locale/svSE.mjs +3 -1
- package/locale/thTH.js +4 -1
- package/locale/thTH.mjs +3 -1
- package/locale/tlTL.js +5 -1
- package/locale/tlTL.mjs +4 -1
- package/locale/trTR.js +4 -1
- package/locale/trTR.mjs +3 -1
- package/locale/ukUA.js +4 -1
- package/locale/ukUA.mjs +3 -1
- package/locale/urPK.js +4 -1
- package/locale/urPK.mjs +3 -1
- package/locale/utils/buildFormatNumber.d.mts +2 -0
- package/locale/utils/buildFormatNumber.d.ts +2 -0
- package/locale/utils/buildFormatNumber.js +23 -0
- package/locale/utils/buildFormatNumber.mjs +17 -0
- package/locale/viVN.js +4 -1
- package/locale/viVN.mjs +3 -1
- package/locale/zhCN.js +4 -1
- package/locale/zhCN.mjs +3 -1
- package/locale/zhHK.js +4 -1
- package/locale/zhHK.mjs +3 -1
- package/locale/zhTW.js +4 -1
- package/locale/zhTW.mjs +3 -1
- package/package.json +236 -236
- package/styles/components.d.mts +0 -5
- package/styles/components.d.ts +0 -5
- package/styles/overrides.d.mts +0 -2
- package/styles/overrides.d.ts +0 -2
- package/styles/props.d.mts +0 -2
- package/styles/props.d.ts +0 -2
- package/themeCssVarsAugmentation/index.js +5 -0
- package/themeCssVarsAugmentation/index.mjs +5 -0
- package/useAutocomplete/useAutocomplete.d.mts +0 -12
- package/useAutocomplete/useAutocomplete.d.ts +0 -12
- package/useAutocomplete/useAutocomplete.js +53 -28
- package/useAutocomplete/useAutocomplete.mjs +53 -28
- package/utils/index.d.mts +2 -0
- package/utils/index.d.ts +2 -0
- package/utils/index.js +14 -0
- package/utils/index.mjs +2 -0
- package/utils/useRovingTabIndex.d.mts +2 -0
- package/utils/useRovingTabIndex.d.ts +2 -0
- package/utils/useRovingTabIndex.js +9 -0
- package/utils/useRovingTabIndex.mjs +2 -0
- package/version/index.js +2 -2
- package/version/index.mjs +2 -2
- package/GridLegacy/GridLegacy.d.mts +0 -160
- package/GridLegacy/GridLegacy.d.ts +0 -160
- package/GridLegacy/GridLegacy.js +0 -601
- package/GridLegacy/GridLegacy.mjs +0 -588
- package/GridLegacy/GridLegacyContext.js +0 -17
- package/GridLegacy/GridLegacyContext.mjs +0 -12
- package/GridLegacy/gridLegacyClasses.d.mts +0 -48
- package/GridLegacy/gridLegacyClasses.d.ts +0 -48
- package/GridLegacy/gridLegacyClasses.js +0 -27
- package/GridLegacy/gridLegacyClasses.mjs +0 -19
- package/GridLegacy/index.d.mts +0 -4
- package/GridLegacy/index.d.ts +0 -4
- package/GridLegacy/index.js +0 -35
- package/GridLegacy/index.mjs +0 -3
package/CardHeader/CardHeader.js
CHANGED
|
@@ -68,7 +68,11 @@ const CardHeaderContent = (0, _zeroStyled.styled)('div', {
|
|
|
68
68
|
slot: 'Content'
|
|
69
69
|
})({
|
|
70
70
|
flex: '1 1 auto',
|
|
71
|
-
|
|
71
|
+
// Combine this and the below selector once https://github.com/emotion-js/emotion/issues/3366 is solved
|
|
72
|
+
[`.${_Typography.typographyClasses.root}:where(& .${_cardHeaderClasses.default.title})`]: {
|
|
73
|
+
display: 'block'
|
|
74
|
+
},
|
|
75
|
+
[`.${_Typography.typographyClasses.root}:where(& .${_cardHeaderClasses.default.subheader})`]: {
|
|
72
76
|
display: 'block'
|
|
73
77
|
}
|
|
74
78
|
});
|
|
@@ -61,7 +61,11 @@ const CardHeaderContent = styled('div', {
|
|
|
61
61
|
slot: 'Content'
|
|
62
62
|
})({
|
|
63
63
|
flex: '1 1 auto',
|
|
64
|
-
|
|
64
|
+
// Combine this and the below selector once https://github.com/emotion-js/emotion/issues/3366 is solved
|
|
65
|
+
[`.${typographyClasses.root}:where(& .${cardHeaderClasses.title})`]: {
|
|
66
|
+
display: 'block'
|
|
67
|
+
},
|
|
68
|
+
[`.${typographyClasses.root}:where(& .${cardHeaderClasses.subheader})`]: {
|
|
65
69
|
display: 'block'
|
|
66
70
|
}
|
|
67
71
|
});
|
|
@@ -66,7 +66,7 @@ const useUtilityClasses = ownerState => {
|
|
|
66
66
|
root: ['root', variant, `color${(0, _capitalize.default)(color)}`],
|
|
67
67
|
svg: ['svg'],
|
|
68
68
|
track: ['track'],
|
|
69
|
-
circle: ['circle',
|
|
69
|
+
circle: ['circle', disableShrink && 'circleDisableShrink']
|
|
70
70
|
};
|
|
71
71
|
return (0, _composeClasses.default)(slots, _circularProgressClasses.getCircularProgressUtilityClass, classes);
|
|
72
72
|
};
|
|
@@ -119,7 +119,7 @@ const CircularProgressCircle = (0, _zeroStyled.styled)('circle', {
|
|
|
119
119
|
const {
|
|
120
120
|
ownerState
|
|
121
121
|
} = props;
|
|
122
|
-
return [styles.circle,
|
|
122
|
+
return [styles.circle, ownerState.disableShrink && styles.circleDisableShrink];
|
|
123
123
|
}
|
|
124
124
|
})((0, _memoTheme.default)(({
|
|
125
125
|
theme
|
|
@@ -59,7 +59,7 @@ const useUtilityClasses = ownerState => {
|
|
|
59
59
|
root: ['root', variant, `color${capitalize(color)}`],
|
|
60
60
|
svg: ['svg'],
|
|
61
61
|
track: ['track'],
|
|
62
|
-
circle: ['circle',
|
|
62
|
+
circle: ['circle', disableShrink && 'circleDisableShrink']
|
|
63
63
|
};
|
|
64
64
|
return composeClasses(slots, getCircularProgressUtilityClass, classes);
|
|
65
65
|
};
|
|
@@ -112,7 +112,7 @@ const CircularProgressCircle = styled('circle', {
|
|
|
112
112
|
const {
|
|
113
113
|
ownerState
|
|
114
114
|
} = props;
|
|
115
|
-
return [styles.circle,
|
|
115
|
+
return [styles.circle, ownerState.disableShrink && styles.circleDisableShrink];
|
|
116
116
|
}
|
|
117
117
|
})(memoTheme(({
|
|
118
118
|
theme
|
|
@@ -15,14 +15,6 @@ export interface CircularProgressClasses {
|
|
|
15
15
|
track: string;
|
|
16
16
|
/** Styles applied to the `circle` svg path. */
|
|
17
17
|
circle: string;
|
|
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-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
|
-
*/
|
|
21
|
-
circleDeterminate: string;
|
|
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-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
|
-
*/
|
|
25
|
-
circleIndeterminate: string;
|
|
26
18
|
/** Styles applied to the `circle` svg path if `disableShrink={true}`. */
|
|
27
19
|
circleDisableShrink: string;
|
|
28
20
|
}
|
|
@@ -15,14 +15,6 @@ export interface CircularProgressClasses {
|
|
|
15
15
|
track: string;
|
|
16
16
|
/** Styles applied to the `circle` svg path. */
|
|
17
17
|
circle: string;
|
|
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-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
|
-
*/
|
|
21
|
-
circleDeterminate: string;
|
|
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-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
|
-
*/
|
|
25
|
-
circleIndeterminate: string;
|
|
26
18
|
/** Styles applied to the `circle` svg path if `disableShrink={true}`. */
|
|
27
19
|
circleDisableShrink: string;
|
|
28
20
|
}
|
|
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
|
|
|
11
11
|
function getCircularProgressUtilityClass(slot) {
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiCircularProgress', slot);
|
|
13
13
|
}
|
|
14
|
-
const circularProgressClasses = (0, _generateUtilityClasses.default)('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'track', 'circle', '
|
|
14
|
+
const circularProgressClasses = (0, _generateUtilityClasses.default)('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'track', 'circle', 'circleDisableShrink']);
|
|
15
15
|
var _default = exports.default = circularProgressClasses;
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getCircularProgressUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiCircularProgress', slot);
|
|
5
5
|
}
|
|
6
|
-
const circularProgressClasses = generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'track', 'circle', '
|
|
6
|
+
const circularProgressClasses = generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'track', 'circle', 'circleDisableShrink']);
|
|
7
7
|
export default circularProgressClasses;
|
package/Divider/Divider.d.mts
CHANGED
|
@@ -25,12 +25,6 @@ export interface DividerOwnProps {
|
|
|
25
25
|
* @default false
|
|
26
26
|
*/
|
|
27
27
|
flexItem?: boolean | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* If `true`, the divider will have a lighter color.
|
|
30
|
-
* @default false
|
|
31
|
-
* @deprecated Use <Divider sx={{ opacity: 0.6 }} /> (or any opacity or color) instead. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
32
|
-
*/
|
|
33
|
-
light?: boolean | undefined;
|
|
34
28
|
/**
|
|
35
29
|
* The component orientation.
|
|
36
30
|
* @default 'horizontal'
|
|
@@ -62,6 +56,7 @@ export interface DividerTypeMap<AdditionalProps = {}, RootComponent extends Reac
|
|
|
62
56
|
*
|
|
63
57
|
* - [Divider](https://next.mui.com/material-ui/react-divider/)
|
|
64
58
|
* - [Lists](https://next.mui.com/material-ui/react-list/)
|
|
59
|
+
* - [Menubar](https://next.mui.com/material-ui/react-menubar/)
|
|
65
60
|
*
|
|
66
61
|
* API:
|
|
67
62
|
*
|
package/Divider/Divider.d.ts
CHANGED
|
@@ -25,12 +25,6 @@ export interface DividerOwnProps {
|
|
|
25
25
|
* @default false
|
|
26
26
|
*/
|
|
27
27
|
flexItem?: boolean | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* If `true`, the divider will have a lighter color.
|
|
30
|
-
* @default false
|
|
31
|
-
* @deprecated Use <Divider sx={{ opacity: 0.6 }} /> (or any opacity or color) instead. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
32
|
-
*/
|
|
33
|
-
light?: boolean | undefined;
|
|
34
28
|
/**
|
|
35
29
|
* The component orientation.
|
|
36
30
|
* @default 'horizontal'
|
|
@@ -62,6 +56,7 @@ export interface DividerTypeMap<AdditionalProps = {}, RootComponent extends Reac
|
|
|
62
56
|
*
|
|
63
57
|
* - [Divider](https://next.mui.com/material-ui/react-divider/)
|
|
64
58
|
* - [Lists](https://next.mui.com/material-ui/react-list/)
|
|
59
|
+
* - [Menubar](https://next.mui.com/material-ui/react-menubar/)
|
|
65
60
|
*
|
|
66
61
|
* API:
|
|
67
62
|
*
|
package/Divider/Divider.js
CHANGED
|
@@ -22,13 +22,12 @@ const useUtilityClasses = ownerState => {
|
|
|
22
22
|
children,
|
|
23
23
|
classes,
|
|
24
24
|
flexItem,
|
|
25
|
-
light,
|
|
26
25
|
orientation,
|
|
27
26
|
textAlign,
|
|
28
27
|
variant
|
|
29
28
|
} = ownerState;
|
|
30
29
|
const slots = {
|
|
31
|
-
root: ['root', absolute && 'absolute', variant,
|
|
30
|
+
root: ['root', absolute && 'absolute', variant, orientation === 'vertical' && 'vertical', flexItem && 'flexItem', children && 'withChildren', children && orientation === 'vertical' && 'withChildrenVertical', textAlign === 'right' && orientation !== 'vertical' && 'textAlignRight', textAlign === 'left' && orientation !== 'vertical' && 'textAlignLeft'],
|
|
32
31
|
wrapper: ['wrapper', orientation === 'vertical' && 'wrapperVertical']
|
|
33
32
|
};
|
|
34
33
|
return (0, _composeClasses.default)(slots, _dividerClasses.getDividerUtilityClass, classes);
|
|
@@ -40,7 +39,7 @@ const DividerRoot = (0, _zeroStyled.styled)('div', {
|
|
|
40
39
|
const {
|
|
41
40
|
ownerState
|
|
42
41
|
} = props;
|
|
43
|
-
return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.
|
|
42
|
+
return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.orientation === 'vertical' && styles.vertical, ownerState.flexItem && styles.flexItem, ownerState.children && styles.withChildren, ownerState.children && ownerState.orientation === 'vertical' && styles.withChildrenVertical, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && styles.textAlignRight, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && styles.textAlignLeft];
|
|
44
43
|
}
|
|
45
44
|
})((0, _memoTheme.default)(({
|
|
46
45
|
theme
|
|
@@ -62,13 +61,6 @@ const DividerRoot = (0, _zeroStyled.styled)('div', {
|
|
|
62
61
|
left: 0,
|
|
63
62
|
width: '100%'
|
|
64
63
|
}
|
|
65
|
-
}, {
|
|
66
|
-
props: {
|
|
67
|
-
light: true
|
|
68
|
-
},
|
|
69
|
-
style: {
|
|
70
|
-
borderColor: theme.alpha((theme.vars || theme).palette.divider, 0.08)
|
|
71
|
-
}
|
|
72
64
|
}, {
|
|
73
65
|
props: {
|
|
74
66
|
variant: 'inset'
|
|
@@ -213,7 +205,6 @@ const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
|
|
|
213
205
|
orientation = 'horizontal',
|
|
214
206
|
component = children || orientation === 'vertical' ? 'div' : 'hr',
|
|
215
207
|
flexItem = false,
|
|
216
|
-
light = false,
|
|
217
208
|
role = component !== 'hr' ? 'separator' : undefined,
|
|
218
209
|
textAlign = 'center',
|
|
219
210
|
variant = 'fullWidth',
|
|
@@ -224,7 +215,6 @@ const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
|
|
|
224
215
|
absolute,
|
|
225
216
|
component,
|
|
226
217
|
flexItem,
|
|
227
|
-
light,
|
|
228
218
|
orientation,
|
|
229
219
|
role,
|
|
230
220
|
textAlign,
|
|
@@ -287,12 +277,6 @@ process.env.NODE_ENV !== "production" ? Divider.propTypes /* remove-proptypes */
|
|
|
287
277
|
* @default false
|
|
288
278
|
*/
|
|
289
279
|
flexItem: _propTypes.default.bool,
|
|
290
|
-
/**
|
|
291
|
-
* If `true`, the divider will have a lighter color.
|
|
292
|
-
* @default false
|
|
293
|
-
* @deprecated Use <Divider sx={{ opacity: 0.6 }} /> (or any opacity or color) instead. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
294
|
-
*/
|
|
295
|
-
light: _propTypes.default.bool,
|
|
296
280
|
/**
|
|
297
281
|
* The component orientation.
|
|
298
282
|
* @default 'horizontal'
|
package/Divider/Divider.mjs
CHANGED
|
@@ -15,13 +15,12 @@ const useUtilityClasses = ownerState => {
|
|
|
15
15
|
children,
|
|
16
16
|
classes,
|
|
17
17
|
flexItem,
|
|
18
|
-
light,
|
|
19
18
|
orientation,
|
|
20
19
|
textAlign,
|
|
21
20
|
variant
|
|
22
21
|
} = ownerState;
|
|
23
22
|
const slots = {
|
|
24
|
-
root: ['root', absolute && 'absolute', variant,
|
|
23
|
+
root: ['root', absolute && 'absolute', variant, orientation === 'vertical' && 'vertical', flexItem && 'flexItem', children && 'withChildren', children && orientation === 'vertical' && 'withChildrenVertical', textAlign === 'right' && orientation !== 'vertical' && 'textAlignRight', textAlign === 'left' && orientation !== 'vertical' && 'textAlignLeft'],
|
|
25
24
|
wrapper: ['wrapper', orientation === 'vertical' && 'wrapperVertical']
|
|
26
25
|
};
|
|
27
26
|
return composeClasses(slots, getDividerUtilityClass, classes);
|
|
@@ -33,7 +32,7 @@ const DividerRoot = styled('div', {
|
|
|
33
32
|
const {
|
|
34
33
|
ownerState
|
|
35
34
|
} = props;
|
|
36
|
-
return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.
|
|
35
|
+
return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.orientation === 'vertical' && styles.vertical, ownerState.flexItem && styles.flexItem, ownerState.children && styles.withChildren, ownerState.children && ownerState.orientation === 'vertical' && styles.withChildrenVertical, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && styles.textAlignRight, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && styles.textAlignLeft];
|
|
37
36
|
}
|
|
38
37
|
})(memoTheme(({
|
|
39
38
|
theme
|
|
@@ -55,13 +54,6 @@ const DividerRoot = styled('div', {
|
|
|
55
54
|
left: 0,
|
|
56
55
|
width: '100%'
|
|
57
56
|
}
|
|
58
|
-
}, {
|
|
59
|
-
props: {
|
|
60
|
-
light: true
|
|
61
|
-
},
|
|
62
|
-
style: {
|
|
63
|
-
borderColor: theme.alpha((theme.vars || theme).palette.divider, 0.08)
|
|
64
|
-
}
|
|
65
57
|
}, {
|
|
66
58
|
props: {
|
|
67
59
|
variant: 'inset'
|
|
@@ -206,7 +198,6 @@ const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
|
|
|
206
198
|
orientation = 'horizontal',
|
|
207
199
|
component = children || orientation === 'vertical' ? 'div' : 'hr',
|
|
208
200
|
flexItem = false,
|
|
209
|
-
light = false,
|
|
210
201
|
role = component !== 'hr' ? 'separator' : undefined,
|
|
211
202
|
textAlign = 'center',
|
|
212
203
|
variant = 'fullWidth',
|
|
@@ -217,7 +208,6 @@ const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
|
|
|
217
208
|
absolute,
|
|
218
209
|
component,
|
|
219
210
|
flexItem,
|
|
220
|
-
light,
|
|
221
211
|
orientation,
|
|
222
212
|
role,
|
|
223
213
|
textAlign,
|
|
@@ -280,12 +270,6 @@ process.env.NODE_ENV !== "production" ? Divider.propTypes /* remove-proptypes */
|
|
|
280
270
|
* @default false
|
|
281
271
|
*/
|
|
282
272
|
flexItem: PropTypes.bool,
|
|
283
|
-
/**
|
|
284
|
-
* If `true`, the divider will have a lighter color.
|
|
285
|
-
* @default false
|
|
286
|
-
* @deprecated Use <Divider sx={{ opacity: 0.6 }} /> (or any opacity or color) instead. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
287
|
-
*/
|
|
288
|
-
light: PropTypes.bool,
|
|
289
273
|
/**
|
|
290
274
|
* The component orientation.
|
|
291
275
|
* @default 'horizontal'
|
|
@@ -7,10 +7,6 @@ export interface DividerClasses {
|
|
|
7
7
|
inset: string;
|
|
8
8
|
/** Styles applied to the root element if `variant="fullWidth"`. */
|
|
9
9
|
fullWidth: string;
|
|
10
|
-
/** Styles applied to the root element if `light={true}`.
|
|
11
|
-
* @deprecated
|
|
12
|
-
*/
|
|
13
|
-
light: string;
|
|
14
10
|
/** Styles applied to the root element if `variant="middle"`. */
|
|
15
11
|
middle: string;
|
|
16
12
|
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
@@ -7,10 +7,6 @@ export interface DividerClasses {
|
|
|
7
7
|
inset: string;
|
|
8
8
|
/** Styles applied to the root element if `variant="fullWidth"`. */
|
|
9
9
|
fullWidth: string;
|
|
10
|
-
/** Styles applied to the root element if `light={true}`.
|
|
11
|
-
* @deprecated
|
|
12
|
-
*/
|
|
13
|
-
light: string;
|
|
14
10
|
/** Styles applied to the root element if `variant="middle"`. */
|
|
15
11
|
middle: string;
|
|
16
12
|
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
|
|
|
11
11
|
function getDividerUtilityClass(slot) {
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiDivider', slot);
|
|
13
13
|
}
|
|
14
|
-
const dividerClasses = (0, _generateUtilityClasses.default)('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', '
|
|
14
|
+
const dividerClasses = (0, _generateUtilityClasses.default)('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
|
|
15
15
|
var _default = exports.default = dividerClasses;
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getDividerUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiDivider', slot);
|
|
5
5
|
}
|
|
6
|
-
const dividerClasses = generateUtilityClasses('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', '
|
|
6
|
+
const dividerClasses = generateUtilityClasses('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
|
|
7
7
|
export default dividerClasses;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { Theme } from "../styles/index.mjs";
|
|
4
4
|
import { InternalStandardProps as StandardProps } from "../internal/index.mjs";
|
|
5
|
-
import Typography
|
|
5
|
+
import Typography from "../Typography/index.mjs";
|
|
6
6
|
import { FormControlLabelClasses } from "./formControlLabelClasses.mjs";
|
|
7
7
|
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.mjs";
|
|
8
8
|
export interface FormControlLabelSlots {
|
|
@@ -25,19 +25,6 @@ export interface FormControlLabelProps extends StandardProps<React.LabelHTMLAttr
|
|
|
25
25
|
* Override or extend the styles applied to the component.
|
|
26
26
|
*/
|
|
27
27
|
classes?: Partial<FormControlLabelClasses> | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* The props used for each slot inside.
|
|
30
|
-
* @default {}
|
|
31
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
32
|
-
*/
|
|
33
|
-
componentsProps?: {
|
|
34
|
-
/**
|
|
35
|
-
* Props applied to the Typography wrapper of the passed label.
|
|
36
|
-
* This is unused if disableTypography is true.
|
|
37
|
-
* @default {}
|
|
38
|
-
*/
|
|
39
|
-
typography?: TypographyProps | undefined;
|
|
40
|
-
} | undefined;
|
|
41
28
|
/**
|
|
42
29
|
* A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
|
|
43
30
|
*/
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { Theme } from "../styles/index.js";
|
|
4
4
|
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
5
|
-
import Typography
|
|
5
|
+
import Typography from "../Typography/index.js";
|
|
6
6
|
import { FormControlLabelClasses } from "./formControlLabelClasses.js";
|
|
7
7
|
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
8
8
|
export interface FormControlLabelSlots {
|
|
@@ -25,19 +25,6 @@ export interface FormControlLabelProps extends StandardProps<React.LabelHTMLAttr
|
|
|
25
25
|
* Override or extend the styles applied to the component.
|
|
26
26
|
*/
|
|
27
27
|
classes?: Partial<FormControlLabelClasses> | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* The props used for each slot inside.
|
|
30
|
-
* @default {}
|
|
31
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
32
|
-
*/
|
|
33
|
-
componentsProps?: {
|
|
34
|
-
/**
|
|
35
|
-
* Props applied to the Typography wrapper of the passed label.
|
|
36
|
-
* This is unused if disableTypography is true.
|
|
37
|
-
* @default {}
|
|
38
|
-
*/
|
|
39
|
-
typography?: TypographyProps | undefined;
|
|
40
|
-
} | undefined;
|
|
41
28
|
/**
|
|
42
29
|
* A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
|
|
43
30
|
*/
|
|
@@ -122,7 +122,6 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
|
|
|
122
122
|
const {
|
|
123
123
|
checked,
|
|
124
124
|
className,
|
|
125
|
-
componentsProps = {},
|
|
126
125
|
control,
|
|
127
126
|
disabled: disabledProp,
|
|
128
127
|
disableTypography,
|
|
@@ -164,10 +163,7 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
|
|
|
164
163
|
const classes = useUtilityClasses(ownerState);
|
|
165
164
|
const externalForwardedProps = {
|
|
166
165
|
slots,
|
|
167
|
-
slotProps
|
|
168
|
-
...componentsProps,
|
|
169
|
-
...slotProps
|
|
170
|
-
}
|
|
166
|
+
slotProps
|
|
171
167
|
};
|
|
172
168
|
const [TypographySlot, typographySlotProps] = (0, _useSlot.default)('typography', {
|
|
173
169
|
elementType: _Typography.default,
|
|
@@ -215,14 +211,6 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes /* remove-pro
|
|
|
215
211
|
* @ignore
|
|
216
212
|
*/
|
|
217
213
|
className: _propTypes.default.string,
|
|
218
|
-
/**
|
|
219
|
-
* The props used for each slot inside.
|
|
220
|
-
* @default {}
|
|
221
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
222
|
-
*/
|
|
223
|
-
componentsProps: _propTypes.default.shape({
|
|
224
|
-
typography: _propTypes.default.object
|
|
225
|
-
}),
|
|
226
214
|
/**
|
|
227
215
|
* A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
|
|
228
216
|
*/
|
|
@@ -115,7 +115,6 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
|
|
|
115
115
|
const {
|
|
116
116
|
checked,
|
|
117
117
|
className,
|
|
118
|
-
componentsProps = {},
|
|
119
118
|
control,
|
|
120
119
|
disabled: disabledProp,
|
|
121
120
|
disableTypography,
|
|
@@ -157,10 +156,7 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
|
|
|
157
156
|
const classes = useUtilityClasses(ownerState);
|
|
158
157
|
const externalForwardedProps = {
|
|
159
158
|
slots,
|
|
160
|
-
slotProps
|
|
161
|
-
...componentsProps,
|
|
162
|
-
...slotProps
|
|
163
|
-
}
|
|
159
|
+
slotProps
|
|
164
160
|
};
|
|
165
161
|
const [TypographySlot, typographySlotProps] = useSlot('typography', {
|
|
166
162
|
elementType: Typography,
|
|
@@ -208,14 +204,6 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes /* remove-pro
|
|
|
208
204
|
* @ignore
|
|
209
205
|
*/
|
|
210
206
|
className: PropTypes.string,
|
|
211
|
-
/**
|
|
212
|
-
* The props used for each slot inside.
|
|
213
|
-
* @default {}
|
|
214
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
215
|
-
*/
|
|
216
|
-
componentsProps: PropTypes.shape({
|
|
217
|
-
typography: PropTypes.object
|
|
218
|
-
}),
|
|
219
207
|
/**
|
|
220
208
|
* A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
|
|
221
209
|
*/
|
package/Input/Input.js
CHANGED
|
@@ -18,6 +18,7 @@ var _zeroStyled = require("../zero-styled");
|
|
|
18
18
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
19
19
|
var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/createSimplePaletteValueFilter"));
|
|
20
20
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
21
|
+
var _inputLabelClasses = _interopRequireDefault(require("../InputLabel/inputLabelClasses"));
|
|
21
22
|
var _inputClasses = _interopRequireWildcard(require("./inputClasses"));
|
|
22
23
|
var _InputBase2 = require("../InputBase/InputBase");
|
|
23
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -62,7 +63,7 @@ const InputRoot = (0, _zeroStyled.styled)(_InputBase2.InputBaseRoot, {
|
|
|
62
63
|
ownerState
|
|
63
64
|
}) => ownerState.formControl,
|
|
64
65
|
style: {
|
|
65
|
-
|
|
66
|
+
[`label + &, .${_inputLabelClasses.default.root} + &`]: {
|
|
66
67
|
marginTop: 16
|
|
67
68
|
}
|
|
68
69
|
}
|
package/Input/Input.mjs
CHANGED
|
@@ -11,6 +11,7 @@ import { styled } from "../zero-styled/index.mjs";
|
|
|
11
11
|
import memoTheme from "../utils/memoTheme.mjs";
|
|
12
12
|
import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.mjs";
|
|
13
13
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
14
|
+
import inputLabelClasses from "../InputLabel/inputLabelClasses.mjs";
|
|
14
15
|
import inputClasses, { getInputUtilityClass } from "./inputClasses.mjs";
|
|
15
16
|
import { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseInput } from "../InputBase/InputBase.mjs";
|
|
16
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -55,7 +56,7 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
55
56
|
ownerState
|
|
56
57
|
}) => ownerState.formControl,
|
|
57
58
|
style: {
|
|
58
|
-
|
|
59
|
+
[`label + &, .${inputLabelClasses.root} + &`]: {
|
|
59
60
|
marginTop: 16
|
|
60
61
|
}
|
|
61
62
|
}
|
package/List/List.d.mts
CHANGED
|
@@ -52,6 +52,7 @@ export type ExtendList<TypeMap extends OverridableTypeMap> = OverridableComponen
|
|
|
52
52
|
* Demos:
|
|
53
53
|
*
|
|
54
54
|
* - [Lists](https://next.mui.com/material-ui/react-list/)
|
|
55
|
+
* - [Menubar](https://next.mui.com/material-ui/react-menubar/)
|
|
55
56
|
* - [Transfer List](https://next.mui.com/material-ui/react-transfer-list/)
|
|
56
57
|
*
|
|
57
58
|
* API:
|
package/List/List.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export type ExtendList<TypeMap extends OverridableTypeMap> = OverridableComponen
|
|
|
52
52
|
* Demos:
|
|
53
53
|
*
|
|
54
54
|
* - [Lists](https://next.mui.com/material-ui/react-list/)
|
|
55
|
+
* - [Menubar](https://next.mui.com/material-ui/react-menubar/)
|
|
55
56
|
* - [Transfer List](https://next.mui.com/material-ui/react-transfer-list/)
|
|
56
57
|
*
|
|
57
58
|
* API:
|
|
@@ -51,7 +51,11 @@ const ListItemTextRoot = (0, _zeroStyled.styled)('div', {
|
|
|
51
51
|
minWidth: 0,
|
|
52
52
|
marginTop: 4,
|
|
53
53
|
marginBottom: 4,
|
|
54
|
-
|
|
54
|
+
// Combine this and the below selector once https://github.com/emotion-js/emotion/issues/3366 is solved
|
|
55
|
+
[`.${_Typography.typographyClasses.root}:where(& .${_listItemTextClasses.default.primary})`]: {
|
|
56
|
+
display: 'block'
|
|
57
|
+
},
|
|
58
|
+
[`.${_Typography.typographyClasses.root}:where(& .${_listItemTextClasses.default.secondary})`]: {
|
|
55
59
|
display: 'block'
|
|
56
60
|
},
|
|
57
61
|
variants: [{
|
|
@@ -44,7 +44,11 @@ const ListItemTextRoot = styled('div', {
|
|
|
44
44
|
minWidth: 0,
|
|
45
45
|
marginTop: 4,
|
|
46
46
|
marginBottom: 4,
|
|
47
|
-
|
|
47
|
+
// Combine this and the below selector once https://github.com/emotion-js/emotion/issues/3366 is solved
|
|
48
|
+
[`.${typographyClasses.root}:where(& .${listItemTextClasses.primary})`]: {
|
|
49
|
+
display: 'block'
|
|
50
|
+
},
|
|
51
|
+
[`.${typographyClasses.root}:where(& .${listItemTextClasses.secondary})`]: {
|
|
48
52
|
display: 'block'
|
|
49
53
|
},
|
|
50
54
|
variants: [{
|