@mui/material 5.2.0 → 5.2.1
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/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- 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 +76 -76
- 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 +23 -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 +80 -80
- 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 +22 -22
- 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/formControlClasses.d.ts +14 -14
- package/FormControlLabel/formControlLabelClasses.d.ts +18 -18
- package/FormGroup/formGroupClasses.d.ts +10 -10
- 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 +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/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- 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/nativeSelectClasses.d.ts +32 -32
- 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 +17 -17
- 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/SelectInput.js +5 -1
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- 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/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/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- 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/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Select/SelectInput.js +7 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/index.js +1 -1
- package/legacy/useMediaQuery/useMediaQuery.js +31 -83
- package/locale/index.d.ts +66 -66
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Select/SelectInput.js +5 -1
- package/modern/index.js +1 -1
- package/modern/styles/index.js +1 -1
- package/modern/useMediaQuery/useMediaQuery.js +26 -65
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Select/SelectInput.js +5 -1
- package/node/index.js +1 -1
- package/node/styles/index.js +6 -0
- package/node/useMediaQuery/useMediaQuery.js +26 -65
- package/package.json +4 -4
- package/styles/index.d.ts +1 -0
- package/styles/index.js +1 -1
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +14 -14
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +53 -96
- package/umd/material-ui.production.min.js +13 -13
- package/useMediaQuery/useMediaQuery.d.ts +27 -31
- package/useMediaQuery/useMediaQuery.js +26 -65
- 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/transitions/utils.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const reflow: (node: Element) => number;
|
|
3
|
-
interface ComponentProps {
|
|
4
|
-
easing: string | {
|
|
5
|
-
enter?: string;
|
|
6
|
-
exit?: string;
|
|
7
|
-
} | undefined;
|
|
8
|
-
style: React.CSSProperties | undefined;
|
|
9
|
-
timeout: number | {
|
|
10
|
-
enter?: number;
|
|
11
|
-
exit?: number;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
interface Options {
|
|
15
|
-
mode: 'enter' | 'exit';
|
|
16
|
-
}
|
|
17
|
-
interface TransitionProps {
|
|
18
|
-
duration: string | number;
|
|
19
|
-
easing: string | undefined;
|
|
20
|
-
delay: string | undefined;
|
|
21
|
-
}
|
|
22
|
-
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const reflow: (node: Element) => number;
|
|
3
|
+
interface ComponentProps {
|
|
4
|
+
easing: string | {
|
|
5
|
+
enter?: string;
|
|
6
|
+
exit?: string;
|
|
7
|
+
} | undefined;
|
|
8
|
+
style: React.CSSProperties | undefined;
|
|
9
|
+
timeout: number | {
|
|
10
|
+
enter?: number;
|
|
11
|
+
exit?: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
interface Options {
|
|
15
|
+
mode: 'enter' | 'exit';
|
|
16
|
+
}
|
|
17
|
+
interface TransitionProps {
|
|
18
|
+
duration: string | number;
|
|
19
|
+
easing: string | undefined;
|
|
20
|
+
delay: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.2.
|
|
1
|
+
/** @license MUI v5.2.1
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -4998,7 +4998,7 @@
|
|
|
4998
4998
|
const useEnhancedEffect = typeof window !== 'undefined' ? React__namespace.useLayoutEffect : React__namespace.useEffect;
|
|
4999
4999
|
var useEnhancedEffect$1 = useEnhancedEffect;
|
|
5000
5000
|
|
|
5001
|
-
function
|
|
5001
|
+
function useId(idOverride) {
|
|
5002
5002
|
const [defaultId, setDefaultId] = React__namespace.useState(idOverride);
|
|
5003
5003
|
const id = idOverride || defaultId;
|
|
5004
5004
|
React__namespace.useEffect(() => {
|
|
@@ -5011,24 +5011,6 @@
|
|
|
5011
5011
|
}, [defaultId]);
|
|
5012
5012
|
return id;
|
|
5013
5013
|
}
|
|
5014
|
-
/**
|
|
5015
|
-
*
|
|
5016
|
-
* @example <div id={useId()} />
|
|
5017
|
-
* @param idOverride
|
|
5018
|
-
* @returns {string}
|
|
5019
|
-
*/
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
function useReactId(idOverride) {
|
|
5023
|
-
// TODO: Remove `React as any` once `useId` is part of stable types.
|
|
5024
|
-
if (React__namespace.useId !== undefined) {
|
|
5025
|
-
const reactId = React__namespace.useId();
|
|
5026
|
-
return idOverride != null ? idOverride : reactId;
|
|
5027
|
-
} // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
return useRandomId(idOverride);
|
|
5031
|
-
}
|
|
5032
5014
|
|
|
5033
5015
|
function unsupportedProp(props, propName, componentName, location, propFullName) {
|
|
5034
5016
|
|
|
@@ -6363,6 +6345,15 @@
|
|
|
6363
6345
|
});
|
|
6364
6346
|
}
|
|
6365
6347
|
|
|
6348
|
+
function sx(styles) {
|
|
6349
|
+
return ({
|
|
6350
|
+
theme
|
|
6351
|
+
}) => styleFunctionSx({
|
|
6352
|
+
sx: styles,
|
|
6353
|
+
theme
|
|
6354
|
+
});
|
|
6355
|
+
}
|
|
6356
|
+
|
|
6366
6357
|
function toVal(mix) {
|
|
6367
6358
|
var k, y, str='';
|
|
6368
6359
|
|
|
@@ -7476,7 +7467,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7476
7467
|
selectOnFocus = !props.freeSolo,
|
|
7477
7468
|
value: valueProp
|
|
7478
7469
|
} = props;
|
|
7479
|
-
const id =
|
|
7470
|
+
const id = useId(idProp);
|
|
7480
7471
|
let getOptionLabel = getOptionLabelProp;
|
|
7481
7472
|
|
|
7482
7473
|
getOptionLabel = option => {
|
|
@@ -14798,7 +14789,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14798
14789
|
name: 'Tabs',
|
|
14799
14790
|
state: 'value'
|
|
14800
14791
|
});
|
|
14801
|
-
const idPrefix =
|
|
14792
|
+
const idPrefix = useId();
|
|
14802
14793
|
const onSelected = React__namespace.useCallback((e, newValue) => {
|
|
14803
14794
|
setValue(newValue);
|
|
14804
14795
|
|
|
@@ -27741,7 +27732,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27741
27732
|
}
|
|
27742
27733
|
};
|
|
27743
27734
|
|
|
27744
|
-
const ariaLabelledby =
|
|
27735
|
+
const ariaLabelledby = useId(ariaLabelledbyProp);
|
|
27745
27736
|
const dialogContextValue = React__namespace.useMemo(() => {
|
|
27746
27737
|
return {
|
|
27747
27738
|
titleId: ariaLabelledby
|
|
@@ -32397,8 +32388,32 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
32397
32388
|
* @deprecated Not used internally. Use `MediaQueryListEvent` from lib.dom.d.ts instead.
|
|
32398
32389
|
*/
|
|
32399
32390
|
|
|
32400
|
-
function
|
|
32391
|
+
function useMediaQuery(queryInput, options = {}) {
|
|
32392
|
+
const theme = useTheme$2(); // Wait for jsdom to support the match media feature.
|
|
32393
|
+
// All the browsers MUI support have this built-in.
|
|
32394
|
+
// This defensive check is here for simplicity.
|
|
32395
|
+
// Most of the time, the match media logic isn't central to people tests.
|
|
32396
|
+
|
|
32401
32397
|
const supportMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia !== 'undefined';
|
|
32398
|
+
const {
|
|
32399
|
+
defaultMatches = false,
|
|
32400
|
+
matchMedia = supportMatchMedia ? window.matchMedia : null,
|
|
32401
|
+
noSsr = false,
|
|
32402
|
+
ssrMatchMedia = null
|
|
32403
|
+
} = getThemeProps({
|
|
32404
|
+
name: 'MuiUseMediaQuery',
|
|
32405
|
+
props: options,
|
|
32406
|
+
theme
|
|
32407
|
+
});
|
|
32408
|
+
|
|
32409
|
+
{
|
|
32410
|
+
if (typeof queryInput === 'function' && theme === null) {
|
|
32411
|
+
console.error(['MUI: The `query` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n'));
|
|
32412
|
+
}
|
|
32413
|
+
}
|
|
32414
|
+
|
|
32415
|
+
let query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;
|
|
32416
|
+
query = query.replace(/^@media( ?)/m, '');
|
|
32402
32417
|
const [match, setMatch] = React__namespace.useState(() => {
|
|
32403
32418
|
if (noSsr && supportMatchMedia) {
|
|
32404
32419
|
return matchMedia(query).matches;
|
|
@@ -32430,76 +32445,13 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
32430
32445
|
}
|
|
32431
32446
|
};
|
|
32432
32447
|
|
|
32433
|
-
updateMatch();
|
|
32434
|
-
|
|
32448
|
+
updateMatch();
|
|
32435
32449
|
queryList.addListener(updateMatch);
|
|
32436
32450
|
return () => {
|
|
32437
32451
|
active = false;
|
|
32438
32452
|
queryList.removeListener(updateMatch);
|
|
32439
32453
|
};
|
|
32440
32454
|
}, [query, matchMedia, supportMatchMedia]);
|
|
32441
|
-
return match;
|
|
32442
|
-
}
|
|
32443
|
-
|
|
32444
|
-
function useMediaQueryNew(query, defaultMatches, matchMedia, ssrMatchMedia) {
|
|
32445
|
-
const getDefaultSnapshot = React__namespace.useCallback(() => defaultMatches, [defaultMatches]);
|
|
32446
|
-
const getServerSnapshot = React__namespace.useMemo(() => {
|
|
32447
|
-
if (ssrMatchMedia !== null) {
|
|
32448
|
-
const {
|
|
32449
|
-
matches
|
|
32450
|
-
} = ssrMatchMedia(query);
|
|
32451
|
-
return () => matches;
|
|
32452
|
-
}
|
|
32453
|
-
|
|
32454
|
-
return getDefaultSnapshot;
|
|
32455
|
-
}, [getDefaultSnapshot, query, ssrMatchMedia]);
|
|
32456
|
-
const [getSnapshot, subscribe] = React__namespace.useMemo(() => {
|
|
32457
|
-
if (matchMedia === null) {
|
|
32458
|
-
return [getDefaultSnapshot, () => () => {}];
|
|
32459
|
-
}
|
|
32460
|
-
|
|
32461
|
-
const mediaQueryList = matchMedia(query);
|
|
32462
|
-
return [() => mediaQueryList.matches, notify => {
|
|
32463
|
-
// TODO: Use `addEventListener` once support for Safari < 14 is dropped
|
|
32464
|
-
mediaQueryList.addListener(notify);
|
|
32465
|
-
return () => {
|
|
32466
|
-
mediaQueryList.removeListener(notify);
|
|
32467
|
-
};
|
|
32468
|
-
}];
|
|
32469
|
-
}, [getDefaultSnapshot, matchMedia, query]);
|
|
32470
|
-
const match = React__namespace.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
32471
|
-
return match;
|
|
32472
|
-
}
|
|
32473
|
-
|
|
32474
|
-
function useMediaQuery(queryInput, options = {}) {
|
|
32475
|
-
const theme = useTheme$2(); // Wait for jsdom to support the match media feature.
|
|
32476
|
-
// All the browsers MUI support have this built-in.
|
|
32477
|
-
// This defensive check is here for simplicity.
|
|
32478
|
-
// Most of the time, the match media logic isn't central to people tests.
|
|
32479
|
-
|
|
32480
|
-
const supportMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia !== 'undefined';
|
|
32481
|
-
const {
|
|
32482
|
-
defaultMatches = false,
|
|
32483
|
-
matchMedia = supportMatchMedia ? window.matchMedia : null,
|
|
32484
|
-
ssrMatchMedia = null,
|
|
32485
|
-
noSsr
|
|
32486
|
-
} = getThemeProps({
|
|
32487
|
-
name: 'MuiUseMediaQuery',
|
|
32488
|
-
props: options,
|
|
32489
|
-
theme
|
|
32490
|
-
});
|
|
32491
|
-
|
|
32492
|
-
{
|
|
32493
|
-
if (typeof queryInput === 'function' && theme === null) {
|
|
32494
|
-
console.error(['MUI: The `query` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n'));
|
|
32495
|
-
}
|
|
32496
|
-
}
|
|
32497
|
-
|
|
32498
|
-
let query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;
|
|
32499
|
-
query = query.replace(/^@media( ?)/m, ''); // TODO: Drop `useMediaQueryOld` and use `use-sync-external-store` shim in `useMediaQueryNew` once the package is stable
|
|
32500
|
-
|
|
32501
|
-
const useMediaQueryImplementation = React__namespace.useSyncExternalStore !== undefined ? useMediaQueryNew : useMediaQueryOld;
|
|
32502
|
-
const match = useMediaQueryImplementation(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr);
|
|
32503
32455
|
|
|
32504
32456
|
{
|
|
32505
32457
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -39938,7 +39890,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
39938
39890
|
}
|
|
39939
39891
|
};
|
|
39940
39892
|
|
|
39941
|
-
const name =
|
|
39893
|
+
const name = useId(nameProp);
|
|
39942
39894
|
return /*#__PURE__*/jsxRuntime_1(RadioGroupContext$1.Provider, {
|
|
39943
39895
|
value: {
|
|
39944
39896
|
name,
|
|
@@ -40196,7 +40148,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
40196
40148
|
const isHovered = itemValue <= hover;
|
|
40197
40149
|
const isFocused = itemValue <= focus;
|
|
40198
40150
|
const isChecked = itemValue === ratingValueRounded;
|
|
40199
|
-
const id =
|
|
40151
|
+
const id = useId();
|
|
40200
40152
|
|
|
40201
40153
|
const container = /*#__PURE__*/jsxRuntime_1(RatingIcon, {
|
|
40202
40154
|
as: IconContainerComponent,
|
|
@@ -40310,7 +40262,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
40310
40262
|
} = props,
|
|
40311
40263
|
other = _objectWithoutPropertiesLoose(props, _excluded2$3);
|
|
40312
40264
|
|
|
40313
|
-
const name =
|
|
40265
|
+
const name = useId(nameProp);
|
|
40314
40266
|
const [valueDerived, setValueState] = useControlled({
|
|
40315
40267
|
controlled: valueProp,
|
|
40316
40268
|
default: defaultValue,
|
|
@@ -41201,7 +41153,11 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41201
41153
|
}
|
|
41202
41154
|
|
|
41203
41155
|
if (computeDisplay) {
|
|
41204
|
-
|
|
41156
|
+
if (multiple) {
|
|
41157
|
+
display = displayMultiple.reduce((prev, curr) => [prev, ', ', curr]);
|
|
41158
|
+
} else {
|
|
41159
|
+
display = displaySingle;
|
|
41160
|
+
}
|
|
41205
41161
|
} // Avoid performing a layout computation in the render method.
|
|
41206
41162
|
|
|
41207
41163
|
|
|
@@ -44199,7 +44155,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
44199
44155
|
}, [title, childNode, isControlled]);
|
|
44200
44156
|
}
|
|
44201
44157
|
|
|
44202
|
-
const id =
|
|
44158
|
+
const id = useId(idProp);
|
|
44203
44159
|
const prevUserSelect = React__namespace.useRef();
|
|
44204
44160
|
const stopTouchInteraction = React__namespace.useCallback(() => {
|
|
44205
44161
|
if (prevUserSelect.current !== undefined) {
|
|
@@ -48989,8 +48945,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
48989
48945
|
colSpan = colSpanProp || 1000; // col-span over everything
|
|
48990
48946
|
}
|
|
48991
48947
|
|
|
48992
|
-
const selectId =
|
|
48993
|
-
const labelId =
|
|
48948
|
+
const selectId = useId(SelectProps.id);
|
|
48949
|
+
const labelId = useId(SelectProps.labelId);
|
|
48994
48950
|
|
|
48995
48951
|
const getLabelDisplayedRowsTo = () => {
|
|
48996
48952
|
if (count === -1) {
|
|
@@ -51797,6 +51753,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
51797
51753
|
exports.easing = easing;
|
|
51798
51754
|
exports.emphasize = emphasize;
|
|
51799
51755
|
exports.experimentalStyled = styled$1;
|
|
51756
|
+
exports.experimental_sx = sx;
|
|
51800
51757
|
exports.extractEventHandlers = extractEventHandlers;
|
|
51801
51758
|
exports.fabClasses = fabClasses$1;
|
|
51802
51759
|
exports.filledInputClasses = filledInputClasses$1;
|
|
@@ -52030,7 +51987,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
52030
51987
|
exports.unstable_getUnit = getUnit;
|
|
52031
51988
|
exports.unstable_toUnitless = toUnitless;
|
|
52032
51989
|
exports.unstable_useEnhancedEffect = useEnhancedEffect$1;
|
|
52033
|
-
exports.unstable_useId =
|
|
51990
|
+
exports.unstable_useId = useId;
|
|
52034
51991
|
exports.unsupportedProp = unsupportedProp;
|
|
52035
51992
|
exports.useAutocomplete = useAutocomplete;
|
|
52036
51993
|
exports.useButton = useButton;
|