@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
|
@@ -58,7 +58,6 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
58
58
|
children: childrenProp,
|
|
59
59
|
className,
|
|
60
60
|
component = 'div',
|
|
61
|
-
componentsProps,
|
|
62
61
|
max = 5,
|
|
63
62
|
renderSurplus,
|
|
64
63
|
slotProps = {},
|
|
@@ -103,11 +102,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
103
102
|
}
|
|
104
103
|
const externalForwardedProps = {
|
|
105
104
|
slots,
|
|
106
|
-
slotProps
|
|
107
|
-
surplus: slotProps.additionalAvatar ?? componentsProps?.additionalAvatar,
|
|
108
|
-
...componentsProps,
|
|
109
|
-
...slotProps
|
|
110
|
-
}
|
|
105
|
+
slotProps
|
|
111
106
|
};
|
|
112
107
|
const [SurplusSlot, surplusProps] = useSlot('surplus', {
|
|
113
108
|
elementType: Avatar,
|
|
@@ -162,17 +157,6 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptype
|
|
|
162
157
|
* Either a string to use a HTML element or a component.
|
|
163
158
|
*/
|
|
164
159
|
component: PropTypes.elementType,
|
|
165
|
-
/**
|
|
166
|
-
* The extra props for the slot components.
|
|
167
|
-
* You can override the existing props or add new ones.
|
|
168
|
-
*
|
|
169
|
-
* This prop is an alias for the `slotProps` prop.
|
|
170
|
-
*
|
|
171
|
-
* @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.
|
|
172
|
-
*/
|
|
173
|
-
componentsProps: PropTypes.shape({
|
|
174
|
-
additionalAvatar: PropTypes.object
|
|
175
|
-
}),
|
|
176
160
|
/**
|
|
177
161
|
* Max avatars to show before +x.
|
|
178
162
|
* @default 5
|
|
@@ -194,7 +178,6 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptype
|
|
|
194
178
|
* @default {}
|
|
195
179
|
*/
|
|
196
180
|
slotProps: PropTypes.shape({
|
|
197
|
-
additionalAvatar: PropTypes.object,
|
|
198
181
|
surplus: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
199
182
|
}),
|
|
200
183
|
/**
|
package/Backdrop/Backdrop.d.mts
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.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/Box/Box.d.mts
CHANGED
package/Box/Box.d.ts
CHANGED
package/Button/Button.d.mts
CHANGED
|
@@ -117,6 +117,7 @@ export type ExtendButton<TypeMap extends OverridableTypeMap> = ((props: {
|
|
|
117
117
|
*
|
|
118
118
|
* - [Button Group](https://next.mui.com/material-ui/react-button-group/)
|
|
119
119
|
* - [Button](https://next.mui.com/material-ui/react-button/)
|
|
120
|
+
* - [Menubar](https://next.mui.com/material-ui/react-menubar/)
|
|
120
121
|
* - [Number Field](https://next.mui.com/material-ui/react-number-field/)
|
|
121
122
|
*
|
|
122
123
|
* API:
|
package/Button/Button.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ export type ExtendButton<TypeMap extends OverridableTypeMap> = ((props: {
|
|
|
117
117
|
*
|
|
118
118
|
* - [Button Group](https://next.mui.com/material-ui/react-button-group/)
|
|
119
119
|
* - [Button](https://next.mui.com/material-ui/react-button/)
|
|
120
|
+
* - [Menubar](https://next.mui.com/material-ui/react-menubar/)
|
|
120
121
|
* - [Number Field](https://next.mui.com/material-ui/react-number-field/)
|
|
121
122
|
*
|
|
122
123
|
* API:
|
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
|