@mui/material 5.10.3 → 5.10.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/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/Avatar.d.ts +1 -1
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/AvatarGroup.d.ts +6 -1
- package/AvatarGroup/AvatarGroup.js +10 -1
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.d.ts +2 -2
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/Button.d.ts +2 -2
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/ButtonBase.d.ts +1 -1
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +51 -0
- package/Card/Card.d.ts +1 -1
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/CardActionArea.d.ts +1 -1
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/CardActions.d.ts +1 -1
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/CardContent.d.ts +1 -1
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/CardHeader.d.ts +1 -1
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/CardMedia.d.ts +1 -1
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/Chip.d.ts +1 -1
- package/Chip/chipClasses.d.ts +88 -88
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/Collapse.d.ts +1 -1
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/CssBaseline/CssBaseline.d.ts +1 -1
- package/Dialog/Dialog.d.ts +1 -1
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/DialogActions.d.ts +1 -1
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/DialogContent.d.ts +1 -1
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/DialogContentText.d.ts +1 -1
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/DialogTitle.d.ts +1 -1
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/Divider.d.ts +1 -1
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/Drawer.d.ts +1 -1
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.d.ts +1 -1
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.d.ts +1 -1
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/FormControl.d.ts +4 -4
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.d.ts +3 -3
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/FormGroup.d.ts +2 -2
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/FormHelperText.d.ts +1 -1
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/FormLabel.d.ts +3 -3
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Hidden/HiddenJs.d.ts +1 -1
- package/Hidden/HiddenJs.js +20 -28
- package/Icon/Icon.d.ts +1 -1
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/IconButton.d.ts +1 -1
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.d.ts +1 -1
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/InputAdornment.d.ts +1 -1
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.d.ts +1 -1
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/InputLabel.d.ts +1 -1
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/Menu.d.ts +1 -1
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/MenuItem.d.ts +1 -1
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MenuList/MenuList.d.ts +1 -1
- package/MobileStepper/MobileStepper.d.ts +1 -1
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/NativeSelect.d.ts +1 -1
- package/NativeSelect/NativeSelect.js +17 -15
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/OutlinedInput.d.ts +1 -1
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/OverridableComponentAugmentation.d.ts +31 -31
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/Paper.d.ts +1 -1
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/Popover.d.ts +1 -1
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +24 -24
- package/Popper/Popper.js +1 -1
- package/README.md +1 -2
- package/Radio/Radio.d.ts +1 -1
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroup.d.ts +1 -1
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +1 -1
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/Select.d.ts +1 -1
- package/Select/Select.js +38 -36
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Slide/Slide.d.ts +1 -1
- package/Snackbar/Snackbar.d.ts +1 -1
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/SnackbarContent.d.ts +1 -1
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/Step.d.ts +55 -44
- package/Step/Step.js +11 -2
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/StepButton.d.ts +1 -1
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/StepConnector.d.ts +1 -1
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/StepContent.d.ts +1 -1
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/StepIcon.d.ts +1 -1
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/StepLabel.d.ts +1 -1
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/Stepper.d.ts +54 -43
- package/Stepper/Stepper.js +11 -2
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.d.ts +1 -1
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
- package/Switch/Switch.d.ts +1 -1
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/Table.d.ts +1 -1
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/TableBody.d.ts +1 -1
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/TableCell.d.ts +1 -1
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/TableContainer.d.ts +1 -1
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/TableFooter.d.ts +1 -1
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/TableHead.d.ts +1 -1
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/TablePagination.d.ts +1 -1
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/TableRow.d.ts +1 -1
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/TableSortLabel.d.ts +1 -1
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/TextField.d.ts +1 -1
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/ToggleButton.js +3 -1
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.d.ts +1 -1
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/esm/AvatarGroup/AvatarGroup.js +10 -1
- package/esm/BottomNavigation/BottomNavigation.js +0 -0
- package/esm/Hidden/HiddenJs.js +19 -28
- package/esm/NativeSelect/NativeSelect.js +17 -15
- package/esm/Popper/Popper.js +1 -1
- package/esm/Select/Select.js +38 -36
- package/esm/Step/Step.js +11 -2
- package/esm/Stepper/Stepper.js +11 -2
- package/esm/ToggleButton/ToggleButton.js +3 -1
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/AvatarGroup/AvatarGroup.js +11 -1
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Hidden/HiddenJs.js +19 -28
- package/legacy/NativeSelect/NativeSelect.js +17 -15
- package/legacy/Popper/Popper.js +1 -1
- package/legacy/Select/Select.js +38 -36
- package/legacy/Step/Step.js +12 -2
- package/legacy/Stepper/Stepper.js +12 -2
- package/legacy/ToggleButton/ToggleButton.js +3 -1
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +71 -71
- package/modern/AvatarGroup/AvatarGroup.js +10 -1
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Hidden/HiddenJs.js +19 -28
- package/modern/NativeSelect/NativeSelect.js +17 -15
- package/modern/Popper/Popper.js +1 -1
- package/modern/Select/Select.js +38 -36
- package/modern/Step/Step.js +11 -2
- package/modern/Stepper/Stepper.js +11 -2
- package/modern/ToggleButton/ToggleButton.js +3 -1
- package/modern/index.js +1 -1
- package/package.json +4 -4
- package/styles/CssVarsProvider.d.ts +14 -14
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +112 -93
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
package/Step/Step.d.ts
CHANGED
|
@@ -1,61 +1,72 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import {
|
|
3
|
+
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
4
|
+
import { Theme } from '../styles';
|
|
4
5
|
import { StepClasses } from './stepClasses';
|
|
5
6
|
|
|
6
|
-
export interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
7
|
+
export interface StepTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
8
|
+
props: P & {
|
|
9
|
+
/**
|
|
10
|
+
* Sets the step as active. Is passed to child components.
|
|
11
|
+
*/
|
|
12
|
+
active?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Should be `Step` sub-components such as `StepLabel`, `StepContent`.
|
|
15
|
+
*/
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Override or extend the styles applied to the component.
|
|
19
|
+
*/
|
|
20
|
+
classes?: Partial<StepClasses>;
|
|
21
|
+
/**
|
|
22
|
+
* Mark the step as completed. Is passed to child components.
|
|
23
|
+
*/
|
|
24
|
+
completed?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* If `true`, the step is disabled, will also disable the button if
|
|
27
|
+
* `StepButton` is a child of `Step`. Is passed to child components.
|
|
28
|
+
*/
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Expand the step.
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
expanded?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The position of the step.
|
|
37
|
+
* The prop defaults to the value inherited from the parent Stepper component.
|
|
38
|
+
*/
|
|
39
|
+
index?: number;
|
|
40
|
+
/**
|
|
41
|
+
* If `true`, the Step is displayed as rendered last.
|
|
42
|
+
* The prop defaults to the value inherited from the parent Stepper component.
|
|
43
|
+
*/
|
|
44
|
+
last?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
47
|
+
*/
|
|
48
|
+
sx?: SxProps<Theme>;
|
|
49
|
+
};
|
|
50
|
+
defaultComponent: D;
|
|
47
51
|
}
|
|
48
52
|
|
|
53
|
+
export type StepProps<
|
|
54
|
+
D extends React.ElementType = StepTypeMap['defaultComponent'],
|
|
55
|
+
P = { component?: React.ElementType },
|
|
56
|
+
> = OverrideProps<StepTypeMap<P, D>, D>;
|
|
57
|
+
|
|
49
58
|
export type StepClasskey = keyof NonNullable<StepProps['classes']>;
|
|
50
59
|
|
|
51
60
|
/**
|
|
52
61
|
*
|
|
53
62
|
* Demos:
|
|
54
63
|
*
|
|
55
|
-
* - [
|
|
64
|
+
* - [Stepper](https://mui.com/material-ui/react-stepper/)
|
|
56
65
|
*
|
|
57
66
|
* API:
|
|
58
67
|
*
|
|
59
68
|
* - [Step API](https://mui.com/material-ui/api/step/)
|
|
60
69
|
*/
|
|
61
|
-
|
|
70
|
+
declare const Step: OverridableComponent<StepTypeMap>;
|
|
71
|
+
|
|
72
|
+
export default Step;
|
package/Step/Step.js
CHANGED
|
@@ -33,7 +33,7 @@ var _stepClasses = require("./stepClasses");
|
|
|
33
33
|
|
|
34
34
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
35
35
|
|
|
36
|
-
const _excluded = ["active", "children", "className", "completed", "disabled", "expanded", "index", "last"];
|
|
36
|
+
const _excluded = ["active", "children", "className", "component", "completed", "disabled", "expanded", "index", "last"];
|
|
37
37
|
|
|
38
38
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
39
39
|
|
|
@@ -79,6 +79,7 @@ const Step = /*#__PURE__*/React.forwardRef(function Step(inProps, ref) {
|
|
|
79
79
|
active: activeProp,
|
|
80
80
|
children,
|
|
81
81
|
className,
|
|
82
|
+
component = 'div',
|
|
82
83
|
completed: completedProp,
|
|
83
84
|
disabled: disabledProp,
|
|
84
85
|
expanded = false,
|
|
@@ -118,10 +119,12 @@ const Step = /*#__PURE__*/React.forwardRef(function Step(inProps, ref) {
|
|
|
118
119
|
alternativeLabel,
|
|
119
120
|
completed,
|
|
120
121
|
disabled,
|
|
121
|
-
expanded
|
|
122
|
+
expanded,
|
|
123
|
+
component
|
|
122
124
|
});
|
|
123
125
|
const classes = useUtilityClasses(ownerState);
|
|
124
126
|
const newChildren = /*#__PURE__*/(0, _jsxRuntime.jsxs)(StepRoot, (0, _extends2.default)({
|
|
127
|
+
as: component,
|
|
125
128
|
className: (0, _clsx.default)(classes.root, className),
|
|
126
129
|
ref: ref,
|
|
127
130
|
ownerState: ownerState
|
|
@@ -168,6 +171,12 @@ process.env.NODE_ENV !== "production" ? Step.propTypes
|
|
|
168
171
|
*/
|
|
169
172
|
completed: _propTypes.default.bool,
|
|
170
173
|
|
|
174
|
+
/**
|
|
175
|
+
* The component used for the root node.
|
|
176
|
+
* Either a string to use a HTML element or a component.
|
|
177
|
+
*/
|
|
178
|
+
component: _propTypes.default.elementType,
|
|
179
|
+
|
|
171
180
|
/**
|
|
172
181
|
* If `true`, the step is disabled, will also disable the button if
|
|
173
182
|
* `StepButton` is a child of `Step`. Is passed to child components.
|
package/Step/StepContext.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface StepContextType {
|
|
3
|
-
index: number;
|
|
4
|
-
last: boolean;
|
|
5
|
-
expanded: boolean;
|
|
6
|
-
icon: React.ReactNode;
|
|
7
|
-
active: boolean;
|
|
8
|
-
completed: boolean;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Provides information about the current step in Stepper.
|
|
13
|
-
*/
|
|
14
|
-
declare const StepContext: React.Context<{} | StepContextType>;
|
|
15
|
-
/**
|
|
16
|
-
* Returns the current StepContext or an empty object if no StepContext
|
|
17
|
-
* has been defined in the component tree.
|
|
18
|
-
*/
|
|
19
|
-
export declare function useStepContext(): StepContextType | {};
|
|
20
|
-
export default StepContext;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface StepContextType {
|
|
3
|
+
index: number;
|
|
4
|
+
last: boolean;
|
|
5
|
+
expanded: boolean;
|
|
6
|
+
icon: React.ReactNode;
|
|
7
|
+
active: boolean;
|
|
8
|
+
completed: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Provides information about the current step in Stepper.
|
|
13
|
+
*/
|
|
14
|
+
declare const StepContext: React.Context<{} | StepContextType>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns the current StepContext or an empty object if no StepContext
|
|
17
|
+
* has been defined in the component tree.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useStepContext(): StepContextType | {};
|
|
20
|
+
export default StepContext;
|
package/Step/stepClasses.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface StepClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
-
horizontal: string;
|
|
6
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
-
vertical: string;
|
|
8
|
-
/** Styles applied to the root element if `alternativeLabel={true}`. */
|
|
9
|
-
alternativeLabel: string;
|
|
10
|
-
/** State class applied to the root element if `completed={true}`. */
|
|
11
|
-
completed: string;
|
|
12
|
-
}
|
|
13
|
-
export declare type StepClassKey = keyof StepClasses;
|
|
14
|
-
export declare function getStepUtilityClass(slot: string): string;
|
|
15
|
-
declare const stepClasses: StepClasses;
|
|
16
|
-
export default stepClasses;
|
|
1
|
+
export interface StepClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
+
horizontal: string;
|
|
6
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
+
vertical: string;
|
|
8
|
+
/** Styles applied to the root element if `alternativeLabel={true}`. */
|
|
9
|
+
alternativeLabel: string;
|
|
10
|
+
/** State class applied to the root element if `completed={true}`. */
|
|
11
|
+
completed: string;
|
|
12
|
+
}
|
|
13
|
+
export declare type StepClassKey = keyof StepClasses;
|
|
14
|
+
export declare function getStepUtilityClass(slot: string): string;
|
|
15
|
+
declare const stepClasses: StepClasses;
|
|
16
|
+
export default stepClasses;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface StepButtonClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
-
horizontal: string;
|
|
6
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
-
vertical: string;
|
|
8
|
-
/** Styles applied to the `ButtonBase` touch-ripple. */
|
|
9
|
-
touchRipple: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type StepButtonClassKey = keyof StepButtonClasses;
|
|
12
|
-
export declare function getStepButtonUtilityClass(slot: string): string;
|
|
13
|
-
declare const stepButtonClasses: StepButtonClasses;
|
|
14
|
-
export default stepButtonClasses;
|
|
1
|
+
export interface StepButtonClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
+
horizontal: string;
|
|
6
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
+
vertical: string;
|
|
8
|
+
/** Styles applied to the `ButtonBase` touch-ripple. */
|
|
9
|
+
touchRipple: string;
|
|
10
|
+
}
|
|
11
|
+
export declare type StepButtonClassKey = keyof StepButtonClasses;
|
|
12
|
+
export declare function getStepButtonUtilityClass(slot: string): string;
|
|
13
|
+
declare const stepButtonClasses: StepButtonClasses;
|
|
14
|
+
export default stepButtonClasses;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export interface StepConnectorClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
-
horizontal: string;
|
|
6
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
-
vertical: string;
|
|
8
|
-
/** Styles applied to the root element if `alternativeLabel={true}`. */
|
|
9
|
-
alternativeLabel: string;
|
|
10
|
-
/** State class applied to the root element if `active={true}`. */
|
|
11
|
-
active: string;
|
|
12
|
-
/** State class applied to the root element if `completed={true}`. */
|
|
13
|
-
completed: string;
|
|
14
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
15
|
-
disabled: string;
|
|
16
|
-
/** Styles applied to the line element. */
|
|
17
|
-
line: string;
|
|
18
|
-
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
19
|
-
lineHorizontal: string;
|
|
20
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
21
|
-
lineVertical: string;
|
|
22
|
-
}
|
|
23
|
-
export declare type StepConnectorClassKey = keyof StepConnectorClasses;
|
|
24
|
-
export declare function getStepConnectorUtilityClass(slot: string): string;
|
|
25
|
-
declare const stepConnectorClasses: StepConnectorClasses;
|
|
26
|
-
export default stepConnectorClasses;
|
|
1
|
+
export interface StepConnectorClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
+
horizontal: string;
|
|
6
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
+
vertical: string;
|
|
8
|
+
/** Styles applied to the root element if `alternativeLabel={true}`. */
|
|
9
|
+
alternativeLabel: string;
|
|
10
|
+
/** State class applied to the root element if `active={true}`. */
|
|
11
|
+
active: string;
|
|
12
|
+
/** State class applied to the root element if `completed={true}`. */
|
|
13
|
+
completed: string;
|
|
14
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
15
|
+
disabled: string;
|
|
16
|
+
/** Styles applied to the line element. */
|
|
17
|
+
line: string;
|
|
18
|
+
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
19
|
+
lineHorizontal: string;
|
|
20
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
21
|
+
lineVertical: string;
|
|
22
|
+
}
|
|
23
|
+
export declare type StepConnectorClassKey = keyof StepConnectorClasses;
|
|
24
|
+
export declare function getStepConnectorUtilityClass(slot: string): string;
|
|
25
|
+
declare const stepConnectorClasses: StepConnectorClasses;
|
|
26
|
+
export default stepConnectorClasses;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface StepContentClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `last={true}` (controlled by `Step`). */
|
|
5
|
-
last: string;
|
|
6
|
-
/** Styles applied to the Transition component. */
|
|
7
|
-
transition: string;
|
|
8
|
-
}
|
|
9
|
-
export declare type StepContentClassKey = keyof StepContentClasses;
|
|
10
|
-
export declare function getStepContentUtilityClass(slot: string): string;
|
|
11
|
-
declare const stepContentClasses: StepContentClasses;
|
|
12
|
-
export default stepContentClasses;
|
|
1
|
+
export interface StepContentClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `last={true}` (controlled by `Step`). */
|
|
5
|
+
last: string;
|
|
6
|
+
/** Styles applied to the Transition component. */
|
|
7
|
+
transition: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type StepContentClassKey = keyof StepContentClasses;
|
|
10
|
+
export declare function getStepContentUtilityClass(slot: string): string;
|
|
11
|
+
declare const stepContentClasses: StepContentClasses;
|
|
12
|
+
export default stepContentClasses;
|
package/StepIcon/StepIcon.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface StepIconClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the SVG text element. */
|
|
5
|
-
text: string;
|
|
6
|
-
/** State class applied to the root element if `active={true}`. */
|
|
7
|
-
active: string;
|
|
8
|
-
/** State class applied to the root element if `completed={true}`. */
|
|
9
|
-
completed: string;
|
|
10
|
-
/** State class applied to the root element if `error={true}`. */
|
|
11
|
-
error: string;
|
|
12
|
-
}
|
|
13
|
-
export declare type StepIconClassKey = keyof StepIconClasses;
|
|
14
|
-
export declare function getStepIconUtilityClass(slot: string): string;
|
|
15
|
-
declare const stepIconClasses: StepIconClasses;
|
|
16
|
-
export default stepIconClasses;
|
|
1
|
+
export interface StepIconClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the SVG text element. */
|
|
5
|
+
text: string;
|
|
6
|
+
/** State class applied to the root element if `active={true}`. */
|
|
7
|
+
active: string;
|
|
8
|
+
/** State class applied to the root element if `completed={true}`. */
|
|
9
|
+
completed: string;
|
|
10
|
+
/** State class applied to the root element if `error={true}`. */
|
|
11
|
+
error: string;
|
|
12
|
+
}
|
|
13
|
+
export declare type StepIconClassKey = keyof StepIconClasses;
|
|
14
|
+
export declare function getStepIconUtilityClass(slot: string): string;
|
|
15
|
+
declare const stepIconClasses: StepIconClasses;
|
|
16
|
+
export default stepIconClasses;
|
package/StepLabel/StepLabel.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export interface StepLabelClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
-
horizontal: string;
|
|
6
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
-
vertical: string;
|
|
8
|
-
/** Styles applied to the label element that wraps `children`. */
|
|
9
|
-
label: string;
|
|
10
|
-
/** State class applied to the label element if `active={true}`. */
|
|
11
|
-
active: string;
|
|
12
|
-
/** State class applied to the label element if `completed={true}`. */
|
|
13
|
-
completed: string;
|
|
14
|
-
/** State class applied to the root and label elements if `error={true}`. */
|
|
15
|
-
error: string;
|
|
16
|
-
/** State class applied to the root and label elements if `disabled={true}`. */
|
|
17
|
-
disabled: string;
|
|
18
|
-
/** Styles applied to the `icon` container element. */
|
|
19
|
-
iconContainer: string;
|
|
20
|
-
/** State class applied to the root and icon container and label if `alternativeLabel={true}`. */
|
|
21
|
-
alternativeLabel: string;
|
|
22
|
-
/** Styles applied to the container element which wraps label and `optional`. */
|
|
23
|
-
labelContainer: string;
|
|
24
|
-
}
|
|
25
|
-
export declare type StepLabelClassKey = keyof StepLabelClasses;
|
|
26
|
-
export declare function getStepLabelUtilityClass(slot: string): string;
|
|
27
|
-
declare const stepLabelClasses: StepLabelClasses;
|
|
28
|
-
export default stepLabelClasses;
|
|
1
|
+
export interface StepLabelClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
+
horizontal: string;
|
|
6
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
+
vertical: string;
|
|
8
|
+
/** Styles applied to the label element that wraps `children`. */
|
|
9
|
+
label: string;
|
|
10
|
+
/** State class applied to the label element if `active={true}`. */
|
|
11
|
+
active: string;
|
|
12
|
+
/** State class applied to the label element if `completed={true}`. */
|
|
13
|
+
completed: string;
|
|
14
|
+
/** State class applied to the root and label elements if `error={true}`. */
|
|
15
|
+
error: string;
|
|
16
|
+
/** State class applied to the root and label elements if `disabled={true}`. */
|
|
17
|
+
disabled: string;
|
|
18
|
+
/** Styles applied to the `icon` container element. */
|
|
19
|
+
iconContainer: string;
|
|
20
|
+
/** State class applied to the root and icon container and label if `alternativeLabel={true}`. */
|
|
21
|
+
alternativeLabel: string;
|
|
22
|
+
/** Styles applied to the container element which wraps label and `optional`. */
|
|
23
|
+
labelContainer: string;
|
|
24
|
+
}
|
|
25
|
+
export declare type StepLabelClassKey = keyof StepLabelClasses;
|
|
26
|
+
export declare function getStepLabelUtilityClass(slot: string): string;
|
|
27
|
+
declare const stepLabelClasses: StepLabelClasses;
|
|
28
|
+
export default stepLabelClasses;
|
package/Stepper/Stepper.d.ts
CHANGED
|
@@ -1,64 +1,75 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
+
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
3
4
|
import { Theme } from '../styles';
|
|
4
|
-
import { InternalStandardProps as StandardProps } from '..';
|
|
5
5
|
import { PaperProps } from '../Paper';
|
|
6
6
|
import { StepperClasses } from './stepperClasses';
|
|
7
7
|
|
|
8
8
|
export type Orientation = 'horizontal' | 'vertical';
|
|
9
9
|
|
|
10
|
-
export interface
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
10
|
+
export interface StepperTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
11
|
+
props: P &
|
|
12
|
+
Pick<PaperProps, 'elevation' | 'square' | 'variant'> & {
|
|
13
|
+
/**
|
|
14
|
+
* Set the active step (zero based index).
|
|
15
|
+
* Set to -1 to disable all the steps.
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
activeStep?: number;
|
|
19
|
+
/**
|
|
20
|
+
* If set to 'true' and orientation is horizontal,
|
|
21
|
+
* then the step label will be positioned under the icon.
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
alternativeLabel?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Two or more `<Step />` components.
|
|
27
|
+
*/
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Override or extend the styles applied to the component.
|
|
31
|
+
*/
|
|
32
|
+
classes?: Partial<StepperClasses>;
|
|
33
|
+
/**
|
|
34
|
+
* An element to be placed between each step.
|
|
35
|
+
* @default <StepConnector />
|
|
36
|
+
*/
|
|
37
|
+
connector?: React.ReactElement<any, any> | null;
|
|
38
|
+
/**
|
|
39
|
+
* If set the `Stepper` will not assist in controlling steps for linear flow.
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
nonLinear?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The component orientation (layout flow direction).
|
|
45
|
+
* @default 'horizontal'
|
|
46
|
+
*/
|
|
47
|
+
orientation?: Orientation;
|
|
48
|
+
/**
|
|
49
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
50
|
+
*/
|
|
51
|
+
sx?: SxProps<Theme>;
|
|
52
|
+
};
|
|
53
|
+
defaultComponent: D;
|
|
50
54
|
}
|
|
51
55
|
|
|
56
|
+
export type StepperProps<
|
|
57
|
+
D extends React.ElementType = StepperTypeMap['defaultComponent'],
|
|
58
|
+
P = { component?: React.ElementType },
|
|
59
|
+
> = OverrideProps<StepperTypeMap<P, D>, D>;
|
|
60
|
+
|
|
52
61
|
export type StepperClasskey = keyof NonNullable<StepperProps['classes']>;
|
|
53
62
|
|
|
54
63
|
/**
|
|
55
64
|
*
|
|
56
65
|
* Demos:
|
|
57
66
|
*
|
|
58
|
-
* - [
|
|
67
|
+
* - [Stepper](https://mui.com/material-ui/react-stepper/)
|
|
59
68
|
*
|
|
60
69
|
* API:
|
|
61
70
|
*
|
|
62
71
|
* - [Stepper API](https://mui.com/material-ui/api/stepper/)
|
|
63
72
|
*/
|
|
64
|
-
|
|
73
|
+
declare const Stepper: OverridableComponent<StepperTypeMap>;
|
|
74
|
+
|
|
75
|
+
export default Stepper;
|