@mui/material 9.0.0-alpha.3 → 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 +10 -60
- package/Autocomplete/Autocomplete.d.ts +10 -60
- package/Autocomplete/Autocomplete.js +33 -99
- package/Autocomplete/Autocomplete.mjs +33 -99
- 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/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 +154 -0
- 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 +0 -6
- package/Divider/Divider.d.ts +0 -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/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 +2 -4
- package/MenuList/MenuList.mjs +2 -4
- 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/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/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 +8 -38
- package/Tabs/Tabs.mjs +8 -38
- 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 +0 -6
- package/Typography/Typography.d.ts +0 -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 +6 -20
- 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/useAutocomplete/useAutocomplete.d.mts +0 -12
- package/useAutocomplete/useAutocomplete.d.ts +0 -12
- package/useAutocomplete/useAutocomplete.js +29 -28
- package/useAutocomplete/useAutocomplete.mjs +29 -28
- 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/Backdrop/Backdrop.d.ts
CHANGED
|
@@ -38,27 +38,6 @@ export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>>,
|
|
|
38
38
|
* The content of the component.
|
|
39
39
|
*/
|
|
40
40
|
children?: React.ReactNode;
|
|
41
|
-
/**
|
|
42
|
-
* The components used for each slot inside.
|
|
43
|
-
*
|
|
44
|
-
* @deprecated Use the `slots` 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.
|
|
45
|
-
*
|
|
46
|
-
* @default {}
|
|
47
|
-
*/
|
|
48
|
-
components?: {
|
|
49
|
-
Root?: React.ElementType | undefined;
|
|
50
|
-
} | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* The extra props for the slot components.
|
|
53
|
-
* You can override the existing props or add new ones.
|
|
54
|
-
*
|
|
55
|
-
* @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.
|
|
56
|
-
*
|
|
57
|
-
* @default {}
|
|
58
|
-
*/
|
|
59
|
-
componentsProps?: {
|
|
60
|
-
root?: (React.HTMLAttributes<HTMLDivElement> & BackdropComponentsPropsOverrides) | undefined;
|
|
61
|
-
} | undefined;
|
|
62
41
|
/**
|
|
63
42
|
* Override or extend the styles applied to the component.
|
|
64
43
|
*/
|
|
@@ -82,21 +61,12 @@ export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>>,
|
|
|
82
61
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
83
62
|
*/
|
|
84
63
|
transitionDuration?: TransitionProps['timeout'] | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* The component used for the transition.
|
|
87
|
-
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
88
|
-
* @default Fade
|
|
89
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
90
|
-
*/
|
|
91
|
-
TransitionComponent?: React.JSXElementConstructor<TransitionProps & {
|
|
92
|
-
children: React.ReactElement<unknown, any>;
|
|
93
|
-
}> | undefined;
|
|
94
64
|
}
|
|
95
65
|
export interface BackdropTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> {
|
|
96
66
|
props: AdditionalProps & BackdropOwnProps;
|
|
97
67
|
defaultComponent: RootComponent;
|
|
98
68
|
}
|
|
99
|
-
type BackdropRootProps =
|
|
69
|
+
type BackdropRootProps = React.HTMLAttributes<HTMLDivElement> & BackdropComponentsPropsOverrides;
|
|
100
70
|
export declare const BackdropRoot: React.FC<BackdropRootProps>;
|
|
101
71
|
|
|
102
72
|
/**
|
package/Backdrop/Backdrop.js
CHANGED
|
@@ -67,11 +67,8 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
67
67
|
component = 'div',
|
|
68
68
|
invisible = false,
|
|
69
69
|
open,
|
|
70
|
-
components = {},
|
|
71
|
-
componentsProps = {},
|
|
72
70
|
slotProps = {},
|
|
73
71
|
slots = {},
|
|
74
|
-
TransitionComponent: TransitionComponentProp,
|
|
75
72
|
transitionDuration,
|
|
76
73
|
...other
|
|
77
74
|
} = props;
|
|
@@ -81,19 +78,10 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
81
78
|
invisible
|
|
82
79
|
};
|
|
83
80
|
const classes = useUtilityClasses(ownerState);
|
|
84
|
-
const backwardCompatibleSlots = {
|
|
85
|
-
transition: TransitionComponentProp,
|
|
86
|
-
root: components.Root,
|
|
87
|
-
...slots
|
|
88
|
-
};
|
|
89
|
-
const backwardCompatibleSlotProps = {
|
|
90
|
-
...componentsProps,
|
|
91
|
-
...slotProps
|
|
92
|
-
};
|
|
93
81
|
const externalForwardedProps = {
|
|
94
82
|
component,
|
|
95
|
-
slots
|
|
96
|
-
slotProps
|
|
83
|
+
slots,
|
|
84
|
+
slotProps
|
|
97
85
|
};
|
|
98
86
|
const [RootSlot, rootProps] = (0, _useSlot.default)('root', {
|
|
99
87
|
elementType: BackdropRoot,
|
|
@@ -140,27 +128,6 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
140
128
|
* Either a string to use a HTML element or a component.
|
|
141
129
|
*/
|
|
142
130
|
component: _propTypes.default.elementType,
|
|
143
|
-
/**
|
|
144
|
-
* The components used for each slot inside.
|
|
145
|
-
*
|
|
146
|
-
* @deprecated Use the `slots` 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.
|
|
147
|
-
*
|
|
148
|
-
* @default {}
|
|
149
|
-
*/
|
|
150
|
-
components: _propTypes.default.shape({
|
|
151
|
-
Root: _propTypes.default.elementType
|
|
152
|
-
}),
|
|
153
|
-
/**
|
|
154
|
-
* The extra props for the slot components.
|
|
155
|
-
* You can override the existing props or add new ones.
|
|
156
|
-
*
|
|
157
|
-
* @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.
|
|
158
|
-
*
|
|
159
|
-
* @default {}
|
|
160
|
-
*/
|
|
161
|
-
componentsProps: _propTypes.default.shape({
|
|
162
|
-
root: _propTypes.default.object
|
|
163
|
-
}),
|
|
164
131
|
/**
|
|
165
132
|
* If `true`, the backdrop is invisible.
|
|
166
133
|
* It can be used when rendering a popover or a custom select component.
|
|
@@ -191,13 +158,6 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
191
158
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
192
159
|
*/
|
|
193
160
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
194
|
-
/**
|
|
195
|
-
* The component used for the transition.
|
|
196
|
-
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
197
|
-
* @default Fade
|
|
198
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
199
|
-
*/
|
|
200
|
-
TransitionComponent: _propTypes.default.elementType,
|
|
201
161
|
/**
|
|
202
162
|
* The duration for the transition, in milliseconds.
|
|
203
163
|
* You may specify a single timeout for all transitions, or individually with an object.
|
package/Backdrop/Backdrop.mjs
CHANGED
|
@@ -60,11 +60,8 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
60
60
|
component = 'div',
|
|
61
61
|
invisible = false,
|
|
62
62
|
open,
|
|
63
|
-
components = {},
|
|
64
|
-
componentsProps = {},
|
|
65
63
|
slotProps = {},
|
|
66
64
|
slots = {},
|
|
67
|
-
TransitionComponent: TransitionComponentProp,
|
|
68
65
|
transitionDuration,
|
|
69
66
|
...other
|
|
70
67
|
} = props;
|
|
@@ -74,19 +71,10 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
74
71
|
invisible
|
|
75
72
|
};
|
|
76
73
|
const classes = useUtilityClasses(ownerState);
|
|
77
|
-
const backwardCompatibleSlots = {
|
|
78
|
-
transition: TransitionComponentProp,
|
|
79
|
-
root: components.Root,
|
|
80
|
-
...slots
|
|
81
|
-
};
|
|
82
|
-
const backwardCompatibleSlotProps = {
|
|
83
|
-
...componentsProps,
|
|
84
|
-
...slotProps
|
|
85
|
-
};
|
|
86
74
|
const externalForwardedProps = {
|
|
87
75
|
component,
|
|
88
|
-
slots
|
|
89
|
-
slotProps
|
|
76
|
+
slots,
|
|
77
|
+
slotProps
|
|
90
78
|
};
|
|
91
79
|
const [RootSlot, rootProps] = useSlot('root', {
|
|
92
80
|
elementType: BackdropRoot,
|
|
@@ -133,27 +121,6 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
133
121
|
* Either a string to use a HTML element or a component.
|
|
134
122
|
*/
|
|
135
123
|
component: PropTypes.elementType,
|
|
136
|
-
/**
|
|
137
|
-
* The components used for each slot inside.
|
|
138
|
-
*
|
|
139
|
-
* @deprecated Use the `slots` 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.
|
|
140
|
-
*
|
|
141
|
-
* @default {}
|
|
142
|
-
*/
|
|
143
|
-
components: PropTypes.shape({
|
|
144
|
-
Root: PropTypes.elementType
|
|
145
|
-
}),
|
|
146
|
-
/**
|
|
147
|
-
* The extra props for the slot components.
|
|
148
|
-
* You can override the existing props or add new ones.
|
|
149
|
-
*
|
|
150
|
-
* @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.
|
|
151
|
-
*
|
|
152
|
-
* @default {}
|
|
153
|
-
*/
|
|
154
|
-
componentsProps: PropTypes.shape({
|
|
155
|
-
root: PropTypes.object
|
|
156
|
-
}),
|
|
157
124
|
/**
|
|
158
125
|
* If `true`, the backdrop is invisible.
|
|
159
126
|
* It can be used when rendering a popover or a custom select component.
|
|
@@ -184,13 +151,6 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
184
151
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
185
152
|
*/
|
|
186
153
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
187
|
-
/**
|
|
188
|
-
* The component used for the transition.
|
|
189
|
-
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
190
|
-
* @default Fade
|
|
191
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
192
|
-
*/
|
|
193
|
-
TransitionComponent: PropTypes.elementType,
|
|
194
154
|
/**
|
|
195
155
|
* The duration for the transition, in milliseconds.
|
|
196
156
|
* You may specify a single timeout for all transitions, or individually with an object.
|
package/Badge/Badge.d.mts
CHANGED
|
@@ -80,26 +80,6 @@ export interface BadgeOwnProps extends BadgeSlotsAndSlotProps {
|
|
|
80
80
|
* @default 'default'
|
|
81
81
|
*/
|
|
82
82
|
color?: OverridableStringUnion<'primary' | 'secondary' | 'default' | 'error' | 'info' | 'success' | 'warning', BadgePropsColorOverrides> | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* The extra props for the slot components.
|
|
85
|
-
* You can override the existing props or add new ones.
|
|
86
|
-
*
|
|
87
|
-
* @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.
|
|
88
|
-
*
|
|
89
|
-
* @default {}
|
|
90
|
-
*/
|
|
91
|
-
componentsProps?: BadgeOwnProps['slotProps'] | undefined;
|
|
92
|
-
/**
|
|
93
|
-
* The components used for each slot inside.
|
|
94
|
-
*
|
|
95
|
-
* @deprecated use the `slots` 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.
|
|
96
|
-
*
|
|
97
|
-
* @default {}
|
|
98
|
-
*/
|
|
99
|
-
components?: {
|
|
100
|
-
Root?: React.ElementType | undefined;
|
|
101
|
-
Badge?: React.ElementType | undefined;
|
|
102
|
-
} | undefined;
|
|
103
83
|
/**
|
|
104
84
|
* If `true`, the badge is invisible.
|
|
105
85
|
* @default false
|
package/Badge/Badge.d.ts
CHANGED
|
@@ -80,26 +80,6 @@ export interface BadgeOwnProps extends BadgeSlotsAndSlotProps {
|
|
|
80
80
|
* @default 'default'
|
|
81
81
|
*/
|
|
82
82
|
color?: OverridableStringUnion<'primary' | 'secondary' | 'default' | 'error' | 'info' | 'success' | 'warning', BadgePropsColorOverrides> | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* The extra props for the slot components.
|
|
85
|
-
* You can override the existing props or add new ones.
|
|
86
|
-
*
|
|
87
|
-
* @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.
|
|
88
|
-
*
|
|
89
|
-
* @default {}
|
|
90
|
-
*/
|
|
91
|
-
componentsProps?: BadgeOwnProps['slotProps'] | undefined;
|
|
92
|
-
/**
|
|
93
|
-
* The components used for each slot inside.
|
|
94
|
-
*
|
|
95
|
-
* @deprecated use the `slots` 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.
|
|
96
|
-
*
|
|
97
|
-
* @default {}
|
|
98
|
-
*/
|
|
99
|
-
components?: {
|
|
100
|
-
Root?: React.ElementType | undefined;
|
|
101
|
-
Badge?: React.ElementType | undefined;
|
|
102
|
-
} | undefined;
|
|
103
83
|
/**
|
|
104
84
|
* If `true`, the badge is invisible.
|
|
105
85
|
* @default false
|
package/Badge/Badge.js
CHANGED
|
@@ -151,8 +151,6 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
151
151
|
className,
|
|
152
152
|
classes: classesProp,
|
|
153
153
|
component,
|
|
154
|
-
components = {},
|
|
155
|
-
componentsProps = {},
|
|
156
154
|
children,
|
|
157
155
|
overlap: overlapProp = 'rectangular',
|
|
158
156
|
color: colorProp = 'default',
|
|
@@ -205,17 +203,9 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
205
203
|
variant
|
|
206
204
|
};
|
|
207
205
|
const classes = useUtilityClasses(ownerState);
|
|
208
|
-
|
|
209
|
-
// support both `slots` and `components` for backward compatibility
|
|
210
206
|
const externalForwardedProps = {
|
|
211
|
-
slots
|
|
212
|
-
|
|
213
|
-
badge: slots?.badge ?? components.Badge
|
|
214
|
-
},
|
|
215
|
-
slotProps: {
|
|
216
|
-
root: slotProps?.root ?? componentsProps.root,
|
|
217
|
-
badge: slotProps?.badge ?? componentsProps.badge
|
|
218
|
-
}
|
|
207
|
+
slots,
|
|
208
|
+
slotProps
|
|
219
209
|
};
|
|
220
210
|
const [RootSlot, rootProps] = (0, _useSlot.default)('root', {
|
|
221
211
|
elementType: BadgeRoot,
|
|
@@ -288,29 +278,6 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ =
|
|
|
288
278
|
* Either a string to use a HTML element or a component.
|
|
289
279
|
*/
|
|
290
280
|
component: _propTypes.default.elementType,
|
|
291
|
-
/**
|
|
292
|
-
* The components used for each slot inside.
|
|
293
|
-
*
|
|
294
|
-
* @deprecated use the `slots` 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.
|
|
295
|
-
*
|
|
296
|
-
* @default {}
|
|
297
|
-
*/
|
|
298
|
-
components: _propTypes.default.shape({
|
|
299
|
-
Badge: _propTypes.default.elementType,
|
|
300
|
-
Root: _propTypes.default.elementType
|
|
301
|
-
}),
|
|
302
|
-
/**
|
|
303
|
-
* The extra props for the slot components.
|
|
304
|
-
* You can override the existing props or add new ones.
|
|
305
|
-
*
|
|
306
|
-
* @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.
|
|
307
|
-
*
|
|
308
|
-
* @default {}
|
|
309
|
-
*/
|
|
310
|
-
componentsProps: _propTypes.default.shape({
|
|
311
|
-
badge: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
312
|
-
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
313
|
-
}),
|
|
314
281
|
/**
|
|
315
282
|
* If `true`, the badge is invisible.
|
|
316
283
|
* @default false
|
package/Badge/Badge.mjs
CHANGED
|
@@ -144,8 +144,6 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
144
144
|
className,
|
|
145
145
|
classes: classesProp,
|
|
146
146
|
component,
|
|
147
|
-
components = {},
|
|
148
|
-
componentsProps = {},
|
|
149
147
|
children,
|
|
150
148
|
overlap: overlapProp = 'rectangular',
|
|
151
149
|
color: colorProp = 'default',
|
|
@@ -198,17 +196,9 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
198
196
|
variant
|
|
199
197
|
};
|
|
200
198
|
const classes = useUtilityClasses(ownerState);
|
|
201
|
-
|
|
202
|
-
// support both `slots` and `components` for backward compatibility
|
|
203
199
|
const externalForwardedProps = {
|
|
204
|
-
slots
|
|
205
|
-
|
|
206
|
-
badge: slots?.badge ?? components.Badge
|
|
207
|
-
},
|
|
208
|
-
slotProps: {
|
|
209
|
-
root: slotProps?.root ?? componentsProps.root,
|
|
210
|
-
badge: slotProps?.badge ?? componentsProps.badge
|
|
211
|
-
}
|
|
200
|
+
slots,
|
|
201
|
+
slotProps
|
|
212
202
|
};
|
|
213
203
|
const [RootSlot, rootProps] = useSlot('root', {
|
|
214
204
|
elementType: BadgeRoot,
|
|
@@ -281,29 +271,6 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ =
|
|
|
281
271
|
* Either a string to use a HTML element or a component.
|
|
282
272
|
*/
|
|
283
273
|
component: PropTypes.elementType,
|
|
284
|
-
/**
|
|
285
|
-
* The components used for each slot inside.
|
|
286
|
-
*
|
|
287
|
-
* @deprecated use the `slots` 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.
|
|
288
|
-
*
|
|
289
|
-
* @default {}
|
|
290
|
-
*/
|
|
291
|
-
components: PropTypes.shape({
|
|
292
|
-
Badge: PropTypes.elementType,
|
|
293
|
-
Root: PropTypes.elementType
|
|
294
|
-
}),
|
|
295
|
-
/**
|
|
296
|
-
* The extra props for the slot components.
|
|
297
|
-
* You can override the existing props or add new ones.
|
|
298
|
-
*
|
|
299
|
-
* @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.
|
|
300
|
-
*
|
|
301
|
-
* @default {}
|
|
302
|
-
*/
|
|
303
|
-
componentsProps: PropTypes.shape({
|
|
304
|
-
badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
305
|
-
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
306
|
-
}),
|
|
307
274
|
/**
|
|
308
275
|
* If `true`, the badge is invisible.
|
|
309
276
|
* @default false
|
package/Button/Button.js
CHANGED
|
@@ -37,9 +37,9 @@ const useUtilityClasses = ownerState => {
|
|
|
37
37
|
classes
|
|
38
38
|
} = ownerState;
|
|
39
39
|
const slots = {
|
|
40
|
-
root: ['root', loading && 'loading', variant,
|
|
41
|
-
startIcon: ['icon', 'startIcon'
|
|
42
|
-
endIcon: ['icon', 'endIcon'
|
|
40
|
+
root: ['root', loading && 'loading', variant, `size${(0, _capitalize.default)(size)}`, `color${(0, _capitalize.default)(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth', loading && `loadingPosition${(0, _capitalize.default)(loadingPosition)}`],
|
|
41
|
+
startIcon: ['icon', 'startIcon'],
|
|
42
|
+
endIcon: ['icon', 'endIcon'],
|
|
43
43
|
loadingIndicator: ['loadingIndicator'],
|
|
44
44
|
loadingWrapper: ['loadingWrapper']
|
|
45
45
|
};
|
|
@@ -86,7 +86,7 @@ const ButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
86
86
|
const {
|
|
87
87
|
ownerState
|
|
88
88
|
} = props;
|
|
89
|
-
return [styles.root, styles[ownerState.variant], styles[
|
|
89
|
+
return [styles.root, styles[ownerState.variant], styles[`size${(0, _capitalize.default)(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.loading && styles.loading];
|
|
90
90
|
}
|
|
91
91
|
})((0, _memoTheme.default)(({
|
|
92
92
|
theme
|
|
@@ -295,7 +295,7 @@ const ButtonStartIcon = (0, _zeroStyled.styled)('span', {
|
|
|
295
295
|
const {
|
|
296
296
|
ownerState
|
|
297
297
|
} = props;
|
|
298
|
-
return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart
|
|
298
|
+
return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart];
|
|
299
299
|
}
|
|
300
300
|
})(({
|
|
301
301
|
theme
|
|
@@ -339,7 +339,7 @@ const ButtonEndIcon = (0, _zeroStyled.styled)('span', {
|
|
|
339
339
|
const {
|
|
340
340
|
ownerState
|
|
341
341
|
} = props;
|
|
342
|
-
return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd
|
|
342
|
+
return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd];
|
|
343
343
|
}
|
|
344
344
|
})(({
|
|
345
345
|
theme
|
package/Button/Button.mjs
CHANGED
|
@@ -30,9 +30,9 @@ const useUtilityClasses = ownerState => {
|
|
|
30
30
|
classes
|
|
31
31
|
} = ownerState;
|
|
32
32
|
const slots = {
|
|
33
|
-
root: ['root', loading && 'loading', variant,
|
|
34
|
-
startIcon: ['icon', 'startIcon'
|
|
35
|
-
endIcon: ['icon', 'endIcon'
|
|
33
|
+
root: ['root', loading && 'loading', variant, `size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth', loading && `loadingPosition${capitalize(loadingPosition)}`],
|
|
34
|
+
startIcon: ['icon', 'startIcon'],
|
|
35
|
+
endIcon: ['icon', 'endIcon'],
|
|
36
36
|
loadingIndicator: ['loadingIndicator'],
|
|
37
37
|
loadingWrapper: ['loadingWrapper']
|
|
38
38
|
};
|
|
@@ -79,7 +79,7 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
79
79
|
const {
|
|
80
80
|
ownerState
|
|
81
81
|
} = props;
|
|
82
|
-
return [styles.root, styles[ownerState.variant], styles[
|
|
82
|
+
return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.loading && styles.loading];
|
|
83
83
|
}
|
|
84
84
|
})(memoTheme(({
|
|
85
85
|
theme
|
|
@@ -288,7 +288,7 @@ const ButtonStartIcon = styled('span', {
|
|
|
288
288
|
const {
|
|
289
289
|
ownerState
|
|
290
290
|
} = props;
|
|
291
|
-
return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart
|
|
291
|
+
return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart];
|
|
292
292
|
}
|
|
293
293
|
})(({
|
|
294
294
|
theme
|
|
@@ -332,7 +332,7 @@ const ButtonEndIcon = styled('span', {
|
|
|
332
332
|
const {
|
|
333
333
|
ownerState
|
|
334
334
|
} = props;
|
|
335
|
-
return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd
|
|
335
|
+
return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd];
|
|
336
336
|
}
|
|
337
337
|
})(({
|
|
338
338
|
theme
|
|
@@ -3,94 +3,10 @@ export interface ButtonClasses {
|
|
|
3
3
|
root: string;
|
|
4
4
|
/** Styles applied to the root element if `variant="text"`. */
|
|
5
5
|
text: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="text"` and `color="inherit"`.
|
|
7
|
-
* @deprecated Combine the [.MuiButton-text](/material-ui/api/button/#button-classes-MuiButton-text) and [.MuiButton-colorInherit](/material-ui/api/button/#button-classes-MuiButton-colorInherit) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
8
|
-
*/
|
|
9
|
-
textInherit: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="text"` and `color="primary"`.
|
|
11
|
-
* @deprecated Combine the [.MuiButton-text](/material-ui/api/button/#button-classes-MuiButton-text) and [.MuiButton-colorPrimary](/material-ui/api/button/#button-classes-MuiButton-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
12
|
-
*/
|
|
13
|
-
textPrimary: string;
|
|
14
|
-
/** Styles applied to the root element if `variant="text"` and `color="secondary"`.
|
|
15
|
-
* @deprecated Combine the [.MuiButton-text](/material-ui/api/button/#button-classes-MuiButton-text) and [.MuiButton-colorSecondary](/material-ui/api/button/#button-classes-MuiButton-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
16
|
-
*/
|
|
17
|
-
textSecondary: string;
|
|
18
|
-
/** Styles applied to the root element if `variant="text"` and `color="success"`.
|
|
19
|
-
* @deprecated Combine the [.MuiButton-text](/material-ui/api/button/#button-classes-MuiButton-text) and [.MuiButton-colorSuccess](/material-ui/api/button/#button-classes-MuiButton-colorSuccess) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
20
|
-
*/
|
|
21
|
-
textSuccess: string;
|
|
22
|
-
/** Styles applied to the root element if `variant="text"` and `color="error"`.
|
|
23
|
-
* @deprecated Combine the [.MuiButton-text](/material-ui/api/button/#button-classes-MuiButton-text) and [.MuiButton-colorError](/material-ui/api/button/#button-classes-MuiButton-colorError) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
24
|
-
*/
|
|
25
|
-
textError: string;
|
|
26
|
-
/** Styles applied to the root element if `variant="text"` and `color="info"`.
|
|
27
|
-
* @deprecated Combine the [.MuiButton-text](/material-ui/api/button/#button-classes-MuiButton-text) and [.MuiButton-colorInfo](/material-ui/api/button/#button-classes-MuiButton-colorInfo) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
28
|
-
*/
|
|
29
|
-
textInfo: string;
|
|
30
|
-
/** Styles applied to the root element if `variant="text"` and `color="warning"`.
|
|
31
|
-
* @deprecated Combine the [.MuiButton-text](/material-ui/api/button/#button-classes-MuiButton-text) and [.MuiButton-colorWarning](/material-ui/api/button/#button-classes-MuiButton-colorWarning) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
32
|
-
*/
|
|
33
|
-
textWarning: string;
|
|
34
6
|
/** Styles applied to the root element if `variant="outlined"`. */
|
|
35
7
|
outlined: string;
|
|
36
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="inherit"`.
|
|
37
|
-
* @deprecated Combine the [.MuiButton-outlined](/material-ui/api/button/#button-classes-MuiButton-outlined) and [.MuiButton-colorInherit](/material-ui/api/button/#button-classes-MuiButton-colorInherit) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
38
|
-
*/
|
|
39
|
-
outlinedInherit: string;
|
|
40
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`.
|
|
41
|
-
* @deprecated Combine the [.MuiButton-outlined](/material-ui/api/button/#button-classes-MuiButton-outlined) and [.MuiButton-colorPrimary](/material-ui/api/button/#button-classes-MuiButton-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
42
|
-
*/
|
|
43
|
-
outlinedPrimary: string;
|
|
44
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`.
|
|
45
|
-
* @deprecated Combine the [.MuiButton-outlined](/material-ui/api/button/#button-classes-MuiButton-outlined) and [.MuiButton-colorSecondary](/material-ui/api/button/#button-classes-MuiButton-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
46
|
-
*/
|
|
47
|
-
outlinedSecondary: string;
|
|
48
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="success"`.
|
|
49
|
-
* @deprecated Combine the [.MuiButton-outlined](/material-ui/api/button/#button-classes-MuiButton-outlined) and [.MuiButton-colorSuccess](/material-ui/api/button/#button-classes-MuiButton-colorSuccess) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
50
|
-
*/
|
|
51
|
-
outlinedSuccess: string;
|
|
52
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="error"`.
|
|
53
|
-
* @deprecated Combine the [.MuiButton-outlined](/material-ui/api/button/#button-classes-MuiButton-outlined) and [.MuiButton-colorError](/material-ui/api/button/#button-classes-MuiButton-colorError) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
54
|
-
*/
|
|
55
|
-
outlinedError: string;
|
|
56
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="info"`.
|
|
57
|
-
* @deprecated Combine the [.MuiButton-outlined](/material-ui/api/button/#button-classes-MuiButton-outlined) and [.MuiButton-colorInfo](/material-ui/api/button/#button-classes-MuiButton-colorInfo) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
58
|
-
*/
|
|
59
|
-
outlinedInfo: string;
|
|
60
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="warning"`.
|
|
61
|
-
* @deprecated Combine the [.MuiButton-outlined](/material-ui/api/button/#button-classes-MuiButton-outlined) and [.MuiButton-colorWarning](/material-ui/api/button/#button-classes-MuiButton-colorWarning) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
62
|
-
*/
|
|
63
|
-
outlinedWarning: string;
|
|
64
8
|
/** Styles applied to the root element if `variant="contained"`. */
|
|
65
9
|
contained: string;
|
|
66
|
-
/** Styles applied to the root element if `variant="contained"` and `color="inherit"`.
|
|
67
|
-
* @deprecated Combine the [.MuiButton-contained](/material-ui/api/button/#button-classes-MuiButton-contained) and [.MuiButton-colorInherit](/material-ui/api/button/#button-classes-MuiButton-colorInherit) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
68
|
-
*/
|
|
69
|
-
containedInherit: string;
|
|
70
|
-
/** Styles applied to the root element if `variant="contained"` and `color="primary"`.
|
|
71
|
-
* @deprecated Combine the [.MuiButton-contained](/material-ui/api/button/#button-classes-MuiButton-contained) and [.MuiButton-colorPrimary](/material-ui/api/button/#button-classes-MuiButton-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
72
|
-
*/
|
|
73
|
-
containedPrimary: string;
|
|
74
|
-
/** Styles applied to the root element if `variant="contained"` and `color="secondary"`.
|
|
75
|
-
* @deprecated Combine the [.MuiButton-contained](/material-ui/api/button/#button-classes-MuiButton-contained) and [.MuiButton-colorSecondary](/material-ui/api/button/#button-classes-MuiButton-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
76
|
-
*/
|
|
77
|
-
containedSecondary: string;
|
|
78
|
-
/** Styles applied to the root element if `variant="contained"` and `color="success"`.
|
|
79
|
-
* @deprecated Combine the [.MuiButton-contained](/material-ui/api/button/#button-classes-MuiButton-contained) and [.MuiButton-colorSuccess](/material-ui/api/button/#button-classes-MuiButton-colorSuccess) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
80
|
-
*/
|
|
81
|
-
containedSuccess: string;
|
|
82
|
-
/** Styles applied to the root element if `variant="contained"` and `color="info"`.
|
|
83
|
-
* @deprecated Combine the [.MuiButton-contained](/material-ui/api/button/#button-classes-MuiButton-contained) and [.MuiButton-colorInfo](/material-ui/api/button/#button-classes-MuiButton-colorInfo) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
84
|
-
*/
|
|
85
|
-
containedInfo: string;
|
|
86
|
-
/** Styles applied to the root element if `variant="contained"` and `color="error"`.
|
|
87
|
-
* @deprecated Combine the [.MuiButton-contained](/material-ui/api/button/#button-classes-MuiButton-contained) and [.MuiButton-colorError](/material-ui/api/button/#button-classes-MuiButton-colorError) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
88
|
-
*/
|
|
89
|
-
containedError: string;
|
|
90
|
-
/** Styles applied to the root element if `variant="contained"` and `color="warning"`.
|
|
91
|
-
* @deprecated Combine the [.MuiButton-contained](/material-ui/api/button/#button-classes-MuiButton-contained) and [.MuiButton-colorWarning](/material-ui/api/button/#button-classes-MuiButton-colorWarning) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
92
|
-
*/
|
|
93
|
-
containedWarning: string;
|
|
94
10
|
/** Styles applied to the root element if `disableElevation={true}`. */
|
|
95
11
|
disableElevation: string;
|
|
96
12
|
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
|
|
@@ -99,42 +15,6 @@ export interface ButtonClasses {
|
|
|
99
15
|
disabled: string;
|
|
100
16
|
/** Styles applied to the root element if `color="inherit"`. */
|
|
101
17
|
colorInherit: string;
|
|
102
|
-
/** Styles applied to the root element if `size="small"` and `variant="text"`.
|
|
103
|
-
* @deprecated Combine the [.MuiButton-sizeSmall](/material-ui/api/button/#button-classes-MuiButton-sizeSmall) and [.MuiButton-text](/material-ui/api/button/#button-classes-MuiButton-text) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
104
|
-
*/
|
|
105
|
-
textSizeSmall: string;
|
|
106
|
-
/** Styles applied to the root element if `size="medium"` and `variant="text"`.
|
|
107
|
-
* @deprecated Combine the [.MuiButton-sizeMedium](/material-ui/api/button/#button-classes-MuiButton-sizeMedium) and [.MuiButton-text](/material-ui/api/button/#button-classes-MuiButton-text) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
108
|
-
*/
|
|
109
|
-
textSizeMedium: string;
|
|
110
|
-
/** Styles applied to the root element if `size="large"` and `variant="text"`.
|
|
111
|
-
* @deprecated Combine the [.MuiButton-sizeLarge](/material-ui/api/button/#button-classes-MuiButton-sizeLarge) and [.MuiButton-text](/material-ui/api/button/#button-classes-MuiButton-text) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
112
|
-
*/
|
|
113
|
-
textSizeLarge: string;
|
|
114
|
-
/** Styles applied to the root element if `size="small"` and `variant="outlined"`.
|
|
115
|
-
* @deprecated Combine the [.MuiButton-sizeSmall](/material-ui/api/button/#button-classes-MuiButton-sizeSmall) and [.MuiButton-outlined](/material-ui/api/button/#button-classes-MuiButton-outlined) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
116
|
-
*/
|
|
117
|
-
outlinedSizeSmall: string;
|
|
118
|
-
/** Styles applied to the root element if `size="medium"` and `variant="outlined"`.
|
|
119
|
-
* @deprecated Combine the [.MuiButton-sizeMedium](/material-ui/api/button/#button-classes-MuiButton-sizeMedium) and [.MuiButton-outlined](/material-ui/api/button/#button-classes-MuiButton-outlined) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
120
|
-
*/
|
|
121
|
-
outlinedSizeMedium: string;
|
|
122
|
-
/** Styles applied to the root element if `size="large"` and `variant="outlined"`.
|
|
123
|
-
* @deprecated Combine the [.MuiButton-sizeLarge](/material-ui/api/button/#button-classes-MuiButton-sizeLarge) and [.MuiButton-outlined](/material-ui/api/button/#button-classes-MuiButton-outlined) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
124
|
-
*/
|
|
125
|
-
outlinedSizeLarge: string;
|
|
126
|
-
/** Styles applied to the root element if `size="small"` and `variant="contained"`.
|
|
127
|
-
* @deprecated Combine the [.MuiButton-sizeSmall](/material-ui/api/button/#button-classes-MuiButton-sizeSmall) and [.MuiButton-contained](/material-ui/api/button/#button-classes-MuiButton-contained) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
128
|
-
*/
|
|
129
|
-
containedSizeSmall: string;
|
|
130
|
-
/** Styles applied to the root element if `size="medium"` and `variant="contained"`.
|
|
131
|
-
* @deprecated Combine the [.MuiButton-sizeMedium](/material-ui/api/button/#button-classes-MuiButton-sizeMedium) and [.MuiButton-contained](/material-ui/api/button/#button-classes-MuiButton-contained) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
132
|
-
*/
|
|
133
|
-
containedSizeMedium: string;
|
|
134
|
-
/** Styles applied to the root element if `size="large"` and `variant="contained"`.
|
|
135
|
-
* @deprecated Combine the [.MuiButton-sizeLarge](/material-ui/api/button/#button-classes-MuiButton-sizeLarge) and [.MuiButton-contained](/material-ui/api/button/#button-classes-MuiButton-contained) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
136
|
-
*/
|
|
137
|
-
containedSizeLarge: string;
|
|
138
18
|
/** Styles applied to the root element if `size="small"`. */
|
|
139
19
|
sizeSmall: string;
|
|
140
20
|
/** Styles applied to the root element if `size="medium"`. */
|
|
@@ -149,18 +29,6 @@ export interface ButtonClasses {
|
|
|
149
29
|
startIcon: string;
|
|
150
30
|
/** Styles applied to the endIcon element if supplied. */
|
|
151
31
|
endIcon: string;
|
|
152
|
-
/** Styles applied to the icon element if supplied and `size="small"`.
|
|
153
|
-
* @deprecated Combine the [.MuiButton-icon](/material-ui/api/button/#button-classes-MuiButton-icon) and [.MuiButtonSizeSmall](/material-ui/api/button/#button-classes-MuiButton-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
154
|
-
*/
|
|
155
|
-
iconSizeSmall: string;
|
|
156
|
-
/** Styles applied to the icon element if supplied and `size="medium"`.
|
|
157
|
-
* @deprecated Combine the [.MuiButton-icon](/material-ui/api/button/#button-classes-MuiButton-icon) and [.MuiButtonSizeMedium](/material-ui/api/button/#button-classes-MuiButton-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
158
|
-
*/
|
|
159
|
-
iconSizeMedium: string;
|
|
160
|
-
/** Styles applied to the icon element if supplied and `size="large"`.
|
|
161
|
-
* @deprecated Combine the [.MuiButton-icon](/material-ui/api/button/#button-classes-MuiButton-icon) and [.MuiButtonSizeLarge](/material-ui/api/button/#button-classes-MuiButton-sizeLarge) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
162
|
-
*/
|
|
163
|
-
iconSizeLarge: string;
|
|
164
32
|
/** Styles applied to the root element if `color="primary"`. */
|
|
165
33
|
colorPrimary: string;
|
|
166
34
|
/** Styles applied to the root element if `color="secondary"`. */
|