@mui/material 5.11.14 → 5.11.16
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/Autocomplete.js +12 -1
- package/Autocomplete/autocompleteClasses.d.ts +56 -56
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- 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/buttonClasses.d.ts +100 -100
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +118 -4
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/CardActionArea.js +2 -0
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/Chip.js +2 -3
- package/Chip/chipClasses.d.ts +96 -96
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/FormControlContext.d.ts +17 -17
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControl/useFormControl.d.ts +2 -2
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +34 -34
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- 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/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/NativeSelectInput.d.ts +1 -0
- package/NativeSelect/NativeSelectInput.js +12 -5
- package/NativeSelect/nativeSelectClasses.d.ts +34 -32
- package/NativeSelect/nativeSelectClasses.js +1 -1
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +55 -55
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/Select.js +14 -9
- package/Select/SelectInput.d.ts +1 -0
- package/Select/SelectInput.js +14 -4
- package/Select/selectClasses.d.ts +32 -30
- package/Select/selectClasses.js +1 -1
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Slider/Slider.js +6 -6
- package/Slider/SliderValueLabel.d.ts +15 -15
- package/Slider/SliderValueLabel.types.d.ts +24 -24
- package/Slider/sliderClasses.d.ts +58 -58
- package/Snackbar/snackbarClasses.d.ts +20 -20
- 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/Stack/Stack.d.ts +10 -0
- package/Stack/Stack.js +11 -1
- package/Stack/stackClasses.d.ts +6 -6
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- 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/Grid2.js +1 -0
- 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/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Autocomplete/Autocomplete.js +11 -3
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/CardActionArea/CardActionArea.js +2 -0
- package/legacy/Chip/Chip.js +2 -3
- package/legacy/NativeSelect/NativeSelectInput.js +12 -5
- package/legacy/NativeSelect/nativeSelectClasses.js +1 -1
- package/legacy/Select/Select.js +14 -9
- package/legacy/Select/SelectInput.js +14 -5
- package/legacy/Select/selectClasses.js +1 -1
- package/legacy/Slider/Slider.js +6 -6
- package/legacy/Stack/Stack.js +11 -1
- package/legacy/Unstable_Grid2/Grid2.js +1 -0
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +76 -76
- package/modern/Autocomplete/Autocomplete.js +12 -1
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/CardActionArea/CardActionArea.js +2 -0
- package/modern/Chip/Chip.js +2 -3
- package/modern/NativeSelect/NativeSelectInput.js +12 -5
- package/modern/NativeSelect/nativeSelectClasses.js +1 -1
- package/modern/Select/Select.js +14 -9
- package/modern/Select/SelectInput.js +14 -4
- package/modern/Select/selectClasses.js +1 -1
- package/modern/Slider/Slider.js +6 -6
- package/modern/Stack/Stack.js +11 -1
- package/modern/Unstable_Grid2/Grid2.js +1 -0
- package/modern/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +12 -1
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/CardActionArea/CardActionArea.js +2 -0
- package/node/Chip/Chip.js +2 -3
- package/node/NativeSelect/NativeSelectInput.js +12 -5
- package/node/NativeSelect/nativeSelectClasses.js +1 -1
- package/node/Select/Select.js +14 -9
- package/node/Select/SelectInput.js +14 -4
- package/node/Select/selectClasses.js +1 -1
- package/node/Slider/Slider.js +6 -6
- package/node/Stack/Stack.js +11 -1
- package/node/Unstable_Grid2/Grid2.js +1 -0
- package/node/index.js +1 -1
- package/package.json +5 -5
- package/styles/CssVarsProvider.d.ts +15 -15
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/styles/shouldSkipGeneratingVar.d.ts +1 -1
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/types/OverridableComponentAugmentation.d.ts +31 -31
- package/umd/material-ui.development.js +142 -102
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +46 -46
- 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
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface ToggleButtonClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
5
|
-
disabled: string;
|
|
6
|
-
/** State class applied to the root element if `selected={true}`. */
|
|
7
|
-
selected: string;
|
|
8
|
-
/** State class applied to the root element if `color="standard"`. */
|
|
9
|
-
standard: string;
|
|
10
|
-
/** State class applied to the root element if `color="primary"`. */
|
|
11
|
-
primary: string;
|
|
12
|
-
/** State class applied to the root element if `color="secondary"`. */
|
|
13
|
-
secondary: string;
|
|
14
|
-
/** Styles applied to the root element if `size="small"`. */
|
|
15
|
-
sizeSmall: string;
|
|
16
|
-
/** Styles applied to the root element if `size="medium"`. */
|
|
17
|
-
sizeMedium: string;
|
|
18
|
-
/** Styles applied to the root element if `size="large"`. */
|
|
19
|
-
sizeLarge: string;
|
|
20
|
-
}
|
|
21
|
-
export type ToggleButtonClassKey = keyof ToggleButtonClasses;
|
|
22
|
-
export declare function getToggleButtonUtilityClass(slot: string): string;
|
|
23
|
-
declare const toggleButtonClasses: ToggleButtonClasses;
|
|
24
|
-
export default toggleButtonClasses;
|
|
1
|
+
export interface ToggleButtonClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
5
|
+
disabled: string;
|
|
6
|
+
/** State class applied to the root element if `selected={true}`. */
|
|
7
|
+
selected: string;
|
|
8
|
+
/** State class applied to the root element if `color="standard"`. */
|
|
9
|
+
standard: string;
|
|
10
|
+
/** State class applied to the root element if `color="primary"`. */
|
|
11
|
+
primary: string;
|
|
12
|
+
/** State class applied to the root element if `color="secondary"`. */
|
|
13
|
+
secondary: string;
|
|
14
|
+
/** Styles applied to the root element if `size="small"`. */
|
|
15
|
+
sizeSmall: string;
|
|
16
|
+
/** Styles applied to the root element if `size="medium"`. */
|
|
17
|
+
sizeMedium: string;
|
|
18
|
+
/** Styles applied to the root element if `size="large"`. */
|
|
19
|
+
sizeLarge: string;
|
|
20
|
+
}
|
|
21
|
+
export type ToggleButtonClassKey = keyof ToggleButtonClasses;
|
|
22
|
+
export declare function getToggleButtonUtilityClass(slot: string): string;
|
|
23
|
+
declare const toggleButtonClasses: ToggleButtonClasses;
|
|
24
|
+
export default toggleButtonClasses;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface ToggleButtonGroupClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
5
|
-
vertical: string;
|
|
6
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
7
|
-
disabled: string;
|
|
8
|
-
/** Styles applied to the children. */
|
|
9
|
-
grouped: string;
|
|
10
|
-
/** Styles applied to the children if `orientation="horizontal"`. */
|
|
11
|
-
groupedHorizontal: string;
|
|
12
|
-
/** Styles applied to the children if `orientation="vertical"`. */
|
|
13
|
-
groupedVertical: string;
|
|
14
|
-
}
|
|
15
|
-
export type ToggleButtonGroupClassKey = keyof ToggleButtonGroupClasses;
|
|
16
|
-
export declare function getToggleButtonGroupUtilityClass(slot: string): string;
|
|
17
|
-
declare const toggleButtonGroupClasses: ToggleButtonGroupClasses;
|
|
18
|
-
export default toggleButtonGroupClasses;
|
|
1
|
+
export interface ToggleButtonGroupClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
5
|
+
vertical: string;
|
|
6
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
7
|
+
disabled: string;
|
|
8
|
+
/** Styles applied to the children. */
|
|
9
|
+
grouped: string;
|
|
10
|
+
/** Styles applied to the children if `orientation="horizontal"`. */
|
|
11
|
+
groupedHorizontal: string;
|
|
12
|
+
/** Styles applied to the children if `orientation="vertical"`. */
|
|
13
|
+
groupedVertical: string;
|
|
14
|
+
}
|
|
15
|
+
export type ToggleButtonGroupClassKey = keyof ToggleButtonGroupClasses;
|
|
16
|
+
export declare function getToggleButtonGroupUtilityClass(slot: string): string;
|
|
17
|
+
declare const toggleButtonGroupClasses: ToggleButtonGroupClasses;
|
|
18
|
+
export default toggleButtonGroupClasses;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface ToolbarClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
5
|
-
gutters: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="regular"`. */
|
|
7
|
-
regular: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="dense"`. */
|
|
9
|
-
dense: string;
|
|
10
|
-
}
|
|
11
|
-
export type ToolbarClassKey = keyof ToolbarClasses;
|
|
12
|
-
export declare function getToolbarUtilityClass(slot: string): string;
|
|
13
|
-
declare const toolbarClasses: ToolbarClasses;
|
|
14
|
-
export default toolbarClasses;
|
|
1
|
+
export interface ToolbarClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
5
|
+
gutters: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="regular"`. */
|
|
7
|
+
regular: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="dense"`. */
|
|
9
|
+
dense: string;
|
|
10
|
+
}
|
|
11
|
+
export type ToolbarClassKey = keyof ToolbarClasses;
|
|
12
|
+
export declare function getToolbarUtilityClass(slot: string): string;
|
|
13
|
+
declare const toolbarClasses: ToolbarClasses;
|
|
14
|
+
export default toolbarClasses;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export interface TooltipClasses {
|
|
2
|
-
/** Styles applied to the Popper component. */
|
|
3
|
-
popper: string;
|
|
4
|
-
/** Styles applied to the Popper component unless `disableInteractive={true}`. */
|
|
5
|
-
popperInteractive: string;
|
|
6
|
-
/** Styles applied to the Popper component if `arrow={true}`. */
|
|
7
|
-
popperArrow: string;
|
|
8
|
-
/** Styles applied to the Popper component unless the tooltip is open. */
|
|
9
|
-
popperClose: string;
|
|
10
|
-
/** Styles applied to the tooltip (label wrapper) element. */
|
|
11
|
-
tooltip: string;
|
|
12
|
-
/** Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */
|
|
13
|
-
tooltipArrow: string;
|
|
14
|
-
/** Styles applied to the arrow element. */
|
|
15
|
-
arrow: string;
|
|
16
|
-
/** Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */
|
|
17
|
-
touch: string;
|
|
18
|
-
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */
|
|
19
|
-
tooltipPlacementLeft: string;
|
|
20
|
-
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */
|
|
21
|
-
tooltipPlacementRight: string;
|
|
22
|
-
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */
|
|
23
|
-
tooltipPlacementTop: string;
|
|
24
|
-
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */
|
|
25
|
-
tooltipPlacementBottom: string;
|
|
26
|
-
}
|
|
27
|
-
export type TooltipClassKey = keyof TooltipClasses;
|
|
28
|
-
export declare function getTooltipUtilityClass(slot: string): string;
|
|
29
|
-
declare const tooltipClasses: TooltipClasses;
|
|
30
|
-
export default tooltipClasses;
|
|
1
|
+
export interface TooltipClasses {
|
|
2
|
+
/** Styles applied to the Popper component. */
|
|
3
|
+
popper: string;
|
|
4
|
+
/** Styles applied to the Popper component unless `disableInteractive={true}`. */
|
|
5
|
+
popperInteractive: string;
|
|
6
|
+
/** Styles applied to the Popper component if `arrow={true}`. */
|
|
7
|
+
popperArrow: string;
|
|
8
|
+
/** Styles applied to the Popper component unless the tooltip is open. */
|
|
9
|
+
popperClose: string;
|
|
10
|
+
/** Styles applied to the tooltip (label wrapper) element. */
|
|
11
|
+
tooltip: string;
|
|
12
|
+
/** Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */
|
|
13
|
+
tooltipArrow: string;
|
|
14
|
+
/** Styles applied to the arrow element. */
|
|
15
|
+
arrow: string;
|
|
16
|
+
/** Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */
|
|
17
|
+
touch: string;
|
|
18
|
+
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */
|
|
19
|
+
tooltipPlacementLeft: string;
|
|
20
|
+
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */
|
|
21
|
+
tooltipPlacementRight: string;
|
|
22
|
+
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */
|
|
23
|
+
tooltipPlacementTop: string;
|
|
24
|
+
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */
|
|
25
|
+
tooltipPlacementBottom: string;
|
|
26
|
+
}
|
|
27
|
+
export type TooltipClassKey = keyof TooltipClasses;
|
|
28
|
+
export declare function getTooltipUtilityClass(slot: string): string;
|
|
29
|
+
declare const tooltipClasses: TooltipClasses;
|
|
30
|
+
export default tooltipClasses;
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
export interface TypographyClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="body2"`. */
|
|
5
|
-
body2: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="body1"`. */
|
|
7
|
-
body1: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="caption"`. */
|
|
9
|
-
caption: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="button"`. */
|
|
11
|
-
button: string;
|
|
12
|
-
/** Styles applied to the root element if `variant="h1"`. */
|
|
13
|
-
h1: string;
|
|
14
|
-
/** Styles applied to the root element if `variant="h2"`. */
|
|
15
|
-
h2: string;
|
|
16
|
-
/** Styles applied to the root element if `variant="h3"`. */
|
|
17
|
-
h3: string;
|
|
18
|
-
/** Styles applied to the root element if `variant="h4"`. */
|
|
19
|
-
h4: string;
|
|
20
|
-
/** Styles applied to the root element if `variant="h5"`. */
|
|
21
|
-
h5: string;
|
|
22
|
-
/** Styles applied to the root element if `variant="h6"`. */
|
|
23
|
-
h6: string;
|
|
24
|
-
/** Styles applied to the root element if `variant="subtitle1"`. */
|
|
25
|
-
subtitle1: string;
|
|
26
|
-
/** Styles applied to the root element if `variant="subtitle2"`. */
|
|
27
|
-
subtitle2: string;
|
|
28
|
-
/** Styles applied to the root element if `variant="overline"`. */
|
|
29
|
-
overline: string;
|
|
30
|
-
/** Styles applied to the root element if `variant="inherit"`. */
|
|
31
|
-
inherit: string;
|
|
32
|
-
/** Styles applied to the root element if `align="left"`. */
|
|
33
|
-
alignLeft: string;
|
|
34
|
-
/** Styles applied to the root element if `align="center"`. */
|
|
35
|
-
alignCenter: string;
|
|
36
|
-
/** Styles applied to the root element if `align="right"`. */
|
|
37
|
-
alignRight: string;
|
|
38
|
-
/** Styles applied to the root element if `align="justify"`. */
|
|
39
|
-
alignJustify: string;
|
|
40
|
-
/** Styles applied to the root element if `nowrap={true}`. */
|
|
41
|
-
noWrap: string;
|
|
42
|
-
/** Styles applied to the root element if `gutterBottom={true}`. */
|
|
43
|
-
gutterBottom: string;
|
|
44
|
-
/** Styles applied to the root element if `paragraph={true}`. */
|
|
45
|
-
paragraph: string;
|
|
46
|
-
}
|
|
47
|
-
export type TypographyClassKey = keyof TypographyClasses;
|
|
48
|
-
export declare function getTypographyUtilityClass(slot: string): string;
|
|
49
|
-
declare const typographyClasses: TypographyClasses;
|
|
50
|
-
export default typographyClasses;
|
|
1
|
+
export interface TypographyClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="body2"`. */
|
|
5
|
+
body2: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="body1"`. */
|
|
7
|
+
body1: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="caption"`. */
|
|
9
|
+
caption: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="button"`. */
|
|
11
|
+
button: string;
|
|
12
|
+
/** Styles applied to the root element if `variant="h1"`. */
|
|
13
|
+
h1: string;
|
|
14
|
+
/** Styles applied to the root element if `variant="h2"`. */
|
|
15
|
+
h2: string;
|
|
16
|
+
/** Styles applied to the root element if `variant="h3"`. */
|
|
17
|
+
h3: string;
|
|
18
|
+
/** Styles applied to the root element if `variant="h4"`. */
|
|
19
|
+
h4: string;
|
|
20
|
+
/** Styles applied to the root element if `variant="h5"`. */
|
|
21
|
+
h5: string;
|
|
22
|
+
/** Styles applied to the root element if `variant="h6"`. */
|
|
23
|
+
h6: string;
|
|
24
|
+
/** Styles applied to the root element if `variant="subtitle1"`. */
|
|
25
|
+
subtitle1: string;
|
|
26
|
+
/** Styles applied to the root element if `variant="subtitle2"`. */
|
|
27
|
+
subtitle2: string;
|
|
28
|
+
/** Styles applied to the root element if `variant="overline"`. */
|
|
29
|
+
overline: string;
|
|
30
|
+
/** Styles applied to the root element if `variant="inherit"`. */
|
|
31
|
+
inherit: string;
|
|
32
|
+
/** Styles applied to the root element if `align="left"`. */
|
|
33
|
+
alignLeft: string;
|
|
34
|
+
/** Styles applied to the root element if `align="center"`. */
|
|
35
|
+
alignCenter: string;
|
|
36
|
+
/** Styles applied to the root element if `align="right"`. */
|
|
37
|
+
alignRight: string;
|
|
38
|
+
/** Styles applied to the root element if `align="justify"`. */
|
|
39
|
+
alignJustify: string;
|
|
40
|
+
/** Styles applied to the root element if `nowrap={true}`. */
|
|
41
|
+
noWrap: string;
|
|
42
|
+
/** Styles applied to the root element if `gutterBottom={true}`. */
|
|
43
|
+
gutterBottom: string;
|
|
44
|
+
/** Styles applied to the root element if `paragraph={true}`. */
|
|
45
|
+
paragraph: string;
|
|
46
|
+
}
|
|
47
|
+
export type TypographyClassKey = keyof TypographyClasses;
|
|
48
|
+
export declare function getTypographyUtilityClass(slot: string): string;
|
|
49
|
+
declare const typographyClasses: TypographyClasses;
|
|
50
|
+
export default typographyClasses;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OverridableComponent } from '@mui/types';
|
|
2
|
-
import { Grid2TypeMap } from './Grid2Props';
|
|
3
|
-
declare const Grid2: OverridableComponent<Grid2TypeMap<{}, "div">>;
|
|
4
|
-
export default Grid2;
|
|
1
|
+
import { OverridableComponent } from '@mui/types';
|
|
2
|
+
import { Grid2TypeMap } from './Grid2Props';
|
|
3
|
+
declare const Grid2: OverridableComponent<Grid2TypeMap<{}, "div">>;
|
|
4
|
+
export default Grid2;
|
package/Unstable_Grid2/Grid2.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { OverrideProps } from '@mui/types';
|
|
3
|
-
import { SxProps, SystemProps } from '@mui/system';
|
|
4
|
-
import { GridBaseProps } from '@mui/system/Unstable_Grid';
|
|
5
|
-
import { Theme } from '../styles';
|
|
6
|
-
export type Grid2Slot = 'root';
|
|
7
|
-
export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
8
|
-
props: P & GridBaseProps & {
|
|
9
|
-
sx?: SxProps<Theme>;
|
|
10
|
-
} & SystemProps<Theme>;
|
|
11
|
-
defaultComponent: D;
|
|
12
|
-
}
|
|
13
|
-
export type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
|
|
14
|
-
component?: React.ElementType;
|
|
15
|
-
}> = OverrideProps<Grid2TypeMap<P, D>, D>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { OverrideProps } from '@mui/types';
|
|
3
|
+
import { SxProps, SystemProps } from '@mui/system';
|
|
4
|
+
import { GridBaseProps } from '@mui/system/Unstable_Grid';
|
|
5
|
+
import { Theme } from '../styles';
|
|
6
|
+
export type Grid2Slot = 'root';
|
|
7
|
+
export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
8
|
+
props: P & GridBaseProps & {
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
} & SystemProps<Theme>;
|
|
11
|
+
defaultComponent: D;
|
|
12
|
+
}
|
|
13
|
+
export type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
|
|
14
|
+
component?: React.ElementType;
|
|
15
|
+
}> = OverrideProps<Grid2TypeMap<P, D>, D>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridClasses } from '@mui/system/Unstable_Grid';
|
|
2
|
-
export type Grid2ClassKey = keyof GridClasses;
|
|
3
|
-
export declare function getGrid2UtilityClass(slot: string): string;
|
|
4
|
-
declare const grid2Classes: GridClasses;
|
|
5
|
-
export default grid2Classes;
|
|
1
|
+
import { GridClasses } from '@mui/system/Unstable_Grid';
|
|
2
|
+
export type Grid2ClassKey = keyof GridClasses;
|
|
3
|
+
export declare function getGrid2UtilityClass(slot: string): string;
|
|
4
|
+
declare const grid2Classes: GridClasses;
|
|
5
|
+
export default grid2Classes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default } from './Grid2';
|
|
2
|
-
export * from './Grid2Props';
|
|
3
|
-
export { default as grid2Classes } from './grid2Classes';
|
|
4
|
-
export * from './grid2Classes';
|
|
1
|
+
export { default } from './Grid2';
|
|
2
|
+
export * from './Grid2Props';
|
|
3
|
+
export { default as grid2Classes } from './grid2Classes';
|
|
4
|
+
export * from './grid2Classes';
|
package/className/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { unstable_ClassNameGenerator } from '@mui/utils';
|
|
1
|
+
export { unstable_ClassNameGenerator } from '@mui/utils';
|
package/darkScrollbar/index.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export default function darkScrollbar(options?: {
|
|
2
|
-
track: string;
|
|
3
|
-
thumb: string;
|
|
4
|
-
active: string;
|
|
5
|
-
}): {
|
|
6
|
-
scrollbarColor: string;
|
|
7
|
-
'&::-webkit-scrollbar, & *::-webkit-scrollbar': {
|
|
8
|
-
backgroundColor: string;
|
|
9
|
-
};
|
|
10
|
-
'&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
|
|
11
|
-
borderRadius: number;
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
minHeight: number;
|
|
14
|
-
border: string;
|
|
15
|
-
};
|
|
16
|
-
'&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
|
|
17
|
-
backgroundColor: string;
|
|
18
|
-
};
|
|
19
|
-
'&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
|
|
20
|
-
backgroundColor: string;
|
|
21
|
-
};
|
|
22
|
-
'&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
|
|
23
|
-
backgroundColor: string;
|
|
24
|
-
};
|
|
25
|
-
'&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
|
|
26
|
-
backgroundColor: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
1
|
+
export default function darkScrollbar(options?: {
|
|
2
|
+
track: string;
|
|
3
|
+
thumb: string;
|
|
4
|
+
active: string;
|
|
5
|
+
}): {
|
|
6
|
+
scrollbarColor: string;
|
|
7
|
+
'&::-webkit-scrollbar, & *::-webkit-scrollbar': {
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
};
|
|
10
|
+
'&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
|
|
11
|
+
borderRadius: number;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
minHeight: number;
|
|
14
|
+
border: string;
|
|
15
|
+
};
|
|
16
|
+
'&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
};
|
|
19
|
+
'&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
|
|
20
|
+
backgroundColor: string;
|
|
21
|
+
};
|
|
22
|
+
'&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
|
|
23
|
+
backgroundColor: string;
|
|
24
|
+
};
|
|
25
|
+
'&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { unstable_generateUtilityClass as default } from '@mui/utils';
|
|
2
|
-
export type { GlobalStateSlot } from '@mui/utils';
|
|
1
|
+
export { unstable_generateUtilityClass as default } from '@mui/utils';
|
|
2
|
+
export type { GlobalStateSlot } from '@mui/utils';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { unstable_generateUtilityClasses as default } from '@mui/utils';
|
|
1
|
+
export { unstable_generateUtilityClasses as default } from '@mui/utils';
|
package/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface SwitchBaseClasses {
|
|
2
|
-
root: string;
|
|
3
|
-
checked: string;
|
|
4
|
-
disabled: string;
|
|
5
|
-
input: string;
|
|
6
|
-
edgeStart: string;
|
|
7
|
-
edgeEnd: string;
|
|
8
|
-
}
|
|
9
|
-
export type SwitchBaseClassKey = keyof SwitchBaseClasses;
|
|
10
|
-
export declare function getSwitchBaseUtilityClass(slot: string): string;
|
|
11
|
-
declare const switchBaseClasses: SwitchBaseClasses;
|
|
12
|
-
export default switchBaseClasses;
|
|
1
|
+
export interface SwitchBaseClasses {
|
|
2
|
+
root: string;
|
|
3
|
+
checked: string;
|
|
4
|
+
disabled: string;
|
|
5
|
+
input: string;
|
|
6
|
+
edgeStart: string;
|
|
7
|
+
edgeEnd: string;
|
|
8
|
+
}
|
|
9
|
+
export type SwitchBaseClassKey = keyof SwitchBaseClasses;
|
|
10
|
+
export declare function getSwitchBaseUtilityClass(slot: string): string;
|
|
11
|
+
declare const switchBaseClasses: SwitchBaseClasses;
|
|
12
|
+
export default switchBaseClasses;
|
|
@@ -465,8 +465,8 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
465
465
|
groupedOptions = _useAutocomplete.groupedOptions;
|
|
466
466
|
var hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
|
|
467
467
|
var hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
|
|
468
|
-
|
|
469
|
-
|
|
468
|
+
var _getInputProps = getInputProps(),
|
|
469
|
+
handleInputMouseDown = _getInputProps.onMouseDown; // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
|
|
470
470
|
var ownerState = _extends({}, props, {
|
|
471
471
|
disablePortal: disablePortal,
|
|
472
472
|
expanded: expanded,
|
|
@@ -563,7 +563,12 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
563
563
|
InputProps: _extends({
|
|
564
564
|
ref: setAnchorEl,
|
|
565
565
|
className: classes.inputRoot,
|
|
566
|
-
startAdornment: startAdornment
|
|
566
|
+
startAdornment: startAdornment,
|
|
567
|
+
onClick: function onClick(event) {
|
|
568
|
+
if (event.target === event.currentTarget) {
|
|
569
|
+
handleInputMouseDown(event);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
567
572
|
}, (hasClearIcon || hasPopupIcon) && {
|
|
568
573
|
endAdornment: /*#__PURE__*/_jsxs(AutocompleteEndAdornment, {
|
|
569
574
|
className: classes.endAdornment,
|
|
@@ -665,6 +670,9 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
665
670
|
* If `true`, the selected option becomes the value of the input
|
|
666
671
|
* when the Autocomplete loses focus unless the user chooses
|
|
667
672
|
* a different option or changes the character string in the input.
|
|
673
|
+
*
|
|
674
|
+
* When using `freeSolo` mode, the typed value will be the input value
|
|
675
|
+
* if the Autocomplete loses focus without highlighting an option.
|
|
668
676
|
* @default false
|
|
669
677
|
*/
|
|
670
678
|
autoSelect: PropTypes.bool,
|
|
File without changes
|
|
@@ -31,6 +31,8 @@ var CardActionAreaRoot = styled(ButtonBase, {
|
|
|
31
31
|
return _ref2 = {
|
|
32
32
|
display: 'block',
|
|
33
33
|
textAlign: 'inherit',
|
|
34
|
+
borderRadius: 'inherit',
|
|
35
|
+
// for Safari to work https://github.com/mui/material-ui/issues/36285.
|
|
34
36
|
width: '100%'
|
|
35
37
|
}, _defineProperty(_ref2, "&:hover .".concat(cardActionAreaClasses.focusHighlight), {
|
|
36
38
|
opacity: (theme.vars || theme).palette.action.hoverOpacity,
|
package/legacy/Chip/Chip.js
CHANGED
|
@@ -51,7 +51,6 @@ var ChipRoot = styled('div', {
|
|
|
51
51
|
var _extends2;
|
|
52
52
|
var theme = _ref11.theme,
|
|
53
53
|
ownerState = _ref11.ownerState;
|
|
54
|
-
var deleteIconColor = alpha(theme.palette.text.primary, 0.26);
|
|
55
54
|
var textColor = theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300];
|
|
56
55
|
return _extends((_extends2 = {
|
|
57
56
|
maxWidth: '100%',
|
|
@@ -112,12 +111,12 @@ var ChipRoot = styled('div', {
|
|
|
112
111
|
color: 'inherit'
|
|
113
112
|
}))), _defineProperty(_extends2, "& .".concat(chipClasses.deleteIcon), _extends({
|
|
114
113
|
WebkitTapHighlightColor: 'transparent',
|
|
115
|
-
color: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / 0.26)") :
|
|
114
|
+
color: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / 0.26)") : alpha(theme.palette.text.primary, 0.26),
|
|
116
115
|
fontSize: 22,
|
|
117
116
|
cursor: 'pointer',
|
|
118
117
|
margin: '0 5px 0 -6px',
|
|
119
118
|
'&:hover': {
|
|
120
|
-
color: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / 0.4)") : alpha(
|
|
119
|
+
color: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / 0.4)") : alpha(theme.palette.text.primary, 0.4)
|
|
121
120
|
}
|
|
122
121
|
}, ownerState.size === 'small' && {
|
|
123
122
|
fontSize: 16,
|
|
@@ -16,9 +16,10 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
16
16
|
variant = ownerState.variant,
|
|
17
17
|
disabled = ownerState.disabled,
|
|
18
18
|
multiple = ownerState.multiple,
|
|
19
|
-
open = ownerState.open
|
|
19
|
+
open = ownerState.open,
|
|
20
|
+
error = ownerState.error;
|
|
20
21
|
var slots = {
|
|
21
|
-
select: ['select', variant, disabled && 'disabled', multiple && 'multiple'],
|
|
22
|
+
select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],
|
|
22
23
|
icon: ['icon', "icon".concat(capitalize(variant)), open && 'iconOpen', disabled && 'disabled']
|
|
23
24
|
};
|
|
24
25
|
return composeClasses(slots, getNativeSelectUtilityClasses, classes);
|
|
@@ -80,7 +81,7 @@ var NativeSelectSelect = styled('select', {
|
|
|
80
81
|
shouldForwardProp: rootShouldForwardProp,
|
|
81
82
|
overridesResolver: function overridesResolver(props, styles) {
|
|
82
83
|
var ownerState = props.ownerState;
|
|
83
|
-
return [styles.select, styles[ownerState.variant], _defineProperty({}, "&.".concat(nativeSelectClasses.multiple), styles.multiple)];
|
|
84
|
+
return [styles.select, styles[ownerState.variant], ownerState.error && styles.error, _defineProperty({}, "&.".concat(nativeSelectClasses.multiple), styles.multiple)];
|
|
84
85
|
}
|
|
85
86
|
})(nativeSelectSelectStyles);
|
|
86
87
|
export var nativeSelectIconStyles = function nativeSelectIconStyles(_ref3) {
|
|
@@ -121,14 +122,16 @@ var NativeSelectIcon = styled('svg', {
|
|
|
121
122
|
var NativeSelectInput = /*#__PURE__*/React.forwardRef(function NativeSelectInput(props, ref) {
|
|
122
123
|
var className = props.className,
|
|
123
124
|
disabled = props.disabled,
|
|
125
|
+
error = props.error,
|
|
124
126
|
IconComponent = props.IconComponent,
|
|
125
127
|
inputRef = props.inputRef,
|
|
126
128
|
_props$variant = props.variant,
|
|
127
129
|
variant = _props$variant === void 0 ? 'standard' : _props$variant,
|
|
128
|
-
other = _objectWithoutProperties(props, ["className", "disabled", "IconComponent", "inputRef", "variant"]);
|
|
130
|
+
other = _objectWithoutProperties(props, ["className", "disabled", "error", "IconComponent", "inputRef", "variant"]);
|
|
129
131
|
var ownerState = _extends({}, props, {
|
|
130
132
|
disabled: disabled,
|
|
131
|
-
variant: variant
|
|
133
|
+
variant: variant,
|
|
134
|
+
error: error
|
|
132
135
|
});
|
|
133
136
|
var classes = useUtilityClasses(ownerState);
|
|
134
137
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
@@ -163,6 +166,10 @@ process.env.NODE_ENV !== "production" ? NativeSelectInput.propTypes = {
|
|
|
163
166
|
* If `true`, the select is disabled.
|
|
164
167
|
*/
|
|
165
168
|
disabled: PropTypes.bool,
|
|
169
|
+
/**
|
|
170
|
+
* If `true`, the `select input` will indicate an error.
|
|
171
|
+
*/
|
|
172
|
+
error: PropTypes.bool,
|
|
166
173
|
/**
|
|
167
174
|
* The icon that displays the arrow.
|
|
168
175
|
*/
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
|
|
|
3
3
|
export function getNativeSelectUtilityClasses(slot) {
|
|
4
4
|
return generateUtilityClass('MuiNativeSelect', slot);
|
|
5
5
|
}
|
|
6
|
-
var nativeSelectClasses = generateUtilityClasses('MuiNativeSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput']);
|
|
6
|
+
var nativeSelectClasses = generateUtilityClasses('MuiNativeSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);
|
|
7
7
|
export default nativeSelectClasses;
|
package/legacy/Select/Select.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _StyledInput, _StyledFilledInput;
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import clsx from 'clsx';
|
|
@@ -74,21 +73,26 @@ var Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
|
|
|
74
73
|
var fcs = formControlState({
|
|
75
74
|
props: props,
|
|
76
75
|
muiFormControl: muiFormControl,
|
|
77
|
-
states: ['variant']
|
|
76
|
+
states: ['variant', 'error']
|
|
78
77
|
});
|
|
79
78
|
var variant = fcs.variant || variantProp;
|
|
80
|
-
var InputComponent = input || {
|
|
81
|
-
standard: _StyledInput || (_StyledInput = /*#__PURE__*/_jsx(StyledInput, {})),
|
|
82
|
-
outlined: /*#__PURE__*/_jsx(StyledOutlinedInput, {
|
|
83
|
-
label: label
|
|
84
|
-
}),
|
|
85
|
-
filled: _StyledFilledInput || (_StyledFilledInput = /*#__PURE__*/_jsx(StyledFilledInput, {}))
|
|
86
|
-
}[variant];
|
|
87
79
|
var ownerState = _extends({}, props, {
|
|
88
80
|
variant: variant,
|
|
89
81
|
classes: classesProp
|
|
90
82
|
});
|
|
91
83
|
var classes = useUtilityClasses(ownerState);
|
|
84
|
+
var InputComponent = input || {
|
|
85
|
+
standard: /*#__PURE__*/_jsx(StyledInput, {
|
|
86
|
+
ownerState: ownerState
|
|
87
|
+
}),
|
|
88
|
+
outlined: /*#__PURE__*/_jsx(StyledOutlinedInput, {
|
|
89
|
+
label: label,
|
|
90
|
+
ownerState: ownerState
|
|
91
|
+
}),
|
|
92
|
+
filled: /*#__PURE__*/_jsx(StyledFilledInput, {
|
|
93
|
+
ownerState: ownerState
|
|
94
|
+
})
|
|
95
|
+
}[variant];
|
|
92
96
|
var inputComponentRef = useForkRef(ref, InputComponent.ref);
|
|
93
97
|
return /*#__PURE__*/_jsx(React.Fragment, {
|
|
94
98
|
children: /*#__PURE__*/React.cloneElement(InputComponent, _extends({
|
|
@@ -97,6 +101,7 @@ var Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
|
|
|
97
101
|
inputComponent: inputComponent,
|
|
98
102
|
inputProps: _extends({
|
|
99
103
|
children: children,
|
|
104
|
+
error: fcs.error,
|
|
100
105
|
IconComponent: IconComponent,
|
|
101
106
|
variant: variant,
|
|
102
107
|
type: undefined,
|