@mui/material 5.13.2 → 5.13.3
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.d.ts +1 -0
- package/Autocomplete/Autocomplete.js +14 -2
- 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 +52 -0
- package/Card/cardClasses.d.ts +8 -8
- 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/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 +42 -42
- 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 +24 -24
- 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/Hidden/Hidden.js +10 -10
- package/Hidden/withWidth.js +1 -1
- 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 +38 -38
- 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/Modal/Modal.js +1 -1
- package/NativeSelect/nativeSelectClasses.d.ts +34 -34
- package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
- 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 +65 -65
- 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/selectClasses.d.ts +32 -32
- package/Skeleton/skeletonClasses.d.ts +26 -26
- 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/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/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 +12 -2
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Hidden/Hidden.js +10 -10
- package/legacy/Hidden/withWidth.js +1 -1
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +80 -80
- package/modern/Autocomplete/Autocomplete.js +14 -2
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Hidden/Hidden.js +10 -10
- package/modern/Hidden/withWidth.js +1 -1
- package/modern/Modal/Modal.js +1 -1
- package/modern/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +14 -2
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Hidden/Hidden.js +10 -10
- package/node/Hidden/withWidth.js +1 -1
- package/node/Modal/Modal.js +1 -1
- package/node/index.js +1 -1
- package/package.json +3 -3
- package/styles/CssVarsProvider.d.ts +20 -20
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/styles/identifier.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 +34 -23
- package/umd/material-ui.production.min.js +16 -16
- 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,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;
|
|
@@ -23,6 +23,7 @@ import useThemeProps from '../styles/useThemeProps';
|
|
|
23
23
|
import styled from '../styles/styled';
|
|
24
24
|
import autocompleteClasses, { getAutocompleteUtilityClass } from './autocompleteClasses';
|
|
25
25
|
import capitalize from '../utils/capitalize';
|
|
26
|
+
import useForkRef from '../utils/useForkRef';
|
|
26
27
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
28
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
29
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
@@ -466,7 +467,15 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
466
467
|
var hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
|
|
467
468
|
var hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
|
|
468
469
|
var _getInputProps = getInputProps(),
|
|
469
|
-
handleInputMouseDown = _getInputProps.onMouseDown;
|
|
470
|
+
handleInputMouseDown = _getInputProps.onMouseDown;
|
|
471
|
+
var _ref17 = ListboxProps != null ? ListboxProps : {},
|
|
472
|
+
externalListboxRef = _ref17.ref;
|
|
473
|
+
var _getListboxProps = getListboxProps(),
|
|
474
|
+
listboxRef = _getListboxProps.ref,
|
|
475
|
+
otherListboxProps = _objectWithoutProperties(_getListboxProps, ["ref"]);
|
|
476
|
+
var combinedListboxRef = useForkRef(listboxRef, externalListboxRef);
|
|
477
|
+
|
|
478
|
+
// If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
|
|
470
479
|
var ownerState = _extends({}, props, {
|
|
471
480
|
disablePortal: disablePortal,
|
|
472
481
|
expanded: expanded,
|
|
@@ -631,7 +640,8 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
631
640
|
as: ListboxComponent,
|
|
632
641
|
className: classes.listbox,
|
|
633
642
|
ownerState: ownerState
|
|
634
|
-
},
|
|
643
|
+
}, otherListboxProps, ListboxProps, {
|
|
644
|
+
ref: combinedListboxRef,
|
|
635
645
|
children: groupedOptions.map(function (option, index) {
|
|
636
646
|
if (groupBy) {
|
|
637
647
|
return renderGroup({
|
|
File without changes
|
package/legacy/Hidden/Hidden.js
CHANGED
|
@@ -88,22 +88,22 @@ process.env.NODE_ENV !== "production" ? Hidden.propTypes /* remove-proptypes */
|
|
|
88
88
|
*/
|
|
89
89
|
initialWidth: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
|
|
90
90
|
/**
|
|
91
|
-
* If `true`, screens
|
|
91
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
92
92
|
* @default false
|
|
93
93
|
*/
|
|
94
94
|
lgDown: PropTypes.bool,
|
|
95
95
|
/**
|
|
96
|
-
* If `true`, screens this size and
|
|
96
|
+
* If `true`, component is hidden on screens this size and above.
|
|
97
97
|
* @default false
|
|
98
98
|
*/
|
|
99
99
|
lgUp: PropTypes.bool,
|
|
100
100
|
/**
|
|
101
|
-
* If `true`, screens
|
|
101
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
102
102
|
* @default false
|
|
103
103
|
*/
|
|
104
104
|
mdDown: PropTypes.bool,
|
|
105
105
|
/**
|
|
106
|
-
* If `true`, screens this size and
|
|
106
|
+
* If `true`, component is hidden on screens this size and above.
|
|
107
107
|
* @default false
|
|
108
108
|
*/
|
|
109
109
|
mdUp: PropTypes.bool,
|
|
@@ -112,32 +112,32 @@ process.env.NODE_ENV !== "production" ? Hidden.propTypes /* remove-proptypes */
|
|
|
112
112
|
*/
|
|
113
113
|
only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']).isRequired)]),
|
|
114
114
|
/**
|
|
115
|
-
* If `true`, screens
|
|
115
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
116
116
|
* @default false
|
|
117
117
|
*/
|
|
118
118
|
smDown: PropTypes.bool,
|
|
119
119
|
/**
|
|
120
|
-
* If `true`, screens this size and
|
|
120
|
+
* If `true`, component is hidden on screens this size and above.
|
|
121
121
|
* @default false
|
|
122
122
|
*/
|
|
123
123
|
smUp: PropTypes.bool,
|
|
124
124
|
/**
|
|
125
|
-
* If `true`, screens
|
|
125
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
126
126
|
* @default false
|
|
127
127
|
*/
|
|
128
128
|
xlDown: PropTypes.bool,
|
|
129
129
|
/**
|
|
130
|
-
* If `true`, screens this size and
|
|
130
|
+
* If `true`, component is hidden on screens this size and above.
|
|
131
131
|
* @default false
|
|
132
132
|
*/
|
|
133
133
|
xlUp: PropTypes.bool,
|
|
134
134
|
/**
|
|
135
|
-
* If `true`, screens
|
|
135
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
136
136
|
* @default false
|
|
137
137
|
*/
|
|
138
138
|
xsDown: PropTypes.bool,
|
|
139
139
|
/**
|
|
140
|
-
* If `true`, screens this size and
|
|
140
|
+
* If `true`, component is hidden on screens this size and above.
|
|
141
141
|
* @default false
|
|
142
142
|
*/
|
|
143
143
|
xsUp: PropTypes.bool
|
|
@@ -19,7 +19,7 @@ export var isWidthUp = function isWidthUp(breakpoint, width) {
|
|
|
19
19
|
return breakpointKeys.indexOf(breakpoint) < breakpointKeys.indexOf(width);
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
// By default, returns true if screen width is
|
|
22
|
+
// By default, returns true if screen width is less than the given breakpoint.
|
|
23
23
|
export var isWidthDown = function isWidthDown(breakpoint, width) {
|
|
24
24
|
var inclusive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
25
25
|
if (inclusive) {
|
package/legacy/Modal/Modal.js
CHANGED
|
@@ -139,7 +139,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
139
139
|
},
|
|
140
140
|
backdrop: function backdrop() {
|
|
141
141
|
return _extends({}, BackdropProps, resolveComponentProps(backdropSlotProps, ownerState), {
|
|
142
|
-
className: clsx(backdropSlotProps == null ? void 0 : backdropSlotProps.className, classes == null ? void 0 : classes.backdrop)
|
|
142
|
+
className: clsx(backdropSlotProps == null ? void 0 : backdropSlotProps.className, BackdropProps == null ? void 0 : BackdropProps.className, classes == null ? void 0 : classes.backdrop)
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
},
|
package/legacy/index.js
CHANGED
package/locale/index.d.ts
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
-
export interface Localization {
|
|
3
|
-
components?: {
|
|
4
|
-
MuiAlert?: {
|
|
5
|
-
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
-
};
|
|
7
|
-
MuiBreadcrumbs?: {
|
|
8
|
-
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
-
};
|
|
10
|
-
MuiTablePagination?: {
|
|
11
|
-
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
-
};
|
|
13
|
-
MuiRating?: {
|
|
14
|
-
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
-
};
|
|
16
|
-
MuiAutocomplete?: {
|
|
17
|
-
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
-
};
|
|
19
|
-
MuiPagination?: {
|
|
20
|
-
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export declare const amET: Localization;
|
|
25
|
-
export declare const arEG: Localization;
|
|
26
|
-
export declare const arSA: Localization;
|
|
27
|
-
export declare const arSD: Localization;
|
|
28
|
-
export declare const azAZ: Localization;
|
|
29
|
-
export declare const bnBD: Localization;
|
|
30
|
-
export declare const beBY: Localization;
|
|
31
|
-
export declare const bgBG: Localization;
|
|
32
|
-
export declare const caES: Localization;
|
|
33
|
-
export declare const csCZ: Localization;
|
|
34
|
-
export declare const daDK: Localization;
|
|
35
|
-
export declare const deDE: Localization;
|
|
36
|
-
export declare const elGR: Localization;
|
|
37
|
-
export declare const enUS: Localization;
|
|
38
|
-
export declare const esES: Localization;
|
|
39
|
-
export declare const etEE: Localization;
|
|
40
|
-
export declare const faIR: Localization;
|
|
41
|
-
export declare const fiFI: Localization;
|
|
42
|
-
export declare const frFR: Localization;
|
|
43
|
-
export declare const heIL: Localization;
|
|
44
|
-
export declare const hiIN: Localization;
|
|
45
|
-
export declare const hrHR: Localization;
|
|
46
|
-
export declare const huHU: Localization;
|
|
47
|
-
export declare const hyAM: Localization;
|
|
48
|
-
export declare const idID: Localization;
|
|
49
|
-
export declare const isIS: Localization;
|
|
50
|
-
export declare const itIT: Localization;
|
|
51
|
-
export declare const jaJP: Localization;
|
|
52
|
-
export declare const khKH: Localization;
|
|
53
|
-
export declare const koKR: Localization;
|
|
54
|
-
export declare const kuCKB: Localization;
|
|
55
|
-
export declare const kuLatn: Localization;
|
|
56
|
-
export declare const kkKZ: Localization;
|
|
57
|
-
export declare const mkMK: Localization;
|
|
58
|
-
export declare const myMY: Localization;
|
|
59
|
-
export declare const msMS: Localization;
|
|
60
|
-
export declare const neNP: Localization;
|
|
61
|
-
export declare const nbNO: Localization;
|
|
62
|
-
export declare const nlNL: Localization;
|
|
63
|
-
export declare const plPL: Localization;
|
|
64
|
-
export declare const ptBR: Localization;
|
|
65
|
-
export declare const ptPT: Localization;
|
|
66
|
-
export declare const roRO: Localization;
|
|
67
|
-
export declare const srRS: Localization;
|
|
68
|
-
export declare const ruRU: Localization;
|
|
69
|
-
export declare const siLK: Localization;
|
|
70
|
-
export declare const skSK: Localization;
|
|
71
|
-
export declare const svSE: Localization;
|
|
72
|
-
export declare const thTH: Localization;
|
|
73
|
-
export declare const trTR: Localization;
|
|
74
|
-
export declare const tlTL: Localization;
|
|
75
|
-
export declare const ukUA: Localization;
|
|
76
|
-
export declare const urPK: Localization;
|
|
77
|
-
export declare const viVN: Localization;
|
|
78
|
-
export declare const zhCN: Localization;
|
|
79
|
-
export declare const zhHK: Localization;
|
|
80
|
-
export declare const zhTW: Localization;
|
|
1
|
+
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
+
export interface Localization {
|
|
3
|
+
components?: {
|
|
4
|
+
MuiAlert?: {
|
|
5
|
+
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
+
};
|
|
7
|
+
MuiBreadcrumbs?: {
|
|
8
|
+
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
+
};
|
|
10
|
+
MuiTablePagination?: {
|
|
11
|
+
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
+
};
|
|
13
|
+
MuiRating?: {
|
|
14
|
+
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
+
};
|
|
16
|
+
MuiAutocomplete?: {
|
|
17
|
+
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
+
};
|
|
19
|
+
MuiPagination?: {
|
|
20
|
+
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare const amET: Localization;
|
|
25
|
+
export declare const arEG: Localization;
|
|
26
|
+
export declare const arSA: Localization;
|
|
27
|
+
export declare const arSD: Localization;
|
|
28
|
+
export declare const azAZ: Localization;
|
|
29
|
+
export declare const bnBD: Localization;
|
|
30
|
+
export declare const beBY: Localization;
|
|
31
|
+
export declare const bgBG: Localization;
|
|
32
|
+
export declare const caES: Localization;
|
|
33
|
+
export declare const csCZ: Localization;
|
|
34
|
+
export declare const daDK: Localization;
|
|
35
|
+
export declare const deDE: Localization;
|
|
36
|
+
export declare const elGR: Localization;
|
|
37
|
+
export declare const enUS: Localization;
|
|
38
|
+
export declare const esES: Localization;
|
|
39
|
+
export declare const etEE: Localization;
|
|
40
|
+
export declare const faIR: Localization;
|
|
41
|
+
export declare const fiFI: Localization;
|
|
42
|
+
export declare const frFR: Localization;
|
|
43
|
+
export declare const heIL: Localization;
|
|
44
|
+
export declare const hiIN: Localization;
|
|
45
|
+
export declare const hrHR: Localization;
|
|
46
|
+
export declare const huHU: Localization;
|
|
47
|
+
export declare const hyAM: Localization;
|
|
48
|
+
export declare const idID: Localization;
|
|
49
|
+
export declare const isIS: Localization;
|
|
50
|
+
export declare const itIT: Localization;
|
|
51
|
+
export declare const jaJP: Localization;
|
|
52
|
+
export declare const khKH: Localization;
|
|
53
|
+
export declare const koKR: Localization;
|
|
54
|
+
export declare const kuCKB: Localization;
|
|
55
|
+
export declare const kuLatn: Localization;
|
|
56
|
+
export declare const kkKZ: Localization;
|
|
57
|
+
export declare const mkMK: Localization;
|
|
58
|
+
export declare const myMY: Localization;
|
|
59
|
+
export declare const msMS: Localization;
|
|
60
|
+
export declare const neNP: Localization;
|
|
61
|
+
export declare const nbNO: Localization;
|
|
62
|
+
export declare const nlNL: Localization;
|
|
63
|
+
export declare const plPL: Localization;
|
|
64
|
+
export declare const ptBR: Localization;
|
|
65
|
+
export declare const ptPT: Localization;
|
|
66
|
+
export declare const roRO: Localization;
|
|
67
|
+
export declare const srRS: Localization;
|
|
68
|
+
export declare const ruRU: Localization;
|
|
69
|
+
export declare const siLK: Localization;
|
|
70
|
+
export declare const skSK: Localization;
|
|
71
|
+
export declare const svSE: Localization;
|
|
72
|
+
export declare const thTH: Localization;
|
|
73
|
+
export declare const trTR: Localization;
|
|
74
|
+
export declare const tlTL: Localization;
|
|
75
|
+
export declare const ukUA: Localization;
|
|
76
|
+
export declare const urPK: Localization;
|
|
77
|
+
export declare const viVN: Localization;
|
|
78
|
+
export declare const zhCN: Localization;
|
|
79
|
+
export declare const zhHK: Localization;
|
|
80
|
+
export declare const zhTW: Localization;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
4
|
-
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"]
|
|
4
|
+
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
5
|
+
_excluded2 = ["ref"];
|
|
5
6
|
import * as React from 'react';
|
|
6
7
|
import PropTypes from 'prop-types';
|
|
7
8
|
import clsx from 'clsx';
|
|
@@ -23,6 +24,7 @@ import useThemeProps from '../styles/useThemeProps';
|
|
|
23
24
|
import styled from '../styles/styled';
|
|
24
25
|
import autocompleteClasses, { getAutocompleteUtilityClass } from './autocompleteClasses';
|
|
25
26
|
import capitalize from '../utils/capitalize';
|
|
27
|
+
import useForkRef from '../utils/useForkRef';
|
|
26
28
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
29
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
30
|
const useUtilityClasses = ownerState => {
|
|
@@ -452,6 +454,15 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
452
454
|
const {
|
|
453
455
|
onMouseDown: handleInputMouseDown
|
|
454
456
|
} = getInputProps();
|
|
457
|
+
const {
|
|
458
|
+
ref: externalListboxRef
|
|
459
|
+
} = ListboxProps ?? {};
|
|
460
|
+
const _getListboxProps = getListboxProps(),
|
|
461
|
+
{
|
|
462
|
+
ref: listboxRef
|
|
463
|
+
} = _getListboxProps,
|
|
464
|
+
otherListboxProps = _objectWithoutPropertiesLoose(_getListboxProps, _excluded2);
|
|
465
|
+
const combinedListboxRef = useForkRef(listboxRef, externalListboxRef);
|
|
455
466
|
|
|
456
467
|
// If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
|
|
457
468
|
const ownerState = _extends({}, props, {
|
|
@@ -610,7 +621,8 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
610
621
|
as: ListboxComponent,
|
|
611
622
|
className: classes.listbox,
|
|
612
623
|
ownerState: ownerState
|
|
613
|
-
},
|
|
624
|
+
}, otherListboxProps, ListboxProps, {
|
|
625
|
+
ref: combinedListboxRef,
|
|
614
626
|
children: groupedOptions.map((option, index) => {
|
|
615
627
|
if (groupBy) {
|
|
616
628
|
return renderGroup({
|
|
File without changes
|
package/modern/Hidden/Hidden.js
CHANGED
|
@@ -80,22 +80,22 @@ process.env.NODE_ENV !== "production" ? Hidden.propTypes /* remove-proptypes */
|
|
|
80
80
|
*/
|
|
81
81
|
initialWidth: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
|
|
82
82
|
/**
|
|
83
|
-
* If `true`, screens
|
|
83
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
84
84
|
* @default false
|
|
85
85
|
*/
|
|
86
86
|
lgDown: PropTypes.bool,
|
|
87
87
|
/**
|
|
88
|
-
* If `true`, screens this size and
|
|
88
|
+
* If `true`, component is hidden on screens this size and above.
|
|
89
89
|
* @default false
|
|
90
90
|
*/
|
|
91
91
|
lgUp: PropTypes.bool,
|
|
92
92
|
/**
|
|
93
|
-
* If `true`, screens
|
|
93
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
94
94
|
* @default false
|
|
95
95
|
*/
|
|
96
96
|
mdDown: PropTypes.bool,
|
|
97
97
|
/**
|
|
98
|
-
* If `true`, screens this size and
|
|
98
|
+
* If `true`, component is hidden on screens this size and above.
|
|
99
99
|
* @default false
|
|
100
100
|
*/
|
|
101
101
|
mdUp: PropTypes.bool,
|
|
@@ -104,32 +104,32 @@ process.env.NODE_ENV !== "production" ? Hidden.propTypes /* remove-proptypes */
|
|
|
104
104
|
*/
|
|
105
105
|
only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']).isRequired)]),
|
|
106
106
|
/**
|
|
107
|
-
* If `true`, screens
|
|
107
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
108
108
|
* @default false
|
|
109
109
|
*/
|
|
110
110
|
smDown: PropTypes.bool,
|
|
111
111
|
/**
|
|
112
|
-
* If `true`, screens this size and
|
|
112
|
+
* If `true`, component is hidden on screens this size and above.
|
|
113
113
|
* @default false
|
|
114
114
|
*/
|
|
115
115
|
smUp: PropTypes.bool,
|
|
116
116
|
/**
|
|
117
|
-
* If `true`, screens
|
|
117
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
118
118
|
* @default false
|
|
119
119
|
*/
|
|
120
120
|
xlDown: PropTypes.bool,
|
|
121
121
|
/**
|
|
122
|
-
* If `true`, screens this size and
|
|
122
|
+
* If `true`, component is hidden on screens this size and above.
|
|
123
123
|
* @default false
|
|
124
124
|
*/
|
|
125
125
|
xlUp: PropTypes.bool,
|
|
126
126
|
/**
|
|
127
|
-
* If `true`, screens
|
|
127
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
128
128
|
* @default false
|
|
129
129
|
*/
|
|
130
130
|
xsDown: PropTypes.bool,
|
|
131
131
|
/**
|
|
132
|
-
* If `true`, screens this size and
|
|
132
|
+
* If `true`, component is hidden on screens this size and above.
|
|
133
133
|
* @default false
|
|
134
134
|
*/
|
|
135
135
|
xsUp: PropTypes.bool
|
|
@@ -19,7 +19,7 @@ export const isWidthUp = (breakpoint, width, inclusive = true) => {
|
|
|
19
19
|
return breakpointKeys.indexOf(breakpoint) < breakpointKeys.indexOf(width);
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
// By default, returns true if screen width is
|
|
22
|
+
// By default, returns true if screen width is less than the given breakpoint.
|
|
23
23
|
export const isWidthDown = (breakpoint, width, inclusive = false) => {
|
|
24
24
|
if (inclusive) {
|
|
25
25
|
return breakpointKeys.indexOf(width) <= breakpointKeys.indexOf(breakpoint);
|
package/modern/Modal/Modal.js
CHANGED
|
@@ -126,7 +126,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
126
126
|
className: clsx(className, rootSlotProps?.className, classes?.root, !ownerState.open && ownerState.exited && classes?.hidden)
|
|
127
127
|
}),
|
|
128
128
|
backdrop: () => _extends({}, BackdropProps, resolveComponentProps(backdropSlotProps, ownerState), {
|
|
129
|
-
className: clsx(backdropSlotProps?.className, classes?.backdrop)
|
|
129
|
+
className: clsx(backdropSlotProps?.className, BackdropProps?.className, classes?.backdrop)
|
|
130
130
|
})
|
|
131
131
|
},
|
|
132
132
|
onTransitionEnter: () => setExited(false),
|
package/modern/index.js
CHANGED